[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.rt.eclipselink] Trying to persist @Lob field throws NullPointerException
|
- From: Pasi.Kovanen@xxxxxx (Pasi Kovanen)
- Date: Thu, 4 Jun 2009 19:06:12 +0000 (UTC)
- Newsgroups: eclipse.rt.eclipselink
- Organization: Eclipse
- User-agent: NewsPortal/0.36 (http://florian-amrhein.de/newsportal)
My program is running on top of Oracle AS, and uses Oracle DB. When I try
to persist an entity with CLOB field, I get NullPointerException during
commit:
[EL Warning]: 2009-06-04
12:49:08.19--UnitOfWork(24314884)--Thread(Thread[RMICallHandler-4,5,HTTPThreadGroup])--java.lang.NullPointerException
at
oracle.oc4j.sql.spi.ConnectionHandle.oc4j_getCachedObject(ConnectionHandle.java:549)
at oracle_jdbc_driver_T4CConnection_Proxy.prepareStatement()
at
org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.prepareStatement(DatabaseAccessor.java:1354)
...
Entity has @Lob annotation:
...
@Lob
private String field;
...
If I comment out @Lob field from the entity, persisting works. I have
verified that the exception is thrown with both EclipseLink 1.1.0 and
1.1.1. With TopLink Essentials the same entity works fine.