db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Podkowinski (JIRA)" <j...@apache.org>
Subject [jira] Created: (OJB-98) OJB statup failure after update 1.0.3 -> 1.0.4
Date Fri, 17 Feb 2006 17:11:25 GMT
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
 Attachments: repository.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.<init>(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.<init>(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


Mime
View raw message