You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by David Sean Taylor <da...@bluesunrise.com> on 2004/06/25 20:15:08 UTC
[J2] broken build - persistence test fails
I just did a clean checkout, persistence test fails for me (Im running
with a MySQL backend db)
Testsuite:
org.apache.jetspeed.components.persistence.TestPersistenceContainer
Tests run: 2, Failures: 0, Errors: 1, Time elapsed: 2.297 sec
[org.apache.ojb.broker.core.PersistenceBrokerImpl] ERROR: Try to close a
------------- ---------------- ---------------
Testcase:
testEvents(org.apache.jetspeed.components.persistence.TestPersistenceCon
tainer): Caused an ERROR
SQL failure while insert object data for class
org.apache.jetspeed.components.persistence.A, PK of the given object is
[ id=3], object was org.apache.jetspeed.components.persistence.A@63,
exception message is [General error, message from server: "Column
'NAME' cannot be null"]
org.apache.ojb.broker.PersistenceBrokerSQLException: SQL failure while
insert object data for class
org.apache.jetspeed.components.persistence.A, PK of the given object is
[ id=3], object was org.apache.jetspeed.components.persistence.A@63,
exception message is [General error, message from server: "Column
'NAME' cannot be null"]
at
org.apache.ojb.broker.accesslayer.JdbcAccessImpl.executeInsert(Unknown
Source)
at org.apache.ojb.broker.core.PersistenceBrokerImpl.storeToDb(Unknown
Source)
at org.apache.ojb.broker.core.PersistenceBrokerImpl.store(Unknown
Source)
at org.apache.ojb.broker.core.PersistenceBrokerImpl.store(Unknown
Source)
at
org.apache.ojb.broker.core.DelegatingPersistenceBroker.store(Unknown
Source)
at
org.apache.ojb.broker.core.DelegatingPersistenceBroker.store(Unknown
Source)
at
org.apache.jetspeed.components.persistence.store.ojb.pb.PBStore.store(PB
Store.java:389)
at
org.apache.jetspeed.components.persistence.store.ojb.pb.PBStore.makePers
istent(PBStore.java:373)
at
org.apache.jetspeed.components.persistence.TestPersistenceContainer.test
Events(TestPersistenceContainer.java:148)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
Caused by: java.sql.SQLException: General error, message from server:
"Column 'NAME' cannot be null"
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1651)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:889)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:956)
at com.mysql.jdbc.Connection.execSQL(Connection.java:1874)
at
com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:
1700)
at
com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:
1569)
at
org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(Delega
tingPreparedStatement.java:101)
... 23 more
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
Re: [J2] broken build - persistence test fails
Posted by David Sean Taylor <da...@bluesunrise.com>.
On Jun 25, 2004, at 11:15 AM, David Sean Taylor wrote:
> I just did a clean checkout, persistence test fails for me (Im running
> with a MySQL backend db)
>
nevermind, there was a typo in the unit test, patch applied
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org