You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@juddi.apache.org by Steve Viens <sv...@attbi.com> on 2003/05/31 23:42:09 UTC

[juddi-Users] RE: more beginner troubles using uddi4j!

Ed, the problem is that you're using the crimson XML parser (which is
bundled with Java 1.4.x). Download and install Xerces and add these two
jar files to your classpath and you should be all set.

  xercesImpl.jar
  xmlParserAPIs.jar

These jars are also available in Tomcat's 'common\endorsed' directory.

I believe the problem stems from issues surrounding Crimson's support
for namespaces (or lack of support). I tested the FindBusiness sample
without the Xerces jars in my classpath and received the same exception
(if you look closely at the stacktrace you sent you'll see
'org.apache.crimson.parser.Parser2...'. When I added the Xerces files it
worked like a charm.

Steve

-----Original Message-----
From: juddi-users-owner@lists.sourceforge.net
[mailto:juddi-users-owner@lists.sourceforge.net] On Behalf Of Earle
Castledine
Sent: Saturday, May 31, 2003 10:54 PM
To: juddi-users-admin@lists.sourceforge.net
Subject: more beginner troubles using uddi4j!


I was hoping someone could help out with this. I appolgised a lot in my
last post for my ignorance regarding these technologies, so I wont again
(after that bit!) Also, I think I posted this to the wrong address - but
if it reposts, sorry!

I think Ive got (almost) everything correct, but when I run the uddi4j
samples with: ...\samples>java -cp %AXISCLASSPATH%;..\lib\uddi4j.jar;.\;
FindBusinessExample

*********** Running FindBusinessExample ***********
        at org.uddi4j.UDDIElement.<init>(Unknown Source)
        at org.uddi4j.response.BusinessList.<init>(Unknown Source)
        at org.uddi4j.client.UDDIProxy.find_business(Unknown Source)
        at FindBusinessExample.run(FindBusinessExample.java:76)
        at FindBusinessExample.main(FindBusinessExample.java:46)

---------------
This seems to be the common error I am getting. If I use inquiryURL =
http://www-3.ibm.com/services/uddi/inquiryapi which I got from the
uddiping sample then I get:

*********** Running FindBusinessExample ***********
org.uddi4j.transport.TransportException: Error: URI=null Line=1: Illegal
Namespa ce prefix: "xml".
        at org.uddi4j.transport.ApacheAxisTransport.send(Unknown Source)
        at org.uddi4j.transport.TransportBase.send(Unknown Source)
        at org.uddi4j.client.UDDIProxy.send(Unknown Source)
        at org.uddi4j.client.UDDIProxy.find_business(Unknown Source)
        at FindBusinessExample.run(FindBusinessExample.java:76)
        at FindBusinessExample.main(FindBusinessExample.java:46)

Nested exception:
org.xml.sax.SAXException: Error: URI=null Line=1: Illegal Namespace
prefix: "xml ". at
org.apache.axis.utils.XMLUtils$ParserErrorHandler.error(XMLUtils.java
:619)
   at org.apache.crimson.parser.Parser2.error(Parser2.java:3165)
   ....Plus heaps more!

AND, if I use https://uddi.ibm.com/ubr/registry.html (which i got from
the uddi4j page) I get:
org.uddi4j.transport.TransportException: ; nested exception is:
        java.lang.NullPointerException
	....plus that first bit, plus heaps more of even different
stuff!

It seems to be doing something, because if I use a dud url it says:
(405)Method not allowed. Encouraging!

When I use juddi, It gives me the same error as above whether or not I
have mysql running (as Rupesh instructed with the c:\mysql\mysqld
--console) But happyjuddi says "got a JDNI thingo!" and nothing there
looks like an error. Though it has blank entries for http.proxyPort, and
http.proxyHost. (is this ok?)

Oh, by the way. The above exception is thrown when it hits this line of
code:
BusinessList businessList = proxy.find_business(names, null, null,
null,null,findQualifiers,5);

Thanks again for your help!

Earle