Webservice Client implementation -  java.lang.ClassCastException

Hi,
We are trying to implement a WebService Client for the secure Webservice. I have created a deployable proxy client and deployed it on the server, our basis has attached the X509 certificate to the proxy in VA. Test Destination is successful. I have exposed the client as public part in the ws client dc project.I have created a used dc relationship to the webservice client project in my EP Component project.  I'm trying to use this client in a AbstractPortal component with following code
     SECQANDA seq = (SECQANDA) ctx.lookup("<JNDI location");
I get a ClassCastException on this line
java.lang.ClassCastException: <package>.SECQANDAImpl incompatible with <package>.SECQANDA
Have anyone faced this problem? How do I resolve this error?
Appreciate any help.
Thanks,
Giri.

Hi Martin,
Appreciate your response. I'm not able to cast to SECQANDAImpl because this implementaion class is not in my DC. What I understand is it gets implemented on deployment of the deployable proxy. Does that ring any bell?
Thanks,
Giri.

Similar Messages

  • Java.lang.ClassCastException when calling webservice stub  from oracle DB

    Hello everyone,
    Because i need to get familliar with calling java webservices from an oracle database, i followed the following example
    (http://www.oracle.com/technology/products/jdev/howtos/10g/WS_DBCallout/DBCalloutWS_HowTo.htm),
    which included installing the SOAP client stack to the database (in the sys schema), grant the right permissions to the SYS user, developing a simple Helloworld webservice with jdeveloper 10.1.2, generating a Webservice stub and deploying a static method of this stub to the database.
    All of this worked just fine, but when i want to call the webservice from oracle by invoking the deployed function, i get a java.lang.ClassCastException.
    The complete stacktrace lists as follows:
    v_Return = foutje: java.lang.ClassCastExceptionnulljava.lang.ClassCastException
         at org.apache.soap.rpc.RPCMessage.serializeParams(RPCMessage.java:323)
         at org.apache.soap.rpc.RPCMessage.marshall(RPCMessage.java:305)
         at org.apache.soap.Body.marshall(Body.java:148)
         at org.apache.soap.Envelope.marshall(Envelope.java:203)
         at org.apache.soap.Envelope.marshall(Envelope.java:161)
         at oracle.soap.transport.http.OracleSOAPHTTPConnection.send(OracleSOAPHTTPConnection.java:664)
         at org.apache.soap.rpc.Call.invoke(Call.java:261)
         at test.HelloWorldServiceStub.sayHello(HelloWorldServiceStub.java:82)
    I debugged the WebServiceStub and noticed that the call.invoke method crashes. This is weird beacuse when i use System.out.println on the parameter is works just fine. so you would think it is a string.
    Moreover, if i invoke the webservice from the endpoint or even when im debugging the stub locally it all works just fine.
    Can someone plzzzzzz help me with this because i spend the whole day looking for an answer and im getting crazy!!!!!
    Thanx al lot guys,
    Kim
    PS or could the problem be in the database instead of the webservice?????????
    Message was edited by:
    user568880
    Message was edited by:
    Kim Zeevaarders

    I think that it's going wrong because i did not install the right SOAP client stack.
    In the HowTo is specified what JAR files are to be loaded in the database (from %JDEV_HOME), but it states that it has only been tested on a Oracle 9.2 database. I'm using Oracle10g. Maybe that's the reason that im getting this classcast exception...
    Can anybody tell me what the right .JAR files are that have to be loaded into database when working with Oracle 10g?
    Many thx in advance!
    Kim

  • Java.lang.ClassCastException: weblogic.webservice.core.soap.SOAPMessageImpl

    Hello Gurus,
    Can you please help me with following issue--
    I have created a secured web service's client from netbeans 6.8.Then I made a jar file of it.Then I have integrated that jar in my ADF application's viewcontroller project .I have used the jar from backing bean of a jspx page.
    If I create a main method in the bean and call the service from inside main method then everything works fine but if i remove the main method and call the service from a button click of the jspx page then i get the following error.
    <Jan 7, 2012 11:01:34 AM IST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=KEYNECTIS ROOT CA,OU=ROOT,O=KEYNECTIS,C=FR". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <ActionListenerImpl><processAction> java.lang.ClassCastException: weblogic.webservice.core.soap.SOAPMessageImpl cannot be cast to com.sun.xml.messaging.saaj.soap.MessageImpl
    javax.faces.el.EvaluationException: java.lang.ClassCastException: weblogic.webservice.core.soap.SOAPMessageImpl cannot be cast to com.sun.xml.messaging.saaj.soap.MessageImpl
         at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:698)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:285)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.share.http.ServletADFFilter.doFilter(ServletADFFilter.java:62)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: java.lang.ClassCastException: weblogic.webservice.core.soap.SOAPMessageImpl cannot be cast to com.sun.xml.messaging.saaj.soap.MessageImpl
         at com.sun.xml.rpc.client.StubBase._postSendingHook(StubBase.java:231)
         at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:324)
         at com.sahaj.billDetails.NotifySREIBilling_OB_Stub.notifySREIBilling_OB(NotifySREIBilling_OB_Stub.java:67)
         at com.sahaj.tester.Tester.getBillDetails(Tester.java:94)
         at Test.cb1_action(Test.java:19)
         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:597)
         at com.sun.el.parser.AstValue.invoke(AstValue.java:157)
         at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
         at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:46)
         ... 36 more
    My bean class looks as follows--
    public class Test {
    public Test() {
    *public String cb1_action() {//does not work*
    HashMap billDetails = new Tester().getBillDetails("212078438");
    System.out.println(billDetails.size());
    return null;
    *public static void main(String[] args) {//works*
    HashMap billDetails = new Tester().getBillDetails("212078438");
    System.out.println(billDetails.size());
    }

    Hi Mike,
    Support for SAAJ was added in WLS 8.1, see:
    http://edocs.bea.com/wls/docs81/webserv/interceptors.html#1058444
    Can you try your code on the latest release?
    Thanks,
    Bruce
    Mike Reiche wrote:
    >
    What do I need to fix this?
    WLS 7.0 sp2
    - Mike
    java.lang.Error: NYI
    at
    weblogic.webservice.core.soap.SOAPMessageImpl.saveRequired(SOAPMessageImpl.j
    ava:360)
    at
    com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnec
    tion.java:228)
    at
    com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run
    (HttpSOAPConnection.java:156)
    at java.security.AccessController.doPrivileged(Native Method)
    at
    com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnec
    tion.java:126)

  • Sun J2EE SDK 1.3_01, java.lang.ClassCastException thrown during deployment

    I encountered a bug while using the deploytool to deploy
    an EAR file to the Sun J2EE 1.3_01 server.
    I submitted a bug report to Sun via the Sun Java Developer Connection.
    (Sorry, it has not been assigned a BugID yet)
    Question:
    Does anybody know if the web container in Sun's
    J2EE 1.3_01 server supports access to local enterprise beans?
    Screenshots of the bug are available at
    http://sync4j.sourceforge.net/deploymentbug/
    Full details below....
    -Sean
    category: j2ee
    subcategory: deployment
    release: 1.3_01
    hardware: x86
    OSversion: windows_2000
    synopsis: java.lang.ClassCastException thrown during deployment of Session bean
    java -version
    java version "1.3.1_01"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_01)
    Java HotSpot(TM) Client VM (build 1.3.1_01, mixed mode)
    C:\j2sdkee1.3\bin>j2ee -version
    Java 2 Enterprise Edition version 1.3_01, build 1.3_01-b01
    I built a EJB 2.0 compliant stateful session bean.
    The session bean has a remote interface (ISyncRemote),
    a remote home interface (ISyncHomeRemote),
    a local interface (ISyncLocal),
    and a local home interface (ISyncHomeLocal).
    I built an HTTP Servlet that is supposed to access
    the Stateful Session Bean using ISyncHomeLocal and
    ISyncLocal
    I run "deploytool.bat" in GUI mode to perform the deployment.
    During deployment, the deploytool GUI displays a message
    box which states:
    "There was a deployment error.
    java.rmi.ServerException: RemoteException occurred in server thread;
    nested exception is:
    java.rmi.RemoteException: An error was encountered while loading
    a web component.
    Please refer to
    <J2EE_HOME>/logs/<machine-name>/j2ee//j2ee/error.log
    for more information. Please verify your Application with the
    Verifier tool."
    The "error.log" file did not contain any useful information.
    I ran the J2EE "verifier.bat" tool to verify that my EAR archive is OK.
    The Sun J2EE server output this error string:
    "java.lang.ClassCastException:
    com.sun.enterprise.deployment.EjbExternalDescriptor"
    Here is the full output from the Sun J2EE server:
    C:\j2sdkee1.3\bin>j2ee -verbose
    J2EE server listen port: 1050
    Naming service started:1050
    Binding DataSource, name = jdbc/EstoreDB, url =
    jdbc:cloudscape:rmi:CloudscapeDB;create=true
    Binding DataSource, name = jdbc/Cloudscape, url =
    jdbc:cloudscape:rmi:CloudscapeDB;create=true
    Binding DataSource, name = jdbc/DB1, url =
    jdbc:cloudscape:rmi:CloudscapeDB;create=true
    Binding DataSource, name = jdbc/DB2, url =
    jdbc:cloudscape:rmi:CloudscapeDB;create=true
    Binding DataSource, name = jdbc/InventoryDB, url =
    jdbc:cloudscape:rmi:CloudscapeDB;create=true
    Binding DataSource, name = jdbc/XACloudscape, url = jdbc/XACloudscape__xa
    Binding DataSource, name = jdbc/XACloudscape__xa, dataSource =
    COM.cloudscape.core.RemoteXaDataSourc
    e@245536
    Starting JMS service...
    Initialization complete - waiting for client requests
    Binding: < JMS Destination : jms/Queue , javax.jms.Queue >
    Binding: < JMS Destination : jms/Topic , javax.jms.Topic >
    Binding: < JMS Cnx Factory : TopicConnectionFactory , Topic , No properties >
    Binding: < JMS Cnx Factory : jms/TopicConnectionFactory , Topic , No properties
    >
    Binding: < JMS Cnx Factory : QueueConnectionFactory , Queue , No properties >
    Binding: < JMS Cnx Factory : jms/QueueConnectionFactory , Queue , No properties
    >
    Starting web service at port: 8000
    Starting secure web service at port: 7000
    J2EE SDK/1.3
    Starting web service at port: 9191
    J2EE SDK/1.3
    J2EE server startup complete.
    Compiling c:\j2sdkee1.3\repository\rbi\gnrtrTMP\Sync4j Server enterprise
    application\sync4j\server\s
    yncbean\SyncBean_LocalHomeImpl.java ....
    Compiling c:\j2sdkee1.3\repository\rbi\gnrtrTMP\Sync4j Server enterprise
    application\sync4j\server\s
    yncbean\SyncBean_EJBLocalObjectImpl.java ....
    Compiling c:\j2sdkee1.3\repository\rbi\gnrtrTMP\Sync4j Server enterprise
    application\sync4j\server\s
    yncbean\SyncBean_RemoteHomeImpl.java ....
    Compiling c:\j2sdkee1.3\repository\rbi\gnrtrTMP\Sync4j Server enterprise
    application\sync4j\server\s
    yncbean\SyncBean_EJBObjectImpl.java ....
    rmic sync4j.server.syncbean.SyncBean_RemoteHomeImpl...
    rmic sync4j.server.syncbean.SyncBean_EJBObjectImpl...
    c:\j2sdkee1.3\repository\rbi\applications\Sync4j Server enterprise
    application1004172068449Server.ja
    r
    Binding name:`java:comp/env/ejb/ISyncHomeRemote`
    Binding name:`java:comp/env/ejb/ISyncHomeLocal`
    java.lang.ClassCastException:
    com.sun.enterprise.deployment.EjbExternalDescriptor
    at com.sun.enterprise.deployment.EjbReferenceDescriptor.getValue
    (EjbReferenceDescriptor.java
    :202)
    at com.sun.enterprise.naming.NamingManagerImpl.bindObjects
    (NamingManagerImpl.java:394)
    at com.sun.web.server.WebService.addContext(WebService.java:148)
    at com.sun.web.server.ServletDeployerImpl.loadWebComponents
    (ServletDeployerImpl.java:214)
    at
    com.sun.enterprise.tools.deployment.backend.JarInstallerImpl.deployWebComponent
    s
    (JarInsta
    llerImpl.java:791)
    at
    com.sun.enterprise.tools.deployment.backend.JarInstallerImpl.deployApplication
    (JarInstall
    erImpl.java:219)
    at
    org.omg.stub.com.sun.enterprise.tools.deployment.backend._JarInstallerImpl_Tie.
    invoke(Un
    known Source)
    at com.sun.corba.ee.internal.corba.ServerDelegate.dispatch
    (ServerDelegate.java:355)
    at com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:273)
    at com.sun.corba.ee.internal.iiop.RequestProcessor.process
    (RequestProcessor.java:84)
    at com.sun.corba.ee.internal.orbutil.ThreadPool$PooledThread.run
    (ThreadPool.java:99)
    Does the Sun J2EE server implementation support the invocation
    of Session EJB's via a Local interface?
    Does the Sun J2EE server implementation allow a Servlet to invoke
    Session EJB's via the bean's Local interface?
    While researching this issue, I read the J2EE 1.3 final specification.
    The spec says:
    "The EJB container is required to access to local enterprise beans.
    We recommend that the web container also support access to local
    enterprise beans."
    Does the web container in Sun's J2EE server support access to local enterprise beans?

    I'm pretty much sure that you cannot access a
    local Session bean from outside the EJB container.Please read the J2EE 1.3 specification before posting messages about EJB and J2EE.
    According to the J2EE 1.3 specification:
    "The EJB container is required to support access to local enterprise beans. We recommend that the web container also support access to local enterprise beans.
    No support is provided for access to local enterprise beans from the application client container or the applet container."
    If you use local interfaces for your session bean,
    than your client must be local too. A local client is
    a client that is collocated in the same JVM with the
    session/entity that provides the local view and which
    can be tightly coupled to the bean.My client is running in the same JVM as my EJB. The client is a servlet. The servlet is running in the same JVM as the EJB.
    For what its worth, the error that I observed occurs during deployment. I haven't figured out why deployment is failing.

  • Error processing WSDL document: java.lang.ClassCastException: java.util.Ar

    Hi
    Program is giving unpredictable behaviour.
    Am trying to consume webservice using Axis Client.
    When running as stand alone Java programs its working fine.
    But when deployed on OC4J its giving problem
    Error processing WSDL document: java.lang.ClassCastException: java.util.ArrayList
    Could you please give some hint
    Regards
    Bajarang

    Here is the program
    QName serviceQN = new QName(targetNamespace,serviceName );
    System.out.println("After serviceQN "+ serviceQN);
    QName portQN = new QName( targetNamespace, portName );
    System.out.println("After port "+ portQN);
    // This Call object will be used the invocation
    Service service = new Service(implURI,serviceQN);
    System.out.println("After service "+ service);
    Call call = (Call) service.createCall();
    System.out.println("After call "+ call);
    // Now make the call...
    System.out.println("Invoking service>> " + serviceName + " <<...");
    call.setOperation(portQN,operationName);
    call.invoke( inputParams );
    System.out.println("Result returned from call to "+ serviceName+" ");
    Error while execution
    javax.xml.rpc.ServiceException: Error processing WSDL document:
    java.lang.ClassCastException: java.util.ArrayList

  • Getting  java.lang.ClassCastException during replication - 080003

    <Warning> <rmi> <080003> <RuntimeException thrown by rmi server: weblogic.cluster.replication.ReplicationManager.create(Lweblogic.rjvm.JVMID;ILweblogic.cluster.replication.ROID;Lweblogic.cluster.replication.Replicatable;)
              java.lang.ClassCastException: java.util.Hashtable
              java.lang.ClassCastException: java.util.Hashtable
              at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:99)
              at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:103)
              at weblogic.cluster.replication.ReplicationManager_WLSkel.invoke(Unknown Source)
              at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:455)
              at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:396)
              at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:726)
              at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:391)
              at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:251)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:219)
              >

    I use Jdev version 11.1.1.7. I use createRootApplicationModule to get an instance to AM to access its VOs and executeQuery on that.
    Am NOT using this in any VO implementation classes. I use this in a POJO class.
    Stack trace
    Caused By: java.lang.ClassCastException: oracle.jbo.common.ampool.PoolMgr
            at oracle.jbo.common.ampool.PoolMgr.getInstance(PoolMgr.java:76)
            at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1508)
            at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1485)
            at oracle.apps.scm.advancedPlanning.demandSnapshots.ess.program.DemandSnapshot.execute(DemandSnapshot.java:205)
            at oracle.apps.fnd.applcp.request.exec.AsyncExecutableWrapper.executeHelper(AsyncExecutableWrapper.java:162)
            at oracle.apps.fnd.applcp.request.exec.ExecWrapperBase.execute(ExecWrapperBase.java:156)
            at oracle.apps.fnd.applcp.request.exec.AsyncExecutableWrapper.execute(AsyncExecutableWrapper.java:139)
            at oracle.as.scheduler.rp.JavaSysExecWrapper$1.run(JavaSysExecWrapper.java:367)
            at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
            at oracle.security.jps.internal.jaas.AccActionExecutor.execute(AccActionExecutor.java:74)

  • Java.lang.ClassCastException serializing EJB

    Hi!
    I'm getting this exception while passing an EJB as a method parameter.
    RMI Exception passing by to client
    java.lang.ClassCastException: com.evermind.server.rmi.RemoteInvocationHandler
    at com.evermind.server.ejb.EJBOutputStream.replaceEJBObject(EJBOutputStream.java:53)
    at com.evermind.server.ejb.EJBOutputStream.replaceObject(EJBOutputStream.java:25)
    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:318)
    The Remote interface extends java.io.Serializable, and the Bean Class implement this interface (obviously). All fields in the Bean implementation class are also Serializable.
    I don't know why casting to com.evermind.server.rmi.RemoteInvocationHandler fails for this EJB, and I don't know if is the expected behavior.
    Any ideas?
    F.Catrin
    TUXPAN

    Hi!
    I'm getting this exception while passing an EJB as a method parameter.
    RMI Exception passing by to client
    java.lang.ClassCastException: com.evermind.server.rmi.RemoteInvocationHandler
    at com.evermind.server.ejb.EJBOutputStream.replaceEJBObject(EJBOutputStream.java:53)
    at com.evermind.server.ejb.EJBOutputStream.replaceObject(EJBOutputStream.java:25)
    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:318)
    The Remote interface extends java.io.Serializable, and the Bean Class implement this interface (obviously). All fields in the Bean implementation class are also Serializable.
    I don't know why casting to com.evermind.server.rmi.RemoteInvocationHandler fails for this EJB, and I don't know if is the expected behavior.
    Any ideas?
    F.Catrin
    TUXPAN

  • ArrayOfString gives a java.lang.ClassCastException

    Hi,
    I've got a .Net webservice and calling it using a java axis client. I've got a method that takes an int as a parameter and returns a String array and when I generated the classes using wsdl2java it created a class called ArrayOfString. When I call this method it executes fine for the first couple of times and then it starts giving a java.lang.ClassCastException, but when I restart Tomcat it works fine again for the first couple of times then it starts breaking again. This exception only happens on this method, other methods run fine.
    What exactly is wrong?
    Here is the exception:
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: java.lang.IllegalArgumentException: java.lang.ClassCastException@...
    faultActor:
    faultNode:
    faultDetail:
    {http://xml.apache.org/axis/}stackTrace:java.lang.IllegalArgumentException: java.lang.ClassCastException@...
    at org.apache.axis.encoding.ser.BeanPropertyTarget.set(BeanPropertyTarget.java:142)
    at org.apache.axis.encoding.DeserializerImpl.valueComplete(DeserializerImpl.java:249)
    at org.apache.axis.encoding.DeserializerImpl.endElement(DeserializerImpl.java:509)
    at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1083)
    at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:171)
    at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1140)
    at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:238)
    at org.apache.axis.message.RPCElement.getParams(RPCElement.java:386)
    at org.apache.axis.client.Call.invoke(Call.java:2402)
    at org.apache.axis.client.Call.invoke(Call.java:2301)
    at org.apache.axis.client.Call.invoke(Call.java:1758)
    at org.tempuri.ServiceSoapStub.getFields(ServiceSoapStub.java:729)
    at za.co.test.common.service.ServiceFacade.loadFields(ServiceFacade.java:131)
    at za.co.test.ca.MyServlet.processRequest(MyServlet.java:47)
    at za.co.test.ca.MyServlet.doGet(MyServlet.java:109)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2414)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700)
    at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
    at java.lang.Thread.run(Thread.java:534)
    {http://xml.apache.org/axis/}hostname:localhost
    java.lang.IllegalArgumentException: java.lang.ClassCastException@...
    at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
    at org.apache.axis.client.Call.invoke(Call.java:2405)
    at org.apache.axis.client.Call.invoke(Call.java:2301)
    at org.apache.axis.client.Call.invoke(Call.java:1758)
    at org.tempuri.ServiceSoapStub.getFields(ServiceSoapStub.java:729)
    at za.co.test.common.service.ServiceFacade.loadFields(ServiceFacade.java:131)
    at za.co.test.ca.MyServlet.processRequest(MyServlet.java:47)
    at za.co.test.ca.MyServlet.doGet(MyServlet.java:109)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2414)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700)
    at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
    at java.lang.Thread.run(Thread.java:534)
    Caused by: java.lang.IllegalArgumentException: java.lang.ClassCastException@...
    at org.apache.axis.encoding.ser.BeanPropertyTarget.set(BeanPropertyTarget.java:142)
    at org.apache.axis.encoding.DeserializerImpl.valueComplete(DeserializerImpl.java:249)
    at org.apache.axis.encoding.DeserializerImpl.endElement(DeserializerImpl.java:509)
    at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1083)
    at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:171)
    at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1140)
    at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:238)
    at org.apache.axis.message.RPCElement.getParams(RPCElement.java:386)
    at org.apache.axis.client.Call.invoke(Call.java:2402)
    ... 37 moreI've also discovered that when I call the method it reaches the .Net webservice and throws the exception when it's returning the results. I found this other exception in the logs,
    StandardManager[/axis] Session event listener threw exception
    java.lang.IllegalStateException: getAttribute: Session already invalidated
    at org.apache.catalina.session.StandardSession.getAttribute(StandardSession.java:953)
    at org.apache.catalina.session.StandardSessionFacade.getAttribute(StandardSessionFacade.java:171)
    at org.apache.axis.transport.http.AxisHTTPSessionListener.destroySession(AxisHTTPSessionListener.java:43)
    at org.apache.axis.transport.http.AxisHTTPSessionListener.sessionDestroyed(AxisHTTPSessionListener.java:72)
    at org.apache.catalina.session.StandardSession.expire(StandardSession.java:658)
    at org.apache.catalina.session.StandardSession.expire(StandardSession.java:607)
    at org.apache.catalina.session.StandardManager.processExpires(StandardManager.java:793)
    at org.apache.catalina.session.StandardManager.run(StandardManager.java:870)
    at java.lang.Thread.run(Thread.java:534)can these 2 exceptions be related?
    I'm running:
    java=1.4.2_04-b05
    axis1.2
    Tomcat 4.1.30
    Thanks in advance

    user13457082 wrote:
    But I can't isolate the offending code in a large libraryI'd start by isolating all the places where you have complex generic types.

  • StackTrace:java.lang.ClassCastException

    Hi all,
    I am trying to access a Web Service which is running on Axis. I am getting ClassCastException error. Client Stubs have been created by Axis WSDL2Java tool. Any help is highly appreciated.
    Exception in thread "main" AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: java.lang.ClassCastException
    faultActor:
    faultNode:
    faultDetail:
    {http://xml.apache.org/axis/}stackTrace:java.lang.ClassCastException
    at org.apache.axis.message.SOAPFaultBuilder.onEndChild(SOAPFaultBuilder.java:299)
    at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1090)
    at org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1403)
    at org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator.java:1550)
    at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1149)
    at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
    at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
    at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
    at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
    at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
    at org.apache.axis.client.Call.invoke(Call.java:2748)
    at org.apache.axis.client.Call.invoke(Call.java:2424)
    at org.apache.axis.client.Call.invoke(Call.java:2347)
    at org.apache.axis.client.Call.invoke(Call.java:1804)
    at org.openuri.www.Wsrefapiv1SoapStub.getProductCatalog(Wsrefapiv1SoapStub.java:350)
    at com.echostar.axis.LoadReferenceDataDev.getProductCatalog(LoadReferenceDataDev.java:1366)
    at com.echostar.axis.LoadReferenceDataDev.loadProducts(LoadReferenceDataDev.java:935)
    at com.echostar.axis.LoadReferenceDataDev.main(LoadReferenceDataDev.java:119)
    {http://xml.apache.org/axis/}hostname:ddsos01
    java.lang.ClassCastException
    at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:701)
    at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
    at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
    at org.apache.axis.client.Call.invoke(Call.java:2748)
    at org.apache.axis.client.Call.invoke(Call.java:2424)
    at org.apache.axis.client.Call.invoke(Call.java:2347)
    at org.apache.axis.client.Call.invoke(Call.java:1804)
    at org.openuri.www.Wsrefapiv1SoapStub.getProductCatalog(Wsrefapiv1SoapStub.java:350)
    at com.echostar.axis.LoadReferenceDataDev.getProductCatalog(LoadReferenceDataDev.java:1366)
    at com.echostar.axis.LoadReferenceDataDev.loadProducts(LoadReferenceDataDev.java:935)
    at com.echostar.axis.LoadReferenceDataDev.main(LoadReferenceDataDev.java:119)
    Caused by: java.lang.ClassCastException
    at org.apache.axis.message.SOAPFaultBuilder.onEndChild(SOAPFaultBuilder.java:299)
    at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1090)
    at org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1403)
    at org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator.java:1550)
    at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1149)
    at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
    at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
    at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
    ... 12 more
    Nagesh.

    <?xml version="1.0" encoding="utf-8"?>
    <!-- @editor-info:link autogen="false" source="" -->
    <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:conv="http://www.openuri.org/2002/04/soap/conversation/" xmlns:cw="http://www.openuri.org/2002/04/wsdl/conversation/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:jms="http://www.openuri.org/2002/04/wsdl/jms/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="http://www.openuri.org/EntitlementService" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" targetNamespace="http://www.openuri.org/EntitlementService">
    <types>
    <s:schema elementFormDefault="qualified" targetNamespace="http://www.openuri.org/EntitlementService" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:ent="http://www.openuri.org/EntitlementService">
    <s:element name="getEntitledParents">
    <s:complexType>
    <s:sequence>
    <s:element name="userName" type="s:string" minOccurs="0"/>
    <s:element name="feature" type="s:string" minOccurs="0"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="getEntitledParentsResponse">
    <s:complexType>
    <s:sequence>
    <s:element name="getEntitledParentsResult" type="ent:ArrayOfParent" minOccurs="0"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="ArrayOfParent" nillable="true" type="ent:ArrayOfParent"/>
    <s:element name="getEntitledAccounts">
    <s:complexType>
    <s:sequence>
    <s:element name="userName" type="s:string" minOccurs="0"/>
    <s:element name="feature" type="s:string" minOccurs="0"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="getEntitledAccountsResponse">
    <s:complexType>
    <s:sequence>
    <s:element name="getEntitledAccountsResult" type="ent:ArrayOfAccount" minOccurs="0"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="ArrayOfAccount" nillable="true" type="ent:ArrayOfAccount"/>
    <s:element name="isAccessibleAccount">
    <s:complexType>
    <s:sequence>
    <s:element name="username" type="s:string" minOccurs="0"/>
    <s:element name="feature" type="s:string" minOccurs="0"/>
    <s:element name="accountId" type="s:long"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="isAccessibleAccountResponse">
    <s:complexType>
    <s:sequence>
    <s:element name="isAccessibleAccountResult" type="s:boolean"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="boolean" type="s:boolean"/>
    <s:element name="getEntitledLegalEntities">
    <s:complexType>
    <s:sequence>
    <s:element name="userName" type="s:string" minOccurs="0"/>
    <s:element name="feature" type="s:string" minOccurs="0"/>
    <s:element name="parentId" type="s:long"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="getEntitledAccountsForParent">
    <s:complexType>
    <s:sequence>
    <s:element name="userName" type="s:string" minOccurs="0"/>
    <s:element name="feature" type="s:string" minOccurs="0"/>
    <s:element name="parentId" type="s:long"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="getEntitledAccountsForParentResponse">
    <s:complexType>
    <s:sequence>
    <s:element name="getEntitledAccountsForParentResult" type="ent:ArrayOfAccount" minOccurs="0"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="getPrimaryParent">
    <s:complexType>
    <s:sequence>
    <s:element name="userName" type="s:string" minOccurs="0"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="getPrimaryParentResponse">
    <s:complexType>
    <s:sequence>
    <s:element name="getPrimaryParentResult" type="ent:Parent" minOccurs="0"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="Parent" nillable="true" type="ent:Parent"/>
    <s:complexType name="ArrayOfParent">
    <s:sequence>
    <s:element name="Parent" type="ent:Parent" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
    </s:sequence>
    </s:complexType>
    <s:complexType name="Parent">
    <s:sequence>
    <s:element name="Id" type="s:long" minOccurs="0"/>
    <s:element name="Name" type="s:string" minOccurs="0"/>
    <s:element name="NumberOfInterestedItems" type="s:int"/>
    </s:sequence>
    </s:complexType>
    <s:complexType name="ArrayOfAccount">
    <s:sequence>
    <s:element name="Account" type="ent:Account" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
    </s:sequence>
    </s:complexType>
    <s:complexType name="Account">
    <s:sequence>
    <s:element name="LegalEntityId" type="s:long" minOccurs="0"/>
    <s:element name="SourceId" type="s:string" minOccurs="0"/>
    <s:element name="RegionId" type="s:long" minOccurs="0"/>
    <s:element name="ParentId" type="s:long" minOccurs="0"/>
    <s:element name="LegalEntityName" type="s:string" minOccurs="0"/>
    <s:element name="ParentName" type="s:string" minOccurs="0"/>
    <s:element name="ProductId" type="s:long" minOccurs="0"/>
    <s:element name="Id" type="s:long" minOccurs="0"/>
    <s:element name="Name" type="s:string" minOccurs="0"/>
    <s:element name="ProductName" type="s:string" minOccurs="0"/>
    </s:sequence>
    </s:complexType>
    </s:schema>
    </types>
    <message name="getEntitledParentsSoapIn">
    <part name="parameters" element="s0:getEntitledParents"/>
    </message>
    <message name="getEntitledParentsSoapOut">
    <part name="parameters" element="s0:getEntitledParentsResponse"/>
    </message>
    <message name="getEntitledAccountsSoapIn">
    <part name="parameters" element="s0:getEntitledAccounts"/>
    </message>
    <message name="getEntitledAccountsSoapOut">
    <part name="parameters" element="s0:getEntitledAccountsResponse"/>
    </message>
    <message name="isAccessibleAccountSoapIn">
    <part name="parameters" element="s0:isAccessibleAccount"/>
    </message>
    <message name="isAccessibleAccountSoapOut">
    <part name="parameters" element="s0:isAccessibleAccountResponse"/>
    </message>
    <message name="getEntitledLegalEntitiesSoapIn">
    <part name="parameters" element="s0:getEntitledLegalEntities"/>
    </message>
    <message name="getEntitledAccountsForParentSoapIn">
    <part name="parameters" element="s0:getEntitledAccountsForParent"/>
    </message>
    <message name="getEntitledAccountsForParentSoapOut">
    <part name="parameters" element="s0:getEntitledAccountsForParentResponse"/>
    </message>
    <message name="getPrimaryParentSoapIn">
    <part name="parameters" element="s0:getPrimaryParent"/>
    </message>
    <message name="getPrimaryParentSoapOut">
    <part name="parameters" element="s0:getPrimaryParentResponse"/>
    </message>
    <message name="getEntitledParentsHttpGetIn">
    <part name="userName" type="s:string"/>
    <part name="feature" type="s:string"/>
    </message>
    <message name="getEntitledParentsHttpGetOut">
    <part name="Body" element="s0:ArrayOfParent"/>
    </message>
    <message name="getEntitledAccountsHttpGetIn">
    <part name="userName" type="s:string"/>
    <part name="feature" type="s:string"/>
    </message>
    <message name="getEntitledAccountsHttpGetOut">
    <part name="Body" element="s0:ArrayOfAccount"/>
    </message>
    <message name="isAccessibleAccountHttpGetIn">
    <part name="username" type="s:string"/>
    <part name="feature" type="s:string"/>
    <part name="accountId" type="s:string"/>
    </message>
    <message name="isAccessibleAccountHttpGetOut">
    <part name="Body" element="s0:boolean"/>
    </message>
    <message name="getEntitledLegalEntitiesHttpGetIn">
    <part name="userName" type="s:string"/>
    <part name="feature" type="s:string"/>
    <part name="parentId" type="s:string"/>
    </message>
    <message name="getEntitledAccountsForParentHttpGetIn">
    <part name="userName" type="s:string"/>
    <part name="feature" type="s:string"/>
    <part name="parentId" type="s:string"/>
    </message>
    <message name="getEntitledAccountsForParentHttpGetOut">
    <part name="Body" element="s0:ArrayOfAccount"/>
    </message>
    <message name="getPrimaryParentHttpGetIn">
    <part name="userName" type="s:string"/>
    </message>
    <message name="getPrimaryParentHttpGetOut">
    <part name="Body" element="s0:Parent"/>
    </message>
    <message name="getEntitledParentsHttpPostIn">
    <part name="userName" type="s:string"/>
    <part name="feature" type="s:string"/>
    </message>
    <message name="getEntitledParentsHttpPostOut">
    <part name="Body" element="s0:ArrayOfParent"/>
    </message>
    <message name="getEntitledAccountsHttpPostIn">
    <part name="userName" type="s:string"/>
    <part name="feature" type="s:string"/>
    </message>
    <message name="getEntitledAccountsHttpPostOut">
    <part name="Body" element="s0:ArrayOfAccount"/>
    </message>
    <message name="isAccessibleAccountHttpPostIn">
    <part name="username" type="s:string"/>
    <part name="feature" type="s:string"/>
    <part name="accountId" type="s:string"/>
    </message>
    <message name="isAccessibleAccountHttpPostOut">
    <part name="Body" element="s0:boolean"/>
    </message>
    <message name="getEntitledLegalEntitiesHttpPostIn">
    <part name="userName" type="s:string"/>
    <part name="feature" type="s:string"/>
    <part name="parentId" type="s:string"/>
    </message>
    <message name="getEntitledAccountsForParentHttpPostIn">
    <part name="userName" type="s:string"/>
    <part name="feature" type="s:string"/>
    <part name="parentId" type="s:string"/>
    </message>
    <message name="getEntitledAccountsForParentHttpPostOut">
    <part name="Body" element="s0:ArrayOfAccount"/>
    </message>
    <message name="getPrimaryParentHttpPostIn">
    <part name="userName" type="s:string"/>
    </message>
    <message name="getPrimaryParentHttpPostOut">
    <part name="Body" element="s0:Parent"/>
    </message>
    <portType name="EntitlementServiceSoap">
    <operation name="getEntitledParents">
    <input message="s0:getEntitledParentsSoapIn"/>
    <output message="s0:getEntitledParentsSoapOut"/>
    </operation>
    <operation name="getEntitledAccounts">
    <input message="s0:getEntitledAccountsSoapIn"/>
    <output message="s0:getEntitledAccountsSoapOut"/>
    </operation>
    <operation name="isAccessibleAccount">
    <input message="s0:isAccessibleAccountSoapIn"/>
    <output message="s0:isAccessibleAccountSoapOut"/>
    </operation>
    <operation name="getEntitledLegalEntities">
    <input message="s0:getEntitledLegalEntitiesSoapIn"/>
    </operation>
    <operation name="getEntitledAccountsForParent">
    <input message="s0:getEntitledAccountsForParentSoapIn"/>
    <output message="s0:getEntitledAccountsForParentSoapOut"/>
    </operation>
    <operation name="getPrimaryParent">
    <input message="s0:getPrimaryParentSoapIn"/>
    <output message="s0:getPrimaryParentSoapOut"/>
    </operation>
    </portType>
    <portType name="EntitlementServiceHttpGet">
    <operation name="getEntitledParents">
    <input message="s0:getEntitledParentsHttpGetIn"/>
    <output message="s0:getEntitledParentsHttpGetOut"/>
    </operation>
    <operation name="getEntitledAccounts">
    <input message="s0:getEntitledAccountsHttpGetIn"/>
    <output message="s0:getEntitledAccountsHttpGetOut"/>
    </operation>
    <operation name="isAccessibleAccount">
    <input message="s0:isAccessibleAccountHttpGetIn"/>
    <output message="s0:isAccessibleAccountHttpGetOut"/>
    </operation>
    <operation name="getEntitledLegalEntities">
    <input message="s0:getEntitledLegalEntitiesHttpGetIn"/>
    </operation>
    <operation name="getEntitledAccountsForParent">
    <input message="s0:getEntitledAccountsForParentHttpGetIn"/>
    <output message="s0:getEntitledAccountsForParentHttpGetOut"/>
    </operation>
    <operation name="getPrimaryParent">
    <input message="s0:getPrimaryParentHttpGetIn"/>
    <output message="s0:getPrimaryParentHttpGetOut"/>
    </operation>
    </portType>
    <portType name="EntitlementServiceHttpPost">
    <operation name="getEntitledParents">
    <input message="s0:getEntitledParentsHttpPostIn"/>
    <output message="s0:getEntitledParentsHttpPostOut"/>
    </operation>
    <operation name="getEntitledAccounts">
    <input message="s0:getEntitledAccountsHttpPostIn"/>
    <output message="s0:getEntitledAccountsHttpPostOut"/>
    </operation>
    <operation name="isAccessibleAccount">
    <input message="s0:isAccessibleAccountHttpPostIn"/>
    <output message="s0:isAccessibleAccountHttpPostOut"/>
    </operation>
    <operation name="getEntitledLegalEntities">
    <input message="s0:getEntitledLegalEntitiesHttpPostIn"/>
    </operation>
    <operation name="getEntitledAccountsForParent">
    <input message="s0:getEntitledAccountsForParentHttpPostIn"/>
    <output message="s0:getEntitledAccountsForParentHttpPostOut"/>
    </operation>
    <operation name="getPrimaryParent">
    <input message="s0:getPrimaryParentHttpPostIn"/>
    <output message="s0:getPrimaryParentHttpPostOut"/>
    </operation>
    </portType>
    <binding name="EntitlementServiceSoap" type="s0:EntitlementServiceSoap">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
    <operation name="getEntitledParents">
    <soap:operation soapAction="http://www.openuri.org/EntitlementService/getEntitledParents" style="document"/>
    <input>
    <soap:body use="literal"/>
    </input>
    <output>
    <soap:body use="literal"/>
    </output>
    </operation>
    <operation name="getEntitledAccounts">
    <soap:operation soapAction="http://www.openuri.org/EntitlementService/getEntitledAccounts" style="document"/>
    <input>
    <soap:body use="literal"/>
    </input>
    <output>
    <soap:body use="literal"/>
    </output>
    </operation>
    <operation name="isAccessibleAccount">
    <soap:operation soapAction="http://www.openuri.org/EntitlementService/isAccessibleAccount" style="document"/>
    <input>
    <soap:body use="literal"/>
    </input>
    <output>
    <soap:body use="literal"/>
    </output>
    </operation>
    <operation name="getEntitledLegalEntities">
    <soap:operation soapAction="http://www.openuri.org/EntitlementService/getEntitledLegalEntities" style="document"/>
    <input>
    <soap:body use="literal"/>
    </input>
    </operation>
    <operation name="getEntitledAccountsForParent">
    <soap:operation soapAction="http://www.openuri.org/EntitlementService/getEntitledAccountsForParent" style="document"/>
    <input>
    <soap:body use="literal"/>
    </input>
    <output>
    <soap:body use="literal"/>
    </output>
    </operation>
    <operation name="getPrimaryParent">
    <soap:operation soapAction="http://www.openuri.org/EntitlementService/getPrimaryParent" style="document"/>
    <input>
    <soap:body use="literal"/>
    </input>
    <output>
    <soap:body use="literal"/>
    </output>
    </operation>
    </binding>
    <binding name="EntitlementServiceHttpGet" type="s0:EntitlementServiceHttpGet">
    <http:binding verb="GET"/>
    <operation name="getEntitledParents">
    <http:operation location="/getEntitledParents"/>
    <input>
    <http:urlEncoded/>
    </input>
    <output>
    <mime:mimeXml part="Body"/>
    </output>
    </operation>
    <operation name="getEntitledAccounts">
    <http:operation location="/getEntitledAccounts"/>
    <input>
    <http:urlEncoded/>
    </input>
    <output>
    <mime:mimeXml part="Body"/>
    </output>
    </operation>
    <operation name="isAccessibleAccount">
    <http:operation location="/isAccessibleAccount"/>
    <input>
    <http:urlEncoded/>
    </input>
    <output>
    <mime:mimeXml part="Body"/>
    </output>
    </operation>
    <operation name="getEntitledLegalEntities">
    <http:operation location="/getEntitledLegalEntities"/>
    <input>
    <http:urlEncoded/>
    </input>
    </operation>
    <operation name="getEntitledAccountsForParent">
    <http:operation location="/getEntitledAccountsForParent"/>
    <input>
    <http:urlEncoded/>
    </input>
    <output>
    <mime:mimeXml part="Body"/>
    </output>
    </operation>
    <operation name="getPrimaryParent">
    <http:operation location="/getPrimaryParent"/>
    <input>
    <http:urlEncoded/>
    </input>
    <output>
    <mime:mimeXml part="Body"/>
    </output>
    </operation>
    </binding>
    <binding name="EntitlementServiceHttpPost" type="s0:EntitlementServiceHttpPost">
    <http:binding verb="POST"/>
    <operation name="getEntitledParents">
    <http:operation location="/getEntitledParents"/>
    <input>
    <mime:content type="application/x-www-form-urlencoded"/>
    </input>
    <output>
    <mime:mimeXml part="Body"/>
    </output>
    </operation>
    <operation name="getEntitledAccounts">
    <http:operation location="/getEntitledAccounts"/>
    <input>
    <mime:content type="application/x-www-form-urlencoded"/>
    </input>
    <output>
    <mime:mimeXml part="Body"/>
    </output>
    </operation>
    <operation name="isAccessibleAccount">
    <http:operation location="/isAccessibleAccount"/>
    <input>
    <mime:content type="application/x-www-form-urlencoded"/>
    </input>
    <output>
    <mime:mimeXml part="Body"/>
    </output>
    </operation>
    <operation name="getEntitledLegalEntities">
    <http:operation location="/getEntitledLegalEntities"/>
    <input>
    <mime:content type="application/x-www-form-urlencoded"/>
    </input>
    </operation>
    <operation name="getEntitledAccountsForParent">
    <http:operation location="/getEntitledAccountsForParent"/>
    <input>
    <mime:content type="application/x-www-form-urlencoded"/>
    </input>
    <output>
    <mime:mimeXml part="Body"/>
    </output>
    </operation>
    <operation name="getPrimaryParent">
    <http:operation location="/getPrimaryParent"/>
    <input>
    <mime:content type="application/x-www-form-urlencoded"/>
    </input>
    <output>
    <mime:mimeXml part="Body"/>
    </output>
    </operation>
    </binding>
    <service name="EntitlementService">
    <port name="EntitlementServiceSoap" binding="s0:EntitlementServiceSoap">
    <soap:address location="http://nyeqtpuat1.us.db.com:7101/Webservices/EntitlementService.jws"/>
    </port>
    <port name="EntitlementServiceHttpGet" binding="s0:EntitlementServiceHttpGet">
    <http:address location="http://nyeqtpuat1.us.db.com:7101/Webservices/EntitlementService.jws"/>
    </port>
    <port name="EntitlementServiceHttpPost" binding="s0:EntitlementServiceHttpPost">
    <http:address location="http://nyeqtpuat1.us.db.com:7101/Webservices/EntitlementService.jws"/>
    </port>
    </service>
    </definitions>

  • Java.lang.ClassCastException

    My class CDRack is almost ready, but in the last method
    sortAlphabetically() there
    comes java.lang.ClassCastException. I found in the net
    http://java.sun.com/docs/books/tutorial/collections/algorithms/
    that with method Collections.sort(l) I can sort alphabetically.
    The code compiles, but when I run it with a tester program, it stops
    to ClassCastException in the almost last row.
    Something is wrong with Collections.sort(l) ?
    /** Class CDRack represents collections of compact discs. Discs are
    located in the rack in slots numbered from zero upwards. The discs are
    represented by Record objects and empty slots by null values. */
    public class CDRack extends Object {
      private Record[] mRecords;
      private int size;
    /**Creates a new, empty CD rack.
    Parameters:
    size - the size of the new rack, i.e. the number of slots it has */
          public CDRack(int size) {
              mRecords = new Record[size];
              this.size = size;
    /** "Organizes" the discs in the rack so that they will be located in
    consecutive slots starting at slot number zero, and any and all empty
    slots will be at the "end of the rack". After calling this method, the
    discs are in an undefined (i.e. arbitrary) order - the only thing this
    method guarantees is that there aren't any empty slots in between full
    ones.
          public void organize() {
              // Turn array into a list - more flexible
              List l = Arrays.asList(aanilevyt);
              // Remove all nulls from a copy of the list which supports  removal.
              l = new ArrayList(l);
              while (l.remove(null)) /*do nothing*/;
              // Clear the original array.
              for (int i = 0; i < mRecords.length; i++){
                   mRecords[i] = null;
              } // Put the non-nulls back.
              l.toArray(mRecords);
    /**"Organizes" the discs in the rack to the beginning of the rack (see
    the method organize) and sorts them in alphabetical order. Recordings
    by the same artist are placed in alphabetical order by disc name. */
        public void sortAlphabetically() {
              // Turn array into a list - more flexible
              List l = Arrays.asList(aanilevyt);
              // Remove all nulls from a copy of the list which supports  removal.
              l = new ArrayList(l);
              while (l.remove(null)) /*do nothing*/;
              // Clear the original array.
              for (int i = 0; i < mRecords.length; i++){
                   mRecords[i] = null;
              } // Put the non-nulls back.
              l.toArray(mRecords);
              Collections.sort(l);   // alphabetical order. THERE IS CLASSCASTEXCEPTION 
    }

    I have thought and thought but the sorting alphabetically doesnt work.
    I can't use Collections.sort and class Record doesnt implement Comparable(and I can't change it).
    One suggestion was that I could make my own class which implements Comparator. Could it be like this
    import java.util.*;
    public class AlphabeticComparator
    implements Comparator{
      public int compare(Object o1, Object o2) {
        String s1 = (String)o1;
        String s2 = (String)o2;
        return s1.toLowerCase().compareTo(
          s2.toLowerCase());
    }      But how an earth can I tell to CDRack class that it would
    use the class AlphabeticComparator?
    Somebody please save my Christmas!
    /** Class CDRack represents collections of compact discs. Discs are
    located in the rack in slots numbered from zero upwards. The discs are
    represented by Record objects and empty slots by null values. */
    public class CDRack extends Object {
      private Record[] mRecords;
      private int size;
    /**Creates a new, empty CD rack.
    Parameters:
    size - the size of the new rack, i.e. the number of slots it has */
          public CDRack(int size) {
              mRecords = new Record[size];
              this.size = size;
    /** "Organizes" the discs in the rack so that they will be located in
    consecutive slots starting at slot number zero, and any and all empty
    slots will be at the "end of the rack". After calling this method, the
    discs are in an undefined (i.e. arbitrary) order - the only thing this
    method guarantees is that there aren't any empty slots in between full
    ones.
          public void organize() {
              // Turn array into a list - more flexible
              List l = Arrays.asList(aanilevyt);
              // Remove all nulls from a copy of the list which supports  removal.
              l = new ArrayList(l);
              while (l.remove(null)) /*do nothing*/;
              // Clear the original array.
              for (int i = 0; i < mRecords.length; i++){
                   mRecords<i> = null;
              } // Put the non-nulls back.
              l.toArray(mRecords);
    /**"Organizes" the discs in the rack to the beginning of the rack (see
    the method organize) and sorts them in alphabetical order. Recordings
    by the same artist are placed in alphabetical order by disc name. */
        public void sortAlphabetically() {

  • Getting java.lang.ClassCastException

    Hi All,
    I am getting below exception when I am trying to establish HTTPS connection using
    Exception: java.lang.ClassCastException: HTTPClient.HttpURLConnection
    sometime my code works and some time it gives me this exception
    below is the exception which i traced in a log file
    2008/09/11 01:07:57->1_1210001776_0:1_1210001776_0URL CONNECTION CALLED https://netfundstest.com/fsu/router
    2008/09/11 01:07:57->1_1210001776_0:1_1210001776_0URL CONNECTION Created HTTPClient.HttpURLConnection[https://netfundstest.com/fsu/router]
    2008/09/11 01:07:57->1_1210001776_0:entered into else Block
    2008/09/11 01:07:57->1_1210001776_0:1_1210001776_0Error URLC Not a instance of HTTPS Connection: HTTPClient.HttpURLConnection[https://netfundstest.com/fsu/router]
    2008/09/11 01:07:57->1_1210001776_0:Exception: java.lang.ClassCastException: HTTPClient.HttpURLConnection
    In the success case when my HTTPS connection gets established I am getting following in the log file.
    2008/08/24 11:51:28->1_1210001776_0:1_1210001776_0URL CONNECTION CALLED https://netfunds.com/fsu/router
    2008/08/24 11:51:28->1_1210001776_0:1_1210001776_0URL CONNECTION Created com.sun.net.ssl.internal.www.protocol.https.DelegateHttpsURLConnection:https://netfunds.com/fsu/router
    Here is the code which I am using
    I am importing following packages in my code
    import java.security.*;
    import java.security.cert.*;
    //import javax.net.ssl.*;
    import javax.net.ssl.SSLSocket;
    import javax.net.ssl.SSLSocketFactory;
    import javax.net.ssl.HandshakeCompletedListener;
    import javax.net.ssl.HandshakeCompletedEvent;
    import javax.net.ssl.SSLSession;
    import java.net.*;
    import java.util.*;
    import java.io.*;
    //import javax.security.cert.*;
    import com.sun.net.ssl.*;
    //import org.apache.xalan.*;
    //import org.apache.xerces.*;
    import org.apache.xerces.dom.*;
    import org.apache.xml.serialize.*;
    import javax.xml.parsers.*;
    import org.w3c.dom.*;
    import oracle.xml.classgen.*;
    try
    System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol");
    System.setProperty("https.proxyHost",geProxy);
    System.setProperty("https.proxyPort",geProxyPort);
    Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
    int n=0;
    while(n<3)
    debugMsg(instCount+"URL CONNECTION CALLED " + fsuFrontEndURL);
    url = new URL(fsuFrontEndURL);
    /* Changed to include Tunnel code */
    urlc = url.openConnection();
    debugMsg(instCount+"URL CONNECTION Created " + urlc);
    if (urlc instanceof com.sun.net.ssl.HttpsURLConnection)
    debugMsg("entered into If Block");
    debugMsg("Value of n:" + n);
    ((com.sun.net.ssl.HttpsURLConnection) urlc).setSSLSocketFactory(new SSLTunnelSocketFactory(geProxy, geProxyPort));
    ((com.sun.net.ssl.HttpsURLConnection) urlc).setRequestMethod("POST");
    debugMsg("after If Block");
    break;
    else {
    try{
    debugMsg("entered into else Block");
    ((javax.net.ssl.HttpsURLConnection) urlc).setSSLSocketFactory(new SSLTunnelSocketFactory(geProxy, geProxyPort));
    ((javax.net.ssl.HttpsURLConnection) urlc).setRequestMethod("POST");
    debugMsg("after else Block");
    break;
    catch(Exception e) {
    debugMsg(instCount+"Error URLC Not a instance of HTTPS Connection: " + urlc);
    debugMsg("Exception: " + e);
    I am using JDK 1.5 and Apache/1.3.19
    Can anyone help me out ....?

    Hi ejp,
    thanks for ur response
    I did what ever u suggested ...but after compiling the code I am getting following errors
    cannot find symbol
    symbol : class X509TrustManager
    location: class EPCardXMLExchange
    class MyX509TrustManager implements X509TrustManager {
    ^
    EPCardXMLExchange.java:594: cannot find symbol
    symbol : class HostnameVerifier
    location: class EPCardXMLExchange
    class MyHostnameVerifier implements HostnameVerifier {
    ^
    EPCardXMLExchange.java:413: cannot find symbol
    symbol : class X509TrustManager
    location: class EPCardXMLExchange
    X509TrustManager tm = new MyX509TrustManager();
    ^
    EPCardXMLExchange.java:414: cannot find symbol
    symbol : class HostnameVerifier
    location: class EPCardXMLExchange
    HostnameVerifier hm = new MyHostnameVerifier();
    ^
    EPCardXMLExchange.java:429: cannot find symbol
    symbol : class KeyManagerFactory
    location: class EPCardXMLExchange
    KeyManagerFactory kmf;
    ^
    EPCardXMLExchange.java:430: cannot find symbol
    symbol : variable KeyManagerFactory
    location: class EPCardXMLExchange
    kmf = KeyManagerFactory.getInstance("SunX509");
    ^
    EPCardXMLExchange.java:440: cannot find symbol
    symbol : class TrustManager
    location: class EPCardXMLExchange
    TrustManager []tma = {tm};
    ^
    EPCardXMLExchange.java:441: cannot find symbol
    symbol : class SSLContext
    location: class EPCardXMLExchange
    SSLContext sc = SSLContext.getInstance("SSL");
    ^
    EPCardXMLExchange.java:441: cannot find symbol
    symbol : variable SSLContext
    location: class EPCardXMLExchange
    SSLContext sc = SSLContext.getInstance("SSL");
    ^
    EPCardXMLExchange.java:444: cannot find symbol
    symbol : variable HttpsURLConnection
    location: class EPCardXMLExchange
    HttpsURLConnection.setDefaultSSLSocketFactory(sf1);
    ^
    EPCardXMLExchange.java:445: cannot find symbol
    symbol : variable HttpsURLConnection
    location: class EPCardXMLExchange
    HttpsURLConnection.setDefaultHostnameVerifier(hm);
    ^
    EPCardXMLExchange.java:643: cannot find symbol
    symbol : class X509TrustManager
    location: class EPCardXMLExchange.SSLTunnelSocketFactory
    X509TrustManager tm = new MyX509TrustManager();
    ^
    EPCardXMLExchange.java:644: cannot find symbol
    symbol : class HostnameVerifier
    location: class EPCardXMLExchange.SSLTunnelSocketFactory
    HostnameVerifier hm = new MyHostnameVerifier();
    ^
    EPCardXMLExchange.java:658: cannot find symbol
    symbol : class KeyManagerFactory
    location: class EPCardXMLExchange.SSLTunnelSocketFactory
    KeyManagerFactory kmf;
    ^
    EPCardXMLExchange.java:659: cannot find symbol
    symbol : variable KeyManagerFactory
    location: class EPCardXMLExchange.SSLTunnelSocketFactory
    kmf = KeyManagerFactory.getInstance("SunX509");
    ^
    EPCardXMLExchange.java:669: cannot find symbol
    symbol : class TrustManager
    location: class EPCardXMLExchange.SSLTunnelSocketFactory
    TrustManager []tma = {tm};
    ^
    EPCardXMLExchange.java:670: cannot find symbol
    symbol : class SSLContext
    location: class EPCardXMLExchange.SSLTunnelSocketFactory
    SSLContext sc = SSLContext.getInstance("SSL");
    ^
    EPCardXMLExchange.java:670: cannot find symbol
    symbol : variable SSLContext
    location: class EPCardXMLExchange.SSLTunnelSocketFactory
    SSLContext sc = SSLContext.getInstance("SSL");
    ^
    EPCardXMLExchange.java:675: cannot find symbol
    symbol : variable HttpsURLConnection
    location: class EPCardXMLExchange.SSLTunnelSocketFactory
    HttpsURLConnection.setDefaultSSLSocketFactory(dfactory);
    ^
    EPCardXMLExchange.java:676: cannot find symbol
    symbol : variable HttpsURLConnection
    location: class EPCardXMLExchange.SSLTunnelSocketFactory
    HttpsURLConnection.setDefaultHostnameVerifier(hm);
    ^
    20 errors
    Can you tell me what I am getting errors ?

  • Java.lang.ClassCastException: com.sap.tc.webdynpro.progmodel.context.Modifi

    Hi All,
    when i try to run a sample adobe webDynpro application i am getting this error -
    1) One text filed on adobe form .
    2) Mode used is generate PDF
    Please look into it and through some light to resolve this .
    <b>Root Cause</b>
    The initial exception that caused the request to fail, was:
       java.lang.ClassCastException: com.sap.tc.webdynpro.progmodel.context.ModifiableSimpleType
        at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.InteractiveForm.modifyDataType(InteractiveForm.java:861)
        at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.InteractiveForm.afterHandleActionEvent(InteractiveForm.java:248)
        at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.afterApplicationModification(ClientApplication.java:1132)
        at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.afterApplicationModification(ClientComponent.java:887)
        at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doRespond(WindowPhaseModel.java:573)
        ... 27 more
    <u><b>Detailed Error Information
    Detailed Exception Chain</b></u>
    com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentRuntimeException: Failed to  GENERATEPDF
         at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.InteractiveForm.afterHandleActionEvent(InteractiveForm.java:396)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.afterApplicationModification(ClientApplication.java:1132)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.afterApplicationModification(ClientComponent.java:887)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doRespond(WindowPhaseModel.java:573)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:152)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:299)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:711)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:665)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:232)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:152)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java(Compiled Code))
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java(Compiled Code))
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java(Compiled Code))
         at java.security.AccessController.doPrivileged1(Native Method)
         at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code))
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java(Compiled Code))
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java(Compiled Code))
    Caused by: java.lang.ClassCastException: com.sap.tc.webdynpro.progmodel.context.ModifiableSimpleType
         at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.InteractiveForm.modifyDataType(InteractiveForm.java:861)
         at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.InteractiveForm.afterHandleActionEvent(InteractiveForm.java:248)
         ... 30 more
    Regards,
    Nanda

    Hi Narasimha,
    Please check the context node/attribute binding which used in webdynpro screen layouts.
    Hope it will helps
    Regards
    Arun Jaiswal

  • Java.lang.ClassCastException on SelectionListener of ADF table

    HI ,
    I am getting the following error when using the default SelectionListener in a af:table (#{bindings.address.collectionModel.makeCurrent})
    javax.el.ELException: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.util.List
    ADF_FACES-60097:For more information, please see the server's error log for an entry beginning with: ADF_FACES-60096:Server Exception during PPR, #1This happens when I click on a row of the table.
    Doing this programatically also causes the same issue.
    LOG:
    <Error> <oracle.adfinternal.view.faces.config.rich.RegistrationConfigurator> <BEA-000000> <ADF_FACES-60096:Server Exception during PPR, #1
    javax.el.ELException: javax.el.ELException: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.util.List
         at com.sun.el.parser.AstValue.invoke(Unknown Source)
         at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodExpression(UIXComponentBase.java:1300)
         at org.apache.myfaces.trinidad.component.UIXTable.broadcast(UIXTable.java:268)
         at oracle.adf.view.rich.component.UIXTable.broadcast(UIXTable.java:144)
         at oracle.adf.view.rich.component.rich.data.RichTable.broadcast(RichTable.java:402)
         at org.apache.myfaces.trinidad.component.UIXCollection.broadcast(UIXCollection.java:148)
         at org.apache.myfaces.trinidad.component.UIXTable.broadcast(UIXTable.java:271)
         at oracle.adf.view.rich.component.UIXTable.broadcast(UIXTable.java:144)
         at oracle.adf.view.rich.component.rich.data.RichTable.broadcast(RichTable.java:402)
         at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:879)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:312)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:185)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.bpel.services.workflow.client.worklist.util.WorkflowFilter.doFilter(WorkflowFilter.java:205)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.bpel.services.workflow.client.worklist.util.DisableUrlSessionFilter.doFilter(DisableUrlSessionFilter.java:70)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:175)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
    Caused By: javax.el.ELException: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.util.List
         at com.sun.el.parser.AstValue.invoke(Unknown Source)
         at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
         at org.ieee.internal.util.AdfUtils.invokeEL(AdfUtils.java:112)
         at org.ieee.internal.backing.fragments.EditValidationDetails.getSelectedAddress(EditValidationDetails.java:1550)
         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:597)
         at com.sun.el.parser.AstValue.invoke(Unknown Source)
         at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodExpression(UIXComponentBase.java:1300)
         at org.apache.myfaces.trinidad.component.UIXTable.broadcast(UIXTable.java:268)
         at oracle.adf.view.rich.component.UIXTable.broadcast(UIXTable.java:144)
         at oracle.adf.view.rich.component.rich.data.RichTable.broadcast(RichTable.java:402)
         at org.apache.myfaces.trinidad.component.UIXCollection.broadcast(UIXCollection.java:148)
         at org.apache.myfaces.trinidad.component.UIXTable.broadcast(UIXTable.java:271)
         at oracle.adf.view.rich.component.UIXTable.broadcast(UIXTable.java:144)
         at oracle.adf.view.rich.component.rich.data.RichTable.broadcast(RichTable.java:402)
         at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:879)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:312)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:185)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.bpel.services.workflow.client.worklist.util.WorkflowFilter.doFilter(WorkflowFilter.java:205)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.bpel.services.workflow.client.worklist.util.DisableUrlSessionFilter.doFilter(DisableUrlSessionFilter.java:70)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:175)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
    Caused By: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.util.List
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel.setRowKey(FacesCtrlHierBinding.java:633)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel.makeCurrent(FacesCtrlHierBinding.java:482)
         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:597)
         at com.sun.el.parser.AstValue.invoke(Unknown Source)
         at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
         at org.ieee.internal.util.AdfUtils.invokeEL(AdfUtils.java:112)
         at org.ieee.internal.backing.fragments.EditValidationDetails.getSelectedAddress(EditValidationDetails.java:1550)
         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:597)
         at com.sun.el.parser.AstValue.invoke(Unknown Source)
         at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodExpression(UIXComponentBase.java:1300)
         at org.apache.myfaces.trinidad.component.UIXTable.broadcast(UIXTable.java:268)
         at oracle.adf.view.rich.component.UIXTable.broadcast(UIXTable.java:144)
         at oracle.adf.view.rich.component.rich.data.RichTable.broadcast(RichTable.java:402)
         at org.apache.myfaces.trinidad.component.UIXCollection.broadcast(UIXCollection.java:148)
         at org.apache.myfaces.trinidad.component.UIXTable.broadcast(UIXTable.java:271)
         at oracle.adf.view.rich.component.UIXTable.broadcast(UIXTable.java:144)
         at oracle.adf.view.rich.component.rich.data.RichTable.broadcast(RichTable.java:402)
         at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:879)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:312)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:185)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.bpel.services.workflow.client.worklist.util.WorkflowFilter.doFilter(WorkflowFilter.java:205)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.bpel.services.workflow.client.worklist.util.DisableUrlSessionFilter.doFilter(DisableUrlSessionFilter.java:70)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:175)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
    >Thanks
    Thoom
    Edited by: User007 on Sep 7, 2011 10:02 AM
    Edited by: User007 on Sep 7, 2011 10:08 AM

    Hey found the issue..
    Actually i am trying to reset value of table from Bean. By default there is a value attached to table from bindings and setting another value from bean which was a POJO object.
    On selection of row the casting issue raising up.
    Issue is gone after removing that.
    Thanks...
    Edited by: User007 on Sep 7, 2011 10:41 AM

  • Oracle.apps.fnd.wf.bes.InvokerException: java.lang.ClassCastException

    Dear all expert,
    We are trying to use BES to invoke external webservice, and get the java class cast exception, anybody can help us please?
    steps:
    1. we need to call a webserivce with following wsdl :
    <?xml version="1.0" encoding="UTF-8" ?>
    - <wsdl:definitions name="BizStringWebServiceSkeletonService" targetNamespace="www.wisdom.sh.cn" xmlns:ns1="http://cxf.apache.org/bindings/xformat" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="www.wisdom.sh.cn" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    - <wsdl:types>
    - <xsd:schema attributeFormDefault="unqualified" elementFormDefault="unqualified" targetNamespace="www.wisdom.sh.cn" xmlns:tns="www.wisdom.sh.cn" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:element name="xfire" type="tns:xfire" />
    - <xsd:complexType name="xfire">
    - <xsd:sequence>
    <xsd:element minOccurs="0" name="arg0" type="xsd:string" />
    </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="xfireResponse" type="tns:xfireResponse" />
    - <xsd:complexType name="xfireResponse">
    - <xsd:sequence>
    <xsd:element minOccurs="0" name="return" type="xsd:string" />
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>
    </wsdl:types>
    - <wsdl:message name="xfire">
    <wsdl:part element="tns:xfire" name="parameters" />
    </wsdl:message>
    - <wsdl:message name="xfireResponse">
    <wsdl:part element="tns:xfireResponse" name="parameters" />
    </wsdl:message>
    - <wsdl:portType name="BizStringWebService">
    - <wsdl:operation name="xfire">
    <wsdl:input message="tns:xfire" name="xfire" />
    <wsdl:output message="tns:xfireResponse" name="xfireResponse" />
    </wsdl:operation>
    </wsdl:portType>
    - <wsdl:binding name="BizStringWebServiceSkeletonServiceSoapBinding" type="tns:BizStringWebService">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
    - <wsdl:operation name="xfire">
    <soap:operation soapAction="" style="document" />
    - <wsdl:input name="xfire">
    <soap:body use="literal" />
    </wsdl:input>
    - <wsdl:output name="xfireResponse">
    <soap:body use="literal" />
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    - <wsdl:service name="BizStringWebServiceSkeletonService">
    - <wsdl:port binding="tns:BizStringWebServiceSkeletonServiceSoapBinding" name="BizStringWebServiceSkeletonPort">
    <soap:address location="http://192.168.50.145:8080/wsdframework/services/biz/bizStringService.ws" />
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>
    it works fine when using the SOAPUI to test with payload:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wis="www.wisdom.sh.cn">
    <soapenv:Header/>
    <soapenv:Body>
    <wis:xfire>
    <arg0>100</arg0>
    </wis:xfire>
    </soapenv:Body>
    </soapenv:Envelope>
    2. we create a business event and subscription to invoice above webservice
    3. when we try to test this business event with RAISE in PL/SQL given event data (Write XML) as the same from soapui:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wis="www.wisdom.sh.cn">
    <soapenv:Header/>
    <soapenv:Body>
    <wis:xfire>
    <arg0>100</arg0>
    </wis:xfire>
    </soapenv:Body>
    </soapenv:Envelope>
    or :
    <ns1:xfire xmlns:ns1="www.wisdom.sh.cn">
    <arg0>100</arg0>
    </ns1:xfire>
    or:
    <xfire xmlns="www.wisdom.sh.cn">
    <arg0>100</arg0>
    </xfire>
    it both get error out:
    Error Message oracle.apps.fnd.wf.bes.InvokerException: java.lang.ClassCastException: org.apache.wsif.schema.ElementType cannot be cast to org.apache.wsif.schema.ComplexType
    Error Stack oracle.apps.fnd.wf.bes.InvokerException: java.lang.ClassCastException: org.apache.wsif.schema.ElementType cannot be cast to org.apache.wsif.schema.ComplexType at oracle.apps.fnd.wf.bes.WebServiceInvokerSubscription.invokeService(WebServiceInvokerSubscription.java:645) at oracle.apps.fnd.wf.bes.WebServiceInvokerSubscription.onBusinessEvent(WebServiceInvokerSubscription.java:241) at oracle.apps.fnd.wf.bes.EventDispatcher.executeSubscription(EventDispatcher.java:870) at oracle.apps.fnd.wf.bes.EventDispatcher.processSubscription(EventDispatcher.java:556) at oracle.apps.fnd.wf.bes.EventDispatcher.dispatch(EventDispatcher.java:335) at oracle.apps.fnd.wf.bes.AgentListenerProcessorNew.processMessage(AgentListenerProcessorNew.java:373) at oracle.apps.fnd.cp.gsc.SvcComponentProcessor.process(SvcComponentProcessor.java:659) at oracle.apps.fnd.cp.gsc.Processor.run(Processor.java:283) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.ClassCastException: org.apache.wsif.schema.ElementType cannot be cast to org.apache.wsif.schema.ComplexType at org.apache.wsif.util.WSIFUtils.findComplexType(WSIFUtils.java:1438) at org.apache.wsif.util.WSIFUtils.unWrapPart(WSIFUtils.java:1387) at com.oracle.oc4j.wsif.providers.jaxrpc.WSIFOperation_JaxRpc.unwrapSOAPParts(WSIFOperation_JaxRpc.java:920) at com.oracle.oc4j.wsif.providers.jaxrpc.WSIFOperation_JaxRpc.prepare(WSIFOperation_JaxRpc.java:1909) at com.oracle.oc4j.wsif.providers.jaxrpc.WSIFOperation_JaxRpc.invokeRequestResponseOperation(WSIFOperation_JaxRpc.java:1383) at com.oracle.oc4j.wsif.providers.jaxrpc.WSIFOperation_JaxRpc.executeRequestResponseOperation(WSIFOperation_JaxRpc.java:1177) at oracle.apps.fnd.wf.bes.WebServiceInvokerSubscription.invokeService(WebServiceInvokerSubscription.java:622) ... 8 more
    Any idea with what kind of event data should I give with this webservice call?
    Many thanks!
    Edited by: 929871 on 2013-2-19 下午11:58

    Hello,
    I suiggets you're using MSIE
    The Microsoft Java Machine has some differents with standart Sun JVM, so the "Diagram" applet doesn't work
    Install the Sun Java SDK v 1.4.1 or high. You may get it from http://java.sun.com
    Check the box "Use Java2 v.1.4...."
    in your IE: Tools->Properties->Addition properties->Java(Sun)

  • Facing java.lang.ClassCastException: DummyPagePhaseListener cannot be cast to oracle.adf.model.RegionController while am using master detail relationship by af:table

    Hi friends,
         We are in to new development in Oracle ADF and newbie to this technology.
         Created .jsf page and in corresponding pagedef, has "ControllerClass" with refering "DummyPagePhaseListener" and we have master-detail relationship using Viewlink(created using a SQL Query and  entity based view).
        Below exception raised when navigating from one  to another record in Master af:table. Any help will be appreciated. Thanks in Advance......
    java.lang.ClassCastException: DummyPagePhaseListener cannot be cast to oracle.adf.model.RegionController
    at oracle.adf.model.binding.DCBindingContainer.getRegionController(DCBindingContainer.java:5197)
    at oracle.adf.model.binding.DCBindingContainer.validate(DCBindingContainer.java:4247)
    at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.validateModelUpdates(PageLifecycleImpl.java:300)
    at oracle.adf.controller.faces.lifecycle.FacesPageLifecycle.validateModelUpdates(FacesPageLifecycle.java:70)
    at oracle.adf.controller.v2.lifecycle.Lifecycle$6.execute(Lifecycle.java:202)
    at oracle.adfinternal.controller.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:197)
    at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.access$600(ADFPhaseListener.java:23)
    at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$3.after(ADFPhaseListener.java:323)
    at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:75)
    at oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.afterPhase(ADFLifecyclePhaseListener.java:53)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:447)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:202)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:508)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

    Hi timo,
    Thanks for ur reply...
    we are using unbounded taskflow.
    In Controller class(page def file), we refered the class that implements PagePhaseListener
    The following override methods has created
      public void afterPhase(PagePhaseEvent pagePhaseEvent) {
    //In this area we used to read the session object file which is written and sent by another application(application to application navigate).
    If session object file exists,will allow the user to navigate into the requested page else will navigate in to login(security aspect).
      public void beforePhase(PagePhaseEvent pagePhaseEvent) {
    Is we used Controller class wrongly ???
    Is there any relationship with region controller???
    Mani
    [email protected]

Maybe you are looking for