Hi Marilina,

So it looks like your 'security' Port is null. You should make sure you have a running (j)UDDI server and that the (clientside) uddi.xml contains the right connection info.

1. Check http://localhost:8080/juddiv3/services/security?wsdl gives you a wsdl (this checks the server is up and running on post 8080 and that the webservices are deployed.

2. Make sure that on the client side the META-INF/uddi.xml is on the classpath, and contains the same port as found out in 1.

Cheers,

--Kurt

On 2/21/12 7:09 AM, Marilina Ferrer wrote:
Hi,

I'm trying to run the simple-publish example,I've followed the demo detailed in your blog and I've this error when I compile the code:

_

java.lang.NullPointerException

_

at org.apache.juddi.example.publish.SimplePublish.publish(

_SimplePublish.java:59_)

at org.apache.juddi.example.publish.SimplePublish.main(

_SimplePublish.java:120_)
---------------------------------------------------------------------------------
Line 59 --> AuthToken rootAuthToken =
/security/.getAuthToken(getAuthTokenRoot);
Line 120-->

SimplePublish sp =

*new*SimplePublish();

sp.publish();
Can you tell me where is the problem?
Thanks a lot,
Maria


Reply via email to