ClassCastException on DB Adapter

Hello Gurus - maybe some of You know solution.
Configuration: jDev 11.1.1.2, SOA Suite 11.1.1.2, WL 10.3.2
JDBC cofiguration: well, standard jdbc/XX1 with driver class name oracle.jdbc.xa.client.OracleXADataSource
DBAdapter outbound connection pool configuration (eis/DB/XX1):
dataSourceName     java.lang.String     jdbc/XX1
defaultNChar     java.lang.Boolean     false
platformClassName     java.lang.String     oracle.toplink.platform.database.Oracle9Platform
sequencePreallocationSize     java.lang.Integer     50
usesBatchWriting     java.lang.Boolean     false
usesNativeSequencing     java.lang.Boolean     true
usesSkipLocking     java.lang.Boolean     true
Yes yes - tried all kind of configuration possibilities with DB Adapter Update and WL/SOA restart.
So here is error I got:
DBActivationSpec Polling Exception.
Query name: [XXXX], Descriptor name: [XXXX]. Polling the database for events failed on this iteratio
n.
Caused by java.lang.ClassCastException: oracle.tip.adapter.db.DBConnectionFactory cannot be cast to javax.sql.DataSource.
This exception is considered not retriable, likely due to a modelling mistake. This polling process will shut down, unless the fault is r
elated to processing a particular row, in which case polling will continue but the row will be rejected (faulted).
at oracle.tip.adapter.db.exceptions.DBResourceException.createNonRetriableException(DBResourceException.java:650)
at oracle.tip.adapter.db.exceptions.DBResourceException.createEISException(DBResourceException.java:616)
at oracle.tip.adapter.db.exceptions.DBResourceException.inboundReadException(DBResourceException.java:457)
at oracle.tip.adapter.db.InboundWork.handleException(InboundWork.java:827)
at oracle.tip.adapter.db.InboundWork.run(InboundWork.java:468)
at oracle.tip.adapter.db.inbound.InboundWorkWrapper.run(InboundWorkWrapper.java:43)
at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run(WorkManagerExecutor.java:77)
at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManager.java:183)
at weblogic.work.DaemonWorkThread.run(DaemonWorkThread.java:30)
Caused by: java.lang.ClassCastException: oracle.tip.adapter.db.DBConnectionFactory cannot be cast to javax.sql.DataSource
at oracle.toplink.jndi.JNDIConnector.connect(JNDIConnector.java:107)
at oracle.toplink.jndi.JNDIConnector.connect(JNDIConnector.java:84)
at oracle.toplink.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:153)
at oracle.toplink.internal.databaseaccess.DatasourceAccessor.connectInternal(DatasourceAccessor.java:273)
at oracle.toplink.internal.databaseaccess.DatabaseAccessor.connectInternal(DatabaseAccessor.java:230)
at oracle.toplink.internal.databaseaccess.DatasourceAccessor.connect(DatasourceAccessor.java:350)
at oracle.toplink.internal.sessions.DatabaseSessionImpl.connect(DatabaseSessionImpl.java:230)
at oracle.toplink.internal.sessions.DatabaseSessionImpl.login(DatabaseSessionImpl.java:612)
at oracle.tip.adapter.db.inbound.SequencingPollingStrategy.initializePollingStrategy(SequencingPollingStrategy.java:170)
at oracle.tip.adapter.db.inbound.PollingStrategy.initialize(PollingStrategy.java:134)
at oracle.tip.adapter.db.inbound.AbstractSequencingPollingStrategy.initialize(AbstractSequencingPollingStrategy.java:201)
at oracle.tip.adapter.db.InboundWork.initPollingStrategy(InboundWork.java:384)
at oracle.tip.adapter.db.InboundWork.init(InboundWork.java:298)
at oracle.tip.adapter.db.InboundWork.run(InboundWork.java:464)
... 4 more
At the same time from another machine deployed stuff is working. There could not be any difference in machine configuration as error appear on server only.
Here are rest of files:
<adapter-config name="XXX" adapter="Database Adapter" wsdlLocation="XXX.wsdl" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
<connection-factory location="eis/DB/XX1" UIConnectionName="1234567890" adapterRef=""/>
<endpoint-activation portType="..." operation="...">
<activation-spec className="oracle.tip.adapter.db.DBActivationSpec">
<property name="DescriptorName" value="..."/>
<property name="QueryName" value="..."/>
<property name="MappingsMetaDataURL" value="...-or-mappings.xml"/>
<property name="PollingStrategy" value="ExternalSequencingPollingStrategy"/>
<property name="SequencingTable" value="123"/>
<property name="SequencingColumn" value="ID"/>
<property name="SequencingTableKeyColumn" value="123"/>
<property name="SequencingTableValueColumn" value="123"/>
<property name="SequencingTableKey" value="123"/>
<property name="SequencingDataSourceName" value="eis/DB/XX1"/>
<property name="SequencingIsXADataSource" value="true"/>
<property name="PollingInterval" value="300"/>
<property name="MaxRaiseSize" value="1"/>
<property name="MaxTransactionSize" value="10"/>
<property name="NumberOfThreads" value="1"/>
<property name="ReturnSingleResultSet" value="false"/>
</activation-spec>
</endpoint-activation>
</adapter-config>
mappings/properties files looks fine as well - no external or changed libraries referenced.
So the question is - what might me reasons for "Caused by java.lang.ClassCastException: oracle.tip.adapter.db.DBConnectionFactory cannot be cast to javax.sql.DataSource."

JDBC cofiguration: well, standard jdbc/XX1 with driver class name oracle.jdbc.xa.client.OracleXADataSource
DBAdapter outbound connection pool configuration (eis/DB/XX1):
dataSourceName java.lang.String jdbc/XX1You have created a XA datasource. In connection pool configuration, provide the data source JNDI name in property "XADataSourceName" instead of "dataSourceName"
Regards,
Anuj

Similar Messages

  • Siebel adapter / Create Outbound JCA Service / ClassCastException

    When generating a WSDL for a Siebel Business Service in Application Explorer by right-clicking and selecting Create Outbound JCA Service (Request/Response) I get a ClassCastException:
    java.lang.ClassCastException
    at com.iwaysoftware.af.container.tools.wsdl.IWayWSILBrowser.generateIWayWSDL(IWayWSILBrowser.java:130)
    at com.iwaysoftware.af.container.AEManager.generateWSDL(AEManager.java:753)
    at com.iwaysoftware.af.container.ae.AEComponentMessage.buildEXPORTWSDL(AEComponentMessage.java:170)
    at com.iwaysoftware.af.container.ae.AEComponentMessage.build(AEComponentMessage.java:79)
    at com.iwaysoftware.af.container.ae.AEComponentMessage.<init>(AEComponentMessage.java:51)
    at com.iwaysoftware.af.container.AEManager.dispatch(AEManager.java:134)
    at com.iwaysoftware.af.container.IWAFContainer.dispatchAERequest(IWAFContainer.java:601)
    at com.ibi.afjca.cci.IWAFInteraction.execIWAE(IWAFInteraction.java:273)
    at com.ibi.afjca.cci.IWAFInteraction.exec(IWAFInteraction.java:155)
    at com.ibi.afjca.cci.IWAFInteraction.execute(IWAFInteraction.java:93)
    at com.iwaysoftware.iwae.common.JCATransport.execute(JCATransport.java:205)
    at com.iwaysoftware.iwae.common.AdapterClient.generateWSDL(AdapterClient.java:437)
    at com.ibi.bse.gui.ExportWSDLDialog.saveWSDL(ExportWSDLDialog.java:335)
    at com.ibi.bse.gui.ExportWSDLDialog.okButtonActionPerformed(ExportWSDLDialog.java:298)
    at com.ibi.bse.gui.ExportWSDLDialog.access$000(ExportWSDLDialog.java:20)
    at com.ibi.bse.gui.ExportWSDLDialog$1.actionPerformed(ExportWSDLDialog.java:274)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
    at java.awt.Component.processMouseEvent(Component.java:5100)
    at java.awt.Component.processEvent(Component.java:4897)
    at java.awt.Container.processEvent(Container.java:1569)
    at java.awt.Component.dispatchEventImpl(Component.java:3615)
    at java.awt.Container.dispatchEventImpl(Container.java:1627)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
    at java.awt.Container.dispatchEventImpl(Container.java:1613)
    at java.awt.Window.dispatchEventImpl(Window.java:1606)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:141)
    at java.awt.Dialog$1.run(Dialog.java:540)
    at java.awt.Dialog.show(Dialog.java:561)
    at com.ibi.bse.ComponentNodeData.actionPerformed(ComponentNodeData.java:411)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113)
    at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)
    at java.awt.Component.processMouseEvent(Component.java:5100)
    at java.awt.Component.processEvent(Component.java:4897)
    at java.awt.Container.processEvent(Container.java:1569)
    at java.awt.Component.dispatchEventImpl(Component.java:3615)
    at java.awt.Container.dispatchEventImpl(Container.java:1627)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
    at java.awt.Container.dispatchEventImpl(Container.java:1613)
    at java.awt.Window.dispatchEventImpl(Window.java:1606)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    Any ideas?
    Cheers,
    Morten

    Hi Manoj,
    Here is stack trace:
    java.lang.ClassCastException: com.ibi.adapter.siebelaf.RPCSiebServiceMethod
    at com.iwaysoftware.af.container.tools.wsdl.IWayWSILBrowser.generateIWayWSDL(IWayWSILBrowser.java:130)
    at com.iwaysoftware.af.container.AEManager.generateWSDL(AEManager.java:753)
    at com.iwaysoftware.af.container.ae.AEComponentMessage.buildEXPORTWSDL(AEComponentMessage.java:170)
    at com.iwaysoftware.af.container.ae.AEComponentMessage.build(AEComponentMessage.java:79)
    at com.iwaysoftware.af.container.ae.AEComponentMessage.<init>(AEComponentMessage.java:51)
    at com.iwaysoftware.af.container.AEManager.dispatch(AEManager.java:134)
    at com.iwaysoftware.af.container.IWAFContainer.dispatchAERequest(IWAFContainer.java:601)
    at com.ibi.afjca.cci.IWAFInteraction.execIWAE(IWAFInteraction.java:273)
    at com.ibi.afjca.cci.IWAFInteraction.exec(IWAFInteraction.java:155)
    at com.ibi.afjca.cci.IWAFInteraction.execute(IWAFInteraction.java:93)
    at com.iwaysoftware.iwae.common.JCATransport.execute(JCATransport.java:205)
    at com.iwaysoftware.iwae.common.AdapterClient.generateWSDL(AdapterClient.java:437)
    at com.ibi.bse.gui.ExportWSDLDialog.saveWSDL(ExportWSDLDialog.java:335)
    at com.ibi.bse.gui.ExportWSDLDialog.okButtonActionPerformed(ExportWSDLDialog.java:298)
    at com.ibi.bse.gui.ExportWSDLDialog.access$000(ExportWSDLDialog.java:20)
    at com.ibi.bse.gui.ExportWSDLDialog$1.actionPerformed(ExportWSDLDialog.java:274)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
    at java.awt.Component.processMouseEvent(Component.java:5517)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
    at java.awt.Component.processEvent(Component.java:5282)
    at java.awt.Container.processEvent(Container.java:1966)
    at java.awt.Component.dispatchEventImpl(Component.java:3984)
    at java.awt.Container.dispatchEventImpl(Container.java:2024)
    at java.awt.Component.dispatchEvent(Component.java:3819)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
    at java.awt.Container.dispatchEventImpl(Container.java:2010)
    at java.awt.Window.dispatchEventImpl(Window.java:1791)
    at java.awt.Component.dispatchEvent(Component.java:3819)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
    at java.awt.Dialog$1.run(Dialog.java:535)
    at java.awt.Dialog$2.run(Dialog.java:565)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Dialog.show(Dialog.java:563)
    at com.ibi.bse.ComponentNodeData.actionPerformed(ComponentNodeData.java:411)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1051)
    at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1092)
    at java.awt.Component.processMouseEvent(Component.java:5517)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
    at java.awt.Component.processEvent(Component.java:5282)
    at java.awt.Container.processEvent(Container.java:1966)
    at java.awt.Component.dispatchEventImpl(Component.java:3984)
    at java.awt.Container.dispatchEventImpl(Container.java:2024)
    at java.awt.Component.dispatchEvent(Component.java:3819)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
    at java.awt.Container.dispatchEventImpl(Container.java:2010)
    at java.awt.Window.dispatchEventImpl(Window.java:1791)
    at java.awt.Component.dispatchEvent(Component.java:3819)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

  • Using DB Adapter to execute a custom SQL sequence

    Hello everyone, First of all happy 2013
    I've done with Jdeveloper using DB Adapter to execute a custom SQL statement, has been very simple, then the code JCA integrate it into OSB OESP PS3, and have successfully deployed, then did a testing from the console of OSB
    "Before Configure a DataSource and a Connection Factory for Db Adapter"
    I have seen that I have a casting error, but do not understand why, is a single number which I hope to run the following code sequence:
    SELECT
    MYSEQUENCE.NEXTVAL@DBLINK_EXAMPLE
    FROM dual
    thanks in advance
    >>>>>THIS IS MY LOG:
    Request Document      
         <soapenv:Envelope      xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
         <soap:Header      xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
         </soap:Header>
         <soapenv:Body>
         <sec:DB_ADAPTER_EXAMPLEInput      xmlns:sec="http://xmlns.oracle.com/pcbpel/adapter/db/DB_ADAPTER_EXAMPLE"/>
         </soapenv:Body>
         </soapenv:Envelope>
    Response Document      
    The call resulted in an error: Failed outgoing call JCA service with application error, excepción: com.bea.wli.sb.transports.jca.JCATransportException: oracle.tip.adapter.sa.api.JCABindingException: oracle.tip.adapter.sa.impl.fw.ext.org.collaxa.thirdparty.apache.wsif.WSIFException: servicebus:/WSDL/PR_SISII/JCA/DB_ADAPTER_EXAMPLE [ DB_ADAPTER_EXAMPLE_ptt::DB_ADAPTER_EXAMPLE(DB_ADAPTER_EXAMPLEInput_msg,DB_ADAPTER_EXAMPLEOutputCollection) ] - WSIF JCA Execute of operation 'DB_ADAPTER_EXAMPLE' failed due to: Could not create / access the TopLink session.
    This session is used to connect to the data store.
    caused by: java.lang.ClassCastException: oracle.tip.adapter.db.DBConnectionFactory cannot be cast to javax.sql.DataSource.
    ; nested exception is:
    BINDING.JCA-11622
    Could not create / access the TopLink session.
    This session is used to connect to the data store.
    caused by: java.lang.ClassCastException: oracle.tip.adapter.db.DBConnectionFactory cannot be cast to javax.sql.DataSource.
    You may need to configure the connection settings in the deployment descriptor (DbAdapter.rar # META-INF/weblogic-ra.xml) and restart the server. This exception is considered not recoverable, probably due to a modeling error.
    com.bea.wli.sb.transports.jca.JCATransportException: oracle.tip.adapter.sa.api.JCABindingException: oracle.tip.adapter.sa.impl.fw.ext.org.collaxa.thirdparty.apache.wsif.WSIFException: servicebus:/WSDL/PR_SISII/JCA/DB_ADAPTER_EXAMPLE [ DB_ADAPTER_EXAMPLE_ptt::DB_ADAPTER_EXAMPLE(DB_ADAPTER_EXAMPLEInput_msg,DB_ADAPTER_EXAMPLEOutputCollection) ] - WSIF JCA Execute of operation 'DB_ADAPTER_EXAMPLE' failed due to: No se ha podido crear/acceder a la sesión de TopLink.
    This session is used to connect to the data store.
    caused by: java.lang.ClassCastException: oracle.tip.adapter.db.DBConnectionFactory cannot be cast to javax.sql.DataSource.
    ; nested exception is:
    BINDING.JCA-11622
    Could not create / access the TopLink session. This session is used to connect to the data store.
    caused by: java.lang.ClassCastException: oracle.tip.adapter.db.DBConnectionFactory cannot be cast to javax.sql.DataSource.
    You may need to configure the connection settings in the deployment descriptor (DbAdapter.rar # META-INF/weblogic-ra.xml) and restart the server. This exception is considered not recoverable, probably due to a modeling error.
    at com.bea.wli.sb.transports.jca.binding.JCATransportOutboundOperationBindingServiceImpl.invoke(JCATransportOutboundOperationBindingServiceImpl.java:155)
    at com.bea.wli.sb.transports.jca.JCATransportEndpoint.sendRequestResponse(JCATransportEndpoint.java:209)
    at com.bea.wli.sb.transports.jca.JCATransportEndpoint.send(JCATransportEndpoint.java:170)
    at com.bea.wli.sb.transports.jca.JCATransportProvider.sendMessageAsync(JCATransportProvider.java:598)
    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.bea.wli.sb.transports.Util$1.invoke(Util.java:83)
    at $Proxy140.sendMessageAsync(Unknown Source)
    at com.bea.wli.sb.transports.LoadBalanceFailoverListener.sendMessageAsync(LoadBalanceFailoverListener.java:148)
    at com.bea.wli.sb.transports.LoadBalanceFailoverListener.sendMessageToServiceAsync(LoadBalanceFailoverListener.java:603)
    at com.bea.wli.sb.transports.LoadBalanceFailoverListener.sendMessageToService(LoadBalanceFailoverListener.java:538)
    at com.bea.wli.sb.transports.TransportManagerImpl.sendMessageToService(TransportManagerImpl.java:558)
    at com.bea.wli.sb.transports.TransportManagerImpl.sendMessageAsync(TransportManagerImpl.java:426)
    at com.bea.wli.sb.test.service.ServiceMessageSender.send0(ServiceMessageSender.java:380)
    at com.bea.wli.sb.test.service.ServiceMessageSender.access$000(ServiceMessageSender.java:79)
    at com.bea.wli.sb.test.service.ServiceMessageSender$1.run(ServiceMessageSender.java:137)
    at com.bea.wli.sb.test.service.ServiceMessageSender$1.run(ServiceMessageSender.java:135)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
    at com.bea.wli.sb.security.WLSSecurityContextService.runAs(WLSSecurityContextService.java:55)
    at com.bea.wli.sb.test.service.ServiceMessageSender.send(ServiceMessageSender.java:140)
    at com.bea.wli.sb.test.service.ServiceProcessor.invoke(ServiceProcessor.java:454)
    at com.bea.wli.sb.test.TestServiceImpl.invoke(TestServiceImpl.java:172)
    at com.bea.wli.sb.test.client.ejb.TestServiceEJBBean.invoke(TestServiceEJBBean.java:167)
    at com.bea.wli.sb.test.client.ejb.TestService_sqr59p_EOImpl.__WL_invoke(Unknown Source)
    at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
    at com.bea.wli.sb.test.client.ejb.TestService_sqr59p_EOImpl.invoke(Unknown Source)
    at com.bea.wli.sb.test.client.ejb.TestService_sqr59p_EOImpl_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:174)
    at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:345)
    at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
    at com.bea.wli.sb.test.client.ejb.TestService_sqr59p_EOImpl_1034_WLStub.invoke(Unknown Source)
    at com.bea.alsb.console.test.TestServiceClient.invoke(TestServiceClient.java:174)
    at com.bea.alsb.console.test.actions.DefaultRequestAction.invoke(DefaultRequestAction.java:117)
    at com.bea.alsb.console.test.actions.DefaultRequestAction.execute(DefaultRequestAction.java:70)
    at com.bea.alsb.console.test.actions.ServiceRequestAction.execute(ServiceRequestAction.java:143)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
    at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.access$201(PageFlowRequestProcessor.java:97)
    at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor$ActionRunner.execute(PageFlowRequestProcessor.java:2044)
    at org.apache.beehive.netui.pageflow.interceptor.action.internal.ActionInterceptors.wrapAction(ActionInterceptors.java:91)
    at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processActionPerform(PageFlowRequestProcessor.java:2116)
    at com.bea.alsb.console.common.base.SBConsoleRequestProcessor.processActionPerform(SBConsoleRequestProcessor.java:91)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
    at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processInternal(PageFlowRequestProcessor.java:556)
    at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.process(PageFlowRequestProcessor.java:853)
    at com.bea.alsb.console.common.base.SBConsoleRequestProcessor.process(SBConsoleRequestProcessor.java:191)
    at org.apache.beehive.netui.pageflow.AutoRegisterActionServlet.process(AutoRegisterActionServlet.java:631)
    at org.apache.beehive.netui.pageflow.PageFlowActionServlet.process(PageFlowActionServlet.java:158)
    at com.bea.console.internal.ConsoleActionServlet.process(ConsoleActionServlet.java:262)
    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
    at com.bea.console.internal.ConsoleActionServlet.doGet(ConsoleActionServlet.java:134)
    at com.bea.alsb.console.common.base.SBConsoleActionServlet.doGet(SBConsoleActionServlet.java:49)
    at org.apache.beehive.netui.pageflow.PageFlowUtils.strutsLookup(PageFlowUtils.java:1199)
    at org.apache.beehive.netui.pageflow.PageFlowUtils.strutsLookup(PageFlowUtils.java:1129)
    at com.bea.portlet.adapter.scopedcontent.ScopedContentCommonSupport.executeAction(ScopedContentCommonSupport.java:687)
    at com.bea.portlet.adapter.scopedcontent.ScopedContentCommonSupport.processActionInternal(ScopedContentCommonSupport.java:142)
    at com.bea.portlet.adapter.scopedcontent.StrutsStubImpl.processAction(StrutsStubImpl.java:76)
    at com.bea.portlet.adapter.NetuiActionHandler.raiseScopedAction(NetuiActionHandler.java:111)
    at com.bea.netuix.servlets.controls.content.NetuiContent.raiseScopedAction(NetuiContent.java:181)
    at com.bea.netuix.servlets.controls.content.NetuiContent.raiseScopedAction(NetuiContent.java:167)
    at com.bea.netuix.servlets.controls.content.NetuiContent.handlePostbackData(NetuiContent.java:225)
    at com.bea.netuix.nf.ControlLifecycle$2.visit(ControlLifecycle.java:180)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:324)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
    at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:130)
    at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:395)
    at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:361)
    at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:352)
    at com.bea.netuix.nf.Lifecycle.runInbound(Lifecycle.java:184)
    at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:159)
    at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:388)
    at com.bea.netuix.servlets.manager.UIServlet.doPost(UIServlet.java:258)
    at com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:199)
    at com.bea.netuix.servlets.manager.SingleFileServlet.service(SingleFileServlet.java:251)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.AsyncInitServlet.service(AsyncInitServlet.java:130)
    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.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: oracle.tip.adapter.sa.api.JCABindingException: oracle.tip.adapter.sa.impl.fw.ext.org.collaxa.thirdparty.apache.wsif.WSIFException: servicebus:/WSDL/PR_SISII/JCA/DB_ADAPTER_EXAMPLE [ DB_ADAPTER_EXAMPLE_ptt::DB_ADAPTER_EXAMPLE(DB_ADAPTER_EXAMPLEInput_msg,DB_ADAPTER_EXAMPLEOutputCollection) ] - WSIF JCA Execute of operation 'DB_ADAPTER_EXAMPLE' failed due to: Could not create / access the TopLink session.
    This session is used to connect to the data store.
    Caused by: java.lang.ClassCastException: can not be cast to oracle.tip.adapter.db.DBConnectionFactory javax.sql.DataSource.; nested exception is:
    BINDING.JCA-11622
    Could not create / access the TopLink session.
    This session is used to connect to the data store.
    Caused by: java.lang.ClassCastException: can not be cast to oracle.tip.adapter.db.DBConnectionFactory javax.sql.DataSource.
    You may need to configure the connection settings in the deployment descriptor (DbAdapter.rar # META-INF/weblogic-ra.xml) and restart the server. This exception is considered not recoverable, probably due to a modeling error.

    Caused by: java.lang.ClassCastException: can not be cast to oracle.tip.adapter.db.DBConnectionFactory javax.sql.DataSource.While creating the outbound connection pool in DBAdapter, make sure that you are providing the JNDI name of data-source (for example jdbc/aaaaa) in field XADataSourceName (if data-source is XA) or in field dataSourceName (if data-source is non-xa). It seems you are providing the JNDI of outbound connection pool (for example eis/DB/aaaaa) itself in the above settings.
    Regards,
    Anuj

  • Attunity Tuxedo Adapter

    Hi,
    we are using Tuxedo BDTA (Bi-directional Tuxedo Adapter) for some time to connect our BPEL processes with Tuxedo.
    Now we want to do the same thing with EJB 3.0. And hier is the source code:
    Context context;
    ConnectionFactory connectionFactory;
    Connection connection;
    Interaction interaction;
    System.out.println("Getting initial context");
    context = new InitialContext();
    System.out.println("lookup eis/legacy/TUX_MTA");
    connectionFactory = (ConnectionFactory) context.lookup("eis/legacy/TUX_MTA");
    System.out.println("Getting attu connection");
    connection = connectionFactory.getConnection();
    System.out.println("Getting interaction");
    interaction = connection.createInteraction();
    String routing = "1";
    String target = "ADS_IF20";
    String payload = "<xml><author>el2_sm</author>";
    System.out.println("Creating attunity spec");
    AttuInteractionSpec spec = new AttuInteractionSpec("SMBK_MTA", InteractionSpec.SYNC_SEND_RECEIVE, 60);
    System.out.println("Getting record factory");
    RecordFactory recordFactory = connectionFactory.getRecordFactory();
    System.out.println("Create mapped record");
    MappedRecord input = recordFactory.createMappedRecord(target);
    input.put(ROUTING_INST, "1");
    input.put(ROUTING_DIS, target);
    input.put(FI_DATUM, payload);
    System.out.println("Calling service " + target);
    Object output = interaction.execute(spec, input);
    System.out.println("Terminating interaction");
    interaction.close();
    System.out.println("Closing connection");
    connection.close();
    evrything works until executing the interaction, which ended with the following exception:
    Internal Server Error (Caught exception while handling request: oracle.oc4j.rmi.OracleRemoteException: java.lang.ClassCastException: com.attunity.adapter.core.CoreMappedRecord; nested exception is:
         java.lang.ClassCastException: com.attunity.adapter.core.CoreMappedRecord)
    Can somebody tell me, what is the problem here. I tried with AttuConnection and other Attu classes but it did not help.
    The documentation "Oracle® Application Server Adapters for Tuxedo User's Guide" for 10.1.3.4 does not contain any usable or complete example.
    thanks in advance,
    Sasa

    Hi,
    we are using Tuxedo BDTA (Bi-directional Tuxedo Adapter) for some time to connect our BPEL processes with Tuxedo.
    Now we want to do the same thing with EJB 3.0. And hier is the source code:
    Context context;
    ConnectionFactory connectionFactory;
    Connection connection;
    Interaction interaction;
    System.out.println("Getting initial context");
    context = new InitialContext();
    System.out.println("lookup eis/legacy/TUX_MTA");
    connectionFactory = (ConnectionFactory) context.lookup("eis/legacy/TUX_MTA");
    System.out.println("Getting attu connection");
    connection = connectionFactory.getConnection();
    System.out.println("Getting interaction");
    interaction = connection.createInteraction();
    String routing = "1";
    String target = "ADS_IF20";
    String payload = "<xml><author>el2_sm</author>";
    System.out.println("Creating attunity spec");
    AttuInteractionSpec spec = new AttuInteractionSpec("SMBK_MTA", InteractionSpec.SYNC_SEND_RECEIVE, 60);
    System.out.println("Getting record factory");
    RecordFactory recordFactory = connectionFactory.getRecordFactory();
    System.out.println("Create mapped record");
    MappedRecord input = recordFactory.createMappedRecord(target);
    input.put(ROUTING_INST, "1");
    input.put(ROUTING_DIS, target);
    input.put(FI_DATUM, payload);
    System.out.println("Calling service " + target);
    Object output = interaction.execute(spec, input);
    System.out.println("Terminating interaction");
    interaction.close();
    System.out.println("Closing connection");
    connection.close();
    evrything works until executing the interaction, which ended with the following exception:
    Internal Server Error (Caught exception while handling request: oracle.oc4j.rmi.OracleRemoteException: java.lang.ClassCastException: com.attunity.adapter.core.CoreMappedRecord; nested exception is:
         java.lang.ClassCastException: com.attunity.adapter.core.CoreMappedRecord)
    Can somebody tell me, what is the problem here. I tried with AttuConnection and other Attu classes but it did not help.
    The documentation "Oracle® Application Server Adapters for Tuxedo User's Guide" for 10.1.3.4 does not contain any usable or complete example.
    thanks in advance,
    Sasa

  • Invoke a FTP "Get File" operation throws java.lang.ClassCastException:

    Hi there,
    I am working on a very simple sample project that will pull the file from a ftp site. I create a partner link with FTP adpater with "Get File" operation.
    When I deploy and run the SIMPLE project, it throws the following exception.
    I am wondering if any of you experienced the same problem and how to resolve the issue. Your help will be greatly appreciated.
    Here is the error message:
    <messages><input><Invoke_1_Get_InputVariable><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Root-Element"><Root-Element xmlns="http://TargetNamespace.com/ftp_service"/>
    </part></Invoke_1_Get_InputVariable></input><fault><bindingFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="summary"><summary>file:/C:/product/10.1.3.1/OracleAS_1/bpel/domains/default/tmp/.bpel_FTPProcess2_1.0_709914d835a81c407ed668866e080b9e.tmp/ftp_service.wsdl [ Get_ptt::Get(Root-Element) ] - WSIF JCA Execute of operation 'Get' failed due to: Could not instantiate InteractionSpec oracle.tip.adapter.ftp.inbound.FTPActivationSpec due to: oracle.tip.adapter.ftp.inbound.FTPActivationSpec; nested exception is:
         java.lang.ClassCastException: oracle.tip.adapter.ftp.inbound.FTPActivationSpec; nested exception is:
         org.collaxa.thirdparty.apache.wsif.WSIFException: Could not instantiate InteractionSpec oracle.tip.adapter.ftp.inbound.FTPActivationSpec due to: oracle.tip.adapter.ftp.inbound.FTPActivationSpec; nested exception is:
         java.lang.ClassCastException: oracle.tip.adapter.ftp.inbound.FTPActivationSpec</summary>
    </part><part name="detail"><detail>org.collaxa.thirdparty.apache.wsif.WSIFException: Could not instantiate InteractionSpec oracle.tip.adapter.ftp.inbound.FTPActivationSpec due to: oracle.tip.adapter.ftp.inbound.FTPActivationSpec; nested exception is:
         java.lang.ClassCastException: oracle.tip.adapter.ftp.inbound.FTPActivationSpec</detail>
    </part></bindingFault></fault></messages>

    Take a look at the stack trace, it shows you exactly where the error is coming from:
    java.lang.ClassCastException: org.theclass.candidate.view.SearchForm
    org.theclass.candidate.view.CandidateListAction.execute(CandidateListAction.java:41)Line 41 in your CandidateListAction.
    Probably it is failing on a cast of your action form.
    Taking a closer look at your struts-config, you are "chaining" actions.
    Your AddCandidateAction uses the candidateForm, and forwards to CandidateListAction.do
    Your CandidateListAction uses the searchForm.
    That will be the cause of your class cast exception.
    <action path="/Add"
      name="candidateForm"
      type="org.theclass.candidate.view.AddCandidateAction"
      validate ="true"
      input="/jsp/addcandidate.jsp">
      <forward name="success" path="/CandidateList.do"/>
    </action>
    <action path="/CandidateList"
    type="org.theclass.candidate.view.CandidateListAction"
    name="searchForm"
    scope="request" >
    <forward name="failure" path="/jsp/list.jsp"/>
    <forward name="success" path="/jsp/candidatelist.jsp"/>
    </action>Check out: http://struts.apache.org/1.x/faqs/newbie.html#chaining
    Solutions?
    - don't chain actions ;-)
    - use the same action form for both actions (possible?)
    - make the actionForward a "redirect" one. That means a new request, and losing any request parameters/attributes but should prevent this class cast exception.
    Hope this helps,
    evnafets

  • How to implement a FTP Adaptor in  a BPEL Process

    Hi
    I have a requirement to create a FTP Adaptor and that adaptor should get a file from one of the unix direcotries.I have given the user name , passwd and host name in the oc4j_ra.xml and created a bpel process to get the file from the unix directory.But that processed faulted with the following error.
    2007/09/15 21:20:55] Faulted while invoking operation "Get" on provider "GetLogFile".less
    -<messages>
    -<input>
    -<Invoke_3_Get_InputVariable>
    -<part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="opaque">
    <opaqueElement xmlns="http://xmlns.oracle.com/pcbpel/adapter/opaque/"/>
    </part>
    </Invoke_3_Get_InputVariable>
    </input>
    -<fault>
    -<bindingFault xmlns="http://schemas.oracle.com/bpel/extension">
    -<part name="summary">
    <summary>
    file:/C:/product/10.1.3.1/OracleAS_1/bpel/domains/default/tmp/.bpel_WellsFargoInvokeWSFTP_1.9_6403f9aa03e3fbc38878073796391e40.tmp/GetLogFile.wsdl [ Get_ptt::Get(opaque) ] - WSIF JCA Execute of operation 'Get' failed due to: Could not instantiate InteractionSpec oracle.tip.adapter.ftp.inbound.FTPActivationSpec due to: oracle.tip.adapter.ftp.inbound.FTPActivationSpec; nested exception is:
         java.lang.ClassCastException: oracle.tip.adapter.ftp.inbound.FTPActivationSpec; nested exception is:
         org.collaxa.thirdparty.apache.wsif.WSIFException: Could not instantiate InteractionSpec oracle.tip.adapter.ftp.inbound.FTPActivationSpec due to: oracle.tip.adapter.ftp.inbound.FTPActivationSpec; nested exception is:
         java.lang.ClassCastException: oracle.tip.adapter.ftp.inbound.FTPActivationSpec
    </summary>
    </part>
    -<part name="detail">
    <detail>
    org.collaxa.thirdparty.apache.wsif.WSIFException: Could not instantiate InteractionSpec oracle.tip.adapter.ftp.inbound.FTPActivationSpec due to: oracle.tip.adapter.ftp.inbound.FTPActivationSpec; nested exception is:
         java.lang.ClassCastException: oracle.tip.adapter.ftp.inbound.FTPActivationSpec
    </detail>
    </part>
    </bindingFault>
    </fault>
    </mes
    I would be thankful, if some one could help me with this.
    Thanks
    Laj

    While the Oracle SOA Suite is running; it runs as a specific user; mostly 'oracle' on unix systems. This means that under this user it access the FTP adapter. What is you oc4j-ra.xml look like? Are you able to connect from this user on the server to you ftp-account?

  • Issue with oraext:query-database

    While executing oraext:query-database('select no,name,mark from vivek_test',false(),false(),'jdbc:eis/DB/EBS') function
    i am getting following error
    <bpelFault><faultType>0</faultType><subLanguageExecutionFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="summary"><summary>XPath expression failed to execute. An error occurs while processing the XPath expression; the expression is ora:doXSLTransformForDoc('xsl/Transformation_2.xsl', $inputVariable.payload). The XPath expression failed to execute; the reason was: javax.xml.transform.TransformerException: oramds:/deployed-composites/bi/SortTest_rev1.0/xsl/Transformation_2.xsl;lt;Line 18, Column 129>: XML-22044: (Error) Extension function error: Error invoking 'lookupTable':'java.lang.ClassCastException: oracle.tip.adapter.db.DBConnectionFactory'. Check the detailed root cause described in the exception message text and verify that the XPath query is correct. </summary></part><part name="code"><code>XPathExecutionError</code></part></subLanguageExecutionFault></bpelFault>
    kindly someone help me to resolve this issue

    Hi ervan,
    Use the jdbc/datasource instead of eis/DB/EBS.
    oraext:query-database('select no,name,mark from vivek_test',false(),false(),' jdbc/datasourceName ')
    See if this helps
    http://neeraj-soa-tips.blogspot.com/2011/04/getting-xml-output-from-oraextquery.html
    Regards,
    Neeraj Sehgal

  • Composite Application  deployment problem

    I have created a composite SOA application and trying to deploy it on WLS. I have created a connection to the Application Server MyAppServerConnection. I right click the project name and point to Deploy, it gives the webservice name "validationForCC". it does not give anything further. It should give Deploy>to>MyAppServerConnection
    I click the application name"validationForCC" and it opens the Deployment Configuration window. It asks for attach SOA Configuration Plan. Im not sure which Plan file to attach, JMS Plan or DBPlan. I try without selecting any.
    In JDeveloper the moment it gives message of successful compilation but when i test it on EM console, it fails to run.
    There are 28 errors/warnings
    Could not find partial trigger request_xml_choice_toggle from RichTreeTable[org.apache.myfaces.trinidad.component.UIXTree$RowKeyFacesBeanWrapper@175a777, id=treetablerequest] with the supported partialTriggers syntax. The partial trigger was found with the deprecated syntax. Please use the supported syntax.
    Could not find partial trigger service from RichTreeTable[org.apache.myfaces.trinidad.component.UIXTree$RowKeyFacesBeanWrapper@175a777, id=treetablerequest] with the supported partialTriggers syntax. The partial trigger was found with the deprecated syntax. Please use the supported syntax.
    WSMAgent is initialized for category=management, function=agent.function.client, topologyNodePath=/wls-domain/AdminServer/em/EJBs/default/WEBSERVICECLIENTs/getStatusByCC/PORTs/execute_pt/INTERCEPTORs/, isJ2EE=true
    WSMAgent is initialized for category=security, function=agent.function.client, topologyNodePath=/wls-domain/AdminServer/em/EJBs/default/WEBSERVICECLIENTs/getStatusByCC/PORTs/execute_pt/INTERCEPTORs/, isJ2EE=true
    Database Adapter validationForCC:getCreditValidation [ getCreditValidation_ptt::getCreditValidationSelect(getCreditValidationSelect_inputParameters,CreditcardinfoCollection) ] <oracle.tip.adapter.db.DBInteraction executeOutboundRead> unable to execute the NamedQuery: getCreditValidation.Creditcardinfo.getCreditValidationSelect
    JCABinding=> validationForCC:getCreditValidation [ getCreditValidation_ptt::getCreditValidationSelect(getCreditValidationSelect_inputParameters,CreditcardinfoCollection) ] Change logging level to TRACE:n to see full error stack
    Payload after BaseActionHander.requestMessage :{getCreditValidationSelect_inputParameters=oracle.xml.parser.v2.XMLElement@1c4ee80}
    Got an exception: oracle.fabric.common.FabricInvocationException: BINDING.JCA-12563
    Rolling back transaction due to ORAMED-03303:[Unexpected exception in case execution]Unexpected exception in request response operation "getCreditValidationSelect" on reference "getCreditValidation". Possible Fix:Check whether the reference service is properly configured and running or look at exception for analysing the reason or contact oracle support
    Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'getCreditValidationSelect' failed due to: Could not create/access the TopLink Session.
    This session is used to connect to the datastore.
    Caused by java.lang.ClassCastException: oracle.tip.adapter.db.DBConnectionFactory cannot be cast to javax.sql.DataSource.
    The invoked JCA adapter raised a resource exception.
    Please examine the above error message carefully to determine a resolution
    Failed to invoke operation.
    *.The list is long!!!*
    I have tried this several times. checked JNDI names , Datasources etc. and re created the application and also re started the servers. Do you think I am missing a major thing because I have tested all the servers and environment. Im using JDeveloper 11.1.1.3.0
    Plz help
    Ayesha

    What is the version? By the way, this is not the right forum to ask this question. You should be asking it in the weblogic forum.
    regards

  • Can't connect to datasource in em

    Hello,
    I configured JDBC datasource in Administration Console, then deployed it to the DB Adapter. In the porperty value of DataSourceName I filled in the jndi name "eis/DB/FeiYeConn". I didn't get any error report during the deployment, so I think my configuration of the data source is right.
    But when I run it in EM soa server, I got such a report as following
    Exception occured when binding was invoked.
    Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'queryByExample' failed due to: Could not create/access the TopLink Session.
    This session is used to connect to the datastore.
    *Caused by Exception [EclipseLink-7060] (Eclipse Persistence Services - 2.0.2.v20100323-r6872): org.eclipse.persistence.exceptions.ValidationException*
    *Exception Description: Cannot acquire data source [FeiYeConn].*
    Internal Exception: javax.naming.NameNotFoundException: Unable to resolve 'FeiYeConn'. Resolved ''; remaining name 'FeiYeConn'.
    *The invoked JCA adapter raised a resource exception.*
    *Please examine the above error message carefully to determine a resolution.*
    According to the report, my project can't acquire my data source.
    Then please anyone give me some suggestion, how to solve this problem. Thanks.

    Thanks for your reply, Anuj.
    But after I updated the DB Adapter I received a set of new error report.
    Exception occured when binding was invoked.
    Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'queryByExample' failed due to: JCA Binding Component connection issue.
    JCA Binding Component is unable to create an outbound JCA (CCI) connection.
    *IMS2MRDBapp:FeiYeConn [ FeiYeConn_ptt::queryByExample(Mrdblite,MrdbliteCollection) ] : The JCA Binding Component was unable to establish an outbound JCA CCI connection due to the following issue: javax.resource.spi.IllegalStateException: [Connector:199176]Unable to execute allocateConnection(...) on ConnectionManager. A stale Connection Factory or Connection Handle may be used. The connection pool associated with it has already been destroyed. Try to re-lookup Connection Factory eis/DB/FeiYeConn from JNDI and get a new Connection Handle.*
    *The invoked JCA adapter raised a resource exception.*
    Then after I check the data source and find nothing wrong, I test the project again, it gives me another error report still about connection:
    *Exception occured when binding was invoked.*
    *Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'queryByExample' failed due to: Could not create/access the TopLink Session.*
    This session is used to connect to the datastore.
    Caused by java.lang.ClassCastException: oracle.tip.adapter.db.DBConnectionFactory.
    *The invoked JCA adapter raised a resource exception.*
    *Please examine the above error message carefully to determine a resolution.*
    it's now again similar with the first time I posted.
    Any idea what can I do now?

  • Getting SOA 10.1.3.5 JmsAdapter to connect to WL jms on other server.

    I have a SOA 10.1.3.5 environment running on windows and I want to create a BPEL project that uses the JmsAdapter to connect to a WL jms queue running on linux box. Following docs I've seen, I copied over the weblogic.jar and wljmsclient.jar to the %OH%\OracleAS_DEV1\j2ee\oc4j_soa\applib folder and I've also created a jms connectionfactory using the following params for "factoryproperties".
    java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory;
    java.naming.provider.url=t3://h13727:7001;
    java.naming.security.principal=weblogic;java.naming.security.credentials=password1
    But I get the following error in BPEL.
    file:/D:/product/10.1.3.1/OracleAS_DEV1/bpel/domains/default/tmp/.bpel_BPELProcess2_1.0_719383f19b48121b2a99f3ef4c129fc8.tmp/outbound_wlJms.wsdl [ Produce_Message_ptt::Produce_Message(opaque) ] - : The Adapter Framework was unable to establish an outbound JCA connection due to the following issue: java.lang.ClassCastException: oracle.tip.adapter.jms.JmsConnectionFactory cannot be cast to javax.jms.ConnectionFactory ; nested exception is: ORABPEL-12511 Adapter Framework unable to create outbound JCA connection. file:/D:/product/10.1.3.1/OracleAS_DEV1/bpel/domains/default/tmp/.bpel_BPELProcess2_1.0_719383f19b48121b2a99f3ef4c129fc8.tmp/outbound_wlJms.wsdl [ Produce_Message_ptt::Produce_Message(opaque) ] - : The Adapter Framework was unable to establish an outbound JCA connection due to the following issue: java.lang.ClassCastException: oracle.tip.adapter.jms.JmsConnectionFactory cannot be cast to javax.jms.ConnectionFactory
    I verified in the logs that weblogic.jar and wljmsclient.jar are in the BPEL classpath.

    I have copied wljmsclient, wlclient, weblogic, and com.bea.core.weblogic.security.identity_1.2.0.0 jars so far into the %ORACLE_HOME%\j2ee\oc4j_soa\applib folder and I have the following in my BPEL 10.1.3.5 JmsAdapter wsdl.
    <jca:address location="eis/Jms/JmsAdapter"
    ManagedConnectionFactory="oracle.tip.adapter.jms.JmsManagedConnectionFactory"
    mcf.ConnectionFactoryLocation="jms.myConnectionFactory"
    mcf.FactoryProperties="java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory;java.naming.provider.url=t3://h13727:7001;java.naming.security.principal=weblogic;java.naming.security.credentials=password1"
    mcf.IsTopic="false"
    mcf.IsTransacted="false"
    mcf.Username="weblogic"
    mcf.Password="password1"
    UIJmsProvider="THIRDPARTY" />
    In BPEL, I keep getting errors like the following where it seems to be looking for more jars to be copied from weblogic and brought over to the %ORACLE_HOME%\j2ee\oc4j_soa\applib folder.
    <bindingFault xmlns="http://schemas.oracle.com/bpel/extension">
    <part name="summary">
    <summary>weblogic/security/service/PrivilegedActions</summary>
    </part>
    </bindingFault>

  • Class cast exception while casting FTPConnectionFactory object

    Hi
    I have SOA Suite Advanced installation - 10.1.3.4 MLR#5.
    I have developed a BPEL which polls an FTP site using a JCA FTPConnectionFactory registered in JNDI - eis/Ftp/My_Ftp.
    If file is present, then BPEL doesnt fetchs it... instead calls a java program through WSIF binding.
    In java program i am retrieving the JNDI object - eis/Ftp/My_Ftp.. casting it to oracle.tip.adapter.ftp.FTPConnectionFactory and get the FTP host and credentials.
    Now using those details i mannually create an FTP Connection and retieve the file.
    This program worked for sure... but recently when i tried the same i got the ClassCastException while casting java.lang.Object got from JNDI to oracle.tip.adapter.ftp.FTPConnectionFactory. I havnt changed any thing on server since... could not understand why this issue has cropped now.
    After lot of research the issue seems due to different Classloaders. JNDI object was loaded by ClassLoaderA and in my java program it is being loaded by ClassLoaderB.
    And these two classloaders dont share classes with each other.
    This is the code:
    InitialContext ctx = new InitialContext();
    Object jndiFTPObj = ctx.lookup("eis/Ftp/My_Ftp");
    System.out.println("Got Object from JNDI is: "+jndiFTPObj+" ClassLoader - "+jndiFTPObj.getClass().getClassLoader());
    // it prints -- Got Object from JNDI is: oracle.tip.adapter.ftp.FTPConnectionFactory@1aa3bbc ClassLoader - FtpAdapter:0.0.0
    FTPConnectionFactory ftpConF = (oracle.tip.adapter.ftp.FTPConnectionFactory)jndiFTPObj;
    // here i get error -- java.lang.ClassCastException: oracle.tip.adapter.ftp.FTPConnectionFactory
    Thinking of RMI/IIOP i even tried:
    FTPConnectionFactory ftpConF = (FTPConnectionFactory)PortableRemoteObject.narrow(ctx.lookup("eis/Ftp/My_Ftp"), FTPConnectionFactory.class);
    it didnt solve the error.
    I tried loading the class using the same loader as:
    Class.forName("oracle.tip.adapter.ftp.FTPConnectionFactory",true,jndiFTPObj.getClass().getClassLoader());
    even that didnt solve the error.
    If any body has some idea... pls help
    Thanks
    Inder

    Issue was due to ClassLoaders... tried to use the same classloader... but couldnt.
    Eventually solved it by using Java Reflection.
    Thx

  • SOA Composite Application Deployment Failed

    I have created a composite SOA application and trying to deploy it on WLS. I have created a connection to the Application Server MyAppServerConnection. I right click the project name and point to Deploy, it gives the webservice name "validationForCC". it does not give anything further. It should give Deploy>to>MyAppServerConnection
    I click the application name"validationForCC" and it opens the Deployment Configuration window. It asks for attach SOA Configuration Plan. Im not sure which Plan file to attach, JMS Plan or DBPlan. I try without selecting any.
    In JDeveloper the moment it gives message of successful compilation but when i test it on EM console, it fails to run.
    There are 28 errors/warnings
    Could not find partial trigger request_xml_choice_toggle from RichTreeTable[org.apache.myfaces.trinidad.component.UIXTree$RowKeyFacesBeanWrapper@175a777, id=treetablerequest] with the supported partialTriggers syntax. The partial trigger was found with the deprecated syntax. Please use the supported syntax.
    Could not find partial trigger service from RichTreeTable[org.apache.myfaces.trinidad.component.UIXTree$RowKeyFacesBeanWrapper@175a777, id=treetablerequest] with the supported partialTriggers syntax. The partial trigger was found with the deprecated syntax. Please use the supported syntax.
    WSMAgent is initialized for category=management, function=agent.function.client, topologyNodePath=/wls-domain/AdminServer/em/EJBs/default/WEBSERVICECLIENTs/getStatusByCC/PORTs/execute_pt/INTERCEPTORs/, isJ2EE=true
    WSMAgent is initialized for category=security, function=agent.function.client, topologyNodePath=/wls-domain/AdminServer/em/EJBs/default/WEBSERVICECLIENTs/getStatusByCC/PORTs/execute_pt/INTERCEPTORs/, isJ2EE=true
    Database Adapter validationForCC:getCreditValidation [ getCreditValidation_ptt::getCreditValidationSelect(getCreditValidationSelect_inputParameters,CreditcardinfoCollection) ] <oracle.tip.adapter.db.DBInteraction executeOutboundRead> unable to execute the NamedQuery: getCreditValidation.Creditcardinfo.getCreditValidationSelect
    JCABinding=> validationForCC:getCreditValidation [ getCreditValidation_ptt::getCreditValidationSelect(getCreditValidationSelect_inputParameters,CreditcardinfoCollection) ] Change logging level to TRACE:n to see full error stack
    Payload after BaseActionHander.requestMessage :{getCreditValidationSelect_inputParameters=oracle.xml.parser.v2.XMLElement@1c4ee80}
    Got an exception: oracle.fabric.common.FabricInvocationException: BINDING.JCA-12563
    Rolling back transaction due to ORAMED-03303:[Unexpected exception in case execution]Unexpected exception in request response operation "getCreditValidationSelect" on reference "getCreditValidation". Possible Fix:Check whether the reference service is properly configured and running or look at exception for analysing the reason or contact oracle support
    Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'getCreditValidationSelect' failed due to: Could not create/access the TopLink Session.
    This session is used to connect to the datastore.
    Caused by java.lang.ClassCastException: oracle.tip.adapter.db.DBConnectionFactory cannot be cast to javax.sql.DataSource.
    The invoked JCA adapter raised a resource exception.
    Please examine the above error message carefully to determine a resolution
    Failed to invoke operation.
    *.The list is long!!!*
    I have tried this several times. checked JNDI names , Datasources etc. and re created the application and also re started the servers. Do you think I am missing a major thing because I  have tested all the servers and environment. Im using JDeveloper 11.1.1.3.0
    Plz help
    Ayesha
    Edited by: aa100 on Jul 5, 2010 12:16 PM

    These questions don't look like they are directly related to JMS, and seem more related to the tooling that you're using. I think you should try posting to a forum that's familiar with your environment. Perhaps you can choose a forum under "SOA & Process Management". Here's a link to the forum listing:
    http://forums.oracle.com/forums/main.jspa?categoryID=84
    Regards,
    Tom

  • How connect to DataSource in iAS

    I have set up the Oracle thin client and create a Data Source in the iAS
    server. Is it possible to access the DataSource from an application outside
    iAS using JNDI? Thanks for anyone who can give some samples or pointers
    related to this.
    Regards,
    Keith

    Thanks for your reply, Anuj.
    But after I updated the DB Adapter I received a set of new error report.
    Exception occured when binding was invoked.
    Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'queryByExample' failed due to: JCA Binding Component connection issue.
    JCA Binding Component is unable to create an outbound JCA (CCI) connection.
    *IMS2MRDBapp:FeiYeConn [ FeiYeConn_ptt::queryByExample(Mrdblite,MrdbliteCollection) ] : The JCA Binding Component was unable to establish an outbound JCA CCI connection due to the following issue: javax.resource.spi.IllegalStateException: [Connector:199176]Unable to execute allocateConnection(...) on ConnectionManager. A stale Connection Factory or Connection Handle may be used. The connection pool associated with it has already been destroyed. Try to re-lookup Connection Factory eis/DB/FeiYeConn from JNDI and get a new Connection Handle.*
    *The invoked JCA adapter raised a resource exception.*
    Then after I check the data source and find nothing wrong, I test the project again, it gives me another error report still about connection:
    *Exception occured when binding was invoked.*
    *Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'queryByExample' failed due to: Could not create/access the TopLink Session.*
    This session is used to connect to the datastore.
    Caused by java.lang.ClassCastException: oracle.tip.adapter.db.DBConnectionFactory.
    *The invoked JCA adapter raised a resource exception.*
    *Please examine the above error message carefully to determine a resolution.*
    it's now again similar with the first time I posted.
    Any idea what can I do now?

  • [Jdbc / Jdeveloper Database Connexion] Error tns-style

    [SOLVED]
    Hi,
    I'm trying the Jdbc connexion tutorial.
    The 10 G Database is up and I can connect as HR with SQLPLUS.
    I could not find a Jdeveloper-specific tnsname.ora file.
    The "ojdbc14" driver is under:
    L:\oracle\product\10.2.0\db_1\jdbc\lib
    The connexion test in Jdeveloper fails with this message
    **************** QUOTE ****************************
    Listener refused the connection with the following error:
    ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
    The Connection descriptor used by the client was:
    localhost:1521:ORACOMPT
    ************ END QUOTE ****************************
    I did not run the OC4J instance, should I? (or is it an absolute Don't!!)
    The very same HR username, password and SID or Service works with Forms 10 Builder.
    [Solved with:
      Entering the Service_Name as stated in tnsnames.ora]
    (It looks like it is only available in JDeveloper 10.1.3.2.0)
    Many thanks for your help :-)
    Message was edited by:
    JeanParis
    Message was edited by:
    JeanParis
    Message was edited by:
    JeanParis

    Hi all, I think that i have solved a part of my problem in doing theese things :
    -in EM : creating a new connexion to DbAdapter with JNDI : loc/DBConnection1DataSource
    xADataSourceName: loc/DBConnection1DataSource
    I also looked at oc4j-ra.xlm to verify this.
    BUT ....I still have an error with Toplink session. I guess that i have to manage DataSources and Pools in EM.
    Could you explain me how to do ?
    Thanks.
    Here is the error message (still in french):
    <summary>
    file:/C:/OracleSOA/bpel/domains/default/tmp/.bpel_HelloWorld_1.0_73b34a7b81f6c7c281b1e037f2a10750.tmp/InvokeBddSsn.wsdl [ InvokeBddSsn_ptt::InvokeBddSsnSelect_customID(InvokeBddSsnSelect_customID_inparameters,SsnCollection) ] - WSIF JCA Execute of operation 'InvokeBddSsnSelect_customID' failed due to: Impossible de créer la session TopLink ou d'y accéder.
    Cette session permet de se connecter à la banque de données.
    ; nested exception is:
         ORABPEL-11622
    Impossible de créer la session TopLink ou d'y accéder.
    Cette session permet de se connecter à la banque de données.
    Reportez-vous à l'exception racine pour connaître l'exception spécifique. Vous devrez peut-être configurer les paramètres de connexion dans le descripteur de déploiement (c'est-à-dire $J2EE_HOME/application-deployments/default/DbAdapter/oc4j-ra.xml) et redémarrer le serveur. Cause : java.lang.ClassCastException: oracle.tip.adapter.db.DBConnectionFactory.
    </summary>

  • ClassCastException in OIM Pre-Populate Adapter

    Hi,
    I am trying to prepopulate an integer field (eg.employeenumber) in my Process Form.
    1 .When I tried using the OOTB "DB Transfer Value" adapter,which has an String as Adapter Variable,the field is getting populated with value "0".
    2.I created my own prepopulate adapter similar to "DB Transfer Value" adapter ,with Integer as a variable type.This time I am getting "ClassCastException".
    Is there any workaround for this issue ? .I believe the problem is both my Userdefintion and Process Form is taking variable of type "int" while in Adapter I have only the option of selecting "Integer". Any idea?
    Thanks.

    Have you tried casting Integer to int manually?
    As for me, I set the field type for all numeric Xellerate User atributes to String. For Xellerate User form and Process forms I use only String, Date and boolean data types.

Maybe you are looking for

  • Exporting / Importing into DVD Studio Pro from Final Cut Pro

    Hi All, I am am exporting footage from FCP HD and importing it into DVDSP, the final DVD will be set to 16:9. So what do I export my files from FCP as? Someone told me that I don't export it at 16:9, I export it so it's squashed and then DVD SP does

  • I tried to restore the backup onto my ipad and it asked for a password

    I was trying to update my ipad using my computer and it wouldnt work so I went online and it said to update itunes so I did after that I went into my ipad and I started using facebook then my ipad turned off for no reason I looked at the computer and

  • Line out and headphone problems

    Just recently I have started to have a problem where if I use the line-out funtion of my iPod audio will not come out of the headphones afterwards. I use the Belkin auto-kit so I just connect my iPod whenever I drive somewhere, and it annoys me that

  • Why won't my computer recognise my sd card?

    I used my sd card this morning but 2 hours later my computer would not recognise it.  i have tried 2 different cards.I have a hp  Desktop p6203w.

  • Session Pooling for CRMoD - Web services.

    Hi, We have a Java application which fetches the Contact Data on the basis of the Phone Number in CRMoD, using web services. (it happens on a hyperlink click). Before fetching the contact data, we establish the session between our app and CRMoD using