EJB2 not particpating in EJB1 transaction
Running WebLogic 8.140, container managed transactions. All methods are set with transactional attribute 'Required'. EJB1 method starts by doing an insert, then calls EJB2 method. EJB2 attempts to do an update using the PK generated by the insert in EJB1. A foreign key violation occurs. If the transaction started by EJB1 is commited before the call to EJB2 all is well. Since the EJB1 method is calling the EJB2 method, why isn't the EJB2 method participating in the transaction?
I'd first prove that these really aren't running in the same transaction. One easy way would be to have the EJB2 mark the transaction for rollback (EJBContext.setRollbackOnly). That should rollback the insert as well. Another option would be to print out the current transaction ID in both methods.
If they are participating in the same transaction, I would look at the SQL log in the database (or from WLS). Can you show me the SQL that is being executed?
-- Rob
WLS Blog http://dev2dev.bea.com/blog/rwoollen/
Similar Messages
-
Sending message to MQ is not particpating in existing Transaction
We are using MessageDrivenBean and have following transaction properties,
(a) transaction-type = "Container".
(b) trans-timeout-seconds = "60"
Note : We are using 2 PHASE Commit
We have made sure that Oracle Driver is XA Enabled.
And our MQ is also XA enabled (com.ibm.mq.jms.MQXAQueueConnectionFactory)
We have following 3 activities in MDB
1) Getting the message from MQ (OnMessage() is invoked)
2) Calling Oracle Stored Procedure
3) Sending XML message to another MQ Queue
Sometimes, we have seen that the procedures takes around 93 seconds to respond.
In that case, after getting back the control from procedure, ideally weblogic should issue a runtime exception,
because we have specified transaction timeout to 60 seconds.
Later, when container determines that transaction took more than 60 seconds, it issue a rollback.
In that case, Step no. 1 & 2 is ROLLBACKED. Step-3 is NOT ROLLBACKED.
Now, i have 2 questions,
(a) Once we get control back from stored procedure after 93 seconds, why container doesn't throw
runtime exception & issue transction rollback ?
(b) Lets say, it doesn't, then how to enlist JMS Resource in existing weblogic transaction,
so that, if the rollback happens, all 3 above steps should rollbacked.
We are using SPRING Framework by looking up JmsTemplate102 object and calling "convertAndSend() method"
<bean id="csmToIBus1" class="org.springframework.jms.core.JmsTemplate102">
<property name="connectionFactory">
<ref bean="jmsQueueConnectionFactory"/>
</property>
<property name="destinationResolver">
<ref bean="jmsDestinationResolver"/>
</property>
<property name="pubSubDomain">
<value>false</value>
</property>
<property name="defaultDestinationName">
<value>QueueName1</value>
</property>
</bean>
<bean id="jmsQueueConnectionFactory" class="org.springframework.jms.connection.SingleConnectionFactory102">
<property name="targetConnectionFactory">
<ref bean="internalJmsConnectionFactory"/>
</property>
<property name="pubSubDomain">
<value>false</value>
</property>
</bean>
<!-- JMS Destination Resolver -->
<bean id="jmsDestinationResolver" class="org.springframework.jms.support.destination.JndiDestinationResolver">
<property name="jndiTemplate">
<ref bean="jndiTemplate"/>
</property>
<property name="cache">
<value>true</value>
</property>
<property name="fallbackToDynamicDestination">
<value>true</value>
</property>
</bean>
<!-- Spring JMS Queue Connection Factory -->
<bean id="internalJmsConnectionFactory" class="org.springframework.jndi.JndiObjectFactoryBean" lazy-init="true">
<property name="jndiTemplate">
<ref bean="jndiTemplate"/>
</property>
<property name="jndiName">
<value>QCF1</value>
</property>
</bean>
Any hints will be highly appreciated.
Thanks,
Shashi
Email : [email protected]
Edited by informshashi at 08/10/2007 12:35 PM
Edited by informshashi at 08/10/2007 12:36 PMI'd first prove that these really aren't running in the same transaction. One easy way would be to have the EJB2 mark the transaction for rollback (EJBContext.setRollbackOnly). That should rollback the insert as well. Another option would be to print out the current transaction ID in both methods.
If they are participating in the same transaction, I would look at the SQL log in the database (or from WLS). Can you show me the SQL that is being executed?
-- Rob
WLS Blog http://dev2dev.bea.com/blog/rwoollen/ -
Currency BAM is not in Table TCURR transaction were moved to table PTRV_CCC
Hi Team,
we have problem , still we are maintaining currency BAM not in TCURR table but when we upload the data credit card details
system shows error message " Currency BAM is not in Table TCURR transaction were moved to table PTRV_CCC for correctionot
we are maininting Exchaqnge rate like below
GBP to BAM
can any one guide me where is the Mistake ,
thanks
RanamkaHi,
To resolve this error, you will need the exchange rate defined in the TCURR table (ob08). Once defined, sap will just validate that it exists in teh system. The real exchange rate will be what Diner provides so the employees will see the correct GBP amount and the exchange rate from Diner (not from what you define in TCURR) and so the reimbursement in CAD will match what Diner is billing the employee.
Depending on your config, the exchange rate field should be grayed out for credit card charges so that employees cannot change it and so the amounts will always match the billed amount.
Hope this helps.
Sal -
Some Software Component Versions do not show up in transaction sproxy
I have a landscape with a CRM system, a PI system (with the SLD on it) and some other systems.
In transaction sproxy in the CRM system the Software Component Version SAP CRM ABAP 7.0 shows up, but others that should be there like SAP ABA 7.01 are not there.
So I went on the SLD and edited the technical system for the CRM system, I added the product SAP CRM 7.00 and set the checkmark for installed for the relevant SWCVs like SAP ABA 7.01.
I then went to the business system for the relevant CRM client and there also checked those SWCVs.
But still they do not show up in transaction sproxy in the CRM system.
What am I missing?Hi Monika,
There's several suggestions that you could look at to help resolve your problem in this thread:
[Can't find ESA ECC-SE 603 SWCV;
Regards, Trevor -
Error : Excise modvat accounts not defined for GRPO transaction and U1 exci
I have Created Impot PO, After Planned Delivery cost MIRO I am trying to Perform GR then its giving Error "Excise modvat accounts not defined for GRPO transaction and U1 excise group
Message no. 8I402"
I have already maintained GL account in "Specify G/L Accounts per Excise Transaction" for Excise group U1
This problem is coming when Additional Duty on custom condition type JADC is maintained in "Maintain Excise Defaults" node in the column "ADC Cond" . If I remove JADC condition type from this place the this error is not coming but AED column is not fetching any value while doing GR.
Please help me in this issue , still No answer
Edited by: shiwanshu singh on Jan 28, 2009 10:26 AMDear sir
For GRPO have you maintained sub transaction Type IP for your excise group U1. If you not maintained pl maintain . and assign G/L account to modvat clearing account , the G/l account should be same as company code CVD account.
Regards
jrp -
Excise modvat accounts not defined for GRPO transaction and 58 Excise group
Hi Experts,
When i am doing Goods receipts for Depot for Subcontracting
i am getting this error message .Excise modvat accounts not defined for GRPO transaction and Excise group. For Depot no modvat. is there any configuration setting for depot. Please do needful.Hi,
Please maintain
Hi,
go to SPRO
Specify G/L Accounts per Excise Transaction
SPROLogistics u2013 GeneralTax on Goods MovementsIndia Account Determination Specify G/L Accounts per Excise Transaction
Enter excise group -58
ETT_ GRPO
and G/L account
G.Ganesh Kumar -
Excise modvat accounts not defined for DLFC transaction and excise group
Dear Experts,
Iam raising this question after checking all the contents related to Sub Transaction type in SDN.
My prob is: for raw material sales scenario i have created order delivery and invoice. For Invoice i have done account determination with a different G/L in VKOA. Now i have to create an excise invoice and the accounting entry for central ED on sales should go to different G/L account. for account determination i have done the following settings:
Maintained Sub transaction type in
IMG -> Logistics - General -> Tax on Goods movement -> India -> Basic Settings
->Maintain Sub Transaction types
IMG -> Logistics - General -> Tax on Goods movement -> India ->
Account determination -> Specify Excise Accounts per Excise Transaction.
Here against DLFC sub transaction Type is maintained..
Also
IMG -> Logistics - General -> Tax on Goods movement -> India -> Account determination -> Specify G/L Accounts per Excise Transaction
Here maintained Excise group with DLFC Company Code subtransaction type, chart of accounts and all required GL Account .
But when the iam creating Excise Invoice in J1IIN and clicking on Subtransaction type-F4, no entries are shown. No values found is the message in green. Message no. DH801
If i use subtransaction type and enter billing document and enter, the following error message comes:
"Excise modvat accounts not defined for DLFC transaction and excise group"
Iam unable to understand why the subtransaction type maintained is not showing in TCODE J1IIN?
RegardsFor the error message DH801, please check note 840911
Excise modvat accounts not defined for
DLFC transaction and excise group"
Please check your G/L assignments "Specify G/L Accounts per Excise Transaction"
thanks
G. Lakshmipathi -
Excise modvat accounts not defined for CAPE transaction and TS excise group
Hi Guys,
Suddenly we are facing issue during exicse invoice capturing with MIGO
system is giving following error
"Excise modvat accounts not defined for CAPE transaction and TS excise group
Message no. 8I402
While in Excise account assignment table CAPE is Linked to Modvat Clearing Account which is further liked to correct GL
Can any one explain the cause of this issue Points will be awarded
Regards,
AshishHi
Pls maintain the following:
1. SPRO->Logistics General -> Tax on Goods Movements -> India -> Account Determination -> Specify Excise Accounts per Excise Transaction
Pls note the Sub Tansaction type is IP for ETT CAPE.
ETT <b>Sub Trn Type</b> DC Ind Account Name
CAPE IP CR Credit ONHOLD CENVAT on hold account
CAPE IP DR Debit ONHOLD CENVAT on hold account
CAPE IP DR Debit RG23AED RG 23 AED account
CAPE IP DR Debit RG23BED RG 23 BED account
CAPE IP DR Debit RG23SED RG 23 SED account
CAPE IP DR Debit RG23ECS RG 23 ECS account
2. SPRO->Logistics General -> Tax on Goods Movements -> India -> Account Determination -> Specify G/L Accounts per Excise Transaction
Check the G/L accounts for Excise Transaction Type CAPE and maintain the same G/L accounts for ETT CAPE with <b>Sub Trn Type IP</b>.
Hope this clarifies.
Thanks -
Error - Excise modvat accounts not defined for DLFC transaction and 01 exci
Dear All,
Getting below error while doing J1IIN - Posting Excise invoice for Sale.
"Excise modvat accounts not defined for DLFC transaction and 01 excise group"
I checked with the settings GL are assigned to for DLFC and 01 excise group.
Is anywhere else I need to mantain the modvat GL
Regards,
RakeshCheck if you are using any subtransaction type along with excise transaction type.
Excise group, ETT, company code, sub transaction type (if any), Chart of account, Modvat account (pls maintain all the entries over here) search for modavat clearing field and maintain it.
BR
Edited by: Sujoy on Jan 15, 2010 9:45 AM -
Exsice tab not display in migo transaction
Dear All,
for this error i got one note 1079123, i am using Ecc 6.0 Ehp4.
when my basis person is going to apply that patch, that time he is telling me this will not applicable for EHP4, this will use only in 602 version...
can any body help me.....HI,
possible reasons are
1. the user is not assigned to that transaction.
2. in J1ID data will not be maintained properly.
3. In your p.o your not maintained proper taxcode. -
Sales document item is not defined for this transaction in Pur.Order
hi,
At the time of convertion of pr to po one error message received.
Sales document item 46 000010 is not defined for the transaction
Message no. V1198
Diagnosis
You have tried to carry out a business transaction for this sales and distribution document item which, for this item, is not allowed.
This may be due to the fact that this item is not part of a make-to-order production with cost management in the sales order.
Procedure
Please check your entries.
this is MAKE TO ORDER SCENARIO THIS ERROR IS FOR RAW MATERIAL CONVERTION AGAINST SALES ORDER.Hi,
Check in material master MRP3 view there is field called strategy group where you have option to define the planning strategy like make to order/make to stock & like.
Regards
Ravi Shankar. -
BSP Error when copying text from email to Note section of a transaction
Hi All,
We are using CRM2007 for both the Interaction Centre and Sales Web Client.
When a user is creating a transaction in both roles, if one copies a piece of text from an email into the note section of a transaction at times the web client crashes and gives a BSP error.
It seems that cetain symbols are not recognised and cannot be converted when they are copied into the note section. The symbols I have noticed this to occur on are the dash symbol and the apostrophe (') symbol.
The symbols are fine when they are typed in directly, the issue only occurs if they are copied in.
The web client cannot handle this exception and falls over as a result.
However, if the text is copeid into the note section of a transaction in CRM online, any symbols it cannot convert correctly automatically convert to a hash (#) symbol.
Has anyone come across this issue before? Or have an idea as to how it could be resolved?
Even if it was possible for the webclient to convert any unknown symbols automatically into a hash (#) symbol like CRM Online so the web client would not fall over on save of a transaction.
Your help would be greatly appreciated.
Thanks,
JonathanHi Inderjeet.
Thanks for the reply I guess we could not get the fiddler trace as we are getting this error while i am copying the data to excel file which is present on drive from SharePoint this is not on a browser. Correct me if I am wrong
And Alternate access mappings and IIS bindings are perfect.
Thanks,
Neela Krishna. -
I am getting the following error when attempting to INSERT the results of an "EXEC(@MDXQuery) at SSAS LinkedServer":
The requested operation could not be performed because OLE DB provider "MSOLAP" for linked server does not support the required transaction interface.
Here is code that illustrates what I am doing:
DECLARE @MDX varchar(max);
SET @MDX='
SELECT
[Measures].[Extended Service Count]
} ON COLUMNS,
NON EMPTY [Organization].[By Manufacturer].[Manufacturer]
ON ROWS
FROM (
SELECT
{[Organization].[Org Tree].&[2025],[Organization].[Org Tree].&[2040]} ON 0
FROM [MyCube]
/* Test 1 */
EXECUTE(@MDX) at SSASLinkedServer;
/* Test 2 */
DECLARE @ResultsB TABLE (
Manufacturer varchar(255)
, ExtendedServiceCount float
INSERT INTO @ResultsB (Manufacturer, ExtendedServiceCount) EXECUTE(@MDX) at SSASLinkedServer;
Test 1 succeeds, returning expected results, and Test 2 fails returning the error mentioned above.
Other articles I've found so far don't seem to apply to my case. I am not creating any explicit transactions in my code. When I use OPENQUERY, I am able to do the insert just fine, but not when I use EXEC @MDX at LinkedServer.
Unfortunately in some variations of the query, I run into the 8800 character limit on OPENQUERY, so I need to use this other approach.
Any ideas?
-Tab AllemanHi Tab,
In this case, SQL Server Analysis Services doesn’t support Distributed Transactions by design. Here is a similar thread about this issue for your reference, please see:
http://social.technet.microsoft.com/Forums/en-US/8b07be45-01b6-49d4-b773-9f441c0e44c9/olaplinked-server-error-msolap-for-linked-server-olaplinked-server-does-not-support-the?forum=sqlanalysisservices
One workaround is that use SQLCMD to execute the EXEC AT command and saved the results to a file, then import using SSIS.
If you have any feedback on our support, please click
here.
Regards,
Elvis Long
TechNet Community Support -
Err in PO creation-Sales document item is not defined for this transaction
Dear Consultants the errror occurs when we process Individual Purchase Order scenario.
Err in PO creation-Sales document item is not defined for this transaction
Thanks&Regards,
SanthaRamThis error because the item category is not determined correctly in the sales order.
Check the item category in Sales order line item, for Individual Purchase order scenario its TAB.
If its not TAB, then check the assignement for Item category in VOV4.
This thread is more of the SD part, so also put it in SD forum for better solutions.
Regards,
Sheetal -
Err in PO creation-Sales document item is not defined for the transaction
Hi,
I am getting the following error while creating PO
"Sales document item 30000183 000100 is not defined for the transaction
Message no. V1 198
Diagnosis
You have tried to carry out a business transaction for this sales and distribution document item which, for this item, is not allowed.
This may be due to the fact that this item is not part of a make-to-order production with cost management in the sales order."
I have used an item category which is copy of TAB and the sales order line item is attached to WBS element.
can any one guide me what needs to be done.
thanksIf you want the sales order creation to initiate a PO creation automatically, check if the "Create PO Automatically" button is ticked on for the item category in Transaction flow tab in tcode VOV7
This will solve your problem, provided your configuration for PO on the MM side is fine.
Reward if this helps.
Maybe you are looking for
-
Why can't I add more than 1 one to one private lesson at a time?
I'm trying to figure out why I cant schedule more than 1 one to one private lesson at a time. Any help?
-
Ipod not being detected by Windows
Hey! I've asked this question before, but no one has given me anything yet. Not being selfish or anything. But when I put in my ipod my computer tells me: One of the USB devices attached to this computer has malfunctioned, and Windows does not recogn
-
Hi all, i am trying to find out which objects use a particular table in the database. for example, i have table products that might be use inside a procedure, function and view. i am trying to find out where this table is use in my db. i query the db
-
Does Mac Outlook synch with iCloud?
After spending a couple of hours at Genuis bar and another 90 minutes on the phone with tech support, I wanted to let the community know that Mac Outlook does not synch with iCloud. The calendar and contact updates go into a "on the Mac" part of iCa
-
How to make substring a string in concern with length
hello frds, i am in need of a very basic clarification. i have a String like String st="abcdefg"; String st1=st.substring(0,2); String st2="ab" i am getting st1="ab" like what need but the when i compare st1 and st2 its not returning true (but it sho