one more thing, I get this in tomcat: ============================================= In TemplateProvider.locate() URI: urn:juiced DD.ServiceClass: org.apache.soap.providers.StatelessEJBProvider DD.ProviderClass: com/juiced/central/sessionmanager/SessionManager Call.MethodName: providerInit ============================================= In TemplateProvider.invoke() Exception Caught upon method invocation attempt: null
I can't even think where to start looking for this problem, as far as I can tell, i have my descriptor set up correctly because i can pass the object back and forth when using a simple classfile to process it.. the vector is populated in the bean, as I print out the contents just to make sure... so I know there is stuff in there... Thanks jeremy -----Original Message----- From: Jeremy Levy [mailto:[EMAIL PROTECTED]] Sent: Friday, December 14, 2001 4:23 PM To: tf Subject: Problem with custom objects & only EJBs.. I am having a problem with returning my custom object from a RPC call to an EJB. It works fine if I just pass the object back and forth to a simple class, but once I change the descriptior to call my EJB in jboss, it returns null. I am returning a vector with (0) as a long, (1) as a int, and (3+) as my object(s)... It works if I don't include my object.. I am using the BeanSerializer.. The error I from my client is: 0 [main] FATAL com.juiced.provider.callcentral.CallCentral - Error 10 [main] FATAL com.juiced.provider.callcentral.CallCentral - Error encountered: java.lang.reflect.UndeclaredThrowableException java.lang.NullPointerException at com.juiced.provider.callcentral.CallCentral.providerInit(CallCentral.java:14 3) at com.juiced.provider.callcentral.CallCentral.main(CallCentral.java:188) Exception in thread "main" line 143 is: return (Vector)SOAPCall(method,params,registry).getValue(); SOAPCall returns the return parameter... the object that it is passing is: package com.juiced.common; public class accessPoint { private String name; private String address; private int APID; public accessPoint() { } public accessPoint(int APID, String name, String address){ this.APID=APID; this.address=address; this.name=name; } public int getAPID(){ return APID; } public void setAPID(int APID){ this.APID=APID; } public String getName(){ return name; } public void setName(String name){ this.name=name; } public String getAddress(){ return address; } public void setAddress(String address){ this.address=address; } } and finaly my deploymentdescriptor is: <isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment" id="urn:juiced"> <isd:provider type="org.apache.soap.providers.StatelessEJBProvider" scope="Application" methods="providerLogin providerInit providerSession userAuth"> <isd:java class="com/juiced/central/sessionmanager/SessionManager"/> <isd:option key="JNDIName" value="SessionManager"/> <isd:option key="FullHomeInterfaceName" value="com.juiced.central.sessionmanager.SessionManagerHome" /> <isd:option key="ContextProviderURL" value="jnp://localhost:1099" /> <isd:option key="FullContextFactoryName" value="org.jnp.interfaces.NamingContextFactory" /> </isd:provider> <isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultListene r> <isd:mappings> <isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:x="urn:juiced-init" qname="x:cd" javaType="com.juiced.common.accessPoint" java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer" xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/> <isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:x="urn:juiced-session" qname="x:ps" javaType="com.juiced.common.userSession" java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer" xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/> <isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:x="urn:juiced-session" qname="x:fu" javaType="com.juiced.common.firewallUpdate" java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer" xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/> </isd:mappings> </isd:service> Thanks you for help... jeremy _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
