-----原始邮件-----
发件人: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]代表 Cook, Thomas
发送时间: 2001年1月12日 13:49
收件人: 'jBoss'
主题: RE: [jBoss-User] Problem about CMP? Big Bug with JBoss CMP??ejbCreate doesn't have to write the values of any fields except the primary key, since these will be written by ejbStore at the end of the transaction anyway. So ejbCreate just creates the bean's row in the DB, then ejbStore sets the data to what it should be.
It is probably marginally more efficient to insert nulls than data, given that the update is going to happen in ejbStore anyway.
Tom
Tom Cook
Systems Development
Australian Submarine Corporation
Mersey Road
Outer Harbour+61 8 8348 7645
"From the instant I picked your book up, until the moment I put it down, I was convulsed with laughter. I fully intend to read it one day."
- Groucho Marx
-----Original Message-----
From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
Sent: Friday, January 12, 2001 1:57 PM
To: jBoss
Subject: Re: [jBoss-User] Problem about CMP? Big Bug with JBoss CMP??I have check it after I stoppped Jboss.
For examples:the contents of My cds.txt:
19 White,Tallis,etc./Lamentations
1 Great Organ Works/Bach JS Koopman classical, organ Incl. Toccata & Fugue in D minorafter I run run_upload.bat,on the jboss console windows thers are message like these:
[JAWS] FindAll command executing: SELECT cd_id FROM music_cd
[CDCollectionBean] ***found all***
[CDCollectionBean] *** num records = 0
[JAWS] Exists command executing: SELECT COUNT(*) FROM music_cd WHERE cd_id=?
[JAWS] Set parameter: idx=1, jdbcType=CHAR, value=19
[CDCollectionBean] Added CD with id=19, title=White,Tallis,etc./Lamentations, artist= , type= , notes=
[JAWS] Create, id is 19
[JAWS] Exists command executing: SELECT COUNT(*) FROM music_cd WHERE cd_id=?
[JAWS] Set parameter: idx=1, jdbcType=CHAR, value=19
[JAWS] Create command executing: INSERT INTO music_cd (cd_artist,cd_notes,cd_type,cd_title,cd_id) VALUES (?,?,?,?,?)
[JAWS] Set parameter: idx=1, jdbcType=VARCHAR, value=NULL
[JAWS] Set parameter: idx=2, jdbcType=VARCHAR, value=NULL
[JAWS] Set parameter: idx=3, jdbcType=VARCHAR, value=NULL
[JAWS] Set parameter: idx=4, jdbcType=VARCHAR, value=NULL
[JAWS] Set parameter: idx=5, jdbcType=CHAR, value=19
[JAWS] Rows affected = 1
[JAWS] Store command executing: UPDATE music_cd SET cd_artist=?,cd_notes=?,cd_type=?,cd_title=? WHERE cd_id=?
[JAWS] Set parameter: idx=1, jdbcType=VARCHAR, value=
[JAWS] Set parameter: idx=2, jdbcType=VARCHAR, value=
[JAWS] Set parameter: idx=3, jdbcType=VARCHAR, value=
[JAWS] Set parameter: idx=4, jdbcType=VARCHAR, value=White,Tallis,etc./Lamentations
[JAWS] Set parameter: idx=5, jdbcType=CHAR, value=19
[JAWS] Rows affected = 0
[JAWS] Exists command executing: SELECT COUNT(*) FROM music_cd WHERE cd_id=?
[JAWS] Set parameter: idx=1, jdbcType=CHAR, value=1
[CDCollectionBean] Added CD with id=1, title=Great Organ Works/Bach JS, artist=Koopman, type=classical, organ, notes=Incl. Toccata & Fugue in D minor[JAWS] Create, id is 1
[JAWS] Exists command executing: SELECT COUNT(*) FROM music_cd WHERE cd_id=?
[JAWS] Set parameter: idx=1, jdbcType=CHAR, value=1
[JAWS] Create command executing: INSERT INTO music_cd (cd_artist,cd_notes,cd_type,cd_title,cd_id) VALUES (?,?,?,?,?)
[JAWS] Set parameter: idx=1, jdbcType=VARCHAR, value=NULL
[JAWS] Set parameter: idx=2, jdbcType=VARCHAR, value=NULL
[JAWS] Set parameter: idx=3, jdbcType=VARCHAR, value=NULL
[JAWS] Set parameter: idx=4, jdbcType=VARCHAR, value=NULL
[JAWS] Set parameter: idx=5, jdbcType=CHAR, value=1
[JAWS] Rows affected = 1
[JAWS] Store command executing: UPDATE music_cd SET cd_artist=?,cd_notes=?,cd_type=?,cd_title=? WHERE cd_id=?
[JAWS] Set parameter: idx=1, jdbcType=VARCHAR, value=Koopman
[JAWS] Set parameter: idx=2, jdbcType=VARCHAR, value=Incl. Toccata & Fugue in D minor
[JAWS] Set parameter: idx=3, jdbcType=VARCHAR, value=classical, organ
[JAWS] Set parameter: idx=4, jdbcType=VARCHAR, value=Great Organ Works/Bach JS
[JAWS] Set parameter: idx=5, jdbcType=CHAR, value=1
[JAWS] Rows affected = 0At that time,I check the table by sql*plus.
SQL> select * from music_cd;
CD_ARTIST CD_NOTES CD_TYPE CD_TITLE CD_ID
--------------------------- ---------------------------- ---------------------------- ---------------------------- ----------------------------------19
1
Then I Ctrl-C to shutdown the jboss.I check the table by sql*plus again.
CD_ARTIST CD_NOTES CD_TYPE CD_TITLE CD_ID
--------------------------- ---------------------------- ---------------------------- ---------------------------- ----------------------------------19
1
I don't know why the jboss can't insert the values into table except for PK values.
appendix: the log of jboss:
[File logging] Initialized
[Classpath extension] Initializing
[Classpath extension] Added directory:file:/F:/jBoss/tmp/
[Classpath extension] Initialized
[Classpath extension] Initializing
[Classpath extension] Added directory:file:/F:/jBoss/db/
[Classpath extension] Initialized
[Info] Java version: 1.3.0,Sun Microsystems Inc.
[Info] Java VM: Java HotSpot(TM) Client VM 1.3.0-C,Sun Microsystems Inc.
[Info] System: Windows 2000 5.0,x86
[Classpath extension] Initializing
[Classpath extension] Added library:file:/F:/jBoss/lib/ext/activation.jar
[Classpath extension] Added library:file:/F:/jBoss/lib/ext/awt.jar
[Classpath extension] Added library:file:/F:/jBoss/lib/ext/dynaserver.jar
[Classpath extension] Added library:file:/F:/jBoss/lib/ext/ejb.jar
[Classpath extension] Added library:file:/F:/jBoss/lib/ext/ejxeditor.jar
[Classpath extension] Added library:file:/F:/jBoss/lib/ext/ejxejb.jar
[Classpath extension] Added library:file:/F:/jBoss/lib/ext/ejxjaws.jar
[Classpath extension] Added library:file:/F:/jBoss/lib/ext/ejxjboss.jar
[Classpath extension] Added library:file:/F:/jBoss/lib/ext/hsql.jar
[Classpath extension] Added library:file:/F:/jBoss/lib/ext/idb.jar
[Classpath extension] Added library:file:/F:/jBoss/lib/ext/jboss.jar
[Classpath extension] Added library:file:/F:/jBoss/lib/ext/jetty-service.jar
[Classpath extension] Added library:file:/F:/jBoss/lib/ext/jms.jar
[Classpath extension] Added library:file:/F:/jBoss/lib/ext/jmxtools.jar
[Classpath extension] Added library:file:/F:/jBoss/lib/ext/jndi.jar
[Classpath extension] Added library:file:/F:/jBoss/lib/ext/jnpserver.jar
[Classpath extension] Added library:file:/F:/jBoss/lib/ext/jpl-util-0_5b.jar
[Classpath extension] Added library:file:/F:/jBoss/lib/ext/jta-spec1_0_1.jar
[Classpath extension] Added library:file:/F:/jBoss/lib/ext/mail.jar
[Classpath extension] Added library:file:/F:/jBoss/lib/ext/oracle816jdbc.zip
[Classpath extension] Added library:file:/F:/jBoss/lib/ext/spydermq.jar
[Classpath extension] Added library:file:/F:/jBoss/lib/ext/tomcat-service.jar
[Classpath extension] Initialized
[JDBC] Loaded JDBC-driver:org.hsql.jdbcDriver
[JDBC] Loaded JDBC-driver:org.enhydra.instantdb.jdbc.idbDriver
[JDBC] Loaded JDBC-driver:oracle.jdbc.driver.OracleDriver
[Webserver] Initializing
[Webserver] Initialized
[Hypersonic] Initializing
[Hypersonic] Initialized
[Naming] Initializing
[Naming] Naming started on port 1099
[Naming] Initialized
[Transaction manager] Initializing
[Transaction manager] Initialized
[JAAS Security Manager] Initializing
[JAAS Security Manager] Initialized
[Simple Realm Mapping] Initializing
[Simple Realm Mapping] Initialized
[Security manager] Initializing
[Security manager] Initialized
[InstantDB] Initializing
[InstantDB] Initialized
[DefaultDS] Initializing
[DefaultDS] Initialized
[OracleORCLPool] Initializing
[OracleORCLPool] Initialized
[Container factory] Initializing
[Container factory] Initialized
[Auto deploy] Watching F:\jBoss\deploy
[Auto deploy] Initializing
[Auto deploy] Initialized
[JMX RMI Adaptor] Initializing
[JMX RMI Adaptor] Initialized
[JMX RMI Connector] Initializing
[JMX RMI Connector] Initialized
[Configuration] Initializing
[Configuration] Initialized
[J2EE Deployer] Initializing
[J2EE Deployer] Initialized
[Tomcat] Initializing
[Tomcat] Initialized
[SpyderMQ] Initializing
[SpyderMQ] Initialized
[Configuration] MaxActiveClientCount set to 10 in Adaptor:name=html
[Configuration] Port set to 8082 in Adaptor:name=html
[Configuration] URL set to jdbc:oracle:thin:@localhost:1521:orcl in DefaultDomain:service=XADataSource,name=OracleORCLPool[Configuration] GCMinIdleTime set to 1200000 in DefaultDomain:service=XADataSource,name=OracleORCLPool
[Configuration] JDBCUser set to scott in DefaultDomain:service=XADataSource,name=OracleORCLPool
[Configuration] MaxSize set to 0 in DefaultDomain:service=XADataSource,name=OracleORCLPool
[Configuration] Password set to tiger in DefaultDomain:service=XADataSource,name=OracleORCLPool
[Configuration] GCEnabled set to false in DefaultDomain:service=XADataSource,name=OracleORCLPool
[Configuration] InvalidateOnError set to false in DefaultDomain:service=XADataSource,name=OracleORCLPool
[Configuration] TimestampUsed set to false in DefaultDomain:service=XADataSource,name=OracleORCLPool
[Configuration] Blocking set to true in DefaultDomain:service=XADataSource,name=OracleORCLPool
[Configuration] GCInterval set to 120000 in DefaultDomain:service=XADataSource,name=OracleORCLPool
[Configuration] IdleTimeout set to 1800000 in DefaultDomain:service=XADataSource,name=OracleORCLPool
[Configuration] IdleTimeoutEnabled set to false in DefaultDomain:service=XADataSource,name=OracleORCLPool
[Configuration] LoggingEnabled set to false in DefaultDomain:service=XADataSource,name=OracleORCLPool
[Configuration] MaxIdleTimeoutPercent set to 1.0 in DefaultDomain:service=XADataSource,name=OracleORCLPool
[Configuration] MinSize set to 0 in DefaultDomain:service=XADataSource,name=OracleORCLPool
[Configuration] LibraryDirectory set to F:\jBoss-2.0_FINAL\bin in DefaultDomain:service=MLet
[Configuration] TransactionTimeout set to 300 in DefaultDomain:service=TransactionManager
[Configuration] Format set to [{2}] {4} in DefaultDomain:service=Logging,type=Console
[Configuration] Port set to 8083 in DefaultDomain:service=Webserver
[Configuration] Format set to [{2}] {4} in DefaultDomain:service=Logging,type=File
[Configuration] LogName set to server in DefaultDomain:service=Logging,type=File
[Configuration] URL set to jdbc:idb:../conf/default/instantdb.properties in DefaultDomain:service=XADataSource,name=InstantDB[Configuration] GCMinIdleTime set to 1200000 in DefaultDomain:service=XADataSource,name=InstantDB
[Configuration] MaxSize set to 10 in DefaultDomain:service=XADataSource,name=InstantDB
[Configuration] GCEnabled set to false in DefaultDomain:service=XADataSource,name=InstantDB
[Configuration] InvalidateOnError set to false in DefaultDomain:service=XADataSource,name=InstantDB
[Configuration] TimestampUsed set to false in DefaultDomain:service=XADataSource,name=InstantDB
[Configuration] Blocking set to true in DefaultDomain:service=XADataSource,name=InstantDB
[Configuration] GCInterval set to 120000 in DefaultDomain:service=XADataSource,name=InstantDB
[Configuration] IdleTimeout set to 1800000 in DefaultDomain:service=XADataSource,name=InstantDB
[Configuration] IdleTimeoutEnabled set to false in DefaultDomain:service=XADataSource,name=InstantDB
[Configuration] LoggingEnabled set to false in DefaultDomain:service=XADataSource,name=InstantDB
[Configuration] MaxIdleTimeoutPercent set to 1.0 in DefaultDomain:service=XADataSource,name=InstantDB
[Configuration] MinSize set to 0 in DefaultDomain:service=XADataSource,name=InstantDB
[Configuration] Port set to 1476 in DefaultDomain:service=Hypersonic
[Configuration] Silent set to true in DefaultDomain:service=Hypersonic
[Configuration] Database set to default in DefaultDomain:service=Hypersonic
[Configuration] Trace set to false in DefaultDomain:service=Hypersonic
[Configuration] URL set to jdbc:HypersonicSQL:hsql://localhost:1476 in DefaultDomain:service=XADataSource,name=DefaultDS[Configuration] GCMinIdleTime set to 1200000 in DefaultDomain:service=XADataSource,name=DefaultDS
[Configuration] JDBCUser set to sa in DefaultDomain:service=XADataSource,name=DefaultDS
[Configuration] MaxSize set to 10 in DefaultDomain:service=XADataSource,name=DefaultDS
[Configuration] GCEnabled set to false in DefaultDomain:service=XADataSource,name=DefaultDS
[Configuration] InvalidateOnError set to false in DefaultDomain:service=XADataSource,name=DefaultDS
[Configuration] TimestampUsed set to false in DefaultDomain:service=XADataSource,name=DefaultDS
[Configuration] Blocking set to true in DefaultDomain:service=XADataSource,name=DefaultDS
[Configuration] GCInterval set to 120000 in DefaultDomain:service=XADataSource,name=DefaultDS
[Configuration] IdleTimeout set to 1800000 in DefaultDomain:service=XADataSource,name=DefaultDS
[Configuration] IdleTimeoutEnabled set to false in DefaultDomain:service=XADataSource,name=DefaultDS
[Configuration] LoggingEnabled set to false in DefaultDomain:service=XADataSource,name=DefaultDS
[Configuration] MaxIdleTimeoutPercent set to 1.0 in DefaultDomain:service=XADataSource,name=DefaultDS
[Configuration] MinSize set to 0 in DefaultDomain:service=XADataSource,name=DefaultDS
[Configuration] VerifyDeployments set to true in EJB:service=ContainerFactory
[Configuration] MetricsEnabled set to false in EJB:service=ContainerFactory
[Configuration] VerifierVerbose set to true in EJB:service=ContainerFactory
[Configuration] Detected JMX Bug: Server reports attribute 'JDBCUser' is not writeable for MBean 'DefaultDomain:name=OracleORCLPool,service=XADataSource'[Configuration] Detected JMX Bug: Server reports attribute 'TimestampUsed' is not writeable for MBean 'DefaultDomain:name=OracleORCLPool,service=XADataSource'
[Configuration] Detected JMX Bug: Server reports attribute 'JDBCUser' is not writeable for MBean 'DefaultDomain:name=InstantDB,service=XADataSource'
[Configuration] Detected JMX Bug: Server reports attribute 'TimestampUsed' is not writeable for MBean 'DefaultDomain:name=InstantDB,service=XADataSource'
[Configuration] Detected JMX Bug: Server reports attribute 'JDBCUser' is not writeable for MBean 'DefaultDomain:name=DefaultDS,service=XADataSource'
[Configuration] Detected JMX Bug: Server reports attribute 'TimestampUsed' is not writeable for MBean 'DefaultDomain:name=DefaultDS,service=XADataSource'
[Simple Realm Mapping] Starting
[Simple Realm Mapping] Started
[Webserver] Starting
[Webserver] Codebase set to http://ysy:8083/
[Webserver] Started webserver on port 8083
[Webserver] Started
[Tomcat] Starting
[Tomcat] Testing if Tomcat is present....
[Tomcat] OK
[Tomcat] Starting Tomcat...
[Tomcat] Starting tomcat. Check logs/tomcat.log for error messages
[Tomcat] Started
[Transaction manager] Starting
[Transaction manager] Started
[Naming] Starting
[Naming] Started
[Hypersonic] Starting
[Hypersonic] Server 1.4 is running
[Hypersonic] Press [Ctrl]+[C] to abort
[Hypersonic] Database started
[Hypersonic] Started
[OracleORCLPool] Starting
[OracleORCLPool] XA Connection pool OracleORCLPool bound to java:/OracleORCLPool
[OracleORCLPool] Started
[InstantDB] Starting
[InstantDB] XA Connection pool InstantDB bound to java:/InstantDB
[InstantDB] The Initial Developer of the Original Code is Lutris Technologies Inc.
Portions created by Lutris are Copyright (C) 1997-2000 Lutris Technologies, Inc.
All Rights Reserved.
[InstantDB] Started
[DefaultDS] Starting
[DefaultDS] XA Connection pool DefaultDS bound to java:/DefaultDS
[DefaultDS] Started
[JAAS Security Manager] Starting
[JAAS Security Manager] Started
[Container factory] Starting
[Container factory] Started
[J2EE Deployer] Starting
[J2EE Deployer] No web container found - only EJB deployment available...
[J2EE Deployer] Cleaning up deployment directory file:/F:/jBoss/bin/../tmp/deploy/
[J2EE Deployer] Started
[Security manager] Starting
[Security manager] Started
[Auto deploy] Starting
[Auto deploy] Auto deploy of file:/F:/jBoss/deploy/interest.jar
[J2EE Deployer] Deploy J2EE application: file:/F:/jBoss/deploy/interest.jar
[J2EE Deployer] Could not delete temporary file: /F:/jBoss/bin/../tmp/deploy/copy1001.zip
[J2EE Deployer] Create application interest.jar
[J2EE Deployer] Installing EJB package: interest.jar
[J2EE Deployer] Starting module interest.jar
[Container factory] Deploying:file:/F:/jBoss/bin/../tmp/deploy/interest.jar/ejb1002.jar
[Container factory] Loading ejb-jar.xml : jar:file:/F:/jBoss/bin/../tmp/deploy/interest.jar/ejb1002.jar!/META-INF/ejb-jar.xml[Container factory] Loading standardjboss.xml : file:/F:/jBoss/conf/default/standardjboss.xml
[Container factory] jar:file:/F:/jBoss/bin/../tmp/deploy/interest.jar/ejb1002.jar!/META-INF/jboss.xml found. Overriding defaults[Verifier] Verifying file:/F:/jBoss/bin/../tmp/deploy/interest.jar/ejb1002.jar
[Verifier] Interest: Verified.
[Container factory] Deploying Interest
[Container factory] Container Invoker RMI Port='4444'
[Container factory] Container Invoker Optimize='true'
[Container factory] Mapped Container method remove HASH -1842617161
[Container factory] Mapped Container method getHandle HASH 1182305581
[Container factory] Mapped Container method getPrimaryKey HASH -131865408
[Container factory] Mapped Container method getEJBHome HASH -993218923
[Container factory] Mapped Container method isIdentical HASH 285457048
[Container factory] Mapped calculateCompoundInterest -548624954to public double com.web_tomorrow.interest.InterestBean.calculateCompoundInterest(double,double,double)[Container factory] Mapping remove
[Container factory] Mapping remove
[Container factory] Mapping getEJBMetaData
[Container factory] Mapping getHomeHandle
[Container factory] Mapping create
[Container factory] Bound Interest to interest/Interest
[Container factory] Deployed application: file:/F:/jBoss/bin/../tmp/deploy/interest.jar/ejb1002.jar
[J2EE Deployer] J2EE application: file:/F:/jBoss/deploy/interest.jar is deployed.
[Auto deploy] Auto deploy of file:/F:/jBoss/deploy/J2EE_Examples.jar
[J2EE Deployer] Deploy J2EE application: file:/F:/jBoss/deploy/J2EE_Examples.jar
[J2EE Deployer] Could not delete temporary file: /F:/jBoss/bin/../tmp/deploy/copy1003.zip
[J2EE Deployer] Create application J2EE_Examples.jar
[J2EE Deployer] Installing EJB package: J2EE_Examples.jar
[J2EE Deployer] Starting module J2EE_Examples.jar
[Container factory] Deploying:file:/F:/jBoss/bin/../tmp/deploy/J2EE_Examples.jar/ejb1004.jar
[Container factory] Loading ejb-jar.xml : jar:file:/F:/jBoss/bin/../tmp/deploy/J2EE_Examples.jar/ejb1004.jar!/META-INF/ejb-jar.xml[Container factory] Loading standardjboss.xml : file:/F:/jBoss/conf/default/standardjboss.xml
[Container factory] jar:file:/F:/jBoss/bin/../tmp/deploy/J2EE_Examples.jar/ejb1004.jar!/META-INF/jboss.xml found. Overriding defaults[Verifier] Verifying file:/F:/jBoss/bin/../tmp/deploy/J2EE_Examples.jar/ejb1004.jar
[Verifier] AccountBean: Verified.
[Verifier] CDBean: Verified.
[Verifier] ConverterBean: Verified.
[Verifier] CartBean: Verified.
[Verifier] CheckerBean: Verified.
[Verifier] CDCollectionBean: Verified.
[Container factory] Deploying AccountBean
[Container factory] Container Invoker RMI Port='4444'
[Container factory] Container Invoker Optimize='true'
[Container factory] Deploying CDBean
[Container factory] Container Invoker RMI Port='4444'
[Container factory] Container Invoker Optimize='true'
[Container factory] Deploying ConverterBean
[Container factory] Container Invoker RMI Port='4444'
[Container factory] Container Invoker Optimize='true'
[Container factory] Deploying CartBean
[Container factory] Container Invoker RMI Port='4444'
[Container factory] Container Invoker Optimize='true'
[Container factory] Deploying CheckerBean
[Container factory] Container Invoker RMI Port='4444'
[Container factory] Container Invoker Optimize='true'
[Container factory] Deploying CDCollectionBean
[Container factory] Container Invoker RMI Port='4444'
[Container factory] Container Invoker Optimize='true'
[Container factory] Binding an EJBReference ejb/CD
[Container factory] Binding ejb/CD to internal JNDI source: CDBean
[Container factory] Mapped Container method remove HASH -1842617161
[Container factory] Mapped Container method getHandle HASH 1182305581
[Container factory] Mapped Container method getPrimaryKey HASH -131865408
[Container factory] Mapped Container method getEJBHome HASH -993218923
[Container factory] Mapped Container method isIdentical HASH 285457048
[Container factory] Mapped findAll 1916642102to public com.sasgz.ejb.music_cd.CD[] com.sasgz.ejb.music_cd.CDCollectionBean.findAll() throws javax.ejb.FinderException,java.rmi.RemoteException[Container factory] Mapped addCd -1164084484to public void com.sasgz.ejb.music_cd.CDCollectionBean.addCd(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String) throws java.rmi.RemoteException,com.sasgz.ejb.music_cd.CDExistsException
[Container factory] Mapped deleteAll 1434890728to public void com.sasgz.ejb.music_cd.CDCollectionBean.deleteAll() throws java.rmi.RemoteException
[Container factory] Mapped lookupInAnyField 214621651to public com.sasgz.ejb.music_cd.CD[] com.sasgz.ejb.music_cd.CDCollectionBean.lookupInAnyField(java.lang.String) throws javax.ejb.FinderException,java.rmi.RemoteException
[Container factory] Mapping remove
[Container factory] Mapping remove
[Container factory] Mapping getEJBMetaData
[Container factory] Mapping getHomeHandle
[Container factory] Mapping create
[Container factory] Mapped Container method remove HASH -1842617161
[Container factory] Mapped Container method getHandle HASH 1182305581
[Container factory] Mapped Container method getPrimaryKey HASH -131865408
[Container factory] Mapped Container method getEJBHome HASH -993218923
[Container factory] Mapped Container method isIdentical HASH 285457048
[Container factory] Mapped dollarToYen -1681944427to public double com.sasgz.ejb.converter.ConverterEJB.dollarToYen(double)[Container factory] Mapped yenToEuro -1129674220to public double com.sasgz.ejb.converter.ConverterEJB.yenToEuro(double)
[Container factory] Mapping remove
[Container factory] Mapping remove
[Container factory] Mapping getEJBMetaData
[Container factory] Mapping getHomeHandle
[Container factory] Mapping create
[Container factory] Storing sessions for CartBean in:F:\jBoss\db\sessions\CartBean
[Container factory] 0 old sessions removed
[Container factory] Storing sessions for CheckerBean in:F:\jBoss\db\sessions\CheckerBean
[Container factory] 0 old sessions removed
[JAWS] Initializing JAWS plugin for CDBean
[JAWS] Loading standardjaws.xml : file:/F:/jBoss/conf/default/standardjaws.xml
[JAWS] jar:file:/F:/jBoss/bin/../tmp/deploy/J2EE_Examples.jar/ejb1004.jar!/META-INF/jaws.xml found. Overriding defaults
[JAWS] Init SQL: CREATE TABLE music_cd (cd_artist VARCHAR2(50),cd_notes VARCHAR2(100),cd_type VARCHAR2(30),cd_title VARCHAR2(80),cd_id CHAR(8))[JAWS] Destroy SQL: DROP TABLE music_cd
[JAWS] Exists SQL: SELECT COUNT(*) FROM music_cd WHERE cd_id=?
[Container factory] Finder:type
[JAWS] findByType SQL: SELECT cd_id FROM music_cd WHERE cd_type=?
[JAWS] FindAll SQL: SELECT cd_id FROM music_cd
[JAWS] Create SQL: INSERT INTO music_cd (cd_artist,cd_notes,cd_type,cd_title,cd_id) VALUES (?,?,?,?,?)
[JAWS] Remove SQL: DELETE FROM music_cd WHERE cd_id=?
[JAWS] Load SQL: SELECT cd_artist,cd_notes,cd_type,cd_title,cd_id FROM music_cd WHERE cd_id=?
[JAWS] Init command executing: CREATE TABLE music_cd (cd_artist VARCHAR2(50),cd_notes VARCHAR2(100),cd_type VARCHAR2(30),cd_title VARCHAR2(80),cd_id CHAR(8))[JAWS] Rows affected = 0
[JAWS] Table music_cd created
[Container factory] Bound CDCollectionBean to MyCDCollection
[Container factory] Bound ConverterBean to MyConverter
[Container factory] Bound AccountBean to MyAccount
[Bean Cache] Cache policy scheduler started
[Container factory] Bound CartBean to MyCart
[Container factory] Bound CheckerBean to MyChecker
[Container factory] Bound CDBean to MyCD
[Container factory] Deployed application: file:/F:/jBoss/bin/../tmp/deploy/J2EE_Examples.jar/ejb1004.jar
[J2EE Deployer] J2EE application: file:/F:/jBoss/deploy/J2EE_Examples.jar is deployed.
[Auto deploy] Started
[SpyderMQ] Starting
[SpyderMQ] Testing if SpyderMQ is present....
[SpyderMQ] OK
[SpyderMQ] Starting SpyderMQ...
[SpyderMQ] Started
[JMX RMI Adaptor] Starting
[JMX RMI Adaptor] Started
[JMX RMI Connector] Starting
[JMX RMI Connector] Started
[Default] 24 services and 4 other MBeans started.
[Default] Shutdown hook added
[Default] jBoss 2.0 FINAL Started
[JAWS] FindAll command executing: SELECT cd_id FROM music_cd
[CDCollectionBean] ***found all***
[CDCollectionBean] *** num records = 0
[JAWS] Exists command executing: SELECT COUNT(*) FROM music_cd WHERE cd_id=?
[JAWS] Set parameter: idx=1, jdbcType=CHAR, value=19
[CDCollectionBean] Added CD with id=19, title=White,Tallis,etc./Lamentations, artist= , type= , notes=
[JAWS] Create, id is 19
[JAWS] Exists command executing: SELECT COUNT(*) FROM music_cd WHERE cd_id=?
[JAWS] Set parameter: idx=1, jdbcType=CHAR, value=19
[JAWS] Create command executing: INSERT INTO music_cd (cd_artist,cd_notes,cd_type,cd_title,cd_id) VALUES (?,?,?,?,?)
[JAWS] Set parameter: idx=1, jdbcType=VARCHAR, value=NULL
[JAWS] Set parameter: idx=2, jdbcType=VARCHAR, value=NULL
[JAWS] Set parameter: idx=3, jdbcType=VARCHAR, value=NULL
[JAWS] Set parameter: idx=4, jdbcType=VARCHAR, value=NULL
[JAWS] Set parameter: idx=5, jdbcType=CHAR, value=19
[JAWS] Rows affected = 1
[JAWS] Store command executing: UPDATE music_cd SET cd_artist=?,cd_notes=?,cd_type=?,cd_title=? WHERE cd_id=?
[JAWS] Set parameter: idx=1, jdbcType=VARCHAR, value=
[JAWS] Set parameter: idx=2, jdbcType=VARCHAR, value=
[JAWS] Set parameter: idx=3, jdbcType=VARCHAR, value=
[JAWS] Set parameter: idx=4, jdbcType=VARCHAR, value=White,Tallis,etc./Lamentations
[JAWS] Set parameter: idx=5, jdbcType=CHAR, value=19
[JAWS] Rows affected = 0
[JAWS] Exists command executing: SELECT COUNT(*) FROM music_cd WHERE cd_id=?
[JAWS] Set parameter: idx=1, jdbcType=CHAR, value=1
[CDCollectionBean] Added CD with id=1, title=Great Organ Works/Bach JS, artist=Koopman, type=classical, organ, notes=Incl. Toccata & Fugue in D minor[JAWS] Create, id is 1
[JAWS] Exists command executing: SELECT COUNT(*) FROM music_cd WHERE cd_id=?
[JAWS] Set parameter: idx=1, jdbcType=CHAR, value=1
[JAWS] Create command executing: INSERT INTO music_cd (cd_artist,cd_notes,cd_type,cd_title,cd_id) VALUES (?,?,?,?,?)
[JAWS] Set parameter: idx=1, jdbcType=VARCHAR, value=NULL
[JAWS] Set parameter: idx=2, jdbcType=VARCHAR, value=NULL
[JAWS] Set parameter: idx=3, jdbcType=VARCHAR, value=NULL
[JAWS] Set parameter: idx=4, jdbcType=VARCHAR, value=NULL
[JAWS] Set parameter: idx=5, jdbcType=CHAR, value=1
[JAWS] Rows affected = 1
[JAWS] Store command executing: UPDATE music_cd SET cd_artist=?,cd_notes=?,cd_type=?,cd_title=? WHERE cd_id=?
[JAWS] Set parameter: idx=1, jdbcType=VARCHAR, value=Koopman
[JAWS] Set parameter: idx=2, jdbcType=VARCHAR, value=Incl. Toccata & Fugue in D minor
[JAWS] Set parameter: idx=3, jdbcType=VARCHAR, value=classical, organ
[JAWS] Set parameter: idx=4, jdbcType=VARCHAR, value=Great Organ Works/Bach JS
[JAWS] Set parameter: idx=5, jdbcType=CHAR, value=1
[JAWS] Rows affected = 0
[Bean Cache] Resized cache for bean CartBean: old size = 1000, new size = 50
[Bean Cache] Resized cache for bean CheckerBean: old size = 1000, new size = 50
[Bean Cache] Resized cache for bean AccountBean: old size = 1000, new size = 50
[Bean Cache] Resized cache for bean CDBean: old size = 1000, new size = 50
[JMX RMI Adaptor] Stopping
[JMX RMI Adaptor] Stopped
[JMX RMI Adaptor] Destroying
[JMX RMI Adaptor] Destroyed
[JMX RMI Connector] Stopping
[JMX RMI Connector] Stopped
[JMX RMI Connector] Destroying
[JMX RMI Connector] Destroyed
[SpyderMQ] Stopping
[SpyderMQ] Stopped
[SpyderMQ] Destroying
[SpyderMQ] Destroyed
[Auto deploy] Stopping
[Auto deploy] Stopped
[Auto deploy] Destroying
[Auto deploy] Destroyed
[Security manager] Stopping
[Security manager] Stopped
[Security manager] Destroying
[Security manager] Destroyed
[J2EE Deployer] Stopping
[J2EE Deployer] Undeploying all applications.
[J2EE Deployer] Stopping module interest.jar
[Container factory] Undeploying:file:/F:/jBoss/bin/../tmp/deploy/interest.jar/ejb1002.jar
[Container factory] Undeployed application: file:/F:/jBoss/bin/../tmp/deploy/interest.jar/ejb1002.jar
[J2EE Deployer] Destroying application interest.jar
[J2EE Deployer] deployment.cfg file deleted.
[J2EE Deployer] Could not remove file: file:/F:/jBoss/tmp/deploy/interest.jar
[J2EE Deployer] Stopping module J2EE_Examples.jar
[Container factory] Undeploying:file:/F:/jBoss/bin/../tmp/deploy/J2EE_Examples.jar/ejb1004.jar
[Container factory] Undeployed application: file:/F:/jBoss/bin/../tmp/deploy/J2EE_Examples.jar/ejb1004.jar
[J2EE Deployer] Destroying application J2EE_Examples.jar
[J2EE Deployer] deployment.cfg file deleted.
[J2EE Deployer] Could not remove file: file:/F:/jBoss/tmp/deploy/J2EE_Examples.jar
[J2EE Deployer] Undeployed 2 applications.
[J2EE Deployer] Stopped
[J2EE Deployer] Destroying
[J2EE Deployer] Destroyed
[Container factory] Stopping
[Container factory] Stopped
[Container factory] Destroying
[Container factory] Destroyed
[JAAS Security Manager] Stopping
[JAAS Security Manager] Stopped
[JAAS Security Manager] Destroying
[JAAS Security Manager] Destroyed
[DefaultDS] Stopping
[DefaultDS] XA Connection pool DefaultDS removed from JNDI
[DefaultDS] XA Connection pool DefaultDS shut down
[DefaultDS] Error stopping service 'DefaultDomain:name=DefaultDS,service=XADataSource': javax.management.RuntimeMBeanException: RuntimeException thrown in operation destroy[DefaultDS] Unable to stop MBean 'DefaultDomain:name=DefaultDS,service=XADataSource'
[InstantDB] Stopping
[InstantDB] XA Connection pool InstantDB removed from JNDI
[InstantDB] Database instantdb is shutting down...
[InstantDB] Database instantdb shutdown complete.
[InstantDB] XA Connection pool InstantDB shut down
[InstantDB] Error stopping service 'DefaultDomain:name=InstantDB,service=XADataSource': javax.management.RuntimeMBeanException: RuntimeException thrown in operation destroy[InstantDB] Unable to stop MBean 'DefaultDomain:name=InstantDB,service=XADataSource'
[OracleORCLPool] Stopping
[OracleORCLPool] XA Connection pool OracleORCLPool removed from JNDI
[OracleORCLPool] XA Connection pool OracleORCLPool shut down
[OracleORCLPool] Error stopping service 'DefaultDomain:name=OracleORCLPool,service=XADataSource': javax.management.RuntimeMBeanException: RuntimeException thrown in operation destroy[OracleORCLPool] Unable to stop MBean 'DefaultDomain:name=OracleORCLPool,service=XADataSource'
[Hypersonic] Stopping
[Hypersonic] Stopped
[Hypersonic] Destroying
[Hypersonic] Destroyed
[Naming] Stopping
[Naming] Stopped
[Naming] Destroying
[Naming] Destroyed
[Transaction manager] Stopping
[Transaction manager] Stopped
[Transaction manager] Destroying
[Transaction manager] Destroyed
[Tomcat] Stopping
[Tomcat] Stopped
[Tomcat] Destroying
[Tomcat] Destroyed
[Webserver] Stopping
[Webserver] Stopped
[Webserver] Destroying
[Webserver] Destroyed
[Simple Realm Mapping] Stopping
[Simple Realm Mapping] Stopped
[Simple Realm Mapping] Destroying
[Simple Realm Mapping] Destroyed
[OracleORCLPool] 28 services and 4 other MBeans stopped.Thank you very much.
levels
-----原始邮件-----
发件人: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]代表 Tobias Frech
发送时间: 2001年1月11日 13:36
收件人: jBoss
主题: Re: [jBoss-User] Problem about CMP? Big Bug with JBoss CMP??
Did you check that AFTER you stopped JBoss again (so all caches are
written to the DB) ?Ciao,
TobiasN.n+ᬉn,oyb(ᅮH ḱ&Nᰋrz6Ȳz~X
+)v,rஉGzZcʢ|(H ᴱ&
Title: RE: [jBoss-User] Problem about CMP? Big Bug with JBoss CMP??
But why
doesn't the ejbStore() update my data in table?
- [jBoss-User] Problem about CMP? Big Bug with JBoss CMP?? levels
- Re: [jBoss-User] Problem about CMP? Big Bug with JB... Tobias Frech
- [jBoss-User] Problem about CMP? Big Bug with JBoss ... levels
- RE: [jBoss-User] Problem about CMP? Big Bug with JB... Kenworthy, Edward
- RE: [jBoss-User] Problem about CMP? Big Bug with JB... Cook, Thomas
- levels
