Delete and insert same Object in one transaction?
Hi all,
Can be possible in one transaction delete and then insert same object into the database?
If I want change PK in some record in DB, then I must delete the Object and then insert new Object (row). And this I want realize in one transaction - Unit of Work.
Is this possible?
Thx advance,
best regards,
KLD
P.S. Sry for my English
Generally not always a good idea, but may be possible. If you are using JPA, you should be able to do a flush() after deleting the object, then re-persist the new one.
For the UnitOfWork API, writeChanges() is the same as flush, but it only allowed to be called once, so you may need to use the RepeatableWriteUnitOfWork, or performDeletesFirst option.
Or just use two separate units of work.
James : http://www.eclipselink.org
Similar Messages
-
Receiver JDBC: Error while doing the Deleting and Inserting new records
Hi All,
I am doing Idoc to JDBC scenario. In this I am collecting & bundling different type of Idocs and then sending to the JDBC receiver. My requirement is to delete the existing records in the database and insert the new records. I have configures as mentioned in the link
Re: Combining DELETE and INSERT statements in JDBC receiver
In the above link its shows for single mapping. In my scenario I am using multi mapping for collecting idocs in BPM. If I configured for normal mapping then it is working fine(Deleting existing records and Inserting new record). Whenever I am using multi mapping then I am getting following error in the receiver JDBC communication channel u201CError while parsing or executing XML-SQL document: Error processing request in sax parser: No 'action' attribute found in XML document (attribute "action" missing or wrong XML structure)u201D . Can you please tell me what might be the problem.
Thanks & Regards,
T.PurushothamHi !
check this out:
JDBC - No 'action' attribute found in XML document - error
JDBC receiver adapter: No 'action' attribute found in XML document
It appears that the inbound payload (the one that is going from XI to the JDBC adapter) does not have the requiered tag to specify which SQL action to execute in the receiver system. Maybe the multimapping is not creating the desired output message format.
Regards,
Matias. -
Delete and Insert logic depends on Flag JDBC Receiver
Hi Experts,
My Scenario is Proxy to JDBC. Present I am uisng 2 ststements for the receiver structure one for Delete and another for Insert. When I get a message from the source system, Database will be deleted and records will be inserted. Its working great.
Now one more new FLAG filed is added in the source structure. My requirement is when i get '0' value in the flag filed, I want to delete the database and need to insert records. and If value '1' comes in the FLAG filed, records needs to be inserted in the database table with out deleting old records.
How can I achive this? thanks in Adv
Vankadoath..HI Puneeth,
I am using both the Delete and Insert statements in one DT.
Flag is a filed name which is in the source DT . if '0' comes in this Flag then tables needs to be deleted and records needs to be Insert. If value 1comes only records needs to be Inserted.
how to do mapping with the key filed?
This is my Input xml
<?xml version="1.0" encoding="utf-8" ?>
- <n0:RedMatchDB_EmployeesQualification_MT_OB xmlns:n0="ness.com:RedMatchDB_EmployeesQualifications" xmlns:prx="urn:sap.com:proxy:DV3:/1SAI/TAS8CFD98F20F1539B552C4:701:2009/02/10">
- <EMP_QUALIFICATION>
<Flag>0</Flag>
<PERNR>7106413</PERNR>
<QGROUP_ID>40001055</QGROUP_ID>
<RATING>0005</RATING>
</EMP_QUALIFICATION>
- <EMP_QUALIFICATION>
<Flag>1</Flag>
<PERNR>7106414</PERNR>
<QGROUP_ID>40001109</QGROUP_ID>
<RATING>0004</RATING>
</EMP_QUALIFICATION>
- <EMP_QUALIFICATION>
<Flag>1</Flag>
<PERNR>7106415</PERNR>
<QGROUP_ID>40001154</QGROUP_ID>
<RATING>0004</RATING>
</EMP_QUALIFICATION>
</n0:RedMatchDB_EmployeesQualification_MT_OB>
This is the output xml deleting is nat happening only records are Inserting.
<?xml version="1.0" encoding="UTF-8" ?>
- <ns0:RedMatchDB_EmployeesQualification_MT_IB xmlns:ns0="ness.com:RedMatchDB_EmployeesQualifications">
- <statementDELETE>
- <EMP_QUALIFICATION action="DELETE">
<table>EMP_QUALIFICATION</table>
<access />
<key />
</EMP_QUALIFICATION>
</statementDELETE>
- <statementINSERT>
- <EMP_QUALIFICATION action="INSERT">
<table>EMP_QUALIFICATION</table>
- <access>
<EmployeeID>7106413</EmployeeID>
<QID>40001055</QID>
<ProficiencyID>0005</ProficiencyID>
</access>
</EMP_QUALIFICATION>
</statementINSERT>
- <statementINSERT>
- <EMP_QUALIFICATION action="INSERT">
<table>EMP_QUALIFICATION</table>
- <access>
<EmployeeID>7106414</EmployeeID>
<QID>40001109</QID>
<ProficiencyID>0004</ProficiencyID>
</access>
</EMP_QUALIFICATION>
</statementINSERT>
- <statementINSERT>
- <EMP_QUALIFICATION action="INSERT">
<table>EMP_QUALIFICATION</table>
- <access>
<EmployeeID>7106415</EmployeeID>
<QID>40001154</QID>
<ProficiencyID>0004</ProficiencyID>
</access>
</EMP_QUALIFICATION>
</statementINSERT>
</ns0:RedMatchDB_EmployeesQualification_MT_IB> -
Hi,
I have requirement in Sp Designer 2010,Get List item URL and insert in another list as one column value.When open another list and click on same item column entry url will show the parent item information.
Here i have create work flow and insert item URL in another list but cant find appropriate item url information.I can easily make item url link through String builder in mail body with using current id and predefine link,but
when try to insert the same type of item link in another list where i cant find string builder for create custom url link,only get valur of Path,URL,Absolute URL and Relative server URL,all these links or not provide me exact
item link dispaly information.
So I opened SharePoint Designer and start creating the workflow associated to the list.
As there is some Field from source related to current item URL I start using it
Encoded Absolute URL – this one should be the one to use
Server Relative URL
URL Path
Unfortunately, none of these options were providing the correct link. Indeed, these options are providing an incorrect path:
Encoded Absolute URL
http://wfe1/Lists/bpf/1_.000
Server Relative URL
/Lists/bpf/1_.000
URL Path
/Lists/bpf/1_.000
As you can see, the item URL is composed by an ID while it should be http://wfe1/Lists/bpf/dispform.aspx?id=1
Hasan Jamal Siddiqui(MCTS,MCPD,ITIL@V3),Share Point Application Developer,TCSUnfortunately, [%Current Item:URL%] doesn't seem to be available from a "Site Workflow" associated to a List. I'm finding less advantages to doing a "Site Workflow" when I don't necessarily need to. One problem is the workflow is initiating
twice. I'm thinking I should have just created the workflow as a a "List Workflow."
I am going to try "Association Columns" -- that may work. Anyone have other suggestions? -
Scrap Asset and its sub assets in one transaction code
Please suggest if it is possible to scrap an asset and all its sub assets in one transaction as opposed to scrapping them separately in ABAVN.
regards
RekhaClick on the button Multiple assets and fill in there the main asset and sub numbers. You have to fill them all in. There is no transaction that you can do this with filling in only the main-asset number
-
To delete and insert a new key figure in the cube
Hi Experts...
How can I delete a key figure and insert a new key figure into a cube with data...? Should I be creating a new cube with the new key figure ?
Thank you..
Manohar....Hi
Are you using Bi2004s
yes you can delete,add,replace a key figure
have a look at this blog for step by step procedure
/people/mallikarjuna.reddy7/blog/2007/02/06/remodeling-in-nw-bi-2004s
hope this helps -
Current objectives and next yearu2019s objectives in one appraisal document
I keep coming across the requirement for an employee to be able to record comments and scores for his/her current objectives and at the same time to document his/her objectives for the next year in the same appraisal document. The SAP standard process being to record last yearu2019s objectives and next years objectives in two separate documents.
Has anyone else come across this requirement and if so how did you meet it?
Is there a BAdI which will pull the u2018Performance Objectives for the next 12 monthsu2019 from the 2010 appraisal document into the 2011 appraisal document?
Any suggestions would be much appreciated.Hi,
Please check the following discussion:
Re: Performance Appraisal-Copy the "Completed" Appraisal for next year
Credits: SDN members
Hope this helps.
Donnie -
Select from 2 tables and insert same data into 2 other tables(BPEL Process)
Hi All,
Please suggest me how to select from 2 tables and insert the same data into 2 tables. I am successful in selecting data from 2 tables, but i am not able to insert the same data into 2 other tables. There is foreign key constraint between 2 tables.
Thanks in Advance,
MAHI have created DB Adapter for selecting from 2 tables and also DB adapter for insert and i have created parent child relationship between 2 tables.
I am getting this error
<Faulthttp://schemas.xmlsoap.org/soap/envelope/>
<faultcode>env:Server</faultcode>
<faultstring>com.oracle.bpel.client.delivery.ReceiveTimeOutException: Waiting for response has timed out. The conversation id is 6f3fe20c1b031057:-6cc7dfb5:11b8bf5fbe1:-7fa4. Please check the process instance for detail.</faultstring>
</Fault> -
Besides the word Firefox is a reddish square. Clicking on either the word or the box makes it disappear down to the bottom try. I am at a loss. I've always used Firefox without any problems, now I can't access it. I deleted and reinstalled 4 times this morning. Help
Hi,
Please see [https://support.mozilla.org/en-US/kb/Toolbar%20keeps%20resetting?redirectlocale=en-US&redirectslug=Firefox+window+is+too+large+or+opens+off+screen this]. -
Mutilple updations and insertions by BAPI_SALESORDER_CHANGE at one time
Hi ,
I just want to know whether it is possible to insert and update multiple line items in a sales order through the BAPI BAPI_SALESORDER_CHANGE .
we tried doin it for single record ( update and insert ) , it is working fine . but when we try for mutiple items , it gives a system dump.
could you plz help out , how to pass the parameters for mutiple updation and insertions at a time?HI ALL,
I THINK IF WE MAKE THE SCHEDULE LINE ITEM NO. TO BE UNIQUE FOR EACH LINE ITEM IT GETS UPLOADED PROPERLY. THE VBEP-ETENR IS 001 ONLY. PEOPLE WITH ALTERNAT ANSWERS PLZ. CORRECT.
SEE CODES BELOW.
**This creates additional line no. in the sales order.
**Material no is hard coded, you need to change the materisl no in
**available in ur system.
T_ITEM-itm_number = ''.
T_ITEM-material = 'AGA350'.
T_ITEM-target_qty = '2'.
APPEND T_ITEM.
T_ITEMx-itm_number = ''.
T_ITEMX-UPDATEFLAG = 'I'.
T_ITEMX-target_qty = 'X'.
T_ITEMX-material = 'X'.
APPEND T_ITEMX.
T_SCHE-SCHED_LINE = '1'.
T_SCHE-REQ_QTY = 2.
t_sche-req_date = '20080204'.
APPEND T_SCHE.
T_SCHEX-updateflag = c_insertflag.
t_schex-req_date = 'X'.
T_SCHEX-SCHED_LINE = '1'.
t_schex-req_qty = 'X'.
APPEND T_SCHEX.
**This also creates additional line no. in the sales order.
**Material no is hard coded, you need to change the materisl no in
**available in ur system.
*T_ITEM-itm_number = ''.
T_ITEM-material = 'AGA350'.
T_ITEM-target_qty = '1'.
APPEND T_ITEM.
*T_ITEMx-itm_number = ''.
T_ITEMX-UPDATEFLAG = 'I'.
T_ITEMX-target_qty = 'X'.
T_ITEMX-material = 'X'.
APPEND T_ITEMX.
T_SCHE-SCHED_LINE = '4'.
t_sche-req_date = '20080202'.
T_SCHE-REQ_QTY = 1.
APPEND T_SCHE.
T_SCHEX-updateflag = c_insertflag.
t_schex-req_date = 'X'.
T_SCHEX-ITM_NUMBER = 'X'.
T_SCHEX-SCHED_LINE = '4'.
T_SCHEX-REQ_QTY = 'X'.
APPEND T_SCHEX.
**This also creates additional line no. in the sales order.
**Material no is hard coded, you need to change the materisl no in
**available in ur system.
*T_ITEM-itm_number = ''.
T_ITEM-material = 'AGA350'.
T_ITEM-target_qty = '1'.
APPEND T_ITEM.
*T_ITEMx-itm_number = ''.
T_ITEMX-UPDATEFLAG = 'I'.
T_ITEMX-target_qty = 'X'.
T_ITEMX-material = 'X'.
APPEND T_ITEMX.
T_SCHE-SCHED_LINE = '5'.
t_sche-req_date = '20080202'.
T_SCHE-REQ_QTY = 1.
APPEND T_SCHE.
T_SCHEX-updateflag = c_insertflag.
t_schex-req_date = 'X'.
T_SCHEX-ITM_NUMBER = 'X'.
T_SCHEX-SCHED_LINE = '5'.
T_SCHEX-REQ_QTY = 'X'.
APPEND T_SCHEX.
**This also creates additional line no. in the sales order.
**Material no is hard coded, you need to change the materisl no in
**available in ur system.
*T_ITEM-itm_number = ''.
T_ITEM-material = 'AGA350'.
T_ITEM-target_qty = '1'.
APPEND T_ITEM.
*T_ITEMx-itm_number = ''.
T_ITEMX-UPDATEFLAG = 'I'.
T_ITEMX-target_qty = 'X'.
T_ITEMX-material = 'X'.
APPEND T_ITEMX.
T_SCHE-SCHED_LINE = '6'.
t_sche-req_date = '20080202'.
T_SCHE-REQ_QTY = 1.
APPEND T_SCHE.
T_SCHEX-updateflag = c_insertflag.
t_schex-req_date = 'X'.
T_SCHEX-ITM_NUMBER = 'X'.
T_SCHEX-SCHED_LINE = '6'.
T_SCHEX-REQ_QTY = 'X'.
APPEND T_SCHEX.
*i_order_header_in-sd_doc_cat -
To use same storage area.(deletion and insertion)
suppose a table has 5 records i used truncate command.then i want to insert a record which might be used same storage area .what steps to be followed to use same storage area.
If u use tools like TOAD, while truncating a table it will ask u whether to reuse or drop the storage.
-
How to include change delete and insert options in alv grid display
Hi,
As per my requirement I need to display my output in grid.
When the user makes any changes to any field of the alv it should get reflected in the tatabase table.
Similarly according to the requirement if user enters a new coloumn to the alv or deletes one or more rows of the alv,same should be reflected in the databse table.
I know there are many methods in object oriented.
But its little bit tough for me to implement..
Please suggest how to code for it without oo concepts.
Thanks ,
SmritiHi,
use FM with Edit functionality enabled for all fields and
Create one pf-status with some buttons
if user presses the button the alv output table should be saved and same table can be used to insert /modify /delete the dbtable.
and check this link
[alv list|alv list]
Regards,
Nandha -
Can I include MQSeires JMS XADataSource and Oracle JDBC XADataSource in one transaction?
When I try to use a XADataSource (using Oracle 8.1.6 XA JDBC driver) to update
a table in onMessage() of a MDB (Message Driven Bean) using container managed
transaction, an exception occured like this:
java.sql.SQLException: ORA-06550: ? 1 ?, ? 14 ???: PLS-00201: ??? 'JAVA_XA.XA_START'
????? ORA-06550: ? 1 ?, ? 8 ???: PL/SQL: Statement ignored
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:114) at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:542) at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1311)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:738 ) at
oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.ja va:1313)
at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.jav a:1232)
at oracle.jdbc.driver.OracleStatement.doExecuteWithBatch(OracleStatement .java:1353)
at oracle.jdbc.driver.OracleStatement.doExecute(OracleStatement.java:176 0) at
oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStateme nt.java:1805)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePrepar edStatement.java:322)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStat ement.java:366)
at oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:10 2) at
weblogic.transaction.internal.ServerResourceInfo.start(ServerResource Info.java:994)
at weblogic.transaction.internal.ServerResourceInfo.xaStart(ServerResour ceInfo.java:947)
at weblogic.transaction.internal.ServerResourceInfo.enlist(ServerResourc eInfo.java:206)
at weblogic.transaction.internal.ServerTransactionImpl.enlistResource(Se rverTransactionImpl.java:316)
at weblogic.jdbc.common.internal.ConnectionEnv.test(ConnectionEnv.java:6 51) at
weblogic.common.internal.ResourceAllocator.reserve(ResourceAllocator. java:444)
at weblogic.common.internal.ResourceAllocator.reserve(ResourceAllocator. java:379)
at weblogic.common.internal.ResourceAllocator.reserveWaitSecs(ResourceAl locator.java:369)
at weblogic.jdbc.common.internal.ConnectionPool.reserve(ConnectionPool.j ava:167)
at weblogic.jdbc.common.internal.ConnectionPool.reserveWaitSecs(Connecti onPool.java:121)
at weblogic.jdbc.jta.DataSource.getXAConnectionFromPool(DataSource.java: 861)
at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:7 43) at
weblogic.jdbc.jta.Connection.getXAConn(Connection.java:130) at weblogic.jdbc.jta.Connection.createStatement(Connection.java:201)
at weblogic.jdbc.rmi.internal.ConnectionImpl.createStatement(ConnectionI mpl.java:71)
at weblogic.jdbc.rmi.SerialConnection.createStatement(SerialConnection.j ava:42)
at MDB.onMessage(MDB.java:46) at weblogic.ejb20.internal.MDListener.execute(MDListener.java:221)
at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:175) at com.ibm.mq.jms.MQQueueReceiver.receiveAsync(MQQueueReceiver.java:640)
at com.ibm.mq.jms.SessionAsyncHelper.run(SessionAsyncHelper.java:355) java.sql.SQLException:
ORA-06550: ? 1 ?, ? 14 ???: PLS-00201: ??? 'JAVA_XA.XA_START' ????? ORA-06550:
? 1 ?, ? 8 ???: PL/SQL: Statement ignored
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:114) at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:542) at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1311)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:738 ) at
oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.ja va:1313)
at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.jav a:1232)
at oracle.jdbc.driver.OracleStatement.doExecuteWithBatch(OracleStatement .java:1353)
at oracle.jdbc.driver.OracleStatement.doExecute(OracleStatement.java:176 0) at
oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStateme nt.java:1805)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePrepar edStatement.java:322)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStat ement.java:366)
at oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:10 2) at
weblogic.jdbc.jta.DataSource.start(DataSource.java:324) at weblogic.transaction.internal.ServerResourceInfo.start(ServerResource
Info.java:994) at weblogic.transaction.internal.ServerResourceInfo.xaStart(ServerResour
ceInfo.java:947) at weblogic.transaction.internal.ServerResourceInfo.enlist(ServerResourc
eInfo.java:206) at weblogic.transaction.internal.ServerTransactionImpl.enlistResource(Se
rverTransactionImpl.java:316) at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:817)
at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:7 88) at
weblogic.jdbc.jta.Connection.getXAConn(Connection.java:130) at weblogic.jdbc.jta.Connection.createStatement(Connection.java:201)
at weblogic.jdbc.rmi.internal.ConnectionImpl.createStatement(ConnectionI mpl.java:71)
at weblogic.jdbc.rmi.SerialConnection.createStatement(SerialConnection.j ava:42)
at MDB.onMessage(MDB.java:46) at weblogic.ejb20.internal.MDListener.execute(MDListener.java:221)
at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:175) at com.ibm.mq.jms.MQQueueReceiver.receiveAsync(MQQueueReceiver.java:640)
at com.ibm.mq.jms.SessionAsyncHelper.run(SessionAsyncHelper.java:355) java.sql.SQLException:
XA error: XAER_RMERR : A resource manager error has occur ed in the transaction
branch start() failed on resource 'jtaXAPool' null at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:822)
at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:7 88) at
weblogic.jdbc.jta.Connection.getXAConn(Connection.java:130) at weblogic.jdbc.jta.Connection.createStatement(Connection.java:201)
at weblogic.jdbc.rmi.internal.ConnectionImpl.createStatement(ConnectionI mpl.java:71)
at weblogic.jdbc.rmi.SerialConnection.createStatement(SerialConnection.j ava:42)
at MDB.onMessage(MDB.java:46) at weblogic.ejb20.internal.MDListener.execute(MDListener.java:221)
at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:175) at com.ibm.mq.jms.MQQueueReceiver.receiveAsync(MQQueueReceiver.java:640)
at com.ibm.mq.jms.SessionAsyncHelper.run(SessionAsyncHelper.java:355)
Does that mean WLS 6.0 SP1 can not include JMS XADataSource and JDBC XADataSource
in one distributed transaction managed by container?
It should work. Check out the documentation on our developer center for
more information. Developer.BEA.com
Michael Girdley
BEA Systems
Learning WebLogic? http://learnweblogic.com
"Sam Ni" <[email protected]> wrote in message
news:[email protected]...
>
> When I try to use a XADataSource (using Oracle 8.1.6 XA JDBC driver) to
update
> a table in onMessage() of a MDB (Message Driven Bean) using container
managed
> transaction, an exception occured like this:
>
> java.sql.SQLException: ORA-06550: ? 1 ?, ? 14 ???: PLS-00201: ???
'JAVA_XA.XA_START'
> ????? ORA-06550: ? 1 ?, ? 8 ???: PL/SQL: Statement ignored
>
> at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:114) at
oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
> at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:542) at
oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1311)
> at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:738 )
at
> oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.ja
va:1313)
> at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.jav
a:1232)
> at oracle.jdbc.driver.OracleStatement.doExecuteWithBatch(OracleStatement
.java:1353)
> at oracle.jdbc.driver.OracleStatement.doExecute(OracleStatement.java:176
0) at
> oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStateme
nt.java:1805)
> at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePrepar
edStatement.java:322)
> at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStat
ement.java:366)
> at oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:10
2) at
> weblogic.transaction.internal.ServerResourceInfo.start(ServerResource
Info.java:994)
> at weblogic.transaction.internal.ServerResourceInfo.xaStart(ServerResour
ceInfo.java:947)
> at weblogic.transaction.internal.ServerResourceInfo.enlist(ServerResourc
eInfo.java:206)
> at weblogic.transaction.internal.ServerTransactionImpl.enlistResource(Se
rverTransactionImpl.java:316)
> at weblogic.jdbc.common.internal.ConnectionEnv.test(ConnectionEnv.java:6
51) at
> weblogic.common.internal.ResourceAllocator.reserve(ResourceAllocator.
java:444)
> at weblogic.common.internal.ResourceAllocator.reserve(ResourceAllocator.
java:379)
> at weblogic.common.internal.ResourceAllocator.reserveWaitSecs(ResourceAl
locator.java:369)
> at weblogic.jdbc.common.internal.ConnectionPool.reserve(ConnectionPool.j
ava:167)
> at weblogic.jdbc.common.internal.ConnectionPool.reserveWaitSecs(Connecti
onPool.java:121)
> at weblogic.jdbc.jta.DataSource.getXAConnectionFromPool(DataSource.java:
861)
> at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:7
43) at
> weblogic.jdbc.jta.Connection.getXAConn(Connection.java:130) at
weblogic.jdbc.jta.Connection.createStatement(Connection.java:201)
> at weblogic.jdbc.rmi.internal.ConnectionImpl.createStatement(ConnectionI
mpl.java:71)
> at weblogic.jdbc.rmi.SerialConnection.createStatement(SerialConnection.j
ava:42)
> at MDB.onMessage(MDB.java:46) at
weblogic.ejb20.internal.MDListener.execute(MDListener.java:221)
> at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:175) at
com.ibm.mq.jms.MQQueueReceiver.receiveAsync(MQQueueReceiver.java:640)
>
>
> at com.ibm.mq.jms.SessionAsyncHelper.run(SessionAsyncHelper.java:355)
java.sql.SQLException:
> ORA-06550: ? 1 ?, ? 14 ???: PLS-00201: ??? 'JAVA_XA.XA_START' ?????
ORA-06550:
> ? 1 ?, ? 8 ???: PL/SQL: Statement ignored
>
> at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:114) at
oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
> at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:542) at
oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1311)
> at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:738 )
at
> oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.ja
va:1313)
> at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.jav
a:1232)
> at oracle.jdbc.driver.OracleStatement.doExecuteWithBatch(OracleStatement
.java:1353)
> at oracle.jdbc.driver.OracleStatement.doExecute(OracleStatement.java:176
0) at
> oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStateme
nt.java:1805)
> at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePrepar
edStatement.java:322)
> at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStat
ement.java:366)
> at oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:10
2) at
> weblogic.jdbc.jta.DataSource.start(DataSource.java:324) at
weblogic.transaction.internal.ServerResourceInfo.start(ServerResource
> Info.java:994) at
weblogic.transaction.internal.ServerResourceInfo.xaStart(ServerResour
> ceInfo.java:947) at
weblogic.transaction.internal.ServerResourceInfo.enlist(ServerResourc
> eInfo.java:206) at
weblogic.transaction.internal.ServerTransactionImpl.enlistResource(Se
> rverTransactionImpl.java:316) at
weblogic.jdbc.jta.DataSource.enlist(DataSource.java:817)
> at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:7
88) at
> weblogic.jdbc.jta.Connection.getXAConn(Connection.java:130) at
weblogic.jdbc.jta.Connection.createStatement(Connection.java:201)
> at weblogic.jdbc.rmi.internal.ConnectionImpl.createStatement(ConnectionI
mpl.java:71)
> at weblogic.jdbc.rmi.SerialConnection.createStatement(SerialConnection.j
ava:42)
> at MDB.onMessage(MDB.java:46) at
weblogic.ejb20.internal.MDListener.execute(MDListener.java:221)
> at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:175) at
com.ibm.mq.jms.MQQueueReceiver.receiveAsync(MQQueueReceiver.java:640)
>
>
> at com.ibm.mq.jms.SessionAsyncHelper.run(SessionAsyncHelper.java:355)
java.sql.SQLException:
> XA error: XAER_RMERR : A resource manager error has occur ed in the
transaction
> branch start() failed on resource 'jtaXAPool' null at
weblogic.jdbc.jta.DataSource.enlist(DataSource.java:822)
> at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:7
88) at
> weblogic.jdbc.jta.Connection.getXAConn(Connection.java:130) at
weblogic.jdbc.jta.Connection.createStatement(Connection.java:201)
> at weblogic.jdbc.rmi.internal.ConnectionImpl.createStatement(ConnectionI
mpl.java:71)
> at weblogic.jdbc.rmi.SerialConnection.createStatement(SerialConnection.j
ava:42)
> at MDB.onMessage(MDB.java:46) at
weblogic.ejb20.internal.MDListener.execute(MDListener.java:221)
> at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:175) at
com.ibm.mq.jms.MQQueueReceiver.receiveAsync(MQQueueReceiver.java:640)
>
>
> at com.ibm.mq.jms.SessionAsyncHelper.run(SessionAsyncHelper.java:355)
>
>
> Does that mean WLS 6.0 SP1 can not include JMS XADataSource and JDBC
XADataSource
> in one distributed transaction managed by container?
>
>
-
JDBC Adapter: DELETE and INSERT in Mapping
Hi,
I have a JMS to JDBC interface. While this is straightforward enough, there is a requirement to clear the contents of the table before carrying out the insert
What I've tried is:
<MT_Message>
<Statement>
<TableClear>
<action> .....attribute mapped to SQL_DML
<access> ....element mapped to DELETE FROM table
<TableInsert>
<action> .....attribute mapped INSERT constant
<table> ......element mapped to Table name
<access> ...allthe fields in the table
The DELETE statement works and the Insert statement work but they won't work together. Is this possible at all? What other options are there in this case?I went for two different Statement tags so the structure of the Message Type is:
<MT_Message>
<StatementDelete>
<TableClear>
<action> ....attribute mapped to SQL_DML
<access> ...element mapped to DELETE FROM Table
<StatementInsert>
<TableInsert>
<action> ....attribute mapped to INSERT constant
<table> ....element mapped to table name
<access> ...all the columns in my table -
Bug or Feature? Array Custom Contextual Menu Destroys "Delete" and "Insert" Element!
Step to Reproduce:
- Create an Array (doesn't matter of what type).
- Ctrl-M (to switch to Run Mode)
- Notice that:
- when you Right-Click on the Array borders, you have access to an "Empty Array" menu item among other things
- when you Right-Click in an Array element, you have access to an "Insert Element Before" and a "Delete Element" menu item among other things
- Now switch back to Edit Mode and modify the contextual menu in the following way:
- Advanced>>Run-Time Shortcut Menu>>Edit...
- Edit>>Copy Entire Menu
- Switch to "Custom" menu (instead of "Default"): the menu disappears and is replaced by a single ??? item
- Edit>>Paste: The default menu reappears with the ??? on top
- Create you favorite custom menu item by editing the ??? item (say: Do Nothing)
- Save the menu with the control and switch to Run Mode (Ctrl-M).
- Now try the first 3 steps above: wherever you right-click, you have access to the Custom Menu, but the Array Element contextual menu is GONE.
In other words, you cannot (it seems) define a custom contextual menu for an array without destroying the default contextual menu for its elements.
Therefore, if you want to preserve the ability to Insert and Delete Elements in an array, you have to add these two items to the Array contextual menu and juggle with the position of the right-click to figure out whether or not to display them...Well, I created in LabVIEW 2012 such a control and added part of the default menu in the way you described with copy-paste as a submenu to an Edit entry in my custom menu and it did not disappear:
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions
Maybe you are looking for
-
IPod is recognized only in Windows not iTunes
Basically, my iPod Touch 4G does not show up on iTunes, it only charges when plugged in by USB. Windows recognizes it, but iTunes doesn't seem to. My iPod is recognized on another computer, but seeing as I have all my music on this computer I have no
-
How do I play video from my ipod touch on my tv
I want to play a downloaded video from my ipod touch on my tv, everything I've read so far talks about jailbreaking my ipod and this is something I really don't want to do. My tv has HDMI, USB and AV cable ports, I've tried plugging in via the USB wi
-
I live in Saudi Arabia and intend to buy an iPhone 5 (unlocked version) from U.K. I want to know, would it be possible to claim warranty from the local network operator which is the official Apple iPhone seller i.e. Mobily. Would they repair/replace
-
Hi All, I am trying to make use of ABAP API from my R/3 system. but I am not able to see the transaction MDMAPIC and many MDM related interfaces. what could be the exact problem? Any Service pack need to be added on normal R/3? My R/3 system version
-
MacBook Pro has a "hiccup" or short freezes
I have an early 2009 MacBook Pro running OSX 10.6.5. Over the past month it's developed an annoying "hiccup" or sorts. The Mac freezes for a 2 seconds every 10 minutes or so. For example: 1) scrolling down a webpage I encounter a temporary freeze, 2)