ClassCastException in DocumentBuilderFactory on DB-Server

Hi,
I've deployed an application, that recieves a xml-String to parse.
It's running fine in JDeveloper but when I deploy it to the Database
I recieve the ClassCastException.
I figured out that it's thrown when I do:
DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
Whats the problem with the DocumentBuilderFactory?
Any Suggestions?
THX
Selim Keser

Have you loaded the same version of the Oracle XDK for Java into the database account where you're trying to run this?

Similar Messages

  • ClassCastException in oracle.sql.TRANSDUMP with parameterbinding

    We are facing with the following problem when we use Toplink DirectToFieldMapping on a field of java-type java.util.Calendar where the database-type is DATE.
    This exception ONLY occures if we use parameter-binding set to true in sessions.xml
    <should-bind-all-parameters>true</should-bind-all-parameters>
    trace:
    [java] java.lang.ClassCastException
    [java] at oracle.sql.TRANSDUMP.getTransitions(TRANSDUMP.java:41)
    [java] at oracle.sql.TIMEZONETAB.updateTable(TIMEZONETAB.java:456)
    [java] at oracle.sql.TIMESTAMPTZ.toBytes(TIMESTAMPTZ.java:1424)
    [java] at oracle.sql.TIMESTAMPTZ.toBytes(TIMESTAMPTZ.java:1614)
    [java] at oracle.sql.TIMESTAMPTZ.<init>(TIMESTAMPTZ.java:256)
    [java] at oracle.toplink.internal.platform.database.oracle.TIMESTAMPHelper.buildTIMESTAMPTZ(TIMESTAMPHelper.jav
    a:21)
    [java] at oracle.toplink.oraclespecific.Oracle9Platform.setParameterValueInDatabaseCall(Oracle9Platform.java:34
    5)
    [java] at oracle.toplink.internal.databaseaccess.ParameterizedSQLBatchWritingMechanism.prepareBatchStatements(P
    arameterizedSQLBatchWritingMechanism.java:171)
    [java] at oracle.toplink.internal.databaseaccess.ParameterizedSQLBatchWritingMechanism.executeBatchedStatements
    (ParameterizedSQLBatchWritingMechanism.java:135)
    [java] at oracle.toplink.internal.databaseaccess.ParameterizedSQLBatchWritingMechanism.appendCall(Parameterized
    SQLBatchWritingMechanism.java:78)
    [java] at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:621)
    [java] at oracle.toplink.publicinterface.UnitOfWork.executeCall(UnitOfWork.java:1400)
    [java] at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(CallQueryMechanism.java:131)
    [java] at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(CallQueryMechanism.java:115)
    [java] at oracle.toplink.internal.queryframework.CallQueryMechanism.insertObject(CallQueryMechanism.java:264)
    [java] at oracle.toplink.internal.queryframework.StatementQueryMechanism.insertObject(StatementQueryMechanism.j
    ava:171)
    [java] at oracle.toplink.internal.queryframework.StatementQueryMechanism.insertObject(StatementQueryMechanism.j
    ava:188)
    [java] at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.insertObjectForWrite(DatabaseQueryMecha
    nism.java:433)
    [java] at oracle.toplink.queryframework.InsertObjectQuery.executeCommit(InsertObjectQuery.java:45)
    [java] at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.performUserDefinedWrite(DatabaseQueryMe
    chanism.java:596)
    [java] at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.performUserDefinedInsert(DatabaseQueryM
    echanism.java:563)
    [java] at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.insertObjectForWriteWithChangeSet(Datab
    aseQueryMechanism.java:465)
    [java] at oracle.toplink.queryframework.WriteObjectQuery.executeCommitWithChangeSet(WriteObjectQuery.java:119)
    [java] at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.executeWriteWithChangeSet(DatabaseQuery
    Mechanism.java:258)
    [java] at oracle.toplink.queryframework.WriteObjectQuery.execute(WriteObjectQuery.java:51)
    [java] at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:493)
    [java] at oracle.toplink.publicinterface.Session.internalExecuteQuery(Session.java:1958)
    [java] at oracle.toplink.publicinterface.UnitOfWork.internalExecuteQuery(UnitOfWork.java:2255)
    [java] at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1086)
    [java] at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1038)
    [java] at oracle.toplink.internal.sessions.CommitManager.commitAllObjectsWithChangeSet(CommitManager.java:177)
    [java] at oracle.toplink.publicinterface.Session.writeAllObjectsWithChangeSet(Session.java:3223)
    [java] at oracle.toplink.publicinterface.UnitOfWork.commitToDatabase(UnitOfWork.java:1092)
    [java] at oracle.toplink.publicinterface.UnitOfWork.commitToDatabaseWithChangeSet(UnitOfWork.java:1137)
    [java] at oracle.toplink.publicinterface.UnitOfWork.issueSQLbeforeCompletion(UnitOfWork.java:2492)
    [java] at oracle.toplink.jts.oracle9i.Oracle9iJTSSynchronizationListener.beforeCompletion(Oracle9iJTSSynchroniz
    ationListener.java:75)
    [java] at com.evermind.server.ApplicationServerTransaction.callSynchronizationBeforeCompletion(ApplicationServe
    rTransaction.java:1404)
    [java] at com.evermind.server.ApplicationServerTransaction.beforeCompletion(ApplicationServerTransaction.java:1
    256)
    [java] at com.evermind.server.ApplicationServerTransaction.commit(ApplicationServerTransaction.java:680)
    [java] at com.evermind.server.ApplicationServerTransaction.end(ApplicationServerTransaction.java:1035)
    [java] at StandortFacade_StatelessSessionBeanWrapper28.create(StandortFacade_StatelessSessionBeanWrapper28.java
    :478)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [java] at java.lang.reflect.Method.invoke(Method.java:324)
    [java] at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:124)
    [java] at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:48)
    [java] at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java
    :192)
    [java] at java.lang.Thread.run(Thread.java:534)
    [java] at connection to localhost/127.0.0.1
    [java] at com.evermind.server.rmi.OrionRemoteException.receive(OrionRemoteException.java:130)
    [java] at com.evermind.server.rmi.RMIConnection.handleMethodInvocationResponse(RMIConnection.java:1738)
    [java] at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:453)
    [java] at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:333)
    [java] at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java
    :186)
    [java] at java.lang.Thread.run(Thread.java:534)
    [java] 2005-06-28 19:33:03,452 WARN de.dpag.move.stammdaten.cs.StandortDelegate - resetHome
    [java] 2005-06-28 19:33:03,452 ERROR de.dpag.move.client.stammdaten.model.standort.StandortEditDialogModel - Intern
    er Fehler auf dem Server!
    [java] de.dpag.move.infrastructure.exception.InternalException: com.evermind.server.rmi.OrionRemoteException: Trans
    action was rolled back: Error in transaction: java.lang.ClassCastException; nested exception is:
    [java] java.lang.ClassCastException
    [java] at de.dpag.move.stammdaten.cs.StandortDelegate.create(StandortDelegate.java:184)
    [java] at de.dpag.move.client.stammdaten.model.standort.StandortEditDialogModel.createDataAtServer(StandortEdit
    DialogModel.java:235)
    [java] at de.dpag.move.client.stammdaten.model.AbstractEditDialogModel.storeTO(AbstractEditDialogModel.java:124
    [java] at de.dpag.move.client.stammdaten.control.AbstractEditDialogController.okay(AbstractEditDialogController
    .java:127)
    [java] at de.dpag.move.client.common.AbstractDialogController.doApply(AbstractDialogController.java:714)
    [java] at de.dpag.move.client.common.AbstractDialogController$2.apply(AbstractDialogController.java:230)
    [java] at de.dpag.move.client.common.AbstractMDIDialog$4.actionPerformed(AbstractMDIDialog.java:326)
    [java] at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
    [java] at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
    [java] at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    [java] at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    [java] at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
    [java] at java.awt.Component.processMouseEvent(Component.java:5100)
    [java] at java.awt.Component.processEvent(Component.java:4897)
    [java] at java.awt.Container.processEvent(Container.java:1569)
    [java] at java.awt.Component.dispatchEventImpl(Component.java:3615)
    [java] at java.awt.Container.dispatchEventImpl(Container.java:1627)
    [java] at java.awt.Component.dispatchEvent(Component.java:3477)
    [java] at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
    [java] at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
    [java] at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
    [java] at java.awt.Container.dispatchEventImpl(Container.java:1613)
    [java] at java.awt.Window.dispatchEventImpl(Window.java:1606)
    [java] at java.awt.Component.dispatchEvent(Component.java:3477)
    [java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
    [java] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
    [java] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
    [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
    [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
    [java] at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    [java] Caused by: com.evermind.server.rmi.OrionRemoteException: Transaction was rolled back: Error in transaction:
    java.lang.ClassCastException; nested exception is:
    [java] java.lang.ClassCastException
    [java] at com.evermind.server.rmi.RMIConnection.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(RMIConnection.java:
    1602)
    [java] at com.evermind.server.rmi.RMIConnection.invokeMethod(RMIConnection.java:1553)
    [java] at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:55)
    [java] at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.
    java:22)
    [java] at com.evermind.server.ejb.StatelessSessionRemoteInvocationHandler.invoke(StatelessSessionRemoteInvocati
    onHandler.java:50)
    [java] at __Proxy5.create(Unknown Source)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [java] at java.lang.reflect.Method.invoke(Method.java:324)
    [java] at de.dpag.move.infrastructure.interceptor.MethodCallInterceptor.invoke(MethodCallInterceptor.java:31)
    [java] at de.dpag.move.infrastructure.interceptor.MoveMethodInvocation.proceed(MoveMethodInvocation.java:58)
    [java] at de.dpag.move.infrastructure.interceptor.DelegateAuthentifizierungInterceptor.invoke(DelegateAuthentif
    izierungInterceptor.java:70)
    [java] at de.dpag.move.infrastructure.interceptor.MoveMethodInvocation.proceed(MoveMethodInvocation.java:58)
    [java] at de.dpag.move.infrastructure.interceptor.DelegateExceptionHandlingInterceptor.invoke(DelegateException
    HandlingInterceptor.java:34)
    [java] at de.dpag.move.infrastructure.interceptor.MoveMethodInvocation.proceed(MoveMethodInvocation.java:58)
    [java] at de.dpag.move.infrastructure.interceptor.BadThreadInterceptor.invoke(BadThreadInterceptor.java:27)
    [java] at de.dpag.move.infrastructure.interceptor.MoveMethodInvocation.proceed(MoveMethodInvocation.java:58)
    [java] at de.dpag.move.infrastructure.interceptor.TraceInterceptor.invoke(TraceInterceptor.java:39)
    [java] at de.dpag.move.infrastructure.interceptor.MoveMethodInvocation.proceed(MoveMethodInvocation.java:58)
    [java] at de.dpag.move.stammdaten.cs.StandortDelegate.create(StandortDelegate.java:178)
    [java] ... 29 more
    [java] Caused by: java.lang.ClassCastException
    [java] at com.evermind.server.rmi.OrionRemoteException.receive(OrionRemoteException.java:130)
    [java] at com.evermind.server.rmi.RMIConnection.handleMethodInvocationResponse(RMIConnection.java:1738)
    [java] at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:453)
    [java] at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:333)
    [java] at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java
    :186)
    [java] at java.lang.Thread.run(Thread.java:534)
    we have made a debugging and can see that connection.prepareCall(...) answers an instance of com.evermind.sql.CallableStatementBCELProxy,
    which of course results in the ClassCastException showed above.
    the exception occurs at the class TRANSDUMP in the line where the explicit cast to OracleCallableStatement is done
    oracle.sql.TRANSDUMP is taken from ojdbc14.jar, the recommended one from http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc9201.html
    public class TRANSDUMP
    public TRANSDUMP()
    public static byte[] getTransitions(Connection connection, int i)
    throws SQLException
    OracleCallableStatement oraclecallablestatement = (OracleCallableStatement)connection.prepareCall("begin dbms_utility.get_tz_transitions(?,?); end;");
    NUMBER number = new NUMBER(i);
    oraclecallablestatement.setNUMBER(1, number);
    oraclecallablestatement.registerOutParameter(2, -2);
    oraclecallablestatement.execute();
    byte abyte0[] = oraclecallablestatement.getBytes(2);
    oraclecallablestatement.close();
    return abyte0;
    we use the following settings in our data-sources.xml
    <data-source
              name="FOODS"
              username="scott"
              password="tiger"
              location="jdbc/FOODS"          
              connection-driver="oracle.jdbc.driver.OracleDriver"
              class="com.evermind.sql.OrionCMTDataSource"
              url="jdbc:oracle:thin:@foo-db-1:1545:db1"
              inactivity-timeout="30"/>
    the used sessions.xml
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <!DOCTYPE toplink-configuration PUBLIC "-//Oracle Corp.//DTD TopLink Sessions 9.0.4//EN" "sessions_9_0_4.dtd">
    <toplink-configuration>
    <session>
    <name>datenpool</name>
    <project-xml>datenpool.xml</project-xml>
    <session-type>
    <server-session/>
    </session-type>
    <login>
    <datasource>jdbc/FOODS</datasource>
    <platform-class>oracle.toplink.oraclespecific.Oracle9Platform</platform-class>
    <uses-native-sequencing>true</uses-native-sequencing>
    <should-bind-all-parameters>true</should-bind-all-parameters>
    <uses-streams-for-binding>true</uses-streams-for-binding>
    <should-force-field-names-to-uppercase>true</should-force-field-names-to-uppercase>
    <uses-batch-writing>true</uses-batch-writing>
    <uses-external-connection-pool>true</uses-external-connection-pool>
    <uses-native-sql>true</uses-native-sql>
    <uses-external-transaction-controller>true</uses-external-transaction-controller>
    </login>
    <external-transaction-controller-class>oracle.toplink.jts.oracle9i.Oracle9iJTSExternalTransactionController</external-transaction-controller-class>
    <enable-logging>true</enable-logging>
    <logging-options/>
    </session>
    </toplink-configuration>
    environment:
    OC4J: 10.1.2
    Toplink: 9.0.4.5
    JDBC-Driver: ojdbc14.jar for Oracle9i (9.2.0.5) and the needed classes12dms.jar carried with the oc4j10.1.2.0 installation (jdbc\lib\classes12dms.jar.jar)
    Oracle9i: 9.2.0.5
    Is this a problem in our oc4j with toplink and datasource configuration or perhaps a real BUG ?
    Regards,
    Dirk

    Hi everyone, i'm developing an application based on Spring - TopLink combination, in a test enviroment using JDeveloper embedded OC4J, everything works fine, but when i try to deploy the application on OAS 10.1.3.1 (SOA suite), i get the next Exception
    07/12/13 18:13:39 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ToplinkSessionFactory' defined in class path resource [cu-generarprocesoseleccion-app-context.xml]: Initialization of bean failed; nested exception is java.lang.ClassCastException: oracle.toplink.jts.oracle9i.Oracle9iJTSExternalTransactionController
    07/12/13 18:13:39 java.lang.ClassCastException: oracle.toplink.jts.oracle9i.Oracle9iJTSExternalTransactionController
    07/12/13 18:13:39      at oracle.toplink.platform.server.ServerPlatformBase.initializeExternalTransactionController(ServerPlatformBase.java:194)
    07/12/13 18:13:39      at oracle.toplink.publicinterface.DatabaseSession.login(DatabaseSession.java:498)
    07/12/13 18:13:39      at org.springframework.orm.toplink.LocalSessionFactory.createSessionFactory(LocalSessionFactory.java:292)
    07/12/13 18:13:39      at org.springframework.orm.toplink.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:52)
    07/12/13 18:13:39      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1058)
    07/12/13 18:13:39      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:363)
    07/12/13 18:13:39      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
    07/12/13 18:13:39      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
    07/12/13 18:13:39      at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:269)
    07/12/13 18:13:39      at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:318)
    07/12/13 18:13:39      at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:81)
    07/12/13 18:13:39      at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:66)
    07/12/13 18:13:39      at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:57)
    07/12/13 18:13:39      at com.iqsoft.rrhh.cu_generarprocesoseleccion.business.ejb.GenerarProcesoSeleccionBean.ejbCreate(GenerarProcesoSeleccionBean.java:25)
    07/12/13 18:13:39      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    07/12/13 18:13:39      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    07/12/13 18:13:39      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    07/12/13 18:13:39      at java.lang.reflect.Method.invoke(Method.java:585)
    07/12/13 18:13:39      at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
    07/12/13 18:13:39      at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    07/12/13 18:13:39      at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
    07/12/13 18:13:39      at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    07/12/13 18:13:39      at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
    07/12/13 18:13:39      at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    07/12/13 18:13:39      at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
    07/12/13 18:13:39      at com.evermind.server.ejb.LifecycleManager.invokeLifecycleMethod(LifecycleManager.java:262)
    07/12/13 18:13:39      at com.evermind.server.ejb.LifecycleManager.invokeLifecycleMethod(LifecycleManager.java:252)
    07/12/13 18:13:39      at com.evermind.server.ejb.LifecycleManager.postConstruct(LifecycleManager.java:113)
    07/12/13 18:13:39      at com.evermind.server.ejb.StatelessSessionBeanPool.createContextImpl(StatelessSessionBeanPool.java:40)
    07/12/13 18:13:39      at com.evermind.server.ejb.BeanPool.createContext(BeanPool.java:418)
    07/12/13 18:13:39      at com.evermind.server.ejb.BeanPool.allocateContext(BeanPool.java:244)
    07/12/13 18:13:39      at com.evermind.server.ejb.StatelessSessionEJBHome.getContextInstance(StatelessSessionEJBHome.java:25)
    07/12/13 18:13:39      at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:86)
    07/12/13 18:13:39      at GenerarProcesoSeleccionEJB_LocalProxy_1heg7kp.registrarProcesoSeleccion(Unknown Source)
    07/12/13 18:13:39      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    07/12/13 18:13:39      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    07/12/13 18:13:39      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    07/12/13 18:13:39      at java.lang.reflect.Method.invoke(Method.java:585)
    07/12/13 18:13:39      at org.springframework.ejb.access.LocalSlsbInvokerInterceptor.invoke(LocalSlsbInvokerInterceptor.java:66)
    07/12/13 18:13:39      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
    07/12/13 18:13:39      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174)
    07/12/13 18:13:39      at $Proxy0.registrarProcesoSeleccion(Unknown Source)
    07/12/13 18:13:39      at com.iqsoft.rrhh.cu_generarprocesoseleccion.web.bean.RegistrarProcesoJSFBean.registrarProcesoSeleccion(RegistrarProcesoJSFBean.java:129)
    07/12/13 18:13:39      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    07/12/13 18:13:39      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    07/12/13 18:13:39      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    07/12/13 18:13:39      at java.lang.reflect.Method.invoke(Method.java:585)
    07/12/13 18:13:39      at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:132)
    07/12/13 18:13:39      at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:61)
    07/12/13 18:13:39      at javax.faces.component.UICommand.broadcast(UICommand.java:109)
    07/12/13 18:13:39      at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:184)
    07/12/13 18:13:39      at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:162)
    07/12/13 18:13:39      at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:350)
    07/12/13 18:13:39      at org.apache.myfaces.lifecycle.InvokeApplicationExecutor.execute(InvokeApplicationExecutor.java:32)
    07/12/13 18:13:39      at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:95)
    07/12/13 18:13:39      at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:70)
    07/12/13 18:13:39      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:139)
    07/12/13 18:13:39      at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    07/12/13 18:13:39      at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
    07/12/13 18:13:39      at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
    07/12/13 18:13:39      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    07/12/13 18:13:39      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
    07/12/13 18:13:39      at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
    07/12/13 18:13:39      at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
    07/12/13 18:13:39      at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
    07/12/13 18:13:39      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
    07/12/13 18:13:39      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
    07/12/13 18:13:39      at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    07/12/13 18:13:39      at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    07/12/13 18:13:39      at java.lang.Thread.run(Thread.java:595)
    As you can see, the problem seems to be the Oracle9iJTSExternalTransactionController class.
    hte sessions.xml, i'm using, is the next:
    <toplink-configuration>
    <session>
    <name>RRHHadmin</name>
    <project-xml>META-INF/IQSOFTDomain/rrhh-deployment-descriptor.xml</project-xml>
    <session-type>
    <server-session/>
    </session-type>
    <login>
    <datasource>jdbc/HrDS</datasource>
    <sequence-preallocation-size>50</sequence-preallocation-size>
    <sequence-table>SEQUENCE</sequence-table>
    <sequence-name-field>SEQ_NAME</sequence-name-field>
    <sequence-counter-field>SEQ_COUNT</sequence-counter-field>
    <uses-external-connection-pool>true</uses-external-connection-pool>
    <uses-external-transaction-controller>true</uses-external-transaction-controller>
    </login>
    <external-transaction-controller-class>oracle.toplink.jts.oracle9i.Oracle9iJTSExternalTransactionController</external-transaction-controller-class>
    </session>
    </toplink-configuration>
    I'm using TopLink 10, any help would be appreciated

  • ClassCastException when accessing WS

    I developed a small sample webservice using the JWSDP. It works fine when I invoke it's methods locally and deployment to Tomcat seems to work as well, at least the .war file is unpacked and I get the "A Web Service is installed at this URL......" page when I point my browser to the according URL.
    Now I wrote the simplest possible client to test the service's accessibility. It's supposed just to invoke a SOAP call to one of the methods and display the result, everything hard wired. First weird thing is, when I just use the service's URL, I get a SOAP Fault stating: "Missing port information". I can get past that if I add the port's name. But that doesn't do the job as I now get another SOAP Fault: "Internal server error". In the Tomcat logs, I found out a ClassCastException occurs somewhere in my service class. This is quite strange, because neither the service class nor the client contains any class cast.
    I read that duplicate jar files in the classpath are a common cause for ClassCastException, but not in this case, I made sure I do not have double jars included.
    Any suggestions where I could search for the error?
    Many thanks in advance!

    Hello..
    I am also getting the same ClassCastException , while accesing the deployed webservice from my client program.
    I have deployed a simple webservice which is developed accroding the the article from sun, and deployed it succesfully on Tomcat, (Tomcat has come with JWSDP1.1 installation).
    I can see the following message from the browser after deloying the webservice,
    A Web Service is installed at this URL.
    It supports the following ports: "SunRegPort" (http://localhost:8080/SunReg/jaxrpc/SunRegPort)
    I tested with Tomcat Admin manager (http://localhost:8080/manager )and observed that my service is running on tomcat server,
    BUT....
    while trying to access the webservice from the standalone java client program, I got the "java.rmi.ServerException: Internal Server Error (java.lang.ClassCastException: com.sun.xml.rpc.server.http.ServletEndpointContextImpl) "
    The server logfile is also populated with the same error mesg.
    I made sure that the proper classpath is setup, but stil.... :-(
    Here is my client code snippet:-----------------
    SunRegService_Impl s= new SunRegService_Impl();
              System.out.println("SunRegService_Impl :--> "+s);
              SunRegPort_Stub stub = (SunRegPort_Stub)(s.getSunRegPortPort());
    System.out.println("SunRegPort_Stub :--> "+stub);
    stub._setProperty(Stub.ENDPOINT_ADDRESS_PROPERTY,"http://localhost:8080/SunReg/jaxrpc/SunRegPort");
    System.out.println("Property set :Done ");
              Course course = (Course)stub.getCourseInfo();
    System.out.println("Course :--> "+course);
              cid= course.getCourseID();
              cinfo = course.getCourseDesc();
    Is there anything wrong with my code ? anybody has some idea how to get rid of this problem ?? Thanks in advance
    Rgds
    HariKrishna Maharshi
    [email protected]

  • ClassCastException in Struts

    I have seen similar problems like this but in my case the application works fine under Tomcat but throws this exception into the bowels of struts when I make a mapping.forward() call in my struts action class. I'm sure this is a AS7 configuration issue?
    Here is the stack trace:
    java.lang.ClassCastException
         at com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:142)
         at com.sun.web.server.J2EEInstanceListener.instanceEvent(J2EEInstanceListener.java:80)
         at org.apache.catalina.util.InstanceSupport.fireInstanceEvent(InstanceSupport.java:342)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:700)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:444)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:363)
         at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
         at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         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.securityfilter.filter.SecurityFilter.doFilter(SecurityFilter.java:182)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:265)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157)
         at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)

    Hi,
    did you solve that problem? I have it too. I use J2EE1.3.1 with struts,tiles, and securityfilter. The error occurs in FilterChain.doFilter(...) in SecurityFilter.
    Have no further ideas :-(
    regards holger

  • Eclipselink ClassCastException

    Hi,
    I already have checked for similar errors on this forums but no one seems to work. We are really stuck on this.
    We are developing JPA 1.0 / eclipselink 2.0 / struts web application project on WebLogic Integration 10g Release 3 (10.3.1.0) which I am pretty sure it is using WebLogic server 10.3.1.0, note that we don't need JPA 2.0 functionality. Unfortunatelly we are facing constant java.lang.ClassCastException errors when trying to access to an jpa entity. The strange thing is that on the first attempt all is working fine, but after modifing code or redeploying we get those ClassCastException errors (after restarting the server all is working fine again).
    We are using Application-Managed Entity Managers (we get our persistence context by using the createEntityManager method of javax.persistence.EntityManagerFactory). We are not using Container-Managed Entity Managers (@PersistenceContext
    EntityManager em), although we are interested in this solution too.
    ** The code **
    EntityManagerFactory emf = Persistence.createEntityManagerFactory("fwk");
    EntityManager em = emf.createEntityManager();
    TUsuario usuario = new TUsuario();     
    try {
    //query
    usuario = (TUsuario) query.getSingleResult();
    catch{...}
    ** persistence.xml **
    <persistence-unit name="fwk" transaction-type="JTA">
              <provider>
                   org.eclipse.persistence.jpa.PersistenceProvider
              </provider>
              <jta-data-source>fwk-des.DataSource</jta-data-source>
              <class>com.caprabo.panelFwk.integration.jpa.TUsuario</class>
              <properties>
                   <!-- managed transaction and enlisted configuration -->
                   <property name="javax.persistence.transactionType" value="JTA" />
                   <property name="connection.datasource" value="fwk-des.DataSource" />
                   <property name="eclipselink.jdbc.driver" value="oracle.jdbc.driver.OracleDriver" />
                   <property name="eclipselink.target-server" value="WebLogic_10" />
                   <property name="eclipselink.target-database" value="Oracle" />
                   <property name="eclipselink.logging.level" value="FINE"/>
                   <property name="eclipselink.persistence-context.reference-mode" value="WEAK"/>
              </properties>
         </persistence-unit>
    ** entity **
    package com.caprabo.panelFwk.integration.jpa;
    @Entity()
    @Table(name="T_USUARIO")
    public class TUsuario implements Serializable {
         //default serial version id, required for serializable classes.
         private static final long serialVersionUID = 1L;
         @Id()
         @Column(name="USUARIO_ID_PK", unique=true, nullable=false, length=8)
         private String usuarioIdPk;
    We have already tried this without any success:
    - eclipselink.jar javax.persistence_1.0.0.jar into manifest.mf
    - eclipselink.jar javax.persistence_1.0.0.ja into ear, or into project WebContent\WEB-INF\lib
    - modify weblogic-application.xml:
    <wls:prefer-application-packages>
              <wls:package-name>javax.persistence.*</wls:package-name>
              <wls:package-name>org.eclipse.persistence.*</wls:package-name>
    </wls:prefer-application-packages>
    Thanks
    Javier

    user13394432 wrote:
    I am getting classCastException but when i cross check the java class name and object retrived from the table's class name both are same Your question is non-specific.
    But as a guess from what is implied in the above...you are using class loaders and you are trying to use class from different class loaders as though they are the same class.
    That is not the case.
    And as stated this problem has nothing to do with JDBC.

  • Form processing error in weblogic

    Hi all
    'm having this really strange problem in weblogic. I've developed a small portlet for a propritery portal. The portal is an web application and runs on a j2ee servlet engine. On my development machine im using tomcat as the servlet container. On the deployment server the portal in which the portlet is going to be deployed is running on weblogic.
    So my problem is that on one of the jsp's in the portlet i have a form of type enctype="multipart/form-data" for uploading files to the server. On tomcat the form processing works fine (im using the MultiPartParser class from com.oreily package). But when I deploy the portlet in weblogic enviroment I get an exception when trying to process the abovementioned form.
    Top of the stack trace follows:
    2005-12-01 17:22:10,699 [ERROR]   Demo User       Navigation.jsp
                  - Original request not available
    javax.servlet.jsp.JspException: Original request not available
            at org.apache.taglibs.standard.tag.common.core.ImportSupport.acquireStri
    ng(ImportSupport.java:322)Cant find anything on this issue in the forums. Can anyone help??

    Upgrade to sp3.
    "Sreekanth" <[email protected]> wrote:
    >
    I am getting the following error in weblogic server. I am unable to understand
    the situation when this occurs. can anybody help. Sometimes i get the
    mentioned
    class as "weblogic.rmi.internal.MethodDescriptor"/ "weblogic.rjvm.ClassTableEntry"
    <Aug 7, 2003 2:48:31 AM IST> <Error> <ConnectionManager> <
    java.rmi.UnmarshalException: Incoming message header or abbreviation
    processing
    failed ; nested exception is:
    java.lang.ClassCastException: weblogic.rjvm.ClassTableEntry
    Start server side stack trace:
    java.rmi.UnmarshalException: Incoming message header or abbreviation
    processing
    failed ; nested exception is:
    java.lang.ClassCastException: weblogic.rjvm.ClassTableEntry
    java.lang.ClassCastException: weblogic.rjvm.ClassTableEntry
    at weblogic.rjvm.MsgAbbrevJVMConnection.readMsgAbbrevs(MsgAbbrevJVMConnection.java:182)
    at weblogic.rjvm.MsgAbbrevInputStream.readMessageContext(MsgAbbrevInputStream.java:154)
    at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:579)
    at weblogic.rjvm.t3.T3JVMConnection.dispatch(T3JVMConnection.java:454)
    at weblogic.socket.PosixSocketMuxer.deliverGoodNews(PosixSocketMuxer.java:456)
    at weblogic.socket.PosixSocketMuxer.processSockets(PosixSocketMuxer.java:385)
    at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:24)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    End server side stack trace
    ; nested exception is:
    java.lang.ClassCastException: weblogic.rjvm.ClassTableEntry

  • Patch error in Weblogic server9.1 & 9.2

    :Ohi,
    i am using weblogic 9.1 and 9.2 on windows xp.
    when i click smart update to get patches i am getting an error:
    "an unknown error occured upgrading the patch client ",
    when i have a BEA support id and password , i am unable to see error in log file of BEA home directory.
    can u plz give me the solution as i need to apply public patches .
    thanks in advance,
    sweta

    Upgrade to sp3.
    "Sreekanth" <[email protected]> wrote:
    >
    I am getting the following error in weblogic server. I am unable to understand
    the situation when this occurs. can anybody help. Sometimes i get the
    mentioned
    class as "weblogic.rmi.internal.MethodDescriptor"/ "weblogic.rjvm.ClassTableEntry"
    <Aug 7, 2003 2:48:31 AM IST> <Error> <ConnectionManager> <
    java.rmi.UnmarshalException: Incoming message header or abbreviation
    processing
    failed ; nested exception is:
    java.lang.ClassCastException: weblogic.rjvm.ClassTableEntry
    Start server side stack trace:
    java.rmi.UnmarshalException: Incoming message header or abbreviation
    processing
    failed ; nested exception is:
    java.lang.ClassCastException: weblogic.rjvm.ClassTableEntry
    java.lang.ClassCastException: weblogic.rjvm.ClassTableEntry
    at weblogic.rjvm.MsgAbbrevJVMConnection.readMsgAbbrevs(MsgAbbrevJVMConnection.java:182)
    at weblogic.rjvm.MsgAbbrevInputStream.readMessageContext(MsgAbbrevInputStream.java:154)
    at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:579)
    at weblogic.rjvm.t3.T3JVMConnection.dispatch(T3JVMConnection.java:454)
    at weblogic.socket.PosixSocketMuxer.deliverGoodNews(PosixSocketMuxer.java:456)
    at weblogic.socket.PosixSocketMuxer.processSockets(PosixSocketMuxer.java:385)
    at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:24)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    End server side stack trace
    ; nested exception is:
    java.lang.ClassCastException: weblogic.rjvm.ClassTableEntry

  • Problems accessing ejb 3.0 entity bean from project

    I have written some code using ejb 3.0 and was previously accessing the entity bean without problem when both ejbs and the accessing code were in the same project. However I have moved the accessing code into a different project within the same application and now when the code tries to accessing the entity bean I get the following error:
    com.colwilson.web.ingestion.IdentifiedException: java.lang.ClassCastException: __Proxy3
         at com.colwilson.web.ingestion.IngestionHandler.recordArrived(IngestionHandler.java:140)
         at com.colwilson.web.ingestion.IngestionHandler.main(IngestionHandler.java:52)
    Caused by: java.lang.ClassCastException: __Proxy3
         at com.evermind.server.ejb.StatelessSessionRemoteInvocationHandler.getFreshObject(StatelessSessionRemoteInvocationHandler.java:21)
         at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.getReplacementObject(RecoverableRemoteInvocationHandler.java:64)
         at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.handleRecovery(RecoverableRemoteInvocationHandler.java:41)
         at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:30)
         at com.evermind.server.ejb.StatelessSessionRemoteInvocationHandler.invoke(StatelessSessionRemoteInvocationHandler.java:43)
         at __Proxy1.mergeEntity(Unknown Source)
         at com.colwilson.web.ingestion.IngestionHandler.recordArrived(IngestionHandler.java:137)
         ... 1 more
    Now, of course I could move the code back into the same project, but as I understand it that is just the point of ejbs. I'm looking up the entity bean thus:
    final Context context = InitialContext();
    ingestionSessionEJB =
    (IngestionSessionEJB)context.lookup("IngestionSessionEJB");
    It may be true that I don't understand the way lookup works, but to be honest I can't find the docs that explain what I've got wrong.
    Please help.

    hi
    Double Click on the project which is goin to use the project which contains bean from the Application Navigator window. The project properties window will open. Choose the "Dependencies" item from left panel. click on the radio "User Project Settings" and select another project which contain ejb which you're goin to access...
    Best Of Luck
    Ravi A. Trivedi

  • Class cast excepiton

    Hi
    I have one button in the page, when we click that buttons it has display the records in the same page, but i am getting the class cast exception.
    Button name is "ViewDunsDetails"
    ## Detail 0 ##
    java.lang.ClassCastException: oracle.apps.xxodm.search.server.PartyAMImpl
         at oracle.apps.xxodm.search.webui.PartyToolbarCO.processFormRequest(PartyToolbarCO.java:103)
    Following is the code written by me:
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    SearchAMImpl wqm = (SearchAMImpl)pageContext.getApplicationModule(webBean); //here i am getting the error.............
    if (pageContext.getParameter("ViewDunsDetails")!=null)
    // SearchAMImpl wqm = (SearchAMImpl)pageContext.getApplicationModule(webBean);
    wqm.getMyWqPMVO1().executeQuery();
    if(wqm.getMyWqPMVO1().first()!=null)
    wqm.getMyWqPMVO1().first().setAttribute("DunsDetails",Boolean.TRUE);
    System.out.println("yug:"+wqm.getMyWqPMVO1().first().getAttribute("DunsDetails").toString());
    Row[] rows =wqm.getPartyResultsVO1().getFilteredRows("MFlag","Y");
    StringBuffer whereClause = new StringBuffer("");
    whereClause.append("PARTY_ID IN (");
    for(int i=0;i<rows.length;i++)
    PartyResultsVORowImpl myWqVORowImpl = (PartyResultsVORowImpl)rows;
    if(
    myWqVORowImpl!=null
    && "Y".equalsIgnoreCase(myWqVORowImpl.getDunsPotentialMatch())
    && myWqVORowImpl.getPartyId()!=null
    whereClause.append(myWqVORowImpl.getPartyId().toString());
    if(i+1<rows.length)
    whereClause.append(",");
    whereClause.append(")");
    System.out.println("suresh:PartyResults whereClause:"+whereClause.toString());
    wqm.getPartyResultsDuns(whereClause.toString());

    Hi Suresh
    test if VO is added with AM
    throw a exception to track the the correct AM added with page.
    try with
    OAViewObject vo =(OAViewObject) am.findViewObject("MyWqPMVO1");
    suresh in your code ,u have no where used PartyAMImpl ,have u checked with this
    Thanx
    Pratap

  • SampleCode for MQnWLS -- Unresolved:'wlsmqXAQCF'

    Hi,
              I try the Using MQSeries as a Transactional Resource Manager with Weblogic
              Server V. 1.0.
              When I excute the sample code: java MQClient t3://localhost:7001 "hihi"
              occurs some error-message.
              Have anybody know.... & how to fix....
              Thanks in advance.
              Best Regards,
              Arch.
              ** [My Client Side Error Message]
              java MQClient t3://localhost:7001 "hihi"
              sending: "hihi"
              Exception in thread "main" javax.naming.NameNotFoundException: Unable to
              resolve
              'wlsmqXAQCF' Resolved: '' Unresolved:'wlsmqXAQCF' ; remaining name
              'wlsmqXAQCF'
              <<no stack trace available>>
              --------------- nested within: ------------------
              weblogic.rmi.RemoteException: javax.naming.NameNotFoundException: Unable to
              reso
              lve 'wlsmqXAQCF' Resolved: '' Unresolved:'wlsmqXAQCF' ; remaining name
              'wlsmqXAQ
              CF'
              Start server side stack trace:
              javax.naming.NameNotFoundException: Unable to resolve 'wlsmqXAQCF' Resolved:
              Unresolved:'wlsmqXAQCF' ; remaining name 'wlsmqXAQCF'
              <<no stack trace available>>
              **[My Server-Side Error Message]
              <Notice> <WebLogicServer> <Started WebLogic Admin
              erver "myserver" for domain "mydomain" running in Production Mode>
              javax.naming.NameNotFoundException: Unable to resolve 'wlsmqXAQCF' Resolved:
              Unresolved:'wlsmqXAQCF' ; remaining name 'wlsmqXAQCF'
              <<no stack trace available>>
              

    I suggest posting your question to the transaction newsgroup - as that is
              where this sample code rose out of.
              Also, keep in mind that WL now has supported built-in bridge code in 6.1SP3 and
              7.0.
              "A.H" wrote:
              > Hi,
              >
              > I add a classpath for jndi file(.bindings) and the new error message
              > change...
              >
              > But I fellow the sample guide step by step..
              >
              > --
              > Thanks and Best Regards,
              > Arch.
              >
              > ** [My Client Side Error Message]
              > -------------------------------------------------------------------------
              > C:\example>java MQClient t3://localhost:7001 "hihi"
              > sending: "hihi"
              > Exception in thread "main" java.lang.ClassCastException:
              > javax.naming.Reference
              > at MQSeriesHelperImpl$JMSObject.<init>(MQSeriesHelperImpl.java:229)
              > at MQSeriesHelperImpl.bridgeWLS2MQS(MQSeriesHelperImpl.java:122)
              > at MQSeriesHelperImpl_WLSkel.invoke(Unknown Source)
              > at
              > weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:298)
              > at
              > weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
              > a:267)
              > at
              > weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
              > .java:22)
              > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
              > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              >
              > --------------- nested within: ------------------
              > weblogic.rmi.RemoteException: java.lang.ClassCastException:
              > javax.naming.Referen
              > ce
              >
              > Start server side stack trace:
              > java.lang.ClassCastException: javax.naming.Reference
              > at MQSeriesHelperImpl$JMSObject.<init>(MQSeriesHelperImpl.java:229)
              > at MQSeriesHelperImpl.bridgeWLS2MQS(MQSeriesHelperImpl.java:122)
              > at MQSeriesHelperImpl_WLSkel.invoke(Unknown Source)
              > at
              > weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:298)
              > at
              > weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
              > a:267)
              > at
              > weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
              > .java:22)
              > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
              > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              >
              > --------------- nested within: ------------------
              > weblogic.rmi.RemoteException: java.lang.ClassCastException:
              > javax.naming.Referen
              > ce
              > - with nested exception:
              > [java.lang.ClassCastException: javax.naming.Reference]
              > at MQSeriesHelperImpl.bridgeWLS2MQS(MQSeriesHelperImpl.java:138)
              > at MQSeriesHelperImpl_WLSkel.invoke(Unknown Source)
              > at
              > weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:298)
              > at
              > weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
              > a:267)
              > at
              > weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
              > .java:22)
              > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
              > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              > End server side stack trace
              >
              > - with nested exception:
              > [java.lang.ClassCastException: javax.naming.Reference
              >
              > Start server side stack trace:
              > java.lang.ClassCastException: javax.naming.Reference
              >         at MQSeriesHelperImpl$JMSObject.<init>(MQSeriesHelperImpl.java:229)
              >         at MQSeriesHelperImpl.bridgeWLS2MQS(MQSeriesHelperImpl.java:122)
              >         at MQSeriesHelperImpl_WLSkel.invoke(Unknown Source)
              >         at
              > weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:298)
              >         at
              > weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
              > a:267)
              >         at
              > weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
              > .java:22)
              >         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
              >         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              > End  server side stack trace
              > ]
              > at
              > weblogic.rmi.internal.BasicOutboundRequest.sendReceive(BasicOutboundR
              > equest.java:85)
              > at
              > weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:135)
              > at weblogic.rmi.internal.ProxyStub.invoke(ProxyStub.java:35)
              > at $Proxy1.bridgeWLS2MQS(Unknown Source)
              > at MQClient.main(MQClient.java:54)
              >
              > **[My Server-Side Error Message]
              > -------------------------------------------------------------------------
              > <Notice> <WebLogicServer> <Started WebLogic Admin S
              > erver "myserver" for domain "mydomain" running in Production Mode>
              > java.lang.ClassCastException: javax.naming.Reference
              > at MQSeriesHelperImpl$JMSObject.<init>(MQSeriesHelperImpl.java:229)
              > at MQSeriesHelperImpl.bridgeWLS2MQS(MQSeriesHelperImpl.java:122)
              > at MQSeriesHelperImpl_WLSkel.invoke(Unknown Source)
              > at
              > weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:298)
              > at
              > weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
              > a:267)
              > at
              > weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
              > .java:22)
              > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
              > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              

  • Ultra Search view document error

    I search against binary documents. I have results back but when I click on the url to view the document I have the error below. Any idea? Thanks.
    java.lang.ClassCastException: com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].sql.CallableStatementBCELProxy__com_evermind_sql_FilterCallableStatement__SQLBCELProxy
         at oracle.ultrasearch.query.DisplayUtil.displayTableUrl(DisplayUtil.java:148)
         at portal.ultrasearch._display._jspService(display.jsp:85)
         [SRC:/portal/ultrasearch/common_global_code.jsp:71]
         at com.orionserver[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Unknown Source)

    Hi Dave
    It seams that some privileges are missing... in Metalink I found the following info:
    Seems that you are hitting an internal database bug which has been fixed with 9.2.0.2 version.
    As a workaround, try to grant the SELECT privilege on SYS.DBMS_LOCK_ALLOCATED for user WKSYS
    Chris

  • Error in weblogic 6.1 sp2

    I am getting the following error in weblogic server. I am unable to understand
    the situation when this occurs. can anybody help. Sometimes i get the mentioned
    class as "weblogic.rmi.internal.MethodDescriptor"/ "weblogic.rjvm.ClassTableEntry"
    <Aug 7, 2003 2:48:31 AM IST> <Error> <ConnectionManager> <
    java.rmi.UnmarshalException: Incoming message header or abbreviation processing
    failed ; nested exception is:
    java.lang.ClassCastException: weblogic.rjvm.ClassTableEntry
    Start server side stack trace:
    java.rmi.UnmarshalException: Incoming message header or abbreviation processing
    failed ; nested exception is:
    java.lang.ClassCastException: weblogic.rjvm.ClassTableEntry
    java.lang.ClassCastException: weblogic.rjvm.ClassTableEntry
    at weblogic.rjvm.MsgAbbrevJVMConnection.readMsgAbbrevs(MsgAbbrevJVMConnection.java:182)
    at weblogic.rjvm.MsgAbbrevInputStream.readMessageContext(MsgAbbrevInputStream.java:154)
    at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:579)
    at weblogic.rjvm.t3.T3JVMConnection.dispatch(T3JVMConnection.java:454)
    at weblogic.socket.PosixSocketMuxer.deliverGoodNews(PosixSocketMuxer.java:456)
    at weblogic.socket.PosixSocketMuxer.processSockets(PosixSocketMuxer.java:385)
    at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:24)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    End server side stack trace
    ; nested exception is:
    java.lang.ClassCastException: weblogic.rjvm.ClassTableEntry

    Upgrade to sp3.
    "Sreekanth" <[email protected]> wrote:
    >
    I am getting the following error in weblogic server. I am unable to understand
    the situation when this occurs. can anybody help. Sometimes i get the
    mentioned
    class as "weblogic.rmi.internal.MethodDescriptor"/ "weblogic.rjvm.ClassTableEntry"
    <Aug 7, 2003 2:48:31 AM IST> <Error> <ConnectionManager> <
    java.rmi.UnmarshalException: Incoming message header or abbreviation
    processing
    failed ; nested exception is:
    java.lang.ClassCastException: weblogic.rjvm.ClassTableEntry
    Start server side stack trace:
    java.rmi.UnmarshalException: Incoming message header or abbreviation
    processing
    failed ; nested exception is:
    java.lang.ClassCastException: weblogic.rjvm.ClassTableEntry
    java.lang.ClassCastException: weblogic.rjvm.ClassTableEntry
    at weblogic.rjvm.MsgAbbrevJVMConnection.readMsgAbbrevs(MsgAbbrevJVMConnection.java:182)
    at weblogic.rjvm.MsgAbbrevInputStream.readMessageContext(MsgAbbrevInputStream.java:154)
    at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:579)
    at weblogic.rjvm.t3.T3JVMConnection.dispatch(T3JVMConnection.java:454)
    at weblogic.socket.PosixSocketMuxer.deliverGoodNews(PosixSocketMuxer.java:456)
    at weblogic.socket.PosixSocketMuxer.processSockets(PosixSocketMuxer.java:385)
    at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:24)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    End server side stack trace
    ; nested exception is:
    java.lang.ClassCastException: weblogic.rjvm.ClassTableEntry

  • GZIP compress

    Hi all:
    I want to compress the webservice communication using GZIP. One solution is to
    compress the HTTP communication when the client request have the "Accept-Encoding:
    gzip, deflate" header. Is it possible another solution in Bea?
    Can I compress the HTTP communication with the Bea Weblogic directly or I must
    use Apache+plug-in+mod_gzip?
    I test my server (version 7.0.2) and the response wasn´t compressed, I don't
    know if I have a bad configuration or that the Bea webserver doesn't support gzip
    compression.
    Thank you in advance

    Hi, we have the same need.
    I tried to use two servlet filters, one for decompression of the request and on
    for compression of the response. However, when I wrap the request I get ClassCastException
    from WebServiceService
    weblogic.webservice.server.servlet.WebServiceServlet.getWebService(WebServiceServlet.java:195)
    I think it casts it to a weblogic.servlet.internal.
    ServletRequestImpl, which wont work since the filter has wrapped it into another
    class.
    Any ideas of how to implement compression?
    I use WebLogic Server 8.1 SP1.
    "Miguel Angel" <[email protected]> wrote:
    >
    Hi all:
    I want to compress the webservice communication using GZIP. One solution
    is to
    compress the HTTP communication when the client request have the "Accept-Encoding:
    gzip, deflate" header. Is it possible another solution in Bea?
    Can I compress the HTTP communication with the Bea Weblogic directly
    or I must
    use Apache+plug-in+mod_gzip?
    I test my server (version 7.0.2) and the response wasn´t compressed,
    I don't
    know if I have a bad configuration or that the Bea webserver doesn't
    support gzip
    compression.
    Thank you in advance

  • Deployment of Java WebService with OC4J and JDeveloper

    Hi,
    I have created a sample java webservice following instructions given in one OTN tutorial (Developing, Deploying and Managing Web Services Using JDeveloper and Oracle Application Server ) at http://www.oracle.com/technology/obe/obe1013jdev/ws/wsandascontrol.htm
    We were able to create the webservice as shown in the tutorial but are facing problem while deploying it. The deployment message console in JDeveloper shows one "Deployment failed : ClassCastException".
    Some of the lines from Jdeveloper console are ::
    "Binding WebServices web-module for application JavaWebService-GetDates-WS to site default-web-site under context root JavaWebService-GetDates-context-root failed"
    I have gone through the stack trace in the OC4J console but couldnt figure out much out of it as all the culprit classes are from different jar files...Here is the Stack trace for your ref::
    06/05/05 19:07:12 WARNING: DeployerRunnable.run java.lang.ClassCastExceptionoracle.oc4j.admin.intern
    al.DeployerException: java.lang.ClassCastException
    at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:126)
    at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun(OC4JDeployerRunnabl
    e.java:52)
    at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(DeployerRunnable.java:81)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
    at java.lang.Thread.run(Thread.java:534)
    Caused by: java.lang.ClassCastException
    at oracle.j2ee.ws.server.deployment.WebServiceEndpoint.writeRuntimeXml(WebServiceEndpoint.ja
    va:660)
    at com.evermind.server.Application.getHttpApplication(Application.java:512)
    at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFr
    omReference(HttpSite.java:1975)
    at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.<init>(HttpSite.java:18
    94)
    at com.evermind.server.http.HttpSite.addHttpApplication(HttpSite.java:1591)
    at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:206)
    at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:96)
    at oracle.oc4j.admin.internal.ApplicationDeployer.bindWebApp(ApplicationDeployer.java:541)
    at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer.java:197)
    at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:93)
    ... 4 more
    2006-05-05 19:07:12.713 WARNING java.lang.ClassCastException
    I am using J2SE1.4.2_08 version. Earlier when I used java 5 version I got an error something like "Found runtime environment 49.0 expected environment is 48.0"....so I moved over to J2SE1.4.2_08 version but now I am getting above error as shown in the stack trace.
    Looking at the success message shown in the OTN tutorial it seems that only step that failed while this deployment is Initialization of servlet : Oracle.j2ee.ws.server.JAXRPCServlet for webapplication Webservices.

    Hi, thanks for your quick help.
    Shay, I agree with you that the specific tutorial uses JDeveloper 10.1.3 and I need to use JDK 5 to run that version of JDeveloper.
    Earlier when I used JDK 5 with JDeveloper 10.1.3, I got different error saying "Found runtime environment 49.0 expected environment is 48.0".....so I moved over to J2SE1.4.2_08 version but now I am getting an error as shown in the stack trace given in the very first post to this thread.

  • ClassCast exception on DestinationService

    I am receiving the following exception while trying to get an instance of the destination service object from within PI mapping.  The instance was retrieved as a local instance from jndi.  The exception text is:  java.lang.ClassCastException:
    com/sap/security/core/server/destinations/service/LocalDestinationServiceImpl incompatible with
    com/sap/security/core/server/destinations/service/LocalDestinationServiceImpl
    My question is, how can I determine which jar is used by PI and what might be returned by the context call to jndi of the j2ee engine?

    I have experienced it before.
    You are probably going to have to show us how you are using java.sql.Timestamp.

Maybe you are looking for

  • What is get and set methods of class

    I m new for OOP concept see this is my class, How this class will return values??? package poker     import com.smartfoxserver.v2.protocol.serialization.SerializableSFSType;     public class SeatInfo implements SerializableSFSType         private var

  • Creating protected PDF files

    Does anybody know if it is possible to protect your PDF files from the following when sent to an external party: - Creating a copy of the PDF by using 'Save As' or other methods - Stopping the PDF from being Screen grabbed or screen captured - Emaili

  • How do i quit bootcamp when it say "No bootable device -- insert boot disk and press any key"

    Hi, How do i quit bootcamp when it say "No bootable device -- insert boot disk and press any key" cuz i resraart my imac and the nextday i went to use my imac i just say mi that. Can you please help mi out ?

  • Video on streaming - Macbook pro very slow

    Hello. I have a problem with my macbook pro (version 10.6.8) for a week : when I watch video on streaming online my all computer go very slowly. What can I do to fix it? Thank you for the help!

  • How do i get photos off photoshop 8

    I no longer have the computer that photoshop 8 is on. How do I retieve my photos?