You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@juddi.apache.org by Roberto Baldascino <ro...@eng.it> on 2003/07/01 04:07:01 UTC

[juddi-Users] Unknown Source

I've installed juddi in Tomcat 4.1 with mysql, and happyjuddi.jsp tells me everything is ok.
Using uddi4j, FindBusinessExample is ok. But publishing a webservice by SaveBusinessExample it breaks and throws the next exception:

*********** Running SaveBusinessExample ***********
Get authtoken
Returned authToken:authToken:425FEE30-AB9C-11D7-AE30-E9204C5EC8BA
Save 'Sample Business'
        at org.uddi4j.UDDIElement.<init>(Unknown Source)
        at org.uddi4j.response.BusinessDetail.<init>(Unknown Source)
        at org.uddi4j.client.UDDIProxy.save_business(Unknown Source)
        at SaveBusinessExample.run(SaveBusinessExample.java:94)
        at SaveBusinessExample.main(SaveBusinessExample.java:53)

The Tomcat Log is:

Bootstrap: Create Catalina server
- Loading registry information
- Creating new Registry instance
- Creating MBeanServer
- Initializing Coyote HTTP/1.1 on port 8080
Bootstrap: Starting service
Starting service Tomcat-Standalone
Apache Tomcat/4.1.24
- SimpleAuthenticatorFactory.init() called.
- JDBCDataStoreFactory.init() called.
- JavaUUIDGenFactory.init() called.
- Starting Coyote HTTP/1.1 on port 8080
- JK2: ajp13 listening on /0.0.0.0:8009
- Jk running ID=0 time=0/60 config=C:\Programmi\Apache Group\Tomcat 4.1\conf\jk2.properties
Bootstrap: Service started
- select from PUBLISHER table:
SELECT PUBLISHER_NAME,ADMIN FROM PUBLISHER WHERE PUBLISHER_ID=?
PUBLISHER_ID=juddi
- Generated token 'authToken:749F6840-ABA0-11D7-A891-E2724B1C5FFF' for user: 'juddi/Juddiuser'
- insert into PUBLISHER table:
INSERT INTO AUTH_TOKEN (AUTH_TOKEN,PUBLISHER_ID,PUBLISHER_NAME,CREATED,LAST_USED,NUMBER_OF_USES,TOKEN_STATE) VALUES (?,?,?,?,?,0,1)
AUTH_TOKEN=authToken:749F6840-ABA0-11D7-A891-E2724B1C5FFF
PUBLISHER_ID=juddi
PUBLISHER_NAME=Juddiuser
CREATED=2003-07-01 10:46:07.064
LAST_USED=2003-07-01 10:46:07.064
NUMBER_OF_USES=1
TOKEN_STATE=1
- release a JDBC connection back into the the DataSource connection pool.
- select from AUTH_TOKEN table:
SELECT PUBLISHER_ID,PUBLISHER_NAME FROM AUTH_TOKEN WHERE AUTH_TOKEN=?
AUTH_TOKEN=authToken:749F6840-ABA0-11D7-A891-E2724B1C5FFF
- select LAST_USED from AUTH_TOKEN table:
SELECT LAST_USED FROM AUTH_TOKEN WHERE AUTH_TOKEN=?
AUTH_TOKEN=authToken:749F6840-ABA0-11D7-A891-E2724B1C5FFF
- update AUTH_TOKEN table:
UPDATE AUTH_TOKEN SET LAST_USED=?,NUMBER_OF_USES=NUMBER_OF_USES+1 WHERE AUTH_TOKEN=? 
AUTH_TOKEN=authToken:749F6840-ABA0-11D7-A891-E2724B1C5FFF
LAST_USED=2003-07-01 10:46:07.665
- java.lang.NullPointerException
- release a JDBC connection back into the the DataSource connection pool.

The file samples.prop of uddi4j classes is:

# Property file used to set parameters for UDDI4J samples
# -----------------------------------------------------------------------
# inquiryURL: The URL for the inquiry API of the target UDDI registry
# publishURL: URL for the publish API of the target UDDI registry
# A list of UDDI URLs is on the UDDI4J website http://www.uddi4j.org/
# 
# A typical entry would be of the form
# inquiryURL=http://company.com/uddi_node
# publishURL=https://company.com/uddi_publish_node
# -----------------------------------------------------------------------
inquiryURL = http://192.168.11.236:8080/juddi/inquiry 
publishURL = http://192.168.11.236:8080/juddi/publish 
# -----------------------------------------------------------------------
# Userid to use when running the publish samples. Userid/passwords should
# not generally be stored in clear text
# -----------------------------------------------------------------------
userid = juddi
password = password
# -----------------------------------------------------------------------
# Transport classname. Typically defined on commandline as 
# -Dorg.uddi4j.TransportClassName=xxx.
# -----------------------------------------------------------------------
#TransportClassName=org.uddi4j.transport.ApacheSOAPTransport
TransportClassName=org.uddi4j.transport.ApacheAxisTransport
# TransportClassName=org.uddi4j.transport.HPSOAPTransport
# -----------------------------------------------------------------------
# Debug log enabled or not. Typically defined on command line as
# -Dorg.uddi4j.logEnabled=true
# -----------------------------------------------------------------------
logEnabled=false
# logEnabled=true
# -----------------------------------------------------------------------
# Values used to determine the implementation of JSSE to use. Provided
# for convenience, this is typically configured within the jdk
# in JAVA_HOME\jre\lib\security
# -----------------------------------------------------------------------
# Sun JSSE implementation
handlerPackageName=com.sun.net.ssl.internal.www.protocol
securityClassName=com.sun.net.ssl.internal.ssl.Provider
# IBM JSSE implementation
# handlerPackageName=com.ibm.net.ssl.internal.www.protocol
# securityClassName=com.ibm.jsse.JSSEProvider
# -----------------------------------------------------------------------
# UDDI names to use within samples. Samples may or maynot use these values,
# Check the source for the sample
# -----------------------------------------------------------------------
businessName=Sample Business
serviceName=Sample Service
tmodelName=Sample TModel
sampleEntityName=S
assertionRelationship=peer-peer
# -----------------------------------------------------------------------
# Additional values can be added as needed as a convenient repository
# for data relevant to the UDDI4J samples
# -----------------------------------------------------------------------


How i can solve my problems?

Regards

Re: [juddi-Users] Unknown Source

Posted by Roberto Baldascino <ro...@eng.it>.
I resolve my problem with download version 0.7.1. My juddi run correctly.

Regards
  ----- Original Message ----- 
  From: Anou Manavalan 
  To: juddi-users@lists.sourceforge.net 
  Sent: Tuesday, July 01, 2003 4:10 PM
  Subject: RE: [juddi-Users] Unknown Source


  If I remember right, this problem was solved and a bug fix is already in place for the nullptr.  Did you get the files from CVS ? or is it the release code ? There were a number of fixes that has been made after the release, so getting the files from CVS should help.

  regards,
  -Anou
    -----Original Message-----
    From: juddi-users-admin@lists.sourceforge.net [mailto:juddi-users-admin@lists.sourceforge.net]On Behalf Of Roberto Baldascino
    Sent: Tuesday, July 01, 2003 3:07 AM
    To: juddi-users@lists.sourceforge.net
    Subject: [juddi-Users] Unknown Source


    I've installed juddi in Tomcat 4.1 with mysql, and happyjuddi.jsp tells me everything is ok.
    Using uddi4j, FindBusinessExample is ok. But publishing a webservice by SaveBusinessExample it breaks and throws the next exception:

    *********** Running SaveBusinessExample ***********
    Get authtoken
    Returned authToken:authToken:425FEE30-AB9C-11D7-AE30-E9204C5EC8BA
    Save 'Sample Business'
            at org.uddi4j.UDDIElement.<init>(Unknown Source)
            at org.uddi4j.response.BusinessDetail.<init>(Unknown Source)
            at org.uddi4j.client.UDDIProxy.save_business(Unknown Source)
            at SaveBusinessExample.run(SaveBusinessExample.java:94)
            at SaveBusinessExample.main(SaveBusinessExample.java:53)

    The Tomcat Log is:

    Bootstrap: Create Catalina server
    - Loading registry information
    - Creating new Registry instance
    - Creating MBeanServer
    - Initializing Coyote HTTP/1.1 on port 8080
    Bootstrap: Starting service
    Starting service Tomcat-Standalone
    Apache Tomcat/4.1.24
    - SimpleAuthenticatorFactory.init() called.
    - JDBCDataStoreFactory.init() called.
    - JavaUUIDGenFactory.init() called.
    - Starting Coyote HTTP/1.1 on port 8080
    - JK2: ajp13 listening on /0.0.0.0:8009
    - Jk running ID=0 time=0/60 config=C:\Programmi\Apache Group\Tomcat 4.1\conf\jk2.properties
    Bootstrap: Service started
    - select from PUBLISHER table:
    SELECT PUBLISHER_NAME,ADMIN FROM PUBLISHER WHERE PUBLISHER_ID=?
    PUBLISHER_ID=juddi
    - Generated token 'authToken:749F6840-ABA0-11D7-A891-E2724B1C5FFF' for user: 'juddi/Juddiuser'
    - insert into PUBLISHER table:
    INSERT INTO AUTH_TOKEN (AUTH_TOKEN,PUBLISHER_ID,PUBLISHER_NAME,CREATED,LAST_USED,NUMBER_OF_USES,TOKEN_STATE) VALUES (?,?,?,?,?,0,1)
    AUTH_TOKEN=authToken:749F6840-ABA0-11D7-A891-E2724B1C5FFF
    PUBLISHER_ID=juddi
    PUBLISHER_NAME=Juddiuser
    CREATED=2003-07-01 10:46:07.064
    LAST_USED=2003-07-01 10:46:07.064
    NUMBER_OF_USES=1
    TOKEN_STATE=1
    - release a JDBC connection back into the the DataSource connection pool.
    - select from AUTH_TOKEN table:
    SELECT PUBLISHER_ID,PUBLISHER_NAME FROM AUTH_TOKEN WHERE AUTH_TOKEN=?
    AUTH_TOKEN=authToken:749F6840-ABA0-11D7-A891-E2724B1C5FFF
    - select LAST_USED from AUTH_TOKEN table:
    SELECT LAST_USED FROM AUTH_TOKEN WHERE AUTH_TOKEN=?
    AUTH_TOKEN=authToken:749F6840-ABA0-11D7-A891-E2724B1C5FFF
    - update AUTH_TOKEN table:
    UPDATE AUTH_TOKEN SET LAST_USED=?,NUMBER_OF_USES=NUMBER_OF_USES+1 WHERE AUTH_TOKEN=? 
    AUTH_TOKEN=authToken:749F6840-ABA0-11D7-A891-E2724B1C5FFF
    LAST_USED=2003-07-01 10:46:07.665
    - java.lang.NullPointerException
    - release a JDBC connection back into the the DataSource connection pool.

    The file samples.prop of uddi4j classes is:

    # Property file used to set parameters for UDDI4J samples
    # -----------------------------------------------------------------------
    # inquiryURL: The URL for the inquiry API of the target UDDI registry
    # publishURL: URL for the publish API of the target UDDI registry
    # A list of UDDI URLs is on the UDDI4J website http://www.uddi4j.org/
    # 
    # A typical entry would be of the form
    # inquiryURL=http://company.com/uddi_node
    # publishURL=https://company.com/uddi_publish_node
    # -----------------------------------------------------------------------
    inquiryURL = http://192.168.11.236:8080/juddi/inquiry 
    publishURL = http://192.168.11.236:8080/juddi/publish 
    # -----------------------------------------------------------------------
    # Userid to use when running the publish samples. Userid/passwords should
    # not generally be stored in clear text
    # -----------------------------------------------------------------------
    userid = juddi
    password = password
    # -----------------------------------------------------------------------
    # Transport classname. Typically defined on commandline as 
    # -Dorg.uddi4j.TransportClassName=xxx.
    # -----------------------------------------------------------------------
    #TransportClassName=org.uddi4j.transport.ApacheSOAPTransport
    TransportClassName=org.uddi4j.transport.ApacheAxisTransport
    # TransportClassName=org.uddi4j.transport.HPSOAPTransport
    # -----------------------------------------------------------------------
    # Debug log enabled or not. Typically defined on command line as
    # -Dorg.uddi4j.logEnabled=true
    # -----------------------------------------------------------------------
    logEnabled=false
    # logEnabled=true
    # -----------------------------------------------------------------------
    # Values used to determine the implementation of JSSE to use. Provided
    # for convenience, this is typically configured within the jdk
    # in JAVA_HOME\jre\lib\security
    # -----------------------------------------------------------------------
    # Sun JSSE implementation
    handlerPackageName=com.sun.net.ssl.internal.www.protocol
    securityClassName=com.sun.net.ssl.internal.ssl.Provider
    # IBM JSSE implementation
    # handlerPackageName=com.ibm.net.ssl.internal.www.protocol
    # securityClassName=com.ibm.jsse.JSSEProvider
    # -----------------------------------------------------------------------
    # UDDI names to use within samples. Samples may or maynot use these values,
    # Check the source for the sample
    # -----------------------------------------------------------------------
    businessName=Sample Business
    serviceName=Sample Service
    tmodelName=Sample TModel
    sampleEntityName=S
    assertionRelationship=peer-peer
    # -----------------------------------------------------------------------
    # Additional values can be added as needed as a convenient repository
    # for data relevant to the UDDI4J samples
    # -----------------------------------------------------------------------


    How i can solve my problems?

    Regards

RE: [juddi-Users] Unknown Source

Posted by Anou Manavalan <an...@trysybase.com>.
If I remember right, this problem was solved and a bug fix is already in
place for the nullptr.  Did you get the files from CVS ? or is it the
release code ? There were a number of fixes that has been made after the
release, so getting the files from CVS should help.

regards,
-Anou
  -----Original Message-----
  From: juddi-users-admin@lists.sourceforge.net
[mailto:juddi-users-admin@lists.sourceforge.net]On Behalf Of Roberto
Baldascino
  Sent: Tuesday, July 01, 2003 3:07 AM
  To: juddi-users@lists.sourceforge.net
  Subject: [juddi-Users] Unknown Source


  I've installed juddi in Tomcat 4.1 with mysql, and happyjuddi.jsp tells me
everything is ok.
  Using uddi4j, FindBusinessExample is ok. But publishing a webservice by
SaveBusinessExample it breaks and throws the next exception:

  *********** Running SaveBusinessExample ***********
  Get authtoken
  Returned authToken:authToken:425FEE30-AB9C-11D7-AE30-E9204C5EC8BA
  Save 'Sample Business'
          at org.uddi4j.UDDIElement.<init>(Unknown Source)
          at org.uddi4j.response.BusinessDetail.<init>(Unknown Source)
          at org.uddi4j.client.UDDIProxy.save_business(Unknown Source)
          at SaveBusinessExample.run(SaveBusinessExample.java:94)
          at SaveBusinessExample.main(SaveBusinessExample.java:53)

  The Tomcat Log is:

  Bootstrap: Create Catalina server
  - Loading registry information
  - Creating new Registry instance
  - Creating MBeanServer
  - Initializing Coyote HTTP/1.1 on port 8080
  Bootstrap: Starting service
  Starting service Tomcat-Standalone
  Apache Tomcat/4.1.24
  - SimpleAuthenticatorFactory.init() called.
  - JDBCDataStoreFactory.init() called.
  - JavaUUIDGenFactory.init() called.
  - Starting Coyote HTTP/1.1 on port 8080
  - JK2: ajp13 listening on /0.0.0.0:8009
  - Jk running ID=0 time=0/60 config=C:\Programmi\Apache Group\Tomcat
4.1\conf\jk2.properties
  Bootstrap: Service started
  - select from PUBLISHER table:
  SELECT PUBLISHER_NAME,ADMIN FROM PUBLISHER WHERE PUBLISHER_ID=?
  PUBLISHER_ID=juddi
  - Generated token 'authToken:749F6840-ABA0-11D7-A891-E2724B1C5FFF' for
user: 'juddi/Juddiuser'
  - insert into PUBLISHER table:
  INSERT INTO AUTH_TOKEN
(AUTH_TOKEN,PUBLISHER_ID,PUBLISHER_NAME,CREATED,LAST_USED,NUMBER_OF_USES,TOK
EN_STATE) VALUES (?,?,?,?,?,0,1)
  AUTH_TOKEN=authToken:749F6840-ABA0-11D7-A891-E2724B1C5FFF
  PUBLISHER_ID=juddi
  PUBLISHER_NAME=Juddiuser
  CREATED=2003-07-01 10:46:07.064
  LAST_USED=2003-07-01 10:46:07.064
  NUMBER_OF_USES=1
  TOKEN_STATE=1
  - release a JDBC connection back into the the DataSource connection pool.
  - select from AUTH_TOKEN table:
  SELECT PUBLISHER_ID,PUBLISHER_NAME FROM AUTH_TOKEN WHERE AUTH_TOKEN=?
  AUTH_TOKEN=authToken:749F6840-ABA0-11D7-A891-E2724B1C5FFF
  - select LAST_USED from AUTH_TOKEN table:
  SELECT LAST_USED FROM AUTH_TOKEN WHERE AUTH_TOKEN=?
  AUTH_TOKEN=authToken:749F6840-ABA0-11D7-A891-E2724B1C5FFF
  - update AUTH_TOKEN table:
  UPDATE AUTH_TOKEN SET LAST_USED=?,NUMBER_OF_USES=NUMBER_OF_USES+1 WHERE
AUTH_TOKEN=?
  AUTH_TOKEN=authToken:749F6840-ABA0-11D7-A891-E2724B1C5FFF
  LAST_USED=2003-07-01 10:46:07.665
  - java.lang.NullPointerException
  - release a JDBC connection back into the the DataSource connection pool.

  The file samples.prop of uddi4j classes is:

  # Property file used to set parameters for UDDI4J samples
  # -----------------------------------------------------------------------
  # inquiryURL: The URL for the inquiry API of the target UDDI registry
  # publishURL: URL for the publish API of the target UDDI registry
  # A list of UDDI URLs is on the UDDI4J website http://www.uddi4j.org/
  #
  # A typical entry would be of the form
  # inquiryURL=http://company.com/uddi_node
  # publishURL=https://company.com/uddi_publish_node
  # -----------------------------------------------------------------------
  inquiryURL = http://192.168.11.236:8080/juddi/inquiry
  publishURL = http://192.168.11.236:8080/juddi/publish
  # -----------------------------------------------------------------------
  # Userid to use when running the publish samples. Userid/passwords should
  # not generally be stored in clear text
  # -----------------------------------------------------------------------
  userid = juddi
  password = password
  # -----------------------------------------------------------------------
  # Transport classname. Typically defined on commandline as
  # -Dorg.uddi4j.TransportClassName=xxx.
  # -----------------------------------------------------------------------
  #TransportClassName=org.uddi4j.transport.ApacheSOAPTransport
  TransportClassName=org.uddi4j.transport.ApacheAxisTransport
  # TransportClassName=org.uddi4j.transport.HPSOAPTransport
  # -----------------------------------------------------------------------
  # Debug log enabled or not. Typically defined on command line as
  # -Dorg.uddi4j.logEnabled=true
  # -----------------------------------------------------------------------
  logEnabled=false
  # logEnabled=true
  # -----------------------------------------------------------------------
  # Values used to determine the implementation of JSSE to use. Provided
  # for convenience, this is typically configured within the jdk
  # in JAVA_HOME\jre\lib\security
  # -----------------------------------------------------------------------
  # Sun JSSE implementation
  handlerPackageName=com.sun.net.ssl.internal.www.protocol
  securityClassName=com.sun.net.ssl.internal.ssl.Provider
  # IBM JSSE implementation
  # handlerPackageName=com.ibm.net.ssl.internal.www.protocol
  # securityClassName=com.ibm.jsse.JSSEProvider
  # -----------------------------------------------------------------------
  # UDDI names to use within samples. Samples may or maynot use these
values,
  # Check the source for the sample
  # -----------------------------------------------------------------------
  businessName=Sample Business
  serviceName=Sample Service
  tmodelName=Sample TModel
  sampleEntityName=S
  assertionRelationship=peer-peer
  # -----------------------------------------------------------------------
  # Additional values can be added as needed as a convenient repository
  # for data relevant to the UDDI4J samples
  # -----------------------------------------------------------------------


  How i can solve my problems?

  Regards