Hi, Mehmet, I guess the problem is exactly because you did not touch any conf files? :-)
You have to decide which sql database you will run against in the repository_database.xml. Have you set a proper value there? Anthony -----Original Message----- From: Mehmet D. AKIN [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 05, 2003 7:57 PM To: OJB Users List Subject: Cannot create database schema and test data using >build preparetutorials I just downloaded source and tried to run bin\build prepare-tutorials, it compiles sources but when it comes to database preparation, torque gives a series of nullPointerExceptions and it cannot write anything to database. I didnt touch any of the configuration files, I use newest version of ant and Java JDK1.4.1. Anyone else encountered this problem ? Here is the some part of the exception: ------------------ [torque-datasql] Resolver: used database.dtd from org.apache.torque.engine.database.transform package [torque-datasql] Resolver: used D:\tools\jakarta-ojb-0.9.8\src\schema\ojbtest-data.dtd [torque-datasql] java.lang.NullPointerException [torque-datasql] at org.apache.torque.engine.database.transform.XmlToData.startElement(XmlToData .java:174) [torque-datasql] at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.j ava:454) [torque-datasql] at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXML DocumentParser.java:217) [torque-datasql] at org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.ja va:594) [torque-datasql] at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(XMLDTDValidator.java :777) [torque-datasql] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDo cumentFragmentScannerImpl.java:748) [torque-datasql] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc her.dispatch(XMLDocumentFragmentScannerImpl.jav a:1453) [torque-datasql] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume ntFragmentScannerImpl.java:333) [torque-datasql] at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:524) [torque-datasql] at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:580) ...... ...... -------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
