SOAP HandlerChain class not invoked

I've seen lots of posts about getting a HandlerChain class invoked, but I can't seem to find the magic cure.
I have an EJB web service with the HandlerChain annotation and a SOAP handler and a handler-chain.xml file. But the handler does not get invoked.  I was wondering if anyone HAS been able to get one to work using the HanderChain annotation for a weblogic deployment within an EJB annotated as a web service.
EJB code:
package foo.bar;
import ...
@WebService(portName = "RunWebServiceSOAP", serviceName = "RunWebService", targetNamespace = "http://foo.bar/RunWebService/", wsdlLocation = "RunWebService.wsdl", endpointInterface = "foo.bar.RunWebService")
@SchemaValidation
@BindingType(SOAPBinding.SOAP12HTTP_BINDING)
@Stateless
@Local(RunWebService.class)
@TransactionAttribute(TransactionAttributeType.REQUIRED)
@HandlerChain(file="handler-chain.xml") <<<--------------------HANDLER CHAIN ANNOTATION
//@HandlerChain(file="../..handler-chain.xml") <<<-- ALTERNATE ATTEMPT
public class RunWebServiceImpl implements RunWebService {
Handler code:
package boo.flork;
public  class LowLevelSoapMsgPrinterHandler implements SOAPHandler<SOAPMessageContext> {
  @Override
  public boolean handleMessage(SOAPMessageContext smc) {
Handler.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<handler-chains xmlns="http://java.sun.com/xml/ns/javaee">
  <handler-chain>
    <handler>
      <handler-class>boo.flork.LowLevelSoapMsgPrinterHandler</handler-class>
    </handler>
  </handler-chain>
</handler-chains>
Deployment locations of the handler xml file:
1) my_app.ear/my_ejb.ejb/handler-chain.xml
2) my_app.ear/my_ejb.ejb/handler-chain.xml
3) my_app.ear/my_ejb.ejb/foo/bar/handler-chain.xml
Kind of stumped here, anyone have any success with weblogic and a HandlerChain?

Hello Chintan,
I can't find any way to prevent the JSR168/286 portlet container from handling the exceptions during render. There is an option (specified in WEB-INF/weblogic-portlet.xml) which allows you to specify a particular JSP that gets called when an exception is caught during render, but any exceptions thrown by the JSP will also be handled and converted into "normal markup" rather than a WSRP SOAP fault. This would mean any JAX RPC handler (or consumer-side interceptor) wouldn't see an explicit fault message.
So the answer to both questions 1 and 3 is that because the container is sending the error message embedded in markup, rather than a fault message, there is no way for the RPC handler or the interceptor to capture the exception as a fault. If you want, you can contact Oracle support and refer to issue 9645339. As a workaround, you could make the RPC / interceptor look at the markup for an embedded error message or special tag, rather than a fault message. If you took advantage of the error-handling JSP configurable in weblogic-portlet.xml you could even have the JSP include specific markers that the RPC handler / interceptor can look for. To configure the error JSP in the weblogic-portlet.xml file, you will need to add a section for each portlet along the lines of this:
<portlet>
   <portlet-name>nameFromPortlet.xml</portlet-name>
   <supports>
        <mime-type>text/html</mime-type>
        <error-uri>path/to/error.jsp</error-uri>
   </supports>
</portlet>If you have any questions about this suggestion, let me know!
For question #2, I honestly don't know the best way to get the HttpServletRequest from there.
Kevin

Similar Messages

  • Class not found when invoking sub web-service

    Hi all :)
    I build a simple BPEL process that invokes a web method. Since here, no problem. No the concerned web method is a web service client of another web service... and it throws me an exception so that the first web method does not find a class needed for the soap request to the second web service. BUT if I call directly this web method, there is no problem : it call the second web method and it works very well...
    It seems that the BPEL process make that the first web method loses his contexte or something like that :(
    Here is the error :
    Caused by: class: com.sun.td.vta.ws.client.reservation.Cancel could not be found
    at com.sun.xml.ws.modeler.RuntimeModeler.getClass(RuntimeModeler.java:271)
    at com.sun.xml.ws.modeler.RuntimeModeler.processDocWrappedMethod(RuntimeModeler.java:562)
    at com.sun.xml.ws.modeler.RuntimeModeler.processMethod(RuntimeModeler.java:509)
    at com.sun.xml.ws.modeler.RuntimeModeler.processClass(RuntimeModeler.java:355)
    at com.sun.xml.ws.modeler.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:251)
    at com.sun.xml.ws.client.ServiceContextBuilder.processAnnotations(ServiceContextBuilder.java:119)
    at com.sun.xml.ws.client.ServiceContextBuilder.completeServiceContext(ServiceContextBuilder.java:87)
    at com.sun.xml.ws.client.WSServiceDelegate.processServiceContext(WSServiceDelegate.java:133)
    at com.sun.xml.ws.client.WSServiceDelegate.createEndpointIFBaseProxy(WSServiceDelegate.java:284)
    at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:171)
    at com.sun.enterprise.webservice.spi.ServiceDelegateImpl.getPort(ServiceDelegateImpl.java:82)
    at javax.xml.ws.Service.getPort(Service.java:94)
    at com.sun.td.vta.ws.client.WebServiceClient.getReservationManager(WebServiceClient.java:76)
    at com.sun.td.vta.ws.RegisteredProviderManager.search(RegisteredProviderManager.java:127)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1050)
    at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:165)
    at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2766)
    at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3847)
    at com.sun.ejb.containers.WebServiceInvocationHandler.invoke(WebServiceInvocationHandler.java:147)
    at $Proxy87.search(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.sun.xml.ws.server.PeptTie._invoke(PeptTie.java:61)
    at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.invokeEndpoint(SOAPMessageDispatcher.java:280)
    at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher$SoapInvoker.invoke(SOAPMessageDispatcher.java:588)
    at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.receive(SOAPMessageDispatcher.java:147)
    at com.sun.xml.ws.server.Tie.handle(Tie.java:90)
    at com.sun.enterprise.jbi.serviceengine.bridge.JAXWSMessageProcessor.doWork(JAXWSMessageProcessor.java:69)
    Do you have any idea ?
    Best regards !
    @++

    I would imagine that require statement would be need to successfully interpret this PHP file since it refers the Model_DbTable_Users class on line 7:
    $tbl = new Model_DbTable_Users();
    -mayank
    Flash Builder Engineering

  • Class Not found Exception for invoking BPEL process through the Java code

    Hi.
    The JDeveloper IDE raise the Exception From the invoking the BPEL process through the java code .Class Not Found Exception (Locator,ID.......).What is process of importing these classes from API.

    In your code (.bpel file) import the library using the bpelx:exec tag. For example the adding the following entry in your .bpel file imports the com.oracle.bpel.client.util library.
    <bpelx:exec import="com.oracle.bpel.client.util.*"/>

  • WebService is not invoking from OAPage

    Hi,
    I created a BPEL WS which creates a employee in oracle EBS and deployed sucessfully.My requirement is to invoke this WS from a custom OAF page.I generated all STUB java classes and done all coding in the controller of the page.The problem is WS is not invoking,no error is throwing.
    I am pasting my WSDL file and stub class
    CreateEmployee WSDL
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions
    name="CreateEmployee"
    targetNamespace="http://xmlns.oracle.com/CreateEmployee"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:tns="http://xmlns.oracle.com/CreateEmployee"
    xmlns:wsa="http://schemas.xmlsoap.org/ws/2003/03/addressing"
    xmlns:ns1="http://www.globalcompany.com/ns/sales"
    xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:client="http://xmlns.oracle.com/CreateEmployee"
    >
    <types>
    <schema xmlns="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://www.globalcompany.com/ns/sales"
    xmlns:po="http://www.globalcompany.com/ns/sales"
    elementFormDefault="qualified">
    <annotation>
    <documentation xml:lang="en">
    Order Booking schema for GlobalCompany.com.
    Copyright 2005 GlobalCompany.com. All rights reserved.
    </documentation>
    </annotation>
    <element name="EmployeeDetails" type="po:EmployeeDetails"/>
    <complexType name="EmployeeDetails">
    <sequence>
    <element name="EmployeeNumber" type="string"/>
    <element name="DOB" type="date"/>
    <element name="LastName" type="string"/>
    <element name="Bgid" type="integer"/>
    <element name="EffectiveDate" type="date"/>
    <element name="Gender" type="string"/>
    </sequence>
    </complexType>
    </schema>
    <xs:schema targetNamespace="http://schemas.xmlsoap.org/ws/2003/03/addressing" xmlns:wsa="http://schemas.xmlsoap.org/ws/2003/03/addressing" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" blockDefault="#all">
    <!-- //////////////////// WS-Addressing //////////////////// -->
    * <!-- Endpoint reference -->*
    * <xs:element name="EndpointReference" type="wsa:EndpointReferenceType"/>*
    * <xs:complexType name="EndpointReferenceType">*
    * <xs:sequence>*
    * <xs:element name="Address" type="wsa:AttributedURI"/>*
    * <xs:element name="ReferenceProperties" type="wsa:ReferencePropertiesType" minOccurs="0"/>*
    * <xs:element name="PortType" type="wsa:AttributedQName" minOccurs="0"/>*
    * <xs:element name="ServiceName" type="wsa:ServiceNameType" minOccurs="0"/>*
    * <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded">*
    * <xs:annotation>*
    * <xs:documentation>*
    * If "Policy" elements from namespace "http://schemas.xmlsoap.org/ws/2002/12/policy#policy" are used, they must appear first (before any extensibility elements).*
    * </xs:documentation>*
    * </xs:annotation>*
    *</xs:any> *
    * </xs:sequence>*
    * <xs:anyAttribute namespace="##other" processContents="lax"/>*
    * </xs:complexType>*
    * <xs:complexType name="ReferencePropertiesType">*
    * <xs:sequence>*
    * <xs:any processContents="lax" minOccurs="0" maxOccurs="unbounded"/>*
    * </xs:sequence>*
    * </xs:complexType>*
    * <xs:complexType name="ServiceNameType">*
    * <xs:simpleContent>*
    * <xs:extension base="xs:QName">*
    * <xs:attribute name="PortName" type="xs:NCName"/>*
    * <xs:anyAttribute namespace="##other" processContents="lax"/>*
    * </xs:extension>*
    * </xs:simpleContent>*
    * </xs:complexType>*
    * <!-- Message information header blocks -->*
    * <xs:element name="MessageID" type="wsa:AttributedURI"/>*
    * <xs:element name="RelatesTo" type="wsa:Relationship"/>*
    * <xs:element name="To" type="wsa:AttributedURI"/>*
    * <xs:element name="Action" type="wsa:AttributedURI"/>*
    * <xs:element name="From" type="wsa:EndpointReferenceType"/>*
    * <xs:element name="ReplyTo" type="wsa:EndpointReferenceType"/>*
    * <xs:element name="FaultTo" type="wsa:EndpointReferenceType"/>*
    * <xs:element name="Recipient" type="wsa:EndpointReferenceType"/>*
    * <xs:complexType name="Relationship">*
    * <xs:simpleContent>*
    * <xs:extension base="xs:anyURI">*
    * <xs:attribute name="RelationshipType" type="xs:QName" use="optional"/>*
    * <xs:anyAttribute namespace="##other" processContents="lax"/>*
    * </xs:extension>*
    * </xs:simpleContent>*
    * </xs:complexType>*
    * <xs:simpleType name="RelationshipTypeValues">*
    * <xs:restriction base="xs:QName">*
    * <xs:enumeration value="wsa:Response"/>*
    * </xs:restriction>*
    * </xs:simpleType>*
    * <!-- Common declarations and definitions -->*
    * <xs:complexType name="AttributedQName">*
    * <xs:simpleContent>*
    * <xs:extension base="xs:QName">*
    * <xs:anyAttribute namespace="##other" processContents="lax"/>*
    * </xs:extension>*
    * </xs:simpleContent>*
    * </xs:complexType>*
    * <xs:complexType name="AttributedURI">*
    * <xs:simpleContent>*
    * <xs:extension base="xs:anyURI">*
    * <xs:anyAttribute namespace="##other" processContents="lax"/>*
    * </xs:extension>*
    * </xs:simpleContent>*
    * </xs:complexType>*
    </xs:schema>
    </types>
    <message name="CreateEmployeeResponseMessage">
    <part name="payload" element="ns1:EmployeeDetails"/>
    </message>
    <message name="CreateEmployeeRequestMessage">
    <part name="payload" element="ns1:EmployeeDetails"/>
    </message>
    <message name="WSARelatesToHeader">
    <part name="RelatesTo" element="wsa:RelatesTo"/>
    </message>
    <message name="WSAReplyToHeader">
    <part name="ReplyTo" element="wsa:ReplyTo"/>
    </message>
    <message name="WSAMessageIDHeader">
    <part name="MessageID" element="wsa:MessageID"/>
    </message>
    <portType name="CreateEmployeeCallback">
    <operation name="onResult">
    <input message="tns:CreateEmployeeResponseMessage"/>
    </operation>
    </portType>
    <portType name="CreateEmployee">
    <operation name="initiate">
    <input message="tns:CreateEmployeeRequestMessage"/>
    </operation>
    </portType>
    <binding name="CreateEmployeeCallbackBinding" type="tns:CreateEmployeeCallback">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="onResult">
    <soap:operation style="document" soapAction="onResult"/>
    <input>
    <soap:header message="tns:WSARelatesToHeader" part="RelatesTo" use="literal" encodingStyle=""/>
    <soap:body use="literal"/>
    </input>
    </operation>
    </binding>
    <binding name="CreateEmployeeBinding" type="tns:CreateEmployee">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="initiate">
    <soap:operation style="document" soapAction="initiate"/>
    <input>
    <soap:header message="tns:WSAReplyToHeader" part="ReplyTo" use="literal" encodingStyle=""/>
    <soap:header message="tns:WSAMessageIDHeader" part="MessageID" use="literal" encodingStyle=""/>
    <soap:body use="literal"/>
    </input>
    </operation>
    </binding>
    <service name="CreateEmployee">
    <port name="CreateEmployeePort" binding="tns:CreateEmployeeBinding">
    <soap:address location="http://kbace12:8888/orabpel/default/CreateEmployee/1.0"/>
    </port>
    </service>
    <service name="CreateEmployeeCallbackService">
    <port name="CreateEmployeeCallbackPort" binding="tns:CreateEmployeeCallbackBinding">
    <soap:address location="http://set.by.caller"/>
    </port>
    </service>
    <plnk:partnerLinkType name="CreateEmployee">
    <plnk:role name="CreateEmployeeProvider">
    <plnk:portType name="tns:CreateEmployee"/>
    </plnk:role>
    <plnk:role name="CreateEmployeeRequester">
    <plnk:portType name="tns:CreateEmployeeCallback"/>
    </plnk:role>
    </plnk:partnerLinkType>
    </definitions>
    CreateEmployeeStub.java
    package mentor.oracle.apps.webservices;
    import oracle.soap.transport.http.OracleSOAPHTTPConnection;
    import org.apache.soap.encoding.soapenc.BeanSerializer;
    import org.apache.soap.encoding.SOAPMappingRegistry;
    import org.apache.soap.util.xml.QName;
    import java.util.Vector;
    import org.w3c.dom.Element;
    import java.net.URL;
    import org.apache.soap.Body;
    import org.apache.soap.Envelope;
    import org.apache.soap.messaging.Message;
    import java.util.Properties;
    public class CreateEmployeeStub
    //public String endpoint = "http://172.16.1.157:8888/orabpel/default/CreateEmployee/1.0";
    private OracleSOAPHTTPConnection m_httpConnection = null;
    private SOAPMappingRegistry m_smr = null;
    public CreateEmployeeStub()
    m_httpConnection = new OracleSOAPHTTPConnection();
    public void initiate(Element requestElem) throws Exception
    URL endpointURL = new URL( "http://172.16.1.157:8888/orabpel/default/CreateEmployee/1.0");
    Envelope requestEnv = new Envelope();
    Body requestBody = new Body();
    Vector requestBodyEntries = new Vector();
    requestBodyEntries.addElement(requestElem);
    requestBody.setBodyEntries(requestBodyEntries);
    requestEnv.setBody(requestBody);
    Message msg = new Message();
    msg.setSOAPTransport(m_httpConnection);
    msg.send(endpointURL, "initiate", requestEnv);
    and Input to initiate method is in the form of XML
    <ns1:EmployeeDetails>
    <ns1:EmployeeNumber>6999</ns1:EmployeeNumber>
    <ns1:DOB>2000-07-15</ns1:DOB>
    <ns1:LastName>Manoj9334</ns1:LastName>
    <ns1:Bgid>7577</ns1:Bgid>
    <ns1:EffectiveDate>2009-07-15</ns1:EffectiveDate>
    <ns1:Gender>M</ns1:Gender>
    </ns1:EmployeeDetails>
    that i created using org.w3c.dom.Element class before invoking the initiate method.
    Please give solution to this problem
    Thanks in Advance

    You better ask this in the [OA Forum|http://forums.oracle.com/forums/forum.jspa?forumID=210]
    Timo

  • Class Not Found in Server Application

    I have set up a basic server application. It contains three files namely
    Arith.java (implements the Remote interface)
    ArithImpl.java (implements Arith.java the server) and
    ArithApp.java which is the client Application
    All of these are in the same package. I have compiled all of these files and I execute the rmic ArithImpl command from within the ArithImpl.java file via Runtime.getRuntime.exec(...);
    The stub and skeleton files are generated and still I get a class not found exception. I have checked the class path and these files are within the class path.
    If anyone could help me I'd greatly appreciate it. Thanks
    public class ArithImpl extends UnicastRemoteObject implements Arith{
    public static final String HOST_NAME = "localhost";
    public static final String ROOT = "C:/Work/Thesis~1/LearningRMI/";
    public static final String CLASSPATH = ROOT;
    public static final String POLICY_FILE = CLASSPATH+"policies/rmi.policy";
    public static final String RMI_LOCATION = "C:/Progra~1/java/jdk1.5.0_03/bin/";
    String objectName;
    public ArithImpl(String s) throws RemoteException{
         super();
         objectName = s;
    public int[] add(int[] a, int[] b) throws RemoteException {
         int c[] = new int[10];
         for (int i=0; i<10; i++)
              c[i] = a[i]+b;
         return c;
    public static void main(String[] args) {
         System.setProperty("java.security.policy",POLICY_FILE);
         System.setProperty("java.class.path",CLASSPATH);
    String rmic = RMI_LOCATION+"rmic -vcompat -classpath "+CLASSPATH+" "+ArithImpl.class.getName();
    String registry = RMI_LOCATION+"\\rmiregistry";
    try{
    Runtime rt = Runtime.getRuntime();
    rt.exec(rmic);
    rt.exec(registry);
    catch (IOException e){
    e.printStackTrace();
    RMISecurityManager sm = new RMISecurityManager();
    System.setSecurityManager(sm);     
    try{
    Naming.rebind("//"+HOST_NAME+"/ArithServer", obj);
    System.out.println("ArithServer bound in registry");
    catch (Exception e){
    e.printStackTrace();

    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
         java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
         java.lang.ClassNotFoundException: Arith
         at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:385)
         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:240)
         at sun.rmi.transport.Transport$1.run(Transport.java:153)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
         at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
         at java.lang.Thread.run(Thread.java:595)
         at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
         at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
         at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:343)
         at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
         at java.rmi.Naming.rebind(Naming.java:160)
         at ArithImpl.main(ArithImpl.java:106)
    Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
         java.lang.ClassNotFoundException: Arith
         at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
         at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:375)
         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:240)
         at sun.rmi.transport.Transport$1.run(Transport.java:153)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
         at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.ClassNotFoundException: Arith
         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:242)
         at sun.rmi.server.LoaderHandler.loadProxyInterfaces(LoaderHandler.java:707)
         at sun.rmi.server.LoaderHandler.loadProxyClass(LoaderHandler.java:651)
         at sun.rmi.server.LoaderHandler.loadProxyClass(LoaderHandler.java:588)
         at java.rmi.server.RMIClassLoader$2.loadProxyClass(RMIClassLoader.java:628)
         at java.rmi.server.RMIClassLoader.loadProxyClass(RMIClassLoader.java:294)
         at sun.rmi.server.MarshalInputStream.resolveProxyClass(MarshalInputStream.java:238)
         at java.io.ObjectInputStream.readProxyDesc(ObjectInputStream.java:1494)
         at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1457)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
         ... 9 more

  • Class not found in applet using 2 jar files

    I have an applet which has been working for years as a stand alone or connecting directly to a derby database on my home server. I have just changed it to connect to MySQL on my ISP server via AJAX and PHP.
    I am now getting a class not found error in my browser, probably because I'm stuffing up the class path.
    The HTML I am using to call the applet is:
    <applet code="AMJApp.class"
    codebase="http://www.interactived.com/JMTalpha"
    archive="AMJ014.jar,plugin.jar"
    width="500"height="500"
    MAYSCRIPT style="border-width:0;"
    name="jsap" id="jsap"></applet>The AMJ014.jar contains the applet and supporting class files.
    The error message is strange to me because it refers to a class I noticed on another web page but which has nothing to do with my applet. Anyway, the message in full is:
    load: class NervousText.class not found.
    java.lang.ClassNotFoundException: NervousText.class
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Exception: java.lang.ClassNotFoundException: NervousText.class
    java.lang.UnsupportedClassVersionError: AMJApp : Unsupported major.minor version 51.0
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClassCond(Unknown Source)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.defineClass(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.defineClassHelper(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.access$100(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Exception: java.lang.UnsupportedClassVersionError: AMJApp : Unsupported major.minor version 51.0

    Thanks again.
    The page code is:
    <html>
    <head>
      <title>Applet to JavaScript to PHP</title>
    </head>
    <body>
    <script type="text/javascript">
    function updateWebPage(myArg)
    document.getElementById("txt1").innerHTML=myArg;
    if (myArg=="")
      document.getElementById("cbxItem").innerHTML="";
      return;
    if (window.XMLHttpRequest)
      {// code for IE7+, Firefox, Chrome, Opera, Safari
      xmlhttp=new XMLHttpRequest();
    else
      {// code for IE6, IE5
      xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
    xmlhttp.onreadystatechange=function()
      if (xmlhttp.readyState==4 && xmlhttp.status==200)
        document.getElementById("cbxItem").innerHTML=xmlhttp.responseText;
    xmlhttp.open("GET","putitem.php?id="+myArg,true);
    xmlhttp.send();
    </script>
    <form>
    <table border=1 align='center' cellpadding=0 cellspacing=0 >
    <tr><td style='text-align:center; background-color:#C0C0C0'>Compiled Java Applet</td></tr>
    <tr><td><applet code="AMJApp.class" codebase="http://www.interactived.com/JMTalpha" archive="AMJ014.jar" width="500"height="500" MAYSCRIPT style="border-width:0;" name="jsap" id="jsap"></applet> </td></tr>
    <tr><td style='text-align:center; background-color:#C0C0C0'>HTML Textbox filled by JavaScript</td></tr>
    <tr><td><textarea style='width:500px; height:50px' name='txt1' id='txt1'>Query goes here</textarea></td></tr>
    <tr><td style='text-align:center; background-color:#C0C0C0'>HTML diagnostic messages rendered by PHP script</td></tr>
    <tr><td><div id="cbxItem">PHP info will populate this space</div></td></tr>
    </table>
    </form>
    </body>
    </html>The URL of the problem page is:
    http://www.interactived.com/JMTalpha/AMJTest.htm
    The code in the page is based on the following test page, which works:
    http://www.interactived.com/test5Applet.htm
    And the Applet, before I made any changes can be seen at this address:
    http://www.interactived.com/jartest0906.htm
    Thanks again for you interest.
    Edited by: 886473 on 21-Sep-2011 00:47

  • Class not Found when accessing Proxy class from backing bean in VC.

    Hi All,
    I'm attempting to access a class of a webservice(generated as a proxy) within my ADF application and invoke the method within a backing bean of the View Controller(bean scope : backing bean). The proxy has generated an ObjectFactory class among other classes. When I access this Object factory class from within the backing bean, the application throws a Class not found error.
    I don't know where the error lies since I've declared the View Controller of the ADF application dependent on the Proxy and I've imported the class and accessing it within a backing bean. How would you suggest I approach resolveing this.
    JDev : 1.1.1.4
    Thank you.
    Regards
    PP.

    Hello Arun,
    Thank you for suggesting a Data control, but my requirement isn't to drag and drop the method as a button. It's more of a behind the scnes updating data via a database adapter requirement.
    I've resolved the issue. turns out, my deployment archive didn't include the proxy.jpr. Once included it works likea charm.
    Thanks
    PP.

  • Not able to start the remote server - class not found exception

    All,
    I am quite new to RMI programming, although i am an experienced java programmer. I am facing a problem in starting the remote server program which i wrote for RMI. I am getting class not found exception for "stub" class eventhough the class is in the classpath.
    Following is the error console:
    cmd> java -classpath "D:\Eclipse_WorkSpaces\WS2\RMITests\classes" MyServerImplementation
    GetNames error: RemoteException occurred in server thread; nested exception is:
    java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
    java.lang.ClassNotFoundException: MyServerImplementation_Stub
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
    java.lang.ClassNotFoundException: MyServerImplementation_Stub
    at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:396)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250)
    at sun.rmi.transport.Transport$1.run(Transport.java:159)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
    at java.lang.Thread.run(Thread.java:619)
    at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
    at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:359)
    at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
    at java.rmi.Naming.rebind(Naming.java:160)
    at MyServerImplementation.main(MyServerImplementation.java:21)
    Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
    java.lang.ClassNotFoundException: MyServerImplementation_Stub
    at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
    at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:386)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250)
    at sun.rmi.transport.Transport$1.run(Transport.java:159)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.ClassNotFoundException: MyServerImplementation_Stub
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:247)
    at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:434)
    at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:165)
    at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620)
    at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247)
    at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197)
    at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)
    at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
    ... 12 morePLEASE ADVISE HOW TO RESOLVE THIS...
    Following are my classes:
    MyRemoteInterface.java
    import java.rmi.Remote;
    import java.rmi.RemoteException;
    public interface MyRemoteInterface extends Remote {
    public String[] getNames() throws RemoteException;
    public class MyServerImplementation extends UnicastRemoteObject implements
    MyRemoteInterface {
    public MyServerImplementation()throws RemoteException{
    super();
    public String[] getNames() throws RemoteException{
    return new String[]{"Name1","Name2","Name3","Name4"};
    public static void main(String args[]) {
    try {
    // Create an object of the HelloWorldServer class.
    MyRemoteInterface obj = new MyServerImplementation();
    // Bind this object instance to the name "HelloServer".
    Naming.rebind("rmi://localhost:1985/GetNames", obj);
    System.out.println("GetNames bound in registry");
    catch (Exception e) {
    System.out.println("GetNames error: " + e.getMessage());
    e.printStackTrace();
    public class MyRMIClient {
    *@param args*
    public static void main(String[] args) {
    try {
    MyRemoteInterface remObj = (MyRemoteInterface) Naming.lookup("rmi://localhost:1985/GetNames");
    System.out.println("Names are "+remObj.getNames());
    catch(Exception e) {
    System.out.println("Problem encountered accessing remote object "+e);
    }

    That's a remote exception coming from the registry. You need to learn to recognize remote exceptions and their source, it's a mjaor source of confusion in RMI.
    In this case it's the registry that can't find the stub class.
    The stub class needs to be in the CLASSPATH of (i) the Registry and (ii) the client as well. Ditto the remote interface; ditto any application classes it refers to, and so on until closure.
    The easiest way to achieve (i) is to start it in the server's JVM, with LocateRegistry.createRegistry().

  • Java.rmi.UnmarshalException: skeleton class not found but required for clie

    Hello everyone,
    I am new to RMI and getting a strange exception. I am using Java 1.5.0_07 both on client and server. They are running on the same machine, the rmi registry is started inside the server application.
    I am wondering why java complains about skeletons, I thought they are automatically created when using java 5.0?
    Please have a look at the stacktrace below.
    Thank you for your help.
    Best Regards
    Patric
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
         java.rmi.UnmarshalException: error unmarshalling call header; nested exception is:
         java.rmi.UnmarshalException: skeleton class not found but required for client version
         sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:325)
         sun.rmi.transport.Transport$1.run(Transport.java:153)
         java.security.AccessController.doPrivileged(Native Method)
         sun.rmi.transport.Transport.serviceCall(Transport.java:149)
         sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
         sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
         java.lang.Thread.run(Thread.java:595)
         sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
         sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
         sun.rmi.server.UnicastRef.invoke(UnicastRef.java:343)
         sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
         java.rmi.Naming.lookup(Naming.java:84)
         org.apache.jsp.index_jsp._jspService(index_jsp.java:58)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

    The full class path information that I can gather is as follows (some of the library path locations could be suspect...):
    Class path: /edge/node3/hotfix::/edge/node3/current/lib/JMdsApi.jar:/edge/node3/current/lib/MemoryProfilingAgent.jar:/edge/node3/current/lib/T2common-2.6.0-SNAPSHOT.3200.jar:/edge/node3/current/lib/T2scripting-jython.jar:/edge/node3/current/lib/activation.jar:/edge/node3/current/lib/alib.jar:/edge/node3/current/lib/alibom.jar:/edge/node3/current/lib/ant.jar:/edge/node3/current/lib/authapi.jar:/edge/node3/current/lib/bbdlapi.jar:/edge/node3/current/lib/bcpg-jdk15-136.jar:/edge/node3/current/lib/bcprov-jdk15-136.jar:/edge/node3/current/lib/c3p0-0.9.1.2.jar:/edge/node3/current/lib/castor-1.1-codegen-anttask.jar:/edge/node3/current/lib/castor-1.1-codegen.jar:/edge/node3/current/lib/castor-1.1-xml.jar:/edge/node3/current/lib/castor-1.1.jar:/edge/node3/current/lib/colt-1.2.0.jar:/edge/node3/current/lib/common-annotations.jar:/edge/node3/current/lib/commons-beanutils.jar:/edge/node3/current/lib/commons-codec-1.3.jar:/edge/node3/current/lib/commons-collections-3.2.1.jar:/edge/node3/current/lib/commons-jexl-1.1.jar:/edge/node3/current/lib/commons-lang-2.3.jar:/edge/node3/current/lib/commons-logging-1.1.1.jar:/edge/node3/current/lib/commons-net-1.4.1.jar:/edge/node3/current/lib/dsn.jar:/edge/node3/current/lib/eagleapi.jar:/edge/node3/current/lib/ezmorph-1.0.3.jar:/edge/node3/current/lib/f2-loader-1.8.jar:/edge/node3/current/lib/fasttrade-boviewer-1.0.1.jar:/edge/node3/current/lib/hsqldb.jar:/edge/node3/current/lib/icu4j-3.4.4.jar:/edge/node3/current/lib/ivy.jar:/edge/node3/current/lib/janino.jar:/edge/node3/current/lib/janus-sdk-1.7.0.0.jar:/edge/node3/current/lib/jasypt-1.4.1.jar:/edge/node3/current/lib/javolution.jar:/edge/node3/current/lib/jcalendar-1.3.2.jar:/edge/node3/current/lib/jcl-over-slf4j-1.5.6.jar:/edge/node3/current/lib/jcommon-1.0.9.jar:/edge/node3/current/lib/jconn2.jar:/edge/node3/current/lib/jconn3-6.05-b26214.jar:/edge/node3/current/lib/jdom.jar:/edge/node3/current/lib/jfreechart-1.0.5.jar:/edge/node3/current/lib/jgroups-all.jar:/edge/node3/current/lib/jline.jar:/edge/node3/current/lib/jmkv123p1.jar:/edge/node3/current/lib/jna.jar:/edge/node3/current/lib/joda-time-1.5.2.jar:/edge/node3/current/lib/jscience.jar:/edge/node3/current/lib/json-lib-2.2.1-jdk15.jar:/edge/node3/current/lib/jul-to-slf4j-1.5.6.jar:/edge/node3/current/lib/junit.jar:/edge/node3/current/lib/jython.jar:/edge/node3/current/lib/log4j-1.2.15.jar:/edge/node3/current/lib/log4j-over-slf4j-1.5.6.jar:/edge/node3/current/lib/loggablePreparedStatement-1.6.jar:/edge/node3/current/lib/looks-2.1.4.jar:/edge/node3/current/lib/mailapi.jar:/edge/node3/current/lib/model-12021.jar:/edge/node3/current/lib/mysql-connector-java-5.1.7-bin.jar:/edge/node3/current/lib/opencsv-1.8.jar:/edge/node3/current/lib/rfa.jar:/edge/node3/current/lib/rspcore.jar:/edge/node3/current/lib/slf4j-api-1.5.6.jar:/edge/node3/current/lib/slf4j-log4j12-1.5.6.jar:/edge/node3/current/lib/smtp.jar:/edge/node3/current/lib/smtphandler-0.6.jar:/edge/node3/current/lib/spring-2.5.2.jar:/edge/node3/current/lib/statsvn.jar:/edge/node3/current/lib/swingx-0.9.3.jar:/edge/node3/current/lib/t2-12021.jar:/edge/node3/current/lib/testng-5.9-jdk15.jar:/edge/node3/current/lib/tibmsg.jar:/edge/node3/current/lib/tibrvj.jar:/edge/node3/current/lib/trove.jar:/edge/node3/current/lib/velocity-tools.jar:/edge/node3/current/lib/velocity.jar:/edge/node3/current/lib/xalan.jar:/edge/node3/current/lib/xerces.jar:/edge/node3/current/lib/patng/activeio-core-3.0.0-incubator.jar:/edge/node3/current/lib/patng/activemq-core-4.1.1.jar:/edge/node3/current/lib/patng/avalon-framework-4.1.3.jar:/edge/node3/current/lib/patng/backport-util-concurrent-2.2.jar:/edge/node3/current/lib/patng/binding-1.4.0.jar:/edge/node3/current/lib/patng/cglib-nodep-2.1_3.jar:/edge/node3/current/lib/patng/common-1.30.jar:/edge/node3/current/lib/patng/commons-cli-1.0.jar:/edge/node3/current/lib/patng/commons-configuration-1.2.jar:/edge/node3/current/lib/patng/commons-discovery-0.2.jar:/edge/node3/current/lib/patng/commons-math-1.1.jar:/edge/node3/current/lib/patng/concurrent-1.3.4.jar:/edge/node3/current/lib/patng/geronimo-j2ee-management_1.0_spec-1.0.jar:/edge/node3/current/lib/patng/geronimo-jms_1.1_spec-1.0.jar:/edge/node3/current/lib/patng/logkit-1.0.1.jar:/edge/node3/current/lib/patng/mina-core-1.0.1.jar:/edge/node3/current/lib/patng/mina-filter-ssl-1.0.1.jar:/edge/node3/current/lib/patng/mina-java5-1.0.1.jar:/edge/node3/current/lib/patng/mx4j-remote-3.0.1.jar:/edge/node3/current/lib/patng/mx4j-tools-3.0.1.jar:/edge/node3/current/lib/patng/org.apache.felix.framework-1.0.0.jar:/edge/node3/current/lib/patng/org.osgi.core-1.0.0.jar:/edge/node3/current/lib/patng/pat-dt-common-1.18.jar:/edge/node3/current/lib/patng/pat-sdt-1.18.jar:/edge/node3/current/lib/patng/patNg-api-1.27.1.jar:/edge/node3/current/lib/patng/patNg-server-aoc-1.21.jar:/edge/node3/current/lib/patng/patNg-server-common-1.21.jar:/edge/node3/current/lib/patng/patNg-server-session-manager-1.21.jar:/edge/node3/current/lib/patng/patNg-utils-1.27.1.jar:/edge/node3/current/lib/patng/qpid-broker-2.2.2.0.jar:/edge/node3/current/lib/patng/qpid-client-2.2.2.0.jar:/edge/node3/current/lib/patng/qpid-common-2.2.2.0.jar:/edge/node3/current/lib/patng/qpid-mina-core-2.2.2.0.jar:/edge/node3/current/lib/patng/rsee-2.11.jar:/edge/node3/current/lib/patng/servlet-api-2.3.jar:/edge/node3/current/lib/patng/silk-1.3.jar:/edge/node3/current/lib/patng/slf4j-api-1.4.0.jar:/edge/node3/current/lib/patng/slf4j-log4j12-1.4.0.jar:/edge/node3/current/lib/patng/validation-1.2.0.jar
    Boot class path: /apps/jdk/1.6.0_13/linux/jre/lib/resources.jar:/apps/jdk/1.6.0_13/linux/jre/lib/rt.jar:/apps/jdk/1.6.0_13/linux/jre/lib/sunrsasign.jar:/apps/jdk/1.6.0_13/linux/jre/lib/jsse.jar:/apps/jdk/1.6.0_13/linux/jre/lib/jce.jar:/apps/jdk/1.6.0_13/linux/jre/lib/charsets.jar:/apps/jdk/1.6.0_13/linux/jre/classes:/tmp/yjp200811122006.jar
    Library path: /apps/jdk/1.6.0_13/linux/jre/lib/i386/server:/apps/jdk/1.6.0_13/linux/jre/lib/i386:/apps/jdk/1.6.0_13/linux/jre/../lib/i386::/edge/node3/current/lib:/home/eqdev/eqedgeuat/yourkit_7_5_11/yjp-7.5.11/bin/linux-x86-32:/edge/node3/current/lib:/home/eqdev/eqedgeuat/yourkit_7_5_11/yjp-7.5.11/bin/linux-x86-32:/usr/java/packages/lib/i386:/lib:/usr/lib

  • Adapter Module is not Invoking

    Hi
    I have done one adapter module and i have given that in Sender Communication Channel. I have written audit log as well. But its not invoking.I am not getting any thing on Audit Log. My Scenario is working normally. Actually i have to get Host name at destination side but i am not getting
    I ave created on jar file. I have extrancted that jar file and i found the following files
    <javafile>.class
    <javafile>.java
    ejb-j2ee-engine.xml
    ejb-jar.xml
    but i have extract other in built adapter module jar file their i found manifest.mf apart from above mention files.
    I have create the jar files using nwds version 7.0
    My Adapter module is not working. I have done everything fine.Can anyone tell me the solution
    Best Regards
    Ravi Shankar B
    Message was edited by:
            RaviShankar B

    Hi,
    Ur module name shud b like this
    localejbs/<yourEJBClassName>
    If you specify an incorrect or non-existing module name, it is simply ignored.
    Check the following:
    1. Your stateless session bean should implement SessionBean and Module.
    2. The bean should have the following method
        public ModuleData process()
    Try to create a file in XI Server directory from your adapter module code and this way check whether your module is called or not.
    <i>[Reward if helpful]</i>
    Regards,
    Prateek

  • Flex SDK 3.2 : Unmarshalling issue : SOAP objects are not deserialized completely

    Hi everybody !
    I have a strange problem with SOAP deserialization in flex 3.2, and I thought this forum will be the best place to get answers ...
    When I try to fetch some objects (like the ones shown below), the XMLDecoder does not deserialize all the properties.
    In this case, it stops at the property named "rating". After it, all other data are lost.
    I've used the flex builder debugger to locate the problem, and this lead me to the following method in the XMLDecoder class :
    getApplicableValues(parent:*, valueElements:XMLList, name:QName,context:DecodingContext, maxOccurs:uint):XMLList:
    State of the variables, before the "bug" :
    The strange behavior appears after the five first properties had been deserialized correctly.
    At this step : startIndex = 5, and the next property to unmarshall is "user" (according to the MExpertNotes object mapping)
    the valueElement's list contains the following elements :
    to simplify the notation, I will write only the position in the list and the xml tag name (see the complete soap response for more details at the end of this post)
    (position, fieldName)
    (0, ID) -> inherited from MotocycletteObjectImpl
    (1,comment)
    (2, noteValidation) (a Bean, never returned by our service -> set to null)
    (3,noteValidationID)
    (4,rating)
    (5,timeOfCreation) -> inherited from MotocycletteObjectImpl
    (6,user) (a Bean, never returned by our service -> set to null)
    (7,userExpert) (a Bean, never returned by our service -> set to null)
    (8,userExpertID)
    (9,userID)
    (10,version) -> inherited from MotocycletteObjectImpl
    when it enters the for loop, at the first iteration the valueElements[i].name is equals to "timeOfCreation" and the name parameter is equal to "user".
    so this test : if (name == null || valueElements[i].name() == name
    || ((name.uri == "" || name.uri == null)
    && name.localName == valueElements[i].name().localName))
    returns false. The skipAhead variable is set to false (and i don't understand why). It stops iterating over the valueElementList, and so, skips all other properties.
    Is this a bug ? Does a workaround exists ?
    This affects many of our objects.
    Any help would be greatly appreciated.
    Best regards,
    Jules Pajot
    R&D engineer for Mikros Image
    www.mikrosimage.fr
    [EDIT] : My Message was too long, so I put the complete message here :
    http://docs.google.com/View?docid=dd6j35ft_38grb9c7cr
    PS : I apologize for my english wich is far from perfect :)
    As a reminder , the XMLDecoder class method ( line 2204 ):

    <div class=Section1><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>The holidays are starting here.  The experts in the area may<br />already be away.  Please file a bug.  It might help if you can simplify your<br />test case to use an XML file that is local so we don&#8217;t need your server<br />connection.<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><br /><br /><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span<br />style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Jules Pajot<br />[mailto:[email protected]] <br><br /><b>Sent:</b> Tuesday, December 23, 2008 9:05 AM<br><br /><b>To:</b> [email protected]<br><br /><b>Subject:</b> Re: Flex SDK 3.2 : Unmarshalling issue : SOAP objects are not<br />deserialized completely<o:p></o:p></span></p><br /><br /></div><br /><br /><p class=MsoNormal><o:p> </o:p></p><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'>A new message was posted by<br />Jules Pajot in <br><br /><br><br /><b>Developers</b> --<br><br />  Flex SDK 3.2 : Unmarshalling issue : SOAP objects are not<br />deserialized completely<br><br /><br><br />Nobody has an idea about my problem ? <o:p></o:p></p><br /><br /><div class=MsoNormal><br /><br /><hr size=2 width=200 style='width:150.0pt' align=left><br /><br /></div><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'>View/reply at <a<br />href="http://www.adobeforums.com/webx?13@@.59b74f93/0">Flex SDK 3.2 :<br />Unmarshalling issue : SOAP objects are not deserialized completely</a><br><br />Replies by email are OK.<br><br />Use the <a<br />href="http://www.adobeforums.com/webx?280@@.59b74f93!folder=.3c060fa3">unsubscribe</a>< br />form to cancel your email subscription.<o:p></o:p></p><br /><br /></div>

  • Loading a class not on classpath

    how can we load a class not on classpath?

    uddinr0121 wrote:
    try this
    private void addArchive(File jarFile) throws IOException {
    URL u = jarFile.toURI().toURL();
    URLClassLoader sysloader = (URLClassLoader) ClassLoader.getSystemClassLoader();
    Class<?> sysclass = URLClassLoader.class;
    try {
    Method method = sysclass.getDeclaredMethod("addURL", parameters);
    method.setAccessible(true);
    method.invoke(sysloader, new Object[]{u});
    } catch (Throwable t) {
    t.printStackTrace();
    }this will add the jar file to the classpath after which you should be able to invoke using Class.forName()
    hope this helpsThat's a horrible solution, when you can just create a new URLClassLoader and use that to load the class.
    Adding it to the system classpath with reflection trickery is not really a clean solution to that.

  • Getting the Adapter Class Not Found Error in the Java Manipulator

    Hi,
    I wrote a custom java manipulator for the baseline update and created a jar file for the class. This works fine in the Windows machine. All I have to do is while specifying the CLASSPATH, I entered the ./ib/newManipulator.jar; ./lib/additional_dependency.jar. When I tried to deploy the same code in the Unix environment, it fails saying the Adapter Class not found. The only difference from windows and Unix environment is that in the windows machine, in order to run the base line update, I go to the directory my_project->control->baseline_update.bat but in case of Unix environment I have a separate location where I have a shell script called run-baseline-update.sh located at /apps/bin which invokes the baseline.sh in the directory my_project/control/baseline.sh. I even tried to put the full path of the jar files e.g. /my_project/lib/newManipulator.jar; /my_project/lib/additional_dependency.jar in the class path but still the same issue. Any suggestions?

    Unix classpath needs ":" as the path separator, not ";". Changing that will make this work.
    For reference, later versions of the deployment template make this configurable, so you'd see (in environment.properties):
    # PATH_SEP_VARNAME: for platform-independence
    PATH_SEP_VARNAME=;
    # Forge needs record store libraries as well as Spring to load record store adapter configuration files
    FORGE_CLASSPATH=./config/lib/java/spring-delegate-adapter-1.0.1.jar${PATH_SEP_VARNAME}./config/lib/java/spring.jar${PATH_SEP_VARNAME}./config/lib/java/eacToolkit.jar${PATH_SEP_VARNAME}./config/script${PATH_SEP_VARNAME}.
    You can then add the following to your <forge /> definition in AppConfig.xml:
    <arg>--javaClasspath</arg>
    <arg>${FORGE_CLASSPATH}</arg>
    Hope this helps.
    Michael

  • Class not found problem in Tomcat Web app

    Hi,
    I created a Web Service using JWSDP. I want to invoke a Web service method from my servlet. It works fine on Win NT Workstation, but on Windows 2000 it gives class not found error because it fails to pick up the jars that come with the pack in common\lib directory. I copied the jars to all possible lib paths as below, but looks like there's something wrong with the class loader. This problem comes in all our win2k machines. Does anyone have any clue about this.
    /WEB-INF/lib/*.jar of your web application
    $CATALINA_HOME/common/endorsed/*.jar
    $CATALINA_HOME/common/lib/*.jar
    $CATALINA_HOME/shared/lib/*.jar
    Thanks in advance,
    Sriram.

    If it can't find servlet.jar in the Tomcat dir, you should do what I did. I copied servlet.jar to C:\j2sdk1.4.0_01\jre\lib\ext\servlet.jar
    Then I added that to my CLASSPATH, and it finally found servlet.jar (it never found it in the Tomcat folder where it was).

  • How MS SOAP 3.0 client invokes WL 7.0 Webservice WITHOUT using a WSDL file?

    Hi all,
    I am looking for a sample VBScript using MS SOAP 3.0 client invoking a WL 7.0 Server
    webservice. Could anyone please post a sample VBScript codes invoking a soap service
    on WL 7.0 WITHOUT using a WSDL file, for example at:
    http://localhost:7001/HelloWorld/Hello
    with the service method:
    public org.w3c.dom.Element say(String something);
    Thanks,
    Dovan

    Hi,
    As you might guess, we are not big VB users here :-) but we may have some C# code that
    could be of some value.
    What problem are you trying to solve by not using WSDL?
    Just curious,
    Bruce
    Dovan Nguyen wrote:
    Hi all,
    I am looking for a sample VBScript using MS SOAP 3.0 client invoking a WL 7.0 Server
    webservice. Could anyone please post a sample VBScript codes invoking a soap service
    on WL 7.0 WITHOUT using a WSDL file, for example at:
    http://localhost:7001/HelloWorld/Hello
    with the service method:
    public org.w3c.dom.Element say(String something);
    Thanks,
    Dovan

Maybe you are looking for

  • ICal error 403 about access to event in calendar in iCloud not permitted

    When I downloaded our school calendar to ical I now receive error messages.. Go offline or revert to server. I choose go offline it does but when I open iCal the same messages appear.  If I choose revert to server I get the error again with another e

  • VN7-791G 3rd time in for repair in 5 months

    i bought my laptop from pc world VN7-791G in february and i had it 2 weeks and it had distorted audio and as i bought it from pc world business , i could not have a replacement or my money back .. I had to agree to have it repaired , this was around

  • PDF displays question mark font

    I'm trying to study for an exam, but am having trouble viewing certain PDF files. It displays a box-enclosed question mark font. Up till a few days ago, I could read them just fine, but then I ran Onyx and since then I get the weird font. I've tried

  • I KEEP GETTING POP UP ADVERTISEMENT AND I CAN NOT UPGRADE TO YOSEMITE X BECAUSE I DO NOT HAVE A CREDIT CARD

    How can i upgrade free without going through Apple app store that ask for a credit card?  How do i stop the pop-ups that recently started after downloading a free coupon from the web? How do i get rid of this virus?

  • How to upgrade Flash Builder 4 to 4.1

    I have FB 4 installed. I am trying to upgrade to 4.1. I found a zip file, downloaded it and unzipped it but there does not appear to be any way of applying the update. Am I missing something?