NullPointerException While using JBossUDDI
rama0206 May 18, 2006 4:22 AMHi,
i published webservices on UDDI , but while accessing its throwing NullPointer Exception,
Help me out on this.
i am very thankful inadvance.
Buildfile: D:\uddiv2-jaxr-technotev2\build.xml
all-clean:
all-run:
ws-clean:
ws-env:
[mkdir] Created dir: D:\uddiv2-jaxr-technotev2\output\classes
[mkdir] Created dir: D:\uddiv2-jaxr-technotev2\output\generated
[mkdir] Created dir: D:\uddiv2-jaxr-technotev2\output\generated\src\server
[mkdir] Created dir: D:\uddiv2-jaxr-technotev2\output\generated\src\client
[mkdir] Created dir: D:\uddiv2-jaxr-technotev2\output\generated\classes
[mkdir] Created dir: D:\uddiv2-jaxr-technotev2\output\generated\wsdl
ws-deploy:
[javac] Compiling 2 source files to D:\uddiv2-jaxr-technotev2\output\classes
[war] Building war: D:\uddiv2-jaxr-technotev2\output\example.war
[copy] Copying 1 file to D:\jboss-4.0.2\server\default\deploy
publisher-env:
publisher-clean:
publisher-compile:
[javac] Compiling 2 source files to D:\uddiv2-jaxr-technotev2\output\classes
[copy] Copying 1 file to D:\uddiv2-jaxr-technotev2\output\classes
publisher-run:
[echo] Publish the example ExampleService
[java] - pulishing :
[java] uddi inquiry URL = http://localhost:8080/juddi/inquiry
[java] uddi publish URL = http://localhost:8080/juddi/publish
[java] uddi user id = jboss
[java] uddi password =
[java] wsdl URL = http://localhost:8080/example/ExampleService?wsdl
[java] business entity = JBoss
[java] ...
[java] - Using the Context ClassLoader
[java] Retrieving document at 'http://localhost:8080/example/ExampleService?wsdl'.
[java] 1---------
[java] 2---------
[java] 3---------
[java] 4---------
[java] 1WSDL---------
[java] 2WSDL---------
[java] 3WSDL---------
[java] 4WSDL---------
[java] 5WSDL---------
[java] 6WSDL---------
[java] 7WSDL---------
[java] 8WSDL---------
[java] 9---------
[java] 10---------
[java] 11---------
[java] 12---------
[java] 13---------
[java] 5---------
[java] - creating Business Entity name = JBoss ...
[java] - No Business Entity "JBoss" found. Will be created.
[java] ?Org has services=true
[java] ?Org has users=true
[java] Method:save_business: ENlength=1
[java] After Saving Business. Obtained vector size:1
[java] - Business Entity "JBoss" created. Key = EA442A20-E632-11DA-A6CC-BF986DF2DBC1".
[java] - creating Business Service ...
[java] - No Business Service "ExampleService" found. Will be created.
[java] BusinessService=org.apache.juddi.datatype.service.BusinessService@65b738
[java] - Business Service created. Key = EA5C9420-E632-11DA-A6CC-FBB16DE360BC".
[java] - Port Type ...
[java] - No PortType "ExampleService" found. Will be created.
[java] Method:save_concept: ENlength=1
[java] After Saving TModel. Obtained vector size:1
[java] - Port Type created. Key = uuid:EA706A40-E632-11DA-A6CC-97C94873754E".
[java] - creating Binding with portType key = uuid:EA706A40-E632-11DA-A6CC-97C94873754E ...
[java] - No Binding "ExampleServiceBinding" found. Will be created.
[java] Method:save_concept: ENlength=1
[java] After Saving TModel. Obtained vector size:1
[java] - Binding created. Key = uuid:EA82B9C0-E632-11DA-A6CC-D54D940CB7E2".
[java] - creating Binding Template ...
[java] - No Service Binding for access point "http://localhost:8080/example/ExampleService" found. Will be created.
[java] BindingTemplate=org.apache.juddi.datatype.binding.BindingTemplate@44d990
[java] - Service Binding for access point "http://localhost:8080/example/ExampleService" created. Key = EA9382A0-E632-11DA-A6CC-E5C061DCF86D".
[java] wsdlURL http://localhost:8080/example/ExampleService?wsdl
[java] Done.
client-env:
client-clean:
client-compile:
[javac] Compiling 9 source files to D:\uddiv2-jaxr-technotev2\output\classes
[javac] Compiling 1 source file to D:\uddiv2-jaxr-technotev2\output\classes
client-run:
[java] 1-------http://localhost:8080/juddi/inquiry
[java] 2-------http://localhost:8080/juddi/publish
[java] 3-------JBoss
[java] 4-------ExampleService
[java] - Using the Context ClassLoader
[java] connection -----false
[java] registry-----org.apache.ws.scout.registry.RegistryServiceImpl@1bc887b
[java] blcm-----Key
[java] BQM-----org.apache.ws.scout.registry.BusinessQueryManagerImpl@a46701
[java] in_businessEntityName-----JBoss
[java] in_businessServiceName-----ExampleService
[java] java.lang.NullPointerException
[java] at org.apache.ws.scout.util.ScoutUddiJaxrHelper.getOrganization(ScoutUddiJaxrHelper.java:166)
[java] at org.apache.ws.scout.registry.LifeCycleManagerImpl.createOrganization(LifeCycleManagerImpl.java:478)
[java] at org.apache.ws.scout.registry.BusinessQueryManagerImpl.findOrganizations(BusinessQueryManagerImpl.java:132)
[java] at org.jboss.example.Client.initServiceKey(Client.java:186)
[java] at org.jboss.example.Client.init(Client.java:116)
[java] at org.jboss.example.Client.main(Client.java:82)
BUILD SUCCESSFUL
Total time: 24 seconds