BMP EJBs Not Inserting
I have 4 BMP EJBs which all use the same datasource for connecting to the database.
When i create an object, all 4 report that they were succesfully created (dont throw any exceptions and i can print their primary key), however only 1 of them gets inserted into the database. I print out the row count returned from the myPreparedStatement.executeUpdate(sql) call in my ejbCreate method and it is always 1.
I am using Sun Application Server PE8 and PostgreSQL 7.4.2
This used to work on the Sun Reference Implementation for J2EE 1.3
Any suggestions what could be causing this?
Thanks,
Toby
for future reference, it was because i had the old client stubs being deployed with the EJBs.
Oops
Similar Messages
-
URGENT HELP ON BMP EJB!!!
Hi everybody!!
I've wrote few CMP EJB's before and now Im trying to write a BMP EJB.
In the finder methods I�ve to select data from two tables:
"product_catalog" and "product" (relation One to many)
The query that matches my needs is:
SELECT DISTINCT a.product_code, b.product_description
FROM product a, product_catalog b
WHERE a.product_code = b.product_code
AND (a.region_code = '00' OR a.region_code = 'variable argument')
AND b.product_line <> '08'
Note that in the FROM clause of the query data is retrieved from two tables and that the WHERE conditions involve both tables.
�A query like this can be implemented into a finder method of a BMP EJB?
�What about the descriptor? -Im using Websphere Application Server 4.0-
�How can I tell the container which fields will be persistent?
�Which fields should I've to specify as primary key fields? �The ones from the parent table? �What about the ones from the child table? �What about the query in the ejbLod() and the ejbStore() methods that select and update data from the table(s)?
I've looked at the J2EE tutorial examples but none of the examples uses a query like mine.
As you can see I need URGENT help on this.
All the help you can give will be greatfully welcome!!
THANKS!!!
Ezequiel Velazquezpost the same question at:
http://forum.java.sun.com/forum.jsp?forum=13 -
Can not insert/update data from table which is created from view
Hi all
I'm using Oracle database 11g
I've created table from view as the following command:
Create table table_new as select * from View_Old
I can insert/update data into table_new by command line.
But I can not Insert/update data of table_new by SI Oject Browser tool or Oracle SQL Developer tool .(read only)
Anybody tell me, what's happend? cause?
Thankyou
thiensu
Edited by: user8248216 on May 5, 2011 8:54 PM
Edited by: user8248216 on May 5, 2011 8:55 PMI can insert/update data into table_new by command line.
But I can not Insert/update data of table_new by SI Oject Browser tool or Oracle SQL Developer tool .(read only)so what is wrong with the GUI tools & why posting to DATABASE forum when that works OK? -
2lis_11_VAITM not inserting all data in ODS
Hello Gurus.
I'm using extractor 2lis_11_VAITM, when I test the extractor in RSA3, it is bringing me all registers of table VBAP, but when I load this extractor into an ODS in BW, It is not inserting all registers into the cube, some "return orders" are missing, how can i solved this problem ???? I'm using in ODS key Doc number and position.
THANKS IN ADVANCED.Hi Sudheer, ther is no selections during data load, and also ther isn't any routine(either in transfer or update rules). It's supposed that all registers have to be loaded to the ODS no ?? because i'm using key Doc number and positions, so I want all documents with all positions to be loaded, but this is not happening, there are missing the "'return orders'".
Any other idea of why this is happening ?? -
Can not insert null into foreign key issue
Hi ,
I am having parent-child relationship table.
In the child table when I am adding a new record , data is getting inserted with foreign key.
After insert if I immediately update the same record. Its giving error that can not insert null into foreign key.
If i click on rollback button I am able to update that record properly.Hi ,
I am having parent-child relationship table.
In the child table when I am adding a new record , data is getting inserted with foreign key.
After insert if I immediately update the same record. Its giving error that can not insert null into foreign key.
If i click on rollback button I am able to update that record properly. -
In new iPad 4g, when sim card is not inserted, I can not find the enable 4g tap in the setting-cellular data tap, can some one please tell me if this is normal and if so, then when it appears, thanks
If the SIM is out of your phone, find my phone needs a data connection, so could use wifi - IF in range of a wifi and one that it can join (ie. a known network or one that is wholly open so no login required). Your phone could also simple be turned off, so not findable, or it may have been restored (plugged into iTunes and restored as new) again, making it permanently unfindable. Honestly, for someone stealing an iPhone, this is likely the first thing they do - restore as new and it is theirs forever.
Find my iPhone is tied to the users iCloud account - the find function is part of the iCloud account's services and it communicates with the iCloud servers over a data connection - either wifi or 3G.
Have you set up your iCloud account on your replacement phone, and is it working properly on that phone? -
Hi all ;
when tryiing to call a stored procedure from java session bean ,i am getting this error message:
[BEA][Oracle JDBC Driver][Oracle]ORA-20000: Records are not inserted into the stagging table
ORA-06512: at "APPS3_MTNAOL.MTN_INV_MANAGER", line 2529
ORA-06512: at line 1
but when i am calling the same stored procedure from sql developper for test ,with the same input data, it is working fine. what can be the issue?ORA-20000 is a user-defined Error in the database. Please check with whoever developed the code within your organization on what that means.
but when i am calling the same stored procedure from sql developper for test ,with the same input data, it is working fine. what can be the issue?Obviously, you are not able to recreate the error from 'sql developer'.
Edited by: RPuttagunta on Dec 7, 2010 3:06 PM -
Hi,
could you do me help?
i can not insert a string into a oracle clob field, it echo as:
ORA22920 row containing the lob value is not locked. ORA 06512 at "SYS.DBMS_LOB" line 708
ORA 06512 at line 1;
what its means? please.
my table defined as : create table clob1(id number(5),mclob clob default empty_clob()); the id is create by a sequece of test_sequence automaticly.
my code as belows:
import java.io.*;
import java.sql.*;
//import oracle.sql.*;
public class test4 {
public static void main(String args[]) {
String url_String
= "jdbc:oracle:thin:test/test@myhost:1521:myorcl";
try {
Class.forName
("oracle.jdbc.driver.OracleDriver");
java.sql.Connection con =
java.sql.DriverManager.getConnection(url_String);
con.setAutoCommit(true);
Statement stmt
=con.createStatement();
String sqlStr ="insert into
clob1 (mclob) " + "values(empty_clob())";
stmt.executeUpdate(sqlStr);
String query = "select
test_seq.CURRVAL from dual";
ResultSet rs =stmt.executeQuery
(query);
rs.next();
int currval =rs.getInt(1);
query = "select * from clob1 where
id="+currval;
String str
="abcedefhijklmnopqrstuvwxyz";
rs =stmt.executeQuery(query);
rs.next();
java.sql.Clob clob1
=rs.getClob(2);
oracle.sql.CLOB clob=
(oracle.sql.CLOB)clob1;
System.out.print(clob);
java.io.Writer
wr=clob.getCharacterOutputStream();
wr.write(str);
wr.flush();
wr.close();
stmt.close();
con.close();
} catch(Exception ex) {
System.err.println("SQLException: "
+ ex.getMessage());
nullHi,
To avoid ORA-22920 error while selecting lob column, use the 'for update' clause in the select statement like :
query = "select * from clob1 where id="+currval+" FOR UPDATE" ;
This should solve the problem. However, after fixing this, you might get the error :
java.sql.SQLException: ORA-1002: fetch out of sequence
I got this error when testing your code. To avoid this error, before executing 'select ... for update' statement Set AutoCommit to OFF, like :
query = "select * from clob1 where id="+currval+" FOR UPDATE" ;
con.setAutoCommit(false);
rs =stmt.executeQuery(query);
Hope that Helps,
Srinivas -
Insert statement does not insert all records from a partitioned table
Hi
I need to insert records in to a table from a partitioned table.I set up a job and to my surprise i found that the insert statement is not inserting all the records on the partitioned table.
for example when i am using select statement on to a partitioned table
it gives me 400 records but when i insert it gives me only 100 records.
can anyone help in this matter.INSERT INTO TABLENAME(COLUMNS)
(SELECT *
FROM SCHEMA1.TABLENAME1
JOIN SCHEMA2.TABLENAME2a
ON CONDITION
JOIN SCHEMA2.TABLENAME2 b
ON CONDITION AND CONDITION
WHERE CONDITION
AND CONDITION
AND CONDITION
AND CONDITION
AND (CONDITION
HAVING SUM(COLUMN) > 0
GROUP BY COLUMNS -
Latest pages change does not insert page numbers
Went to add the page number in a document and it does not insert the number or give a choice as to the format of that number. anyone know a fix?
Acrobat has no way to know which bit of character string on each page is the page number.
The visible page number has never formed any part of Reader nav. as you point out, it couldn't.
Acrobat knows the Numbering Properties of the pages as created in Frame. It just doesn't display or honor them consistently, depending on Reader version.
I also use i, ii, iii, iv for pre-narrative material. The romans are displayed in the page number box of Acroread (this is AR7 on Unix). I can enter "ii" in the box, and go to that page. But the Print dialog is Ordinal only. Printing page ranges in AR7 is always off by 2 or 4 relative to the actual page numbers.
Acrobat Pro 9 (9.4.5, Win7-64) seems to be more consistent, and does show and accept real page numbers for Print. -
BMP is not displayed in Oracle Forms 10g
Hi,
I am trying to display logo on the custom logon form.
I have created an image item in the block. The following code is written in WNFI
DECLARE
Master_image VARCHAR2(80) := 'SS.bmp';
BEGIN
set_window_property(forms_mdi_window, window_state, maximize);
set_window_property(forms_mdi_window, Title, 'Accounting System');
READ_IMAGE_FILE(master_image, 'BMP', 'image_master');
END;
But the BMP is not getting displayed.
Am i missing something here?
Thanks
ATHi Gerd,
I thought so.
But it is working same way in another application also on 10g.
I do not have access to that form but i got the above mentioned code used there and i tried to use it in my form.
Can think of something?
Thanks
AT -
Hi all,
I did File to RFC scenario. My problem is when i send message the message is showen as processed successfully in SXMB_MONI. But RFC is not inserting my data in a specified table. I couldn't found where i am wrong.
my sender strucure is:
<MANDT>
<WORKDATE>
<EMPLOYEENUMBER>
<CATSHOURS>
R3 table name is ZTESTCATSDB
My RFC source code is :
FUNCTION Z_POST_TEST.
""Local Interface:
*" TABLES
*" CATSRECORDS_IN STRUCTURE ZTESTCATSDB OPTIONAL
*" RETURN STRUCTURE BAPIRET2 OPTIONAL
data wa_cats like ZTESTCATSDB.
data wa_catdb like ZTESTCATSDB.
data ztab like ZTESTCATSDB OCCURS 0 WITH HEADER LINE.
loop at catsrecords_in into wa_cats.
ztab-WORKDATE = wa_cats-workdate.
ztab-empnum = wa_cats-empnum.
ztab-catshours = wa_cats-catshours.
append ztab.
endloop.
insert ZTESTCATSDB from table ztab.
commit work.
ENDFUNCTION.
Plese tell me any one where i am wrong it is very urgent for me.
Thanks,
Satish.You should always check the system return code (sy-subrc) after any insert and update statement like this:
insert ...
if sy-subrc > 0.
message E...
else.
commit work.
endif.
Hope that helps,
Stefan -
Files moving to NFS error folder - Could not insert message into duplicate check table
Hi Friends
Have anyone faced this error, could suggest me why.
The CSV Files failed on Sender Channel and moves to NFS error path and in the log it says as below.
Error: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Could not insert message into duplicate check table. Reason: com.ibm.db2.jcc.am.SqlTransactionRollbackException: DB2 SQL ErrorHi Uma - is that a duplicate file? have you enabled duplicate file check in sender channel?
please check if the below note is applicable
1979353 - Recurring TxRollbackException with MODE_STORE_ON_ERROR stage configuration -
Could not insert Data in to the table
hello friends
I have some pbm in inserting values in to sqlserver database table.I could not insert values to the
table having varchar datatype fields.partyType is a field name of varchar type.when i try to insert
"LCL" for that field it throws following exception.
java.sql.SQLException: [Microsoft][ODBC SQL Server Driver][SQL Server]The name 'LCL'
is not permitted in this context. Only constants, expressions, or variables allowed here. Column
names are not permitted.
sometime it throws
java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Optional feature not
implemented
If i give only numeric values to those fields it accepts.ie table accepts only integer values for all the fields.I use prepared statement for inserting data.I am inserting data to 4 tables at a time.I use ODBC driver.can u tell me where would be the problem??</p>
with regards
deviHmmmm...
ssniazi does nothing but ask for contact information or recommend Oracle products.
Based on this I consider it likely that this person is some sort of sales representative either directly or indirectly associated with Oracle.
I personally wouldn't provide any contact information to this person. Nor would I accept any advice until this person starts to actually provide some solutions or at least correctly reveals any financial interests that they might have.
In addition I believe ssniazi is in violation of the conduct code of this website because ssniazi is requesting information which will be used by a business entity without telling the users that it will be used in that way. And I expect that Oracle itself would frown on such activities.
2.3 You agree that You will not use the Website to:...(g) collect or store personal data about other users unless specifically authorized by such users. -
Why I can not insert into a table?
Hi, all,
I have a table "personstudy" with records already. Its primary key is "subjectid". and I have added a new column named "personstatus" varchar2(20) to it. After that, I want to insert into the field with "enrolled" for all records there. My script is like this:
insert into personstudy (personstatus) values ('enrolled');
the system reports:
ERROR at line 1:
ORA-01400: cannot insert NULL into ("FLOWLIMS"."PERSONSTUDY"."SUBJECTID")
I just can not understand it. Is there any wrong with my script?
Thank you!
Qianmaybe want you need is not insert a new rows but to update the existing records to have the 'enrolled' value put into the column personstatus.
update personstudy
set personstatus = 'enrolled';
Maybe you are looking for
-
Any info on how to get icloud calendar, contacts, etc to sync with office 365 on macbook pro?
-
With a Custom Search portlet how to Sort the Result By Sequence. i.e. by respecting arrangements of the items in the page of contents? Actually the Results Options "Order By" are : Create Date, Author, Creator, Date Updated, Display Name, Last Update
-
GL is relevant for automatic clearing
By which t.code we can check that the any particular g/l is relavant for automatic clearing or not? regards Rekha sharma
-
Why can't I edit the source code?
Updating an existing site that was created in Front Page. Am using DW CS4. Must be missing something totally obvious, but when I have pages open in split view, I'm unable to edit the source code. Any thoughts? I can make changes to the CSS, but direc
-
Correct Shared Variable behavior
I have a program, written in version 8.5, that has a shared variable used in an number of locations to shut down the program's major loops when the test system is being "shut down". I used a SV specifically to use its error in/out to force the execut