db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Armin Waibel (JIRA)" <j...@apache.org>
Subject [jira] Commented: (OJB-98) OJB statup failure after update 1.0.3 -> 1.0.4
Date Mon, 27 Feb 2006 11:46:42 GMT
    [ 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.<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