Hi all,

i have been dealing with juddi for a while now.. Have encountered
every single exception which has been discussed here!

I'm running
juddi_0.8.0  - and it's happy
Tomcat 5.5.16 - coz Tomcat 5.5 kept prompting me the classic JDBC
exception in happyjuddi.jsp page
axis-1_3

i have registered juddi successfully in the UDDIBrowser and i'm able
to query and publish to juddi database. However, when i attempt to run
the UDDi4j samples the FindBusniessExample.java returns:

*********** Running FindBusinessExample ***********
Configuration properties set: {org.uddi4j.TransportClassName=org.uddi4j.transpor
t.ApacheSOAPTransport, org.uddi4j.logEnabled=true}

Request body:
<uddiv2:find_business generic="2.0" maxRows="5"><uddiv2:findQualifiers><uddiv2:f
indQualifier>caseSensitiveMatch</uddiv2:findQualifier></uddiv2:findQualifiers><u
ddiv2:name>S</uddiv2:name></uddiv2:find_business>

Response body:
<businessList generic="2.0" operator="ms.com" truncated="false" xmlns="urn:uddi-
org:api_v2"><businessInfos/></businessList>

Although the database is populated with business Entities!!!!! which i
should be able to see in the request body!!

what might have been the reason for not being able to retrieve the
business entities???????????


2. Moreover, when i run The SaveBusinessExample.java i receive the
following exception:

*********** Running SaveBusinessExample ***********
Configuration properties set: {org.uddi4j.TransportClassName=org.uddi4j.transpor
t.ApacheSOAPTransport, org.uddi4j.logEnabled=true}

Get authtoken

Request body:
<uddiv2:get_authToken cred="juddi" generic="2.0" userID="juddi"/>

Response body:
<authToken generic="2.0" operator="jUDDI.org" xmlns="urn:uddi-org:api_v2"><authI
nfo>authToken:304F3530-D8F7-11DA-B530-B0F981B61C41</authInfo></authToken>
Returned authToken:authToken:304F3530-D8F7-11DA-B530-B0F981B61C41

Save 'Sample Business'

Request body:
<uddiv2:save_business generic="2.0"><uddiv2:authInfo>authToken:304F3530-D8F7-11D
A-B530-B0F981B61C41</uddiv2:authInfo><uddiv2:businessEntity businessKey=""><uddi
v2:name>Sample Business</uddiv2:name></uddiv2:businessEntity></uddiv2:save_busin
ess>

Response body:
<Fault><faultcode>Client</faultcode><faultstring>Client Error</faultstring><faul
tactor/><detail><dispositionReport generic="2.0" operator="jUDDI.org" xmlns="urn
:uddi-org:api_v2"><result errno="10120"><errInfo errCode="E_authTokenRequired">A
n invalid authentication token was passed to an API call that requires authentic
ation.</errInfo></result></dispositionReport></detail></Fault>
java.lang.NullPointerException
       at org.uddi4j.UDDIException.isValidElement(UDDIException.java:111)
       at org.uddi4j.UDDIElement.<init>(UDDIElement.java:38)
       at org.uddi4j.response.BusinessDetail.<init>(BusinessDetail.java:85)
       at org.uddi4j.client.UDDIProxy.save_business(UDDIProxy.java:1700)
       at SaveBusinessExample.run(SaveBusinessExample.java:89)
       at SaveBusinessExample.main(SaveBusinessExample.java:50)


As i read in some threads posting similar exception in the list, it
might be a client-side implementation issue!! So i tried running the
samples with Microsoft Test registry and was able to query using the
UDDIBrowser.

After running the SaveBusinessExample.java the juddi.log file under
tomcat displaied the following error:

2006-05-01 13:45:15,419 [http-8080-Processor24] ERROR
org.juddi.function.SaveBusinessFunction - RegistryException:
authToken: null
 SOAPFault Actor:
 SOAPFault Code: Client
 SOAPFault String: Client Error
Operator: null
 >Errno: 10120
>Error Code: E_authTokenRequired
>Error Info Text: An invalid authentication token was passed to an
API call that requires authentication.


Please help as i need to get this samples wroking for my grad. project
which is dure pretty soon =(

Regards,

Khulood

Reply via email to