You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@juddi.apache.org by Brian Gao <bg...@nortel.com> on 2005/03/03 22:34:58 UTC

(500)Internal Server Error with uddi4j sample code

H all,
I have Tomcat 5.5.4, jdk1.5 and  axis 1.2rc2 installed, I can see happyjuddi
and happyaxis pages, no problem.

But when I tried to run the sample codes from uddi4j, I got "(500)Internal
Server Error" message.

Does anyone meet this problem before? Any ideas?

Thanks

Brian

****************************************************************************
********************
dcnlocal@pkany206:/opt/uddi4j/samples$ java FindBusinessExample

*********** Running FindBusinessExample ***********
TransportFactory: Using transport
name:org.uddi4j.transport.ApacheAxisTransport

Request message:
<ns1:find_business generic="2.0" maxRows="5" xmlns="urn:uddi-org:api_v2"
xmlns:ns1="urn:uddi-org:api
_v2"><findQualifiers xmlns="urn:uddi-org:api_v2"><findQualifier
xmlns="urn:uddi-org:api_v2">caseSens
itiveMatch</findQualifier></findQualifiers><name
xmlns="urn:uddi-org:api_v2">S</name></ns1:find_busi
ness>

Response message:
<soapenv:Fault
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><faultcode
xmlns:ns1="http:
//xml.apache.org/axis/">ns1:HTTP</faultcode><faultstring>(500)Internal
Server Error</faultstring><de
tail><string>return code:  500
&lt;html&gt;&lt;head&gt;&lt;title&gt;Apache Tomcat/5.5.4 - Error
report&lt;/title&gt;&lt;style&gt;&l
t;!--H1
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fo
nt-size:22px;} H
2
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fo
nt-size:16px;} H3 {fon
t-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-s
ize:14px;} BODY {font-fa
mily:Tahoma,Arial,sans-serif;color:black;background-color:white;} B
{font-family:Tahoma,Arial,sans-s
erif;color:white;background-color:#525D76;} P
{font-family:Tahoma,Arial,sans-serif;background:white;
color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR
{color : #525D76;}--&gt;&lt;
/style&gt; &lt;/head&gt;&lt;body&gt;&lt;h1&gt;HTTP Status 500 -
&lt;/h1&gt;&lt;HR size=&quot;1&quot;
 noshade=&quot;noshade&quot;&gt;&lt;p&gt;&lt;b&gt;type&lt;/b&gt; Exception
report&lt;/p&gt;&lt;p&gt;
&lt;b&gt;message&lt;/b&gt;
&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;description&lt;/b&gt; &lt;
u&gt;The server encountered an internal error () that prevented it from
fulfilling this request.&lt;
/u&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;exception&lt;/b&gt;
&lt;pre&gt;java.lang.NullPointerException
        java.util.Hashtable.put(Hashtable.java:396)
 
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProperty(SAXParserI
mpl.java:395)
 
org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationCon
textImpl.java:22
2)
        org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:568)
        org.apache.axis.Message.getSOAPEnvelope(Message.java:427)
        org.apache.axis.Message.getContentType(Message.java:484)
 
org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:683)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
 
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:
301)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
&lt;/pre&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;note&lt;/b&gt; &lt;u&gt;The full
stack trace of the root cau
se is available in the Apache Tomcat/5.5.4 logs.&lt;/u&gt;&lt;/p&gt;&lt;HR
size=&quot;1&quot; noshad
e=&quot;noshade&quot;&gt;&lt;h3&gt;Apache
Tomcat/5.5.4&lt;/h3&gt;&lt;/body&gt;&lt;/html&gt;</string>
<ns2:HttpErrorCode
xmlns:ns2="http://xml.apache.org/axis/">500</ns2:HttpErrorCode></detail></so
apenv
:Fault>
(500)Internal Server Error
        at org.uddi4j.UDDIElement.<init>(Unknown Source)
        at org.uddi4j.response.BusinessList.<init>(Unknown Source)
        at org.uddi4j.client.UDDIProxy.find_business(Unknown Source)
        at FindBusinessExample.run(Unknown Source)
        at FindBusinessExample.main(Unknown Source)
Brian  


RE: (500)Internal Server Error with uddi4j sample code

Posted by Alix Pouladdej <al...@yahoo.com>.
Hi All,
After days of battling with different versions issues
for juddi, Axis, etc. we have gotten our system
working.
I just wanted to share the information for other new
user. Here it is:

(1) Initially I, like Brian were getting the (500)
internal error. This was tracked down to
incompatability of axis with tomcat. Version used were
axis1.2rc2, tomcat 5.5.5. juddi 0.9rc3, jdk 1.5.

(2) Based on Steve's recommendation, we rolled back
to tomcat 5.0, jdk1.4.x, and kept juddi 0.9rc3, axis
1.2rc2.

We then came across the problem of connecting with the
DB. In this regards we found that the following files
needed to be modified accordingly:

juddi.properties (juddi.operatorName=eudodyn.org)
server.xml
web.xml (to be able to servlets)

We can now successfully run uddi4j samples and ohter
programs. Thanks for all your feedback and pointers.

Regards,
Alix 



 --- Feng Tang <fe...@thedistillery.com.au> wrote: 
> I've met 500 internal server error before caused by
> axis. Probably you
> have to download another version axis and also it's
> patch.
> 
> 
> 
> -----Original Message-----
> From: Brian Gao [mailto:bgao@nortel.com]
> Sent: Friday, 4 March 2005 8:35 AM
> To: juddi-user@ws.apache.org
> Subject: (500)Internal Server Error with uddi4j
> sample code
> 
> 
> 
> 
> 
> H all,
> I have Tomcat 5.5.4, jdk1.5 and  axis 1.2rc2
> installed, I can see
> happyjuddi and happyaxis pages, no problem.
> 
> But when I tried to run the sample codes from
> uddi4j, I got
> "(500)Internal Server Error" message.
> 
> Does anyone meet this problem before? Any ideas?
> 
> Thanks
> 
> Brian
> 
>
************************************************************************
> ************************
> dcnlocal@pkany206:/opt/uddi4j/samples$ java
> FindBusinessExample
> 
> *********** Running FindBusinessExample ***********
> TransportFactory: Using transport
> name:org.uddi4j.transport.ApacheAxisTransport
> 
> Request message:
> <ns1:find_business generic="2.0" maxRows="5"
> xmlns="urn:uddi-org:api_v2"
> xmlns:ns1="urn:uddi-org:api
> _v2"><findQualifiers
> xmlns="urn:uddi-org:api_v2"><findQualifier
> xmlns="urn:uddi-org:api_v2">caseSens
> itiveMatch</findQualifier></findQualifiers><name
> xmlns="urn:uddi-org:api_v2">S</name></ns1:find_busi
> ness>
> 
> Response message:
> <soapenv:Fault
>
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><faultcode
> xmlns:ns1="http:
>
//xml.apache.org/axis/">ns1:HTTP</faultcode><faultstring>(500)Internal
> Server Error</faultstring><de
> tail><string>return code:  500
> &lt;html&gt;&lt;head&gt;&lt;title&gt;Apache
> Tomcat/5.5.4 - Error
> report&lt;/title&gt;&lt;style&gt;&l
> t;!--H1
>
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7
> 6;font-size:22px;} H
> 2
>
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7
> 6;font-size:16px;} H3 {fon
>
t-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fo
> nt-size:14px;} BODY {font-fa
>
mily:Tahoma,Arial,sans-serif;color:black;background-color:white;}
> B
> {font-family:Tahoma,Arial,sans-s
> erif;color:white;background-color:#525D76;} P
>
{font-family:Tahoma,Arial,sans-serif;background:white;
> color:black;font-size:12px;}A {color : black;}A.name
> {color : black;}HR
> {color : #525D76;}--&gt;&lt;
> /style&gt; &lt;/head&gt;&lt;body&gt;&lt;h1&gt;HTTP
> Status 500 -
> &lt;/h1&gt;&lt;HR size=&quot;1&quot;
> 
>
noshade=&quot;noshade&quot;&gt;&lt;p&gt;&lt;b&gt;type&lt;/b&gt;
> Exception report&lt;/p&gt;&lt;p&gt;
> &lt;b&gt;message&lt;/b&gt;
>
&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;description&lt;/b&gt;
> &lt;
> u&gt;The server encountered an internal error ()
> that prevented it from
> fulfilling this request.&lt;
>
/u&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;exception&lt;/b&gt;
> &lt;pre&gt;java.lang.NullPointerException
>         java.util.Hashtable.put(Hashtable.java:396)
> 
>
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProperty(SAXPar
> serImpl.java:395)
> 
>
org.apache.axis.encoding.DeserializationContextImpl.parse(Deserializatio
> nContextImpl.java:22
> 2)
>        
>
org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:568)
>        
>
org.apache.axis.Message.getSOAPEnvelope(Message.java:427)
>        
>
org.apache.axis.Message.getContentType(Message.java:484)
> 
>
org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:683)
>        
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> 
>
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.j
> ava:301)
>        
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
&lt;/pre&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;note&lt;/b&gt;
> &lt;u&gt;The full
> stack trace of the root cau
> se is available in the Apache Tomcat/5.5.4
> logs.&lt;/u&gt;&lt;/p&gt;&lt;HR size=&quot;1&quot;
> noshad
> e=&quot;noshade&quot;&gt;&lt;h3&gt;Apache
>
Tomcat/5.5.4&lt;/h3&gt;&lt;/body&gt;&lt;/html&gt;</string>
> <ns2:HttpErrorCode
>
xmlns:ns2="http://xml.apache.org/axis/">500</ns2:HttpErrorCode></detail>
> </soapenv
> :Fault>
> (500)Internal Server Error
>         at org.uddi4j.UDDIElement.<init>(Unknown
> Source)
>         at
> org.uddi4j.response.BusinessList.<init>(Unknown
> Source)
>         at
> org.uddi4j.client.UDDIProxy.find_business(Unknown
> Source)
>         at FindBusinessExample.run(Unknown Source)
>         at FindBusinessExample.main(Unknown Source)
> Brian
> 
> 
> 
> The Distillery Pty Limited
> ABN 69 080 932 467
> PO Box 940, Dickson ACT 2602, AUSTRALIA
> Phone: +61 2 6272 0200
> Fax: +61 2 6262 5151
> Web: www.thedistillery.com.au
> 
> The Distillery Inc
> 2111 Wilson Blvd, Suite 700,
> Arlington, Virginia 22201, USA
> Phone: +1 703 351 5082
> Web: www.thedistilleryinc.com
> 
> The Distillery (Europe) Ltd
> 53 Chandos Place London WC2N 4HS
> Tel: +44 (0)20 7812 6692
> Fax: +44 (0)20 7812 6677
> 
> 
>
---------------------------------------------------------------------
> The information contained in this email and any
> files attached may be
> confidential and/or copyrighted information of The
> Distillery, Third
> Parties and/or the intended recipient and may be the
> subject of legal
> privilege or public interest immunity. You may only
> reproduce or
> distribute the material if you are expressly
> authorised by us to do
> so. If you are not the intended recipient, any use,
> disclosure,
> copying, circulation, forwarding, printing or
> publication of this
> message or attached files is strictly forbidden.
> 
> If you have received this document in error or are
> not an intended
> recipient, please notify the sender and delete from
> your Inbox and/or
> system.
> 
> The Distillery does not represent or warrant that
> files attached to
> this e-mail are free from computer viruses or other
> defects and
> liability is limited to the resupply (or cost of
> resupply) of the
> attached files.
>
--------------------------------------------------------------------- 



______________________________________________________________________ 
Post your free ad now! http://personals.yahoo.ca

RE: (500)Internal Server Error with uddi4j sample code

Posted by Feng Tang <fe...@thedistillery.com.au>.
I've met 500 internal server error before caused by axis. Probably you
have to download another version axis and also it's patch.



-----Original Message-----
From: Brian Gao [mailto:bgao@nortel.com]
Sent: Friday, 4 March 2005 8:35 AM
To: juddi-user@ws.apache.org
Subject: (500)Internal Server Error with uddi4j sample code





H all,
I have Tomcat 5.5.4, jdk1.5 and  axis 1.2rc2 installed, I can see
happyjuddi and happyaxis pages, no problem.

But when I tried to run the sample codes from uddi4j, I got
"(500)Internal Server Error" message.

Does anyone meet this problem before? Any ideas?

Thanks

Brian

************************************************************************
************************
dcnlocal@pkany206:/opt/uddi4j/samples$ java FindBusinessExample

*********** Running FindBusinessExample ***********
TransportFactory: Using transport
name:org.uddi4j.transport.ApacheAxisTransport

Request message:
<ns1:find_business generic="2.0" maxRows="5" xmlns="urn:uddi-org:api_v2"
xmlns:ns1="urn:uddi-org:api
_v2"><findQualifiers xmlns="urn:uddi-org:api_v2"><findQualifier
xmlns="urn:uddi-org:api_v2">caseSens
itiveMatch</findQualifier></findQualifiers><name
xmlns="urn:uddi-org:api_v2">S</name></ns1:find_busi
ness>

Response message:
<soapenv:Fault
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><faultcode
xmlns:ns1="http:
//xml.apache.org/axis/">ns1:HTTP</faultcode><faultstring>(500)Internal
Server Error</faultstring><de
tail><string>return code:  500
&lt;html&gt;&lt;head&gt;&lt;title&gt;Apache Tomcat/5.5.4 - Error
report&lt;/title&gt;&lt;style&gt;&l
t;!--H1
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7
6;font-size:22px;} H
2
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7
6;font-size:16px;} H3 {fon
t-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fo
nt-size:14px;} BODY {font-fa
mily:Tahoma,Arial,sans-serif;color:black;background-color:white;} B
{font-family:Tahoma,Arial,sans-s
erif;color:white;background-color:#525D76;} P
{font-family:Tahoma,Arial,sans-serif;background:white;
color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR
{color : #525D76;}--&gt;&lt;
/style&gt; &lt;/head&gt;&lt;body&gt;&lt;h1&gt;HTTP Status 500 -
&lt;/h1&gt;&lt;HR size=&quot;1&quot;
 noshade=&quot;noshade&quot;&gt;&lt;p&gt;&lt;b&gt;type&lt;/b&gt;
Exception report&lt;/p&gt;&lt;p&gt;
&lt;b&gt;message&lt;/b&gt;
&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;description&lt;/b&gt;
&lt;
u&gt;The server encountered an internal error () that prevented it from
fulfilling this request.&lt;
/u&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;exception&lt;/b&gt;
&lt;pre&gt;java.lang.NullPointerException
        java.util.Hashtable.put(Hashtable.java:396)

com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProperty(SAXPar
serImpl.java:395)

org.apache.axis.encoding.DeserializationContextImpl.parse(Deserializatio
nContextImpl.java:22
2)
        org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:568)
        org.apache.axis.Message.getSOAPEnvelope(Message.java:427)
        org.apache.axis.Message.getContentType(Message.java:484)

org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:683)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:709)

org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.j
ava:301)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
&lt;/pre&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;note&lt;/b&gt; &lt;u&gt;The full
stack trace of the root cau
se is available in the Apache Tomcat/5.5.4
logs.&lt;/u&gt;&lt;/p&gt;&lt;HR size=&quot;1&quot; noshad
e=&quot;noshade&quot;&gt;&lt;h3&gt;Apache
Tomcat/5.5.4&lt;/h3&gt;&lt;/body&gt;&lt;/html&gt;</string>
<ns2:HttpErrorCode
xmlns:ns2="http://xml.apache.org/axis/">500</ns2:HttpErrorCode></detail>
</soapenv
:Fault>
(500)Internal Server Error
        at org.uddi4j.UDDIElement.<init>(Unknown Source)
        at org.uddi4j.response.BusinessList.<init>(Unknown Source)
        at org.uddi4j.client.UDDIProxy.find_business(Unknown Source)
        at FindBusinessExample.run(Unknown Source)
        at FindBusinessExample.main(Unknown Source)
Brian



The Distillery Pty Limited
ABN 69 080 932 467
PO Box 940, Dickson ACT 2602, AUSTRALIA
Phone: +61 2 6272 0200
Fax: +61 2 6262 5151
Web: www.thedistillery.com.au

The Distillery Inc
2111 Wilson Blvd, Suite 700,
Arlington, Virginia 22201, USA
Phone: +1 703 351 5082
Web: www.thedistilleryinc.com

The Distillery (Europe) Ltd
53 Chandos Place London WC2N 4HS
Tel: +44 (0)20 7812 6692
Fax: +44 (0)20 7812 6677


---------------------------------------------------------------------
The information contained in this email and any files attached may be
confidential and/or copyrighted information of The Distillery, Third
Parties and/or the intended recipient and may be the subject of legal
privilege or public interest immunity. You may only reproduce or
distribute the material if you are expressly authorised by us to do
so. If you are not the intended recipient, any use, disclosure,
copying, circulation, forwarding, printing or publication of this
message or attached files is strictly forbidden.

If you have received this document in error or are not an intended
recipient, please notify the sender and delete from your Inbox and/or
system.

The Distillery does not represent or warrant that files attached to
this e-mail are free from computer viruses or other defects and
liability is limited to the resupply (or cost of resupply) of the
attached files.
---------------------------------------------------------------------