detail.php
OW2 Forge: Detail: 303236 Generator causes NullPointerException if a column is referenced twice and to be stored to the same table.

Advanced - Powered by Google


   
Log In
New Account
  
 
Home
My Page
Project Tree
Project Openings
XQuare
          
 
 
Summary
Forums
Tracker
Lists
Tasks
Docs
News
CVS
Files
SVN
                    
 

Tracker: Bugs

Submit New | Browse | Admin | ExportToXml

[ #303236 ] Generator causes NullPointerException if a column is referenced twice and to be stored to the same table.

Date:
2005-02-28 17:05
Priority:
5
Submitted By:
Georges Ravel (georgesravel)
Assigned To:
Nobody (None)
Category:
bridge
State:
Open
Summary:
Generator causes NullPointerException if a column is referenced twice and to be stored to the same table.

Detailed description:
/parent is a parent element. /parent/sons and /parent/daughters are two multivalued sub-elements. /parent/sons and /parent/daughters are both mapped to the "children" table. both sons and daughters reference to the parent's PK column. <element name="parent"> <map table="PARENT"> <generator column="PK" class="OracleSequence"/> <element name="son"> <map table="CHILDREN"> <generator colunm="FK" ref="PARENT.PK"/> </map> </element> <element name="daughter"> <map table="CHILDREN"> <generator colunm="FK" ref="PARENT.PK"/> </map> </element> </map> </element> When inserting document: Exception: Error while setting data in column 2 of : Table: CHILDREN XML location: line 147, column -1 Columns: [CHILDREN.FK, CHILDREN...] Values: [null, ...] Java types: [null, ...] XQuark Storage exception : Error while setting data in column 2 of : Table: CHILDREN XML location: line 147, column -1 Columns: [CHILDREN.FK, CHILDREN...] Values: [null, ...] Java types: [null, ...] Underlying exception : null at org.xquark.mapper.storage.StorageBuffer$BufferNode.save (StorageBuffer.java:368) at org.xquark.mapper.storage.StorageBuffer.flush (StorageBuffer.java:189) at org.xquark.mapper.storage.MapperTupleBuilder.finalizeNode (MapperTupleBuilder.java:171) at org.xquark.mapper.storage.SAXHandler.endElement(SAXHandler.java:384) at org.xquark.util.HandlerDecorator.endElement (HandlerDecorator.java:131) at org.xquark.util.NamespaceContextHandler.endElement (NamespaceContextHandler.java:87) at org.xquark.schema.validation.ValidatingSchemaHandler.endElement (ValidatingSchemaHandler.java:411) at org.xquark.util.HandlerDecorator.endElement (HandlerDecorator.java:131) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1528) at org.apache.crimson.parser.Parser2.content(Parser2.java:1779) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507) at org.apache.crimson.parser.Parser2.content(Parser2.java:1779) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507) at org.apache.crimson.parser.Parser2.content(Parser2.java:1779) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507) at org.apache.crimson.parser.Parser2.content(Parser2.java:1779) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507) at org.apache.crimson.parser.Parser2.content(Parser2.java:1779) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse (XMLReaderImpl.java:442) at org.xquark.mapper.storage.XDBCMapperAdapter.insertXMLDocument (XDBCMapperAdapter.java:117) at org.xquark.mapper.storage.XDBCMapperAdapter.insertXMLDocument (XDBCMapperAdapter.java:108) at org.xquark.mapper.storage.XDBCMapperAdapter.insertXMLDocument (XDBCMapperAdapter.java:139) at org.xquark.bridge.MapperImpl.insertDocument(MapperImpl.java:117) java.lang.NullPointerException at org.xquark.mapper.storage.StorageBuffer$TupleFactory.performInsert (StorageBuffer.java:647) at org.xquark.mapper.storage.StorageBuffer$TupleFactory.saveTuple (StorageBuffer.java:592) at org.xquark.mapper.storage.StorageBuffer$Tuple.save (StorageBuffer.java:933) at org.xquark.mapper.storage.StorageBuffer$BufferNode.save (StorageBuffer.java:363) at org.xquark.mapper.storage.StorageBuffer.flush (StorageBuffer.java:189) at org.xquark.mapper.storage.MapperTupleBuilder.finalizeNode (MapperTupleBuilder.java:171) at org.xquark.mapper.storage.SAXHandler.endElement(SAXHandler.java:384) at org.xquark.util.HandlerDecorator.endElement (HandlerDecorator.java:131) at org.xquark.util.NamespaceContextHandler.endElement (NamespaceContextHandler.java:87) at org.xquark.schema.validation.ValidatingSchemaHandler.endElement (ValidatingSchemaHandler.java:411) at org.xquark.util.HandlerDecorator.endElement (HandlerDecorator.java:131) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1528) at org.apache.crimson.parser.Parser2.content(Parser2.java:1779) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507) at org.apache.crimson.parser.Parser2.content(Parser2.java:1779) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507) at org.apache.crimson.parser.Parser2.content(Parser2.java:1779) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507) at org.apache.crimson.parser.Parser2.content(Parser2.java:1779) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507) at org.apache.crimson.parser.Parser2.content(Parser2.java:1779) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse (XMLReaderImpl.java:442) at org.xquark.mapper.storage.XDBCMapperAdapter.insertXMLDocument (XDBCMapperAdapter.java:117) at org.xquark.mapper.storage.XDBCMapperAdapter.insertXMLDocument (XDBCMapperAdapter.java:108) at org.xquark.mapper.storage.XDBCMapperAdapter.insertXMLDocument (XDBCMapperAdapter.java:139) at org.xquark.bridge.MapperImpl.insertDocument(MapperImpl.java:117)

Add A Comment:

Please login

Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item

Copyright © 1999-2008, OW2 Consortium | contact | You have a difficulty, a problem ? Please report an issue using your OW2 forge account credentials