juddi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geir Magnusson Jr <g...@4quarters.com>
Subject Re: "Client error" (newbie question)
Date Wed, 09 Feb 2005 21:00:39 GMT
Ok, very cool tool.   I seem to do two transactions.  I can't tell  
which causes the stacktrace I sent - I suspect the first, because I  
have a second trace about something else, which I suspect has to do w/  
the fact that the first happened, the test didn't get some information  
to put into the second, and the test is too stupid to stop after the  
first failure.

I first send :

<soapenv:Envelope  
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"  
xmlns:xsd="http://www.w3.org/2001/XMLSchema"  
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv: 
Body><ns1:find_business generic="2.0" xmlns="urn:uddi-org:api_v2"  
xmlns:ns1="urn:uddi-org:api_v2"><name xmlns="urn:uddi-org:api_v2">TS  
Default  
Organization</name></ns1:find_business></soapenv:Body></soapenv: 
Envelope>

and get back

<?xml version="1.0" encoding="UTF-8" ?><SOAP:Envelope  
xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"><SOAP: 
Body><businessList generic="2.0" xmlns="urn:uddi-org:api_v2"  
operator="www.ibm.com/services/uddi"  
truncated="false"><businessInfos><businessInfo  
businessKey="BCC176C0-4508-11D8-B936-000629DC0A53"><name  
xml:lang="en">TS Default Organization</name><description  
xml:lang="en">TS default Organization  
Data</description><serviceInfos><serviceInfo  
serviceKey="C8D8DCA0-4508-11D8-B936-000629DC0A53"  
businessKey="BCC176C0-4508-11D8-B936-000629DC0A53"><name  
xml:lang="en">Name:Test Service</name></serviceInfo><serviceInfo  
serviceKey="BCDA7D00-4508-11D8-B936-000629DC0A53"  
businessKey="BCC176C0-4508-11D8-B936-000629DC0A53"><name  
xml:lang="en">TS Default  
Service</name></serviceInfo></serviceInfos></businessInfo></ 
businessInfos></businessList></SOAP:Body></SOAP:Envelope>

then I do :

<soapenv:Envelope  
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"  
xmlns:xsd="http://www.w3.org/2001/XMLSchema"  
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv: 
Body><ns1:get_businessDetail generic="2.0" xmlns="urn:uddi-org:api_v2"  
xmlns:ns1="urn:uddi-org:api_v2"><businessKey  
xmlns="urn:uddi-org:api_v2">BCC176C0-4508-11D8-B936-000629DC0A53</ 
businessKey></ns1:get_businessDetail></soapenv:Body></soapenv:Envelope>

and I get :

<?xml version="1.0" encoding="UTF-8" ?><SOAP:Envelope  
xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"><SOAP: 
Body><businessDetail generic="2.0" xmlns="urn:uddi-org:api_v2"  
operator="www.ibm.com/services/uddi" truncated="false"><businessEntity  
businessKey="BCC176C0-4508-11D8-B936-000629DC0A53"  
operator="www.ibm.com/services/uddi"  
authorizedName="100000BRCT"><discoveryURLs><discoveryURL  
useType="businessEntity">http://uddi.ibm.com/testregistry/uddiget? 
businessKey=BCC176C0-4508-11D8-B936-000629DC0A53</discoveryURL></ 
discoveryURLs><name xml:lang="en">TS Default  
Organization</name><description xml:lang="en">TS default Organization  
Data</description><contacts><contact><description xml:lang="en">TS
 
default User Primary Contact Data</description><personName>TS Test  
Person</personName></contact><contact  
useType="defaultUser"><description  
xml:lang="en">Flintstone</description><personName>Fred  
Flintstone</personName><phone>123-1234</phone><email  
useType="whatever">Fred@Bedrock.org</email></contact><contact  
useType="defaultUser"><description  
xml:lang="en">Flintstone</description><personName>Wilma  
Flintstone</personName><phone>123-1234</phone><email  
useType="whatever">Wilma@Bedrock.org</email></contact><contact  
useType="defaultUser"><description  
xml:lang="en">Rubble</description><personName>Betty  
Rubble</personName><phone>123-1234</phone><email  
useType="whatever">Betty@Bedrock.org</email></contact></ 
contacts><businessServices><businessService  
serviceKey="BCDA7D00-4508-11D8-B936-000629DC0A53"  
businessKey="BCC176C0-4508-11D8-B936-000629DC0A53"><name  
xml:lang="en">TS Default Service</name><description xml:lang="en">TS  
default Service Data</description></businessService><businessService  
serviceKey="C8D8DCA0-4508-11D8-B936-000629DC0A53"  
businessKey="BCC176C0-4508-11D8-B936-000629DC0A53"><name  
xml:lang="en">Name:Test Service</name><description  
xml:lang="en">Description:  
Testservice</description></businessService></businessServices></ 
businessEntity></businessDetail></SOAP:Body></SOAP:Envelope>

I'm going to go stare at the schemas to see if I can make any sense of  
this.

thanks

On Feb 9, 2005, at 3:26 PM, Davanum Srinivas wrote:

> "java -jar axis.jar org.apache.axis.utils.tcpmon"
>
>
> On Wed, 9 Feb 2005 15:17:24 -0500, Geir Magnusson Jr  
> <geir@4quarters.com> wrote:
>>
>> On Feb 9, 2005, at 3:08 PM, Viens, Stephen wrote:
>>
>>> Geir, is this what you're seeing in a/the juddi.log file?
>>
>> I can't find a juddi.log file.
>>
>> Here's what I'm doing - I'm using latest cvs/svn of scout and juddi as
>> my jaxr implementation for the J2EE TCK for geronimo.  I'm doing the
>> simplest thing possible right now - just making a jaxr connection
>> factory available via JNDI to the test suite.  I'm not doing any
>> configuration or -ish for either scout or juddi.  Am happy to do
>> anything to provide more insight.
>>
>>>
>>> It would help to see the request message (in XML) if that's possible.
>>> Can you try making your query to the IBM registry through a TCP  
>>> Monitor
>>> (such as the one that comes with Axis?)
>>
>> I can certainly try - I'm very new to WS, so I'm pretty ignorant of
>> basic development practice, so bear w/ me as I come up to speed.   Any
>> hints to get more useful information out of what I am doing is
>> appreciated, and I'm off now to figure out where to get and how to use
>> the TCP monitor.
>>
>> Thanks again
>>
>> geir
>>
>>
>>>
>>> Steve
>>>
>>> -----Original Message-----
>>> From: Geir Magnusson Jr. [mailto:geirm@apache.org]
>>> Sent: Wednesday, February 09, 2005 2:46 PM
>>> To: juddi-dev@ws.apache.org
>>> Subject: Re: "Client error" (newbie question)
>>>
>>>
>>>
>>> On Feb 9, 2005, at 10:36 AM, Anil Saldhana wrote:
>>>
>>>> Geir,
>>>>    looks like you are using the Crimson parser that
>>>> comes with the JDK. You should be using Xerces.  The
>>>> way to do is to set a System property
>>>> "java.endorsed.dirs"  that points to your xerces jars.
>>>>
>>>
>>> Ok - I got xerces working but I seem to have the same thing :
>>>
>>>      [java]
>>> BusinessService=org.apache.juddi.datatype.service.BusinessService@f0c 
>>> a7
>>> 1
>>>      [java] ?Org has users=false
>>>      [java] Telephone=123-1234
>>>      [java] Telephone=123-1234
>>>      [java] Telephone=123-1234
>>>      [java] Method:save_business: ENlength=1
>>>      [java] AxisFault
>>>      [java]  faultCode: Client
>>>      [java]  faultSubcode:
>>>      [java]  faultString: Client Error
>>>      [java]  faultActor:
>>>      [java]  faultNode:
>>>      [java]  faultDetail:
>>>      [java]      {urn:uddi-org:api_v2}dispositionReport:<result
>>> errno="10500"><errInfo errCode="E_fatalError">E_fatalError (10500)
>>> Serious technical error has occurred while processing the request.
>>> cvc-complex-type.4: Attribute 'businessKey' must appear on element
>>> 'businessEntity'.</errInfo></result>
>>>      [java]
>>>      [java] Client Error
>>>      [java]      at
>>> org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder 
>>> .j
>>> a
>>>
>>> va:221)
>>>      [java]      at
>>> org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder. 
>>> ja
>>> v
>>>
>>> a:128)
>>>      [java]      at
>>> org.apache.axis.encoding.DeserializationContext.endElement(Deserializ 
>>> at
>>> i
>>>
>>> onContext.java:1077)
>>>      [java]      at
>>> org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown  
>>> Source)
>>>      [java]      at
>>> org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknow 
>>> n
>>> Source)
>>>      [java]      at
>>> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent 
>>> Di
>>> s
>>>
>>> patcher.dispatch(Unknown Source)
>>>      [java]      at
>>> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un 
>>> kn
>>> o
>>>
>>> wn Source)
>>>      [java]      at
>>> org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>>>      [java]      at
>>> org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>>>      [java]      at org.apache.xerces.parsers.XMLParser.parse(Unknown
>>> Source)
>>>      [java]      at
>>> org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
>>>      [java]      at javax.xml.parsers.SAXParser.parse(Unknown Source)
>>>      [java]      at
>>> org.apache.axis.encoding.DeserializationContext.parse(Deserialization 
>>> Co
>>> n
>>>
>>> text.java:225)
>>>      [java]      at
>>> org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:645)
>>>      [java]      at
>>> org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
>>>      [java]      at
>>> org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.j 
>>> av
>>> a
>>>
>>> :723)
>>>      [java]      at
>>> org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:94)
>>>      [java]      at
>>> org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg 
>>> y.
>>> j
>>>
>>> ava:32)
>>>      [java]      at
>>> org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
>>>      [java]      at
>>> org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
>>>      [java]      at
>>> org.apache.axis.client.AxisClient.invoke(AxisClient.java:147)
>>>      [java]      at
>>> org.apache.axis.client.Call.invokeEngine(Call.java:2737)
>>>      [java]      at  
>>> org.apache.axis.client.Call.invoke(Call.java:2720)
>>>      [java]      at  
>>> org.apache.axis.client.Call.invoke(Call.java:1756)
>>>      [java]      at
>>> org.apache.juddi.proxy.AxisTransport.send(AxisTransport.java:59)
>>>      [java]      at
>>> org.apache.juddi.proxy.RegistryProxy.execute(RegistryProxy.java:371)
>>>      [java]      at
>>> org.apache.juddi.AbstractRegistry.saveBusiness(AbstractRegistry.java:
>>> 582)
>>>      [java]      at
>>> org.apache.ws.scout.registry.BusinessLifeCycleManagerImpl.executeOper 
>>> at
>>> i
>>>
>>> on(BusinessLifeCycleManagerImpl.java:459)
>>>      [java]      at
>>> org.apache.ws.scout.registry.BusinessLifeCycleManagerImpl.saveOrganiz 
>>> at
>>> i
>>>
>>> ons(BusinessLifeCycleManagerImpl.java:321)
>>>
>>>
>>>
>>>> Anil
>>>>
>>>>
>>>> --- "Geir Magnusson Jr." <geirm@apache.org> wrote:
>>>>
>>>>>
>>>>> Ok - I'm a real newbie, and don't grok how one
>>>>> debugs things here.
>>>>>
>>>>> I'm testing against IBMs public testregistry (is
>>>>> there a better one?).
>>>>> I have the following problem all over the place.
>>>>> I'm using the latest
>>>>> CVS of jUDDI and Scout.  Can someone spend 2 min to
>>>>> describe what is
>>>>> going on, how I should start figuring out what the
>>>>> error is?
>>>>>
>>>>>      [java] Method:save_business: ENlength=1
>>>>>      [java] AxisFault
>>>>>      [java]  faultCode: Client
>>>>>      [java]  faultSubcode:
>>>>>      [java]  faultString: Client Error
>>>>>      [java]  faultActor:
>>>>>      [java]  faultNode:
>>>>>      [java]  faultDetail:
>>>>>      [java]
>>>>> {urn:uddi-org:api_v2}dispositionReport:<result
>>>>> errno="10500"><errInfo
>>>>> errCode="E_fatalError">E_fatalError (10500)
>>>>> Serious technical error has occurred while
>>>>> processing the request.
>>>>> cvc-complex-type.4: Attribute 'businessKey' must
>>>>> appear on element
>>>>> 'businessEntity'.</errInfo></result>
>>>>>      [java]
>>>>>      [java] Client Error
>>>>>      [java]      at
>>>>>
>>>> org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilde 
>>>> r.
>>>> j
>>>> a
>>>>>
>>>>> va:221)
>>>>>      [java]      at
>>>>>
>>>> org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder 
>>>> .j
>>>> a
>>>> v
>>>>>
>>>>> a:128)
>>>>>      [java]      at
>>>>>
>>>> org.apache.axis.encoding.DeserializationContext.endElement(Deseriali 
>>>> za
>>>> t
>>>> i
>>>>>
>>>>> onContext.java:1077)
>>>>>      [java]      at
>>>>>
>>>> org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1712)
>>>>>      [java]      at
>>>>>
>>>> org.apache.crimson.parser.Parser2.content(Parser2.java:1963)
>>>>>      [java]      at
>>>>>
>>>> org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)
>>>>>      [java]      at
>>>>>
>>>> org.apache.crimson.parser.Parser2.content(Parser2.java:1963)
>>>>>      [java]      at
>>>>>
>>>> org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)
>>>>>      [java]      at
>>>>>
>>>> org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:667)
>>>>>      [java]      at
>>>>>
>>>> org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
>>>>>      [java]      at
>>>>>
>>>> org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java: 
>>>> 448)
>>>>>      [java]      at
>>>>>
>>>> javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
>>>>>      [java]      at
>>>>>
>>>> org.apache.axis.encoding.DeserializationContext.parse(Deserializatio 
>>>> nC
>>>> o
>>>> n
>>>>>
>>>>> text.java:225)
>>>>>      [java]      at
>>>>>
>>>> org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:645)
>>>>>      [java]      at
>>>>>
>>>> org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
>>>>>      [java]      at
>>>>>
>>>> org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender. 
>>>> ja
>>>> v
>>>> a
>>>>>
>>>>> :723)
>>>>>      [java]      at
>>>>>
>>>> org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:94)
>>>>>      [java]      at
>>>>>
>>>> org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrate 
>>>> gy
>>>> .
>>>> j
>>>>>
>>>>> ava:32)
>>>>>      [java]      at
>>>>>
>>>> org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
>>>>>      [java]      at
>>>>>
>>>> org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
>>>>>      [java]      at
>>>>>
>>>> org.apache.axis.client.AxisClient.invoke(AxisClient.java:147)
>>>>>      [java]      at
>>>>>
>>>> org.apache.axis.client.Call.invokeEngine(Call.java:2737)
>>>>>      [java]      at
>>>>> org.apache.axis.client.Call.invoke(Call.java:2720)
>>>>>      [java]      at
>>>>> org.apache.axis.client.Call.invoke(Call.java:1756)
>>>>>      [java]      at
>>>>>
>>>> org.apache.juddi.proxy.AxisTransport.send(AxisTransport.java:59)
>>>>>      [java]      at
>>>>>
>>>> org.apache.juddi.proxy.RegistryProxy.execute(RegistryProxy.java:371)
>>>>>      [java]      at
>>>>>
>>>> org.apache.juddi.AbstractRegistry.saveBusiness(AbstractRegistry.java 
>>>> :
>>>>>
>>>>> 582)
>>>>>      [java]      at
>>>>>
>>>> org.apache.ws.scout.registry.BusinessLifeCycleManagerImpl.executeOpe 
>>>> ra
>>>> t
>>>> i
>>>>>
>>>>> on(BusinessLifeCycleManagerImpl.java:459)
>>>>>      [java]      at
>>>>>
>>>> org.apache.ws.scout.registry.BusinessLifeCycleManagerImpl.saveOrgani 
>>>> za
>>>> t
>>>> i
>>>>>
>>>>> ons(BusinessLifeCycleManagerImpl.java:321)
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Geir Magnusson Jr
>>>>> +1-203-665-6437
>>>>> geirm@apache.org
>>>>>
>>>>>
>>>>
>>>>
>>>> __________________________________________________
>>>> Do You Yahoo!?
>>>> Tired of spam?  Yahoo! Mail has the best spam protection around
>>>> http://mail.yahoo.com
>>>>
>>>>
>>> --
>>> Geir Magnusson Jr                                  +1-203-665-6437
>>> geirm@apache.org
>>>
>>>
>> --
>> Geir Magnusson Jr                                  +1-203-665-6437
>> geir@gluecode.com
>>
>>
>
>
> -- 
> Davanum Srinivas - http://webservices.apache.org/~dims/
>
>
-- 
Geir Magnusson Jr                                  +1-203-665-6437
geir@gluecode.com


Mime
View raw message