Return-Path: Delivered-To: apmail-db-ojb-dev-archive@www.apache.org Received: (qmail 31585 invoked from network); 27 Feb 2006 20:02:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 Feb 2006 20:02:39 -0000 Received: (qmail 51040 invoked by uid 500); 27 Feb 2006 20:02:35 -0000 Delivered-To: apmail-db-ojb-dev-archive@db.apache.org Received: (qmail 50757 invoked by uid 500); 27 Feb 2006 20:02:33 -0000 Mailing-List: contact ojb-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "OJB Developers List" Reply-To: "OJB Developers List" Delivered-To: mailing list ojb-dev@db.apache.org Received: (qmail 85566 invoked by uid 99); 27 Feb 2006 11:47:04 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Message-ID: <1995924488.1141040802934.JavaMail.jira@ajax.apache.org> Date: Mon, 27 Feb 2006 12:46:42 +0100 (CET) From: "Armin Waibel (JIRA)" To: ojb-dev@db.apache.org Subject: [jira] Commented: (OJB-98) OJB statup failure after update 1.0.3 -> 1.0.4 In-Reply-To: <1434245563.1140196285020.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/OJB-98?page=comments#action_12367943 ] Armin Waibel commented on OJB-98: --------------------------------- Could OJB read the repository.xml file correctly? Did you see any warn, error messages while reading the repository file? By the way, in your jdbc-connection-descriptor you set useAutoCommit="0" This setting is not recommended, except your database use connection autoCommit 'false' (default setting is 'true' in non-managed environments): http://db.apache.org/ojb/docu/guides/repository.html#Attributes-N10127 > OJB statup failure after update 1.0.3 -> 1.0.4 > ---------------------------------------------- > > Key: OJB-98 > URL: http://issues.apache.org/jira/browse/OJB-98 > Project: OJB > Type: Bug > Components: PB-API > Versions: 1.0.4 > Environment: windows xp, cygwin, maven > Reporter: Stefan Podkowinski > Fix For: 1.0.5 > Attachments: repository.xml, repository_database.xml, repository_internal.xml > > Hello > I have some trouble updating ojb to the current version. While 1.0.3 runs fine, 1.0.4 throws the following exception in my unit test: > Testcase: testOjb(de.virtualsolution.apps.myapp.OjbSmokeTest): Caused an ERROR > Can't read repository file 'ojb/repository.xml' > org.apache.ojb.broker.metadata.MetadataException: Can't read repository file 'ojb/repository.xml' > at org.apache.ojb.broker.metadata.MetadataManager.init(Unknown Source) > at org.apache.ojb.broker.metadata.MetadataManager.(Unknown Source) > at org.apache.ojb.broker.metadata.MetadataManager.getInstance(Unknown Source) > at org.apache.ojb.broker.core.PersistenceBrokerFactoryBaseImpl.getDefaultKey(Unknown Source) > at org.apache.ojb.broker.core.PersistenceBrokerFactoryBaseImpl.defaultPersistenceBroker(Unknown Source) > at org.apache.ojb.broker.PersistenceBrokerFactory.defaultPersistenceBroker(Unknown Source) > at de.virtualsolution.apps.myapp.OjbSmokeTest.testOjb(OjbSmokeTest.java:23) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > Caused by: org.apache.ojb.broker.metadata.MetadataException: Error creating PersistentField: org.apache.ojb.broker.util.sequence.HighLowSequence, name > at org.apache.ojb.broker.metadata.fieldaccess.PersistentFieldFactory.createPersistentField(Unknown Source) > at org.apache.ojb.broker.metadata.RepositoryXmlHandler.startElement(Unknown Source) > at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) > at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) > at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(Unknown Source) > at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source) > at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) > at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) > at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) > at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) > at org.apache.ojb.broker.metadata.RepositoryPersistor.readMetadataFromXML(Unknown Source) > at org.apache.ojb.broker.metadata.RepositoryPersistor.buildRepository(Unknown Source) > at org.apache.ojb.broker.metadata.RepositoryPersistor.readDescriptorRepository(Unknown Source) > ... 21 more > Caused by: java.lang.NoSuchMethodException: org.apache.ojb.broker.metadata.fieldaccess.PersistentFieldDirectAccessImplNew.(java.lang.Class, java.lang.String) > at java.lang.Class.getConstructor0(Class.java:1937) > at java.lang.Class.getConstructor(Class.java:1027) > at org.apache.ojb.broker.util.ClassHelper.newInstance(Unknown Source) > at org.apache.ojb.broker.util.ClassHelper.newInstance(Unknown Source) > at org.apache.ojb.broker.util.ClassHelper.newInstance(Unknown Source) > ... 36 more > I checked the PersistentFieldDirectAccessImplNew class and it looks like the constructor really isnt there. Now the question is why it is called at all during the startup process? But what puzzles me most is that i just use a simple repository_database.xml and the standard repository_intern.xml file. See attachments. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org For additional commands, e-mail: ojb-dev-help@db.apache.org