HTTP 500 errors are often caused by Axis2 config problems. Do any of these items apply to you?
http://ws.apache.org/muse/docs/2.1.0/manual/troubleshooting/http-500-axis2.html Dan "Baseer Khan \(bakhan\)" <[EMAIL PROTECTED]> wrote on 01/17/2007 07:58:00 PM: > > I have a situation where my Dynamically created EPR(s) are not > accessible and any operation on those EPR(s) result in Http 500 error. > > ResourceManager.getNumberOfResources() gives me correct count of number > of resources. > > > Question(s) > > 1) My log level in muse is set to "Finest" and I don't see any log of > when Http 500 error is returned. Where can I find logging info for this > type of errors? > 2) Does the EPR returned by a operation needs to be Exactly the same > when accessing it? > 3) My guess is the ResourceManager hashCode() method is returning > different output(s) for same EPR. > > Below is EPR created and passed and a sample code as well. Any thoughts > on this issue? > > Thanks. > > --Baseer > > > Dynamic EPR returned by my "create" operation is - > > <wsa:EndpointReference xmlns:wsa="http://www.w3.org/2005/08/addressing"> > > <wsa:Address>http://171.69.222.119:8090/ManagedResourceFactory/services/ > OrganizationUnitPort</wsa:Address> > <wsa:ReferenceParameters> > <muse-wsa:ResourceId > xmlns:muse-wsa="http://ws.apache.org/muse/addressing">uuid:8ce46e00-19f8 > -7012-4908-9dbde23ae48f</muse-wsa:ResourceId> > <OrgUnitContext context="bakhan:orgUnit" > xmlns="http://cisco.ana.com/wsdl/"/> > </wsa:ReferenceParameters> > </wsa:EndpointReference> > > The Proxy Code (client) when iniatiates a operation request using this > EPR it constructs soap header as below > > <soap:Header> > <wsa:To > xmlns:wsa="http://www.w3.org/2005/08/addressing">http://171.69.222.119:8 > 090/ManagedResourceFactory/services/OrganizationUnitPort</wsa:To> > <wsa:Action > xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open. > org/wsrf/rpw-2/GetResourcePropertyDocument/GetResourcePropertyDocumentRe > quest</wsa:Action> > <wsa:MessageID > xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:3762abf4-8274-ccdf > -6c7c-618cb81a4814</wsa:MessageID> > <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing"> > > <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Ad > dress> > </wsa:From> > <muse-wsa:ResourceId > xmlns:wsa="http://www.w3.org/2005/08/addressing" > wsa:IsReferenceParameter="true" > xmlns:muse-wsa="http://ws.apache.org/muse/addressing">uuid:8ce46e00-19f8 > -7012-4908-9dbde23ae48f</muse-wsa:ResourceId> > <OrgUnitContext context="bakhan:orgUnit" > xmlns:wsa="http://www.w3.org/2005/08/addressing" > wsa:IsReferenceParameter="true" > xmlns="http://cisco.ana.com/wsdl/"/> > </soap:Header> > > > Client Code > ----------- > > // > // change these to point to different applications/servers > // > String webAppRoot = "/ManagedResourceFactory/services"; > int port = 8090; > > > // > // test WSSG directory > // > > String contextPath = webAppRoot + "/ManagedResourceFactory"; > > URI address = getLocalAddress(contextPath, port); > EndpointReference epr = new EndpointReference(address); > > System.out.println(epr.toString()); > > ManagedResourceFactoryProxy sg = new > ManagedResourceFactoryProxy(epr); > > // > // turn on tracing of SOAP messages > // > sg.setTrace(true); > > QName qName = new QName("http://cisco.ana.com/wsdl/", > "OrganizationUnitPort"); > org.apache.muse.core.serializer.QNameSerializer qns = > new org.apache.muse.core.serializer.QNameSerializer(); > Element qElement = qns.toXML(qName, qName); > > //Invoke Create of ManagedResourceFactory WS-Resource. > Element orgElement = sg.create(qElement); > > org.apache.muse.ws.addressing.EndpointReference orgEPR = > new > org.apache.muse.ws.addressing.EndpointReference(orgElement, true); > > if (orgEPR != null) { > System.out.println("EPR is ...."); > System.out.println(orgEPR.toString()); > OrganizationUnitPortProxy orgProxy = new > OrganizationUnitPortProxy(orgEPR); > orgProxy.setTrace(true); > Element orgUnit = > orgProxy.getResourcePropertyDocument(); //Returns 500 error > System.out.println("OrgUnit is...." + > orgUnit.toString()); > } > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
