BINDING.JCA-12510 JCA Resource Adapter - Cannot call rollback when using di
Hi,
i'm facing a simillar issue with dbadapter while trying to insert a record.
The issue that I'm facing is: (BINDING.JCA-12563)
Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'insert' failed due to: DBWriteInteractionSpec Execute Failed Exception. insert failed. Descriptor name: http://InsertEmployee.TestEmp. Caused by java.sql.SQLException: Cannot call rollback when using distributed transactions. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution.
I faced the same issues that have been posted in this thread before but this is a new one I'm seeing.
Following are the configurations that I'm using.
WEBLOGIC ADMIN CONSOLE
JDBC datasources
General tab:
JNDI Name: jdbc/SOADataSource
Connection Pool tab:
URL - jdbc:oracle:thin:@localhost:1522/XE
Driver Class Name - oracle.jdbc.xa.client.OracleXADataSource
Properties - user=SATRA_SOAINFRA
oracle.net.CONNECT_TIMEOUT=10000
Deployments
Inside DbAdapter - Configuration
The general tab shows blank values for 'Native lib dir' and 'JNDI name' fields. Is this normal or I need to populate values into these.
Inside Outbound Connection Pools the javax.resource.cci.ConnectionFactory created an entry 'eis/DB/10gXE_DBCon'
following is the settings for dataSourceName property
dataSourceName java.lang.String jdbc/SOADataSource
I have kept the value for xADataSourceName as blank as giving the same value of 'jdbc/SOADataSource' throws error.
The JNDI value that I'm using while creating the database adapter from Jdev is eis/DB/10gXE_DBCon where 10gXE_DBCon is the database connection name.
Can you please tell me what is the issue and where I'm going wrong.
Thanks in advance,
Satrajit
Hi Sunil,
I followed your advice and did the changes, that error has gone but a new error is popping up.
BINDING.JCA-12563 Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'insert' failed due to: DBWriteInteractionSpec Execute Failed Exception. insert failed. Descriptor name: [InsertEmployee.TestEmp]. Caused by java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist . ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution.
The name of the table i'm inserting to is test_emp and it exists in the database.
the .jca file for dbadsapter is like
<adapter-config name="FileToDB_DBAdp" adapter="Database Adapter" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
<connection-factory location="eis/DB/10gXE_DBCon" UIConnectionName="10gXE_DBCon" adapterRef=""/>
<endpoint-interaction portType="FileToDB_DBAdp_ptt" operation="insert">
<interaction-spec className="oracle.tip.adapter.db.DBWriteInteractionSpec">
<property name="DescriptorName" value="FileToDB_DBAdp.TestEmp"/>
<property name="DmlType" value="insert"/>
<property name="MappingsMetaDataURL" value="FileToDB_DBAdp-or-mappings.xml"/>
<property name="DetectOmissions" value="true"/>
<property name="GetActiveUnitOfWork" value="false"/>
</interaction-spec>
</endpoint-interaction>
</adapter-config>
and the .xsd file for dbadapter is
<?xml version = '1.0' encoding = 'UTF-8'?>
<xs:schema targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/FileToDB_DBAdp" xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/top/FileToDB_DBAdp" elementFormDefault="qualified" attributeFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="TestEmpCollection" type="TestEmpCollection"/>
<xs:complexType name="TestEmpCollection">
<xs:sequence>
<xs:element name="TestEmp" type="TestEmp" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="TestEmp">
<xs:sequence>
<xs:element name="empid" type="xs:decimal" nillable="true"/>
<xs:element name="name" type="xs:string" minOccurs="0" nillable="true"/>
<xs:element name="designation" minOccurs="0" nillable="true">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="salary" type="xs:decimal" minOccurs="0" nillable="true"/>
<xs:element name="deptno" type="xs:decimal" minOccurs="0" nillable="true"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
If I change element name from 'TestEmp' to 'Test_Emp' in the .xsd file,
I'm getting the following issue ...
Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'insert' failed due to: Could not create/access the TopLink Session. This session is used to connect to the datastore. Caused by java.lang.NullPointerException. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution.
I'm confused why does it take the table name as TestEmp and not as Test_Emp.
Regards,
Satrajit
Similar Messages
-
Java.sql.SQLException: Cannot call rollback when using distributed transac
Hi all,
I am getting the below exception trace when I tried to rollback the data in WLI.I am getting the db connection Object from DBControl.
java.sql.SQLException: Cannot call rollback when using distributed transactions
at weblogic.jdbc.wrapper.JTAConnection.rollback(JTAConnection.java:313)
at controls.DailyFeedFileJavaImpl.excuteBatch(DailyFeedFileJavaImpl.jcs:
904)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java
:371)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:42
3)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:39
6)
at com.bea.wlw.runtime.jcs.container.JcsProxy.invoke(JcsProxy.java:381)
at $Proxy59.excuteBatch(Unknown Source)
at QnbDailyFeedProcess.feedFileJavaObjExcuteBatch(QnbDailyFeedProcess.jp
d:274)
at QnbDailyFeedProcess_wf$ImplControlSend15.invoke(QnbDailyFeedProcess_w
f.java:146)
at com.bea.wli.bpm.runtime.Perform.execute(Perform.java:32)
at com.bea.wli.bpm.runtime.ProcessState.executeInternalCallback(ProcessS
tate.java:726)
at QnbDailyFeedProcess_wf$_ProcessState.executeInternalCallback(QnbDaily
FeedProcess_wf.java:311)
at com.bea.wli.bpm.runtime.ProcessState.executeInternalCallback(ProcessS
tate.java:685)
at com.bea.wli.bpm.runtime.ProcessState.processNodeOrchestration(Process
State.java:681)
at sun.reflect.GeneratedMethodAccessor193.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java
:371)
at com.bea.wli.bpm.runtime.JpdInternalDispMethod.invoke(JpdInternalDispM
ethod.java:87)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:42
3)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:39
6)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:24shanmuga gomathi nayagam wrote:
Hi all,
I am getting the below exception trace when I tried to rollback the data in WLI.I am getting the db connection Object from DBControl.
java.sql.SQLException: Cannot call rollback when using distributed transactions
at weblogic.jdbc.wrapper.JTAConnection.rollback(JTAConnection.java:313)Hi, Ideally, you should obtain the Transaction object and roll it back/ set it
to rollback only.
Joe
at controls.DailyFeedFileJavaImpl.excuteBatch(DailyFeedFileJavaImpl.jcs:
904)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java
:371)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:42
3)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:39
6)
at com.bea.wlw.runtime.jcs.container.JcsProxy.invoke(JcsProxy.java:381)
at $Proxy59.excuteBatch(Unknown Source)
at QnbDailyFeedProcess.feedFileJavaObjExcuteBatch(QnbDailyFeedProcess.jp
d:274)
at QnbDailyFeedProcess_wf$ImplControlSend15.invoke(QnbDailyFeedProcess_w
f.java:146)
at com.bea.wli.bpm.runtime.Perform.execute(Perform.java:32)
at com.bea.wli.bpm.runtime.ProcessState.executeInternalCallback(ProcessS
tate.java:726)
at QnbDailyFeedProcess_wf$_ProcessState.executeInternalCallback(QnbDaily
FeedProcess_wf.java:311)
at com.bea.wli.bpm.runtime.ProcessState.executeInternalCallback(ProcessS
tate.java:685)
at com.bea.wli.bpm.runtime.ProcessState.processNodeOrchestration(Process
State.java:681)
at sun.reflect.GeneratedMethodAccessor193.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java
:371)
at com.bea.wli.bpm.runtime.JpdInternalDispMethod.invoke(JpdInternalDispM
ethod.java:87)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:42
3)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:39
6)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:24 -
BINDING.JCA-12510 JCA Resource Adapter location error in SOA 11g Suite
Hi,
I am just testing one simple SOA Application in SOA 11g Suite. Created a SOA Composite Application with one DB Adapter at designtime all worked fine with DB Adapter. But when I deploy the Application on the server I get the following error:
The JCA Binding Component was unable to establish an outbound JCA CCI connection due to the following issue: BINDING.JCA-12510 JCA Resource Adapter location error. Unable to locate the JCA Resource Adapter via .jca binding file element <connection-factory/> The JCA Binding Component is unable to startup the Resource Adapter specified in the <connection-factory/> element: location='eis/DB/soademoDatabase'. The reason for this is most likely that either 1) the Resource Adapters RAR file has not been deployed successfully to the WebLogic Application server or 2) the '<jndi-name>' element in weblogic-ra.xml has not been set to eis/DB/soademoDatabase. In the last case you will have to add a new WebLogic JCA connection factory (deploy a RAR). Please correct this and then restart the Application Server ".Do I need to jndi-name in weblogic-ra.xml if so what is the exact location. Any help is appreciated.
ThanksI did but still not able to connect now getting the following error. I went to the Weblogic Console, clicked on deployments, selected DBAdapter, clicked on configuration ,
and then I don't see outbound configurations instead it shows Outbound Connection Pools, Under Outbound Connection Pools tab I clicked on New and it asked to select Outbound Connection Group I selected the one that was already there (with JNDI eis/DB/SOADemo) and then created my JNDI which was added to the default Outbound Connection Group and in the end it asked to save the Plan.xml which I saved it under a new directory created under soa directory. But still am not able to connect.
How do I create my own Connection Group as don't want to use the defualt one out there.
After creating the JNDI Name it asks for saving the Plan.xml file. Where exactly we save this file. Are there any standards.
Why can't I update any properties when I click on the new JNDI name it takes to Settings for javax.resource.cci.ConnectionFactory --> Outbound Connection Properties but there I see a save buttn but I can't make any changes.
BINDING.JCA-12563 Exception occured when binding was invoked. 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 javax.resource.spi.InvalidPropertyException: Missing Property Exception. Missing Property: [DBManagedConnectionFactory.userName]. You may have set a property (in _db.jca) which requires another property to be set also. Make sure the property is set in the interaction (activation) spec by editing its definition in _db.jca. . ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. Is there any documentation that lists all these steps as I couldn't find it anywhere. The guide only talks abou DBAdapter but how to configure etc can't find any info. Any help is appreciated.
Thanks. -
JCA 1.5 Resource Adapter integration
Hi,
I'm trying to create a custom JCA 1.5 Resource Adapter that has to be integrated with the BPEL PM. I already have the JCA Resource Adapter done,
and I want to integrate it with BPEL. I'm following the document http://www.oracle.com/technology/products/integration/adapters/pdf/Adapter%20Development%20cookbook.pdf, but I'm not able to make it work. Is there more documentation? any tutorial, example...
Thanks,
MiquelHi Manfred,
This is the error page that I'm getting. Seems an internal BPEL PM error. I can't make the Audit Trail because I'm getting an error page, not the result page.
Yes, I have the CCI ManagedConnectionFactory deployed as eis/imEIS
What do you mean with the records must be of type XMLRecord? This is what the XMLRecordConverter has to do, no?
To convert javax.resource.cci.Record <-> oracle.tip.adapter.api.record.XMLRecord
Thanks for your help,
Miquel
Oracle BPEL Process Manager Full Cycle
An unexpected error has occurred while executing your request. This is most likely related to a defect in the Oracle BPEL Process Manager product. We apologize you can post the error to the OTN forum and we will get back to you as soon as possible.
Attachments:
Build Information:
Oracle BPEL Server version 10.1.2.0.2
Build: 2196
Build time: Tue Jan 10 12:31:53 UTC 2006
Build type: release
Source tag: BPEL_10.1.2.0.2_GENERIC_060110.1200
Exception Message:
[javax.servlet.ServletException]
null
Exception Trace:
javax.servlet.ServletException
at com.evermind.server.http.EvermindPageContext.handlePageThrowable(EvermindPageContext.java:595)
at com.evermind.server.http.EvermindPageContext.handlePageException(EvermindPageContext.java:537)
at ngDoInitiate.jspService(_ngDoInitiate.java:438)
at com.orionserver.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.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
at com.evermind.server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:121)
at com.evermind.server.http.EvermindPageContext.include(EvermindPageContext.java:267)
at displayProcess.jspService(_displayProcess.java:792)
at com.orionserver.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.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:222)
at com.collaxa.cube.fe.DomainFilter.doFilter(DomainFilter.java:152)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
at java.lang.Thread.run(Thread.java:534)
Also, before I submit the form I see this on the log:
<2006-12-12 14:51:14,750> <DEBUG> <default.collaxa.cube.engine.deployment> <CubeProcessHolder::loadAndBind> Check if process BPELIntegration, revision 1.0 needs to be reloaded
<2006-12-12 14:51:14,812> <DEBUG> <default.collaxa.cube.engine.data> <ConnectionFactory::getConnection> GOT CONNECTION 4 Autocommit = false
<2006-12-12 14:51:14,843> <DEBUG> <default.collaxa.cube.engine.data> <ConnectionFactory::closeConnection> CLOSE CONNECTION 3
<2006-12-12 14:51:14,875> <DEBUG> <default.collaxa.cube.engine.data> <ConnectionFactory::getConnection> GOT CONNECTION 4 Autocommit = false
<2006-12-12 14:51:14,921> <DEBUG> <default.collaxa.cube.engine.data> <ConnectionFactory::closeConnection> CLOSE CONNECTION 3
<2006-12-12 14:51:14,921> <ERROR> <default.collaxa.cube> <BaseCubeSessionBean::logError> Error while invoking bean "presentation manager":
java.lang.NullPointerException
at com.collaxa.cube.xml.xsd.WSDLUtil.getInputParameters(WSDLUtil.java:33)
at com.collaxa.cube.xml.xsd.xerces.WSDLFormHandler.writeForm(WSDLFormHandler.java:82)
at com.collaxa.cube.xml.xsd.xerces.WSDLFormHandler.write(WSDLFormHandler.java:76)
at com.collaxa.cube.ejb.impl.PresentationManagerBean.getInitiateFormContent(PresentationManagerBean.java:66)
at IPresentationManagerBean_StatelessSessionBeanWrapper62.getInitiateFormContent(IPresentationManagerBean_StatelessSessionBeanWrapper62.java:81)
at com.oracle.bpel.client.BPELProcessHandle.getInitiateFormContent(BPELProcessHandle.java:383)
at ngInitiateForm.jspService(_ngInitiateForm.java:243)
at com.orionserver.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.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
at com.evermind.server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:121)
at com.evermind.server.http.EvermindPageContext.include(EvermindPageContext.java:267)
at displayProcess.jspService(_displayProcess.java:806)
at com.orionserver.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.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:222)
at com.collaxa.cube.fe.DomainFilter.doFilter(DomainFilter.java:152)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
at java.lang.Thread.run(Thread.java:534) -
Can Data Be Written To A Called PDF When Using Adobe Reader 9?
Can data be written and saved to another called pdf when using Adobe READER 9?
You'll have to expand on your description for a full answer - but all things considered, it would be possible.
If the "called" (this is one of the things you need to clarify - do you mean a PDF opened via the JavaScript openDoc method?) PDF discloses itself, then the "calling" PDF can execute an importXFDF or similar call on that PDF as long as they are Reader Extended.
Past that, you'll need to give us more information on exactly what you're trying to do. -
As per the title is it possible to ignore "Rigid relationships between attributes cannot be changed" when using ProcessUpdate for Dimension?
We have a case where very rarely an item might have been miscategorised so the brand is manually changed. We want this dimension to be rigid to speed up ProcessUpdate.
We do a ProcessFull each night, so it will get corrected then, but during the hourly updates we would just like to ignore this error if possible?Hello,
The rigid relationship should be defined when the members will not change over time. Here are some threads regarding rigid relationship for your reference, please see:
Processing OLAP Cube: http://social.technet.microsoft.com/Forums/sqlserver/en-US/17a55593-9543-404e-a579-0a011965585d/processing-olap-cube?forum=sqlanalysisservices
Flexible and rigid relationship: http://social.msdn.microsoft.com/Forums/sqlserver/en-US/2d8f5443-065d-4485-9385-6f0b5fa417da/flexible-and-rigid-relationship?forum=sqlanalysisservices
If you have any feedback on our support, please click
here.
Regards,
Elvis Long
TechNet Community Support -
Cannot open links when using Safari (will open in Chrome). Anybody have an idea? Settings??
From the Safari menu bar, select
Safari ▹ Preferences... ▹ Extensions
Turn all extensions OFF and test. If the problem is resolved, turn extensions back ON and then disable them one or a few at a time until you find the culprit. -
Cannot print anything when using safari
Cannot print anything when using safari. OSX is Mavericks. Printer is Canon MP620. Have downloaded Mavericks software for printer, but still will not print. I have also repaired the disk hoping that would solve the problem, but to no avail. Can anyone help me please?
Hey ivorfromborehamwood,
Thanks for using Apple Support Communities.
For more information, take a look at:
Troubleshooting printer issues in OS X
http://support.apple.com/kb/ts3147
Delete the affected printer, then add the printer again.
If the issue persists, try these additional steps:
Reset the printing system, then add the printer again.
If the issue still persists, reset the printing system again. Download and install your printer's drivers. Then, add the printer again.
Have a nice day,
Mario -
Deploying a custom JCA 1.5 resource adapter...
I am developing a custom resource adapter that will be deployed in OC4J 10.1.3.0.0. When starting OC4J, I receive the following error:
Unable to find connection definition in ra.xml for connectionfactory interface specified in connection-factory element: bmv.ipc.ra.IpcConnectionFactory.
Does anyone have experience deploying custom resource adapters? Also, does anyone know the earliest version of OC4J that supports JCA 1.5?
Thank you,
Jason
Here is my oc4j-ra.xml file:
<oc4j-connector-factories xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.oracle.com/technology/oracleas/schema/oc4j-connector-factories-10_0.xsd" schema-major-version="10" schema-minor-version="0" >
<connector-factory location="eis/bmvIpcRa" connector-name="bmvIpcRa">
<security-config use="none">
</security-config>
<connectionfactory-interface>javax.resource.cci.ConnectionFactory</connectionfactory-interface>
</connector-factory>
</oc4j-connector-factories>
And a snippet of my ra.xml file:
<?xml version='1.0' encoding='UTF-8'?>
<connector xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd"
version="1.5">
<display-name>IpcResourceAdapter</display-name>
<vendor-name>...</vendor-name>
<eis-type>...</eis-type>
<resourceadapter-version>1.0</resourceadapter-version>
<license>
<license-required>false</license-required>
</license>
<resourceadapter>
<resourceadapter-class>
bmv.ipc.ra.IpcResourceAdapter
</resourceadapter-class>
<outbound-resourceadapter>
<connection-definition>
<managedconnectionfactory-class>
bmv.ipc.ra.IpcManagedConnectionFactory
</managedconnectionfactory-class>
<config-property>
<config-property-name>Path</config-property-name>
<config-property-type>java.lang.String</config-property-type>
<config-property-value>/tmp/outbound</config-property-value>
</config-property>
<connectionfactory-interface>
javax.resource.cci.ConnectionFactory
</connectionfactory-interface>
<connectionfactory-impl-class>
bmv.ipc.ra.IpcConnectionFactory
</connectionfactory-impl-class>
<connection-interface>
javax.resource.cci.Connection
</connection-interface>
<connection-impl-class>
bmv.ipc.ra.IpcConnection
</connection-impl-class>
</connection-definition>
<transaction-support>NoTransaction</transaction-support>
<reauthentication-support>false</reauthentication-support>
</outbound-resourceadapter>Nevermind, it appears that OC4J was using an incorrect oc4j-ra.xml that was stored in <OC4J_HOME>\j2ee\home\application-deployments\default\<my_rar_file_folder_name>\oc4j.xml
when I deployed my initial testing. -
Outbound JCA 1.5 resource adapter
Hi all,
I want to develop an resource adapter which will only support outbound communication, i searched on google and file example which shows two way communication.
I tried to change it for outbound but no success. can any one help in this regard.
Regards,
razahi,
Any staring point for helloworld for JCA.
Regards, -
JCA 1.5 Resource Adapter implementation
Anybody knows whether there is a J2EE Connector 1.5 complaint Resource
Adapter implementation somewhere?Hallo
you can download a tutorial for an Resource Adapter. It#s only for the J2EE 1.3. But I guess for the beginning it's complex enough
Here is the link:
http://java.sun.com/j2ee/sdk_1.3/ -
How to catch errors in calling program when using SUBMIT ... AND RETURN ?
Hi ,
I am calling a report using submit and return statement from a function module. The report has select-options field for a date field. If user enters a date in low, which is greater than high, getting error message "Lower limit is greater than upper limit".
How to catch this error without endup stoping on selection screen of the report?
In the documentation, I read :
Programs called with SUBMIT ... AND RETURN or CALL TRANSACTION cannot propagate exceptions to the caller, because exception objects are bound to the internal mode of a program.
Is there any way to overcome this?
Also my aim is to write a validation on the date selection-option to have the date range not more than 20 days.
I am not sure of how to achieve this.
Is there a way to do validation of select-options data before submiting to the report ?
Is there any standard FM to achieve this task?
Thank you,
Surya.
Edited by: Surya on May 24, 2009 6:08 PMHi Surya ,
In your function module's code validate the date .
If the low value of the date less than high and date period is not more than 20 then
call transaction and in else condition raise exception.
In your FM write like that - -
IF date-low LT date-high AND
date_difference LE '20' .
CALL TRANSACTION 'transaction'.
ELSE.
RAISE ........... " Raise the invalid date exception
ENDIF.
Regards
Pinaki -
Error while calling RFC when using BSP Web Interface
Hi,
we have a problem with the Authorization when we use an Web Interface for BSP. We have assigned all roles to the user which were mentioned in the SAP standard documentation:
R_AREA
R_METHOD
R_PACKAGE
R_PARAM
R_PLEVEL
R_PM_NAME
R_PROFILE
R_STS_PT
R_STS_SUP
R_WEBITF
S_RS_ADMWB
S_RS_AUTH
S_RS_COMP
S_RS_COMP1
S_RS_DAS
S_RS_ICUBE
but we still get the error message: "Error while calling RFC".
When using a user with SAP_ALL, it works.
What can we do?
Thx for your time.
JoergActually that's surprising - because BSP (Business Server Pages) and RFC (Remote Function Call) are not related; they use totally different transport protocols (http vs. RFC). Even if an BSP application is calling a function module remotely (acting as RFC client) no authorizations for S_RFC are required - in the calling system (but in the called system, i.e. the RFC server).
Since assigning SAP_ALL seems to "cure" the problem, it seems to be an authorization issue, indeed. In that case it makes sense to use the authorization trace (ST01 - notice: that's specific to one single ABAP application server; you might have to activate the trace on multiple instances) to find out which authorizations are checked / demanded. -
No Data retrieved with AJAX Call HTMLDB_GET when using Safari Browser
In my apex (4.0) app i have certain page a which uses JS AJAX htmldb_get to pull some data from an on-demand process using xml structure
var get = new htmldb_Get(null, $v('pFlowId'),
'APPLICATION_PROCESS=get_markerdata', $v('pFlowStepId'));
if (!MEBMarkerdataXML) {// Tabelle mit Kunden leer? Dann aus DB abfragen
MEBMarkerdataXML = get.get('XML');
l_Count = MEBMarkerdataXML.getElementsByTagName("Kunde").length;
I ran into a strange behavior when using Safari Browser (Mac and Windows) when opening the page.
As long as the process retrieves less than 50 rows everything works fine. The data is pulled from the OnDemand Process and delivered to the browser; the XML Data can be selected in JS for further processing
<<<<<<<<<<<<<< HTTP Traffic taken from Safari <<<<<<<<<<<<<<<
Anfrage-URL:http://80.149.218.10:8080/apex/wwv_flow.show
Anfragemethode:POST
Status-Code:200 OK
Anfrage
Content-Type:application/x-www-form-urlencoded
Origin:http://80.149.218.10:8080
Referer:http://80.149.218.10:8080/apex/f?p=41107101:43:1599514482232751::
User-Agent:Mozilla/5.0 (Windows NT 5.1) AppleWebKit/534.55.3 (KHTML, like Gecko) Version/5.1.5 Safari/534.55.3
Formulardaten
p_request:APPLICATION_PROCESS=get_markerdata
p_instance:1599514482232751
p_flow_id:41107101
p_flow_step_id:43
Antwort
Cache-Control:no-cache
Content-Type:text/xml;charset=UTF-8
Date:Thu, 03 May 2012 10:19:35 GMT
Pragma:no-cache
Server:Apache-Coyote/1.1
Transfer-Encoding:Identity
X-DB-Content-length:53329
X-ORACLE-IGNORE:IGNORE, IGNORE, IGNORE, IGNORE
<<<<<<<<<<<<<<<<
When calling for more then 50 rows Safaris shows a POST Error -1001 and no Data is delivered.
This occurs only on some Mac's and my Dev WIN-XP PC using SF Browser; never on iPad/iPhone . Never when using FF on Mac or PC.
I googled a lot of different Sources, it seems to be a Timeout Problem when making a long runing AJAX Call. But i did not find any useful hint.
Any Ideas from the APEX & HTTP Gurus?
Regards
PeterIt's just that in my experience htmldb_Get.get() is troublesome for browsers, due to the fact it performs a synchronous request. The browser can do nothing else while it waits for the response. I've seen Firefox really struggle with it in the past couple years. Also, I've seen no good reason to use synchronous XMLHttpRequest calls. As you can see, it's simple to refactor a call to htmldb_Get.get() into a call to htmldb_Get.GetAsync().
For your case in particular, I was just guessing Safari have implemented a timeout to ensure that they don't end up waiting indefinitely for a request that never returns as this would be fatal. You're probably hitting that timeout.
I don't think htmldb_Get is officially documented anywhere, but you can find the source here... http://apex.oracle.com/i/javascript/uncompressed/apex_4_0.js
There is also a pure jQuery way to perform AJAX request, I recommend using this because at least it's documented. Here's a snippet of a typical APEX AJAX request done the jQuery way:
apex.jQuery.ajax({
dataType: "xml", //supports text, xml, json, jsonp, script, or html
type: "post",
url: "wwv_flow.show",
traditional: true,
data: {
p_request: "APPLICATION_PROCESS=get_markerdata",
p_flow_id: $("#pFlowId").val(),
p_flow_step_id: $("#pFlowStepId").val(),
p_instance: $("#pInstance").val()
success: function (data, textStatus, jqXHR) {
// Do your thing in here
error: function (xhr, ajaxOptions, thrownError) {
// Handle error in here
});Then you can refer to great documentation here... http://api.jquery.com/jQuery.ajax/ -
Calls Freezing when using MicroCell 3g
On our phones, a Nokia 520 running Windows 8.1 and a LG G3, we are suddenly having calls "freeze". We lose the caller and the phone takes up to 15 minutes to "End Call" and will not allow another call until the "End Call" is successful. We have a MicroCell and the problem only occurs when using the MicroCell. This started suddenly last week. I have gone through the trouble shooting procedures and have found nothing. It does not happen on every call, but when it does it seems to be on longer calls over 5 minutes or so. Any suggestions?
Have you recently updated the OS on the phones? Microsoft and Android-based phones have a history of not playing nice with the MicroCell. If the problem has suddenly appeared it could be due to an incompatible update. Have you updated either phone or any of your other equipment?
Maybe you are looking for
-
Voice memos no longer syncing (AGAIN) w/ 5.1 update
For years there have been tremendous problems when trying to move voice memos from the iPhone to a computer. Usually iTunes would not recognize any voice memos without a bunch of work-arounds, like checking/unchecking boxes consolidating the library,
-
HI Team, Can we create multiple lines in an SAP Query? If yes, how (pls explain the steps)? Like can we have a line for the employee, next for spouse & then the next for child, so on...and then the next employee details. Also, there might be fields w
-
Development environment for 'include' files?
My photo album program only has a single page. Each time you ask for a new page it calls itself, with a new set of parameters. Some of the more complicated pages are generated by setting up a framework (which specifies the styles to be used, among ot
-
Prevent overwriting of variable during second loop...
Hello together, I have an issue with getting the first value of a variable - I want to store the value of an output variable in the first sequence of my for loop. How can I prevent that the variable is not being overwritten during the next loops. Wou
-
Getting videos on ipod before i run it over wtih my car
I reacently got the 5g ipod and it's great, that is untill you try to put videos on it i know your all thinking in your heads i have explained this one hundred times but i have a sort of weird case. nothing has worked for me. i have videora and that