You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@juddi.apache.org by Ralph Müller <ra...@t-online.de> on 2003/05/21 05:38:21 UTC

[juddi-Users] save_business problem

Hello

I try to save my Business Entity to juddi registry, using
uddi4j lib. I get a valid ticket, so my oracle db should work.
Looking at juddi.log I got a NullPointerException in
SaveBusinessFunction.
Does anyone know why ?

Here's my code

BusinessEntity businessEntity = new BusinessEntity();
Name name = new Name("AuthTest1");
Vector names = new Vector();
names.addElement(name);
businessEntity.setNameVector(names);
businessEntity.setBusinessKey("");
Vector businessEntities = new Vector();
businessEntities.addElement(businessEntity);

BusinessDetail businessDetail = null;
businessDetail = uddiProxy.save_business(createTicket(),businessEntities);

here's juddi log extract:

2003-05-21 12:13:48,015 [Thread-5] INFO org.juddi.datastore.jdbc.AuthTokenTable - select from AUTH_TOKEN table:

 SELECT PUBLISHER_ID,PUBLISHER_NAME FROM AUTH_TOKEN WHERE AUTH_TOKEN=?
  AUTH_TOKEN=authToken:E8CA2CB0-8B74-11D7-A8B2-DCA5CF55F662

2003-05-21 12:13:48,531 [Thread-5] INFO org.juddi.datastore.jdbc.AuthTokenTable - select LAST_USED from AUTH_TOKEN table:

 SELECT LAST_USED FROM AUTH_TOKEN WHERE AUTH_TOKEN=?
  AUTH_TOKEN=authToken:E8CA2CB0-8B74-11D7-A8B2-DCA5CF55F662

2003-05-21 12:13:49,046 [Thread-5] INFO org.juddi.datastore.jdbc.AuthTokenTable - update AUTH_TOKEN table:

 UPDATE AUTH_TOKEN SET LAST_USED=?,NUMBER_OF_USES=NUMBER_OF_USES+1 WHERE AUTH_TOKEN=? 
  AUTH_TOKEN=authToken:E8CA2CB0-8B74-11D7-A8B2-DCA5CF55F662
  LAST_USED=2003-05-21 12:13:48.968

2003-05-21 12:13:49,328 [Thread-5] ERROR org.juddi.registry.function.SaveBusinessFunction - java.lang.NullPointerException
2003-05-21 12:13:49,328 [Thread-5] INFO org.juddi.datastore.jdbc.JDBCDataStoreFactory - release a JDBC connection back into the  the DataSource connection pool.

kind regards

Ralph