Direct Reference Query

View: New views
1 Messages — Rating Filter:   Alert me  

Direct Reference Query

by prquinlan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am updating to the newest version of Speedo. Previously in the JDO file, i did not specify the reference. However now i get this error: 

javax.jdo.JDODataStoreException: Problem while making persistent.
NestedThrowables:
java.lang.NullPointerException
org.objectweb.speedo.jdo.JDOPersonality.newDataStoreRuntimeException(JDOPersonality.java:156)
org.objectweb.speedo.pm.lib.AbstractPOManager.speedoMakePersistent(AbstractPOManager.java:491)
org.objectweb.speedo.pm.jdo.lib.JDOPOManager.makePersistent(JDOPOManager.java:718)
org.objectweb.fractal.julia.generated.Cc5baff4b_0.makePersistent(INTERFACE[JDOPOManagerItf])
Apps.TBApp.addObject(TBApp.java:8264)
tissueBank.Data.XmlReaderNew.startElement(XmlReaderNew.java:1274)
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
javax.xml.parsers.SAXParser.parse(SAXParser.java:255)
Servlets.TissueServ.doGet(TissueServ.java:1593)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
com.zlatkovic.HttpRedirectFilter.doFilter(HttpRedirectFilter.java:243)

When adding anything with this type of relationship. 

In my JDO file i have: 

<class name="DatabaseUser" identity-type="application">
            <extension vendor-name="speedo" key="sql-name" value="DBUSERS"/>

            <field name="userID" primary-key="true">
                <extension vendor-name="speedo" key="sql-name" value="DBUSERID"/>
            </field>

            <field name="departmentRef" column="FK_DEPID"/>

            <field name="userRef" persistence-modifier="persistent">
                <collection element-type="Authentication.Users.DatabaseUser"/>
            </field>


        </class>



<class name="Department" identity-type="application">
            <field name="depID" primary-key="true" column="DEPID"/>
            <field name="uniRef"/>
        </class>


Any ideas?



Philip Quinlan
Surgery and Molecular Oncology
University of Dundee
t: 01382 425582





--
You receive this message as a subscriber of the speedo@... mailing list.
To unsubscribe: mailto:speedo-unsubscribe@...
For general help: mailto:sympa@...?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
LightInTheBox - Buy quality products at wholesale price!