Krzysztof,

Did you try your case with OpenJPA-provided XMLValueHandler and a JDBC driver 
from 8.x line?

Does your JAXB entity have setters for all persistent fields and collections?

Cheers,
Milosz


> Hi Milosz,
> Thanks for the hints.
> Actually I was too quick with reporting success: storing xml works
> perfectly, but retrieval is broken.
> 
> I can see that even my XMLValueHandler returns proper unmarshaled object,
> all fields are nullified by MyTypeHoldingXML.pcReplaceField(int) of the xml
> field.
> This happens both on detachement/commit and retrieval - I can see object is
> replaced with a proxy that has all values null.
> 
> 
> Thread [main] (Suspended (breakpoint at line 2201 in StateManagerImpl))       
>       StateManagerImpl.replaceObjectField(PersistenceCapable, int) line: 2201 
>       Run<INPUT,OUTPUT>.pcReplaceField(int) line: not available
> <-------this nullifies XML field by creating proxy with all fields being
> null
>       StateManagerImpl.replaceField(PersistenceCapable, FieldManager, int) 
> line:
> 3161  
>       StateManagerImpl.storeObjectField(int, Object) line: 2596       
>       StateManagerImpl.storeField(int, Object, FieldManager) line: 2692       
>       StateManagerImpl.storeField(int, Object) line: 875      
>       StateManagerImpl.store(int, Object) line: 871   
>       HandlerFieldStrategy.load(OpenJPAStateManager, JDBCStore,
> JDBCFetchConfiguration, Result) line: 189     
>       FieldMapping.load(OpenJPAStateManager, JDBCStore, 
> JDBCFetchConfiguration,
> Result) line: 928     
>       JDBCStoreManager.load(ClassMapping, OpenJPAStateManager,
> JDBCFetchConfiguration, Result, FieldMapping) line: 1123      
>       JDBCStoreManager.load(ClassMapping, OpenJPAStateManager,
> JDBCFetchConfiguration, Result) line: 1067    
>       JDBCStoreManager.initializeState(OpenJPAStateManager, PCState,
> JDBCFetchConfiguration, ConnectionInfo) line: 438     
>       JDBCStoreManager.initialize(OpenJPAStateManager, PCState,
> FetchConfiguration, Object) line: 333 
> 
> DataCacheStoreManager(DelegatingStoreManager).initialize(OpenJPAStateManager,
> PCState, FetchConfiguration, Object) line: 112        
>       DataCacheStoreManager.initialize(OpenJPAStateManager, PCState,
> FetchConfiguration, Object) line: 360 
>       ROPStoreManager(DelegatingStoreManager).initialize(OpenJPAStateManager,
> PCState, FetchConfiguration, Object) line: 112        
>       ROPStoreManager.initialize(OpenJPAStateManager, PCState,
> FetchConfiguration, Object) line: 57  
>       FinalizingBrokerImpl(BrokerImpl).initialize(StateManagerImpl, boolean,
> FetchConfiguration, Object) line: 1022        
>       FinalizingBrokerImpl(BrokerImpl).find(Object, FetchConfiguration, 
> BitSet,
> Object, int, FindCallbacks) line: 980 
>       FinalizingBrokerImpl(BrokerImpl).find(Object, boolean, FindCallbacks) 
> line:
> 897   
>       DelegatingBroker.find(Object, boolean, FindCallbacks) line: 223 
>       EntityManagerImpl.find(Class<T>, Object) line: 478      
>       
> 
> 
> I will create Jira but this is quite urgent so would appreciate any
> suggestions..
> Best regards,
> Krzysztof
> 
> --
> View this message in context: 
> http://openjpa.208410.n2.nabble.com/XMLValueHandler-strategy-not-supported-in-Postgres-tp6331286p6337026.html
> Sent from the OpenJPA Users mailing list archive at Nabble.com.
> 

Reply via email to