portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roger Ruttimann <roger...@apache.org>
Subject [j2] Registry test fail
Date Fri, 21 May 2004 14:30:15 GMT
During the build J2 the unit tests for the registry fail. I'm using 
MySQL as db.
    [junit] [ERROR] TEST 
org.apache.jetspeed.components.portletentity.TestPortletEntityAccessComponent 
FAILED
    [junit] Running 
org.apache.jetspeed.components.portletregistry.TestRegistryDirect
    [junit] Tests run: 2, Failures: 0, Errors: 1, Time elapsed: 1.949 sec
    [junit] [ERROR] TEST 
org.apache.jetspeed.components.portletregistry.TestRegistryDirect FAILED
    [junit] Running 
org.apache.jetspeed.components.portletregistry.TestRegistryDirectPart2
    [junit] Tests run: 2, Failures: 0, Errors: 1, Time elapsed: 1.949 sec
    [junit] [ERROR] TEST 
org.apache.jetspeed.components.portletregistry.TestRegistryDirectPart2 
FAILED

Any ideas?

Roger

Error logs:
[Fatal Error] repository.xml:18:6: The processing instruction target 
matching "[xX][mM][lL]" is not allowed.
org.apache.ojb.broker.metadata.MetadataException: Can not read 
repository class descriptor data, using repository: repository.xml
    at 
org.apache.ojb.broker.metadata.MetadataManager.init(MetadataManager.java:152)
    at 
org.apache.ojb.broker.metadata.MetadataManager.<init>(MetadataManager.java:138)
    at 
org.apache.ojb.broker.metadata.MetadataManager.<clinit>(MetadataManager.java:127)
    at 
org.apache.ojb.broker.util.BrokerHelper.crossCheckPBKey(BrokerHelper.java:123)
    at 
org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl.createPersistenceBroker(PersistenceBrokerFactoryDefaultImpl.java:91)
    at 
org.apache.ojb.broker.PersistenceBrokerFactory.createPersistenceBroker(PersistenceBrokerFactory.java:86)
    at 
org.apache.jetspeed.components.persistence.store.ojb.pb.PBStore.<init>(PBStore.java:84)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
    at 
org.picocontainer.defaults.InstantiatingComponentAdapter.instantiateComponent(InstantiatingComponentAdapter.java:102)
    at 
org.picocontainer.defaults.InstantiatingComponentAdapter.getComponentInstance(InstantiatingComponentAdapter.java:45)
    at 
org.picocontainer.defaults.DefaultPicoContainer.getComponentInstance(DefaultPicoContainer.java:243)
    at 
org.apache.jetspeed.components.persistence.store.impl.DefaultPersistenceStoreContainer.getStore(DefaultPersistenceStoreContainer.java:75)
    at 
org.apache.jetspeed.components.persistence.store.impl.DefaultPersistenceStoreContainer.getStoreForThread(DefaultPersistenceStoreContainer.java:104)
    at 
org.apache.jetspeed.components.portletregistry.PortletRegistryComponentImpl.getPersistenceStore(PortletRegistryComponentImpl.java:162)
    at 
org.apache.jetspeed.components.portletregistry.TestRegistryDirectPart2.setUp(TestRegistryDirectPart2.java:81)
    at junit.framework.TestCase.runBare(TestCase.java:125)
    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run(TestCase.java:118)
    at junit.framework.TestSuite.runTest(TestSuite.java:208)
    at 
org.apache.jetspeed.components.ComponentAwareTestSuite.runTest(ComponentAwareTestSuite.java:141)
    at junit.framework.TestSuite.run(TestSuite.java:203)
    at 
org.apache.jetspeed.components.ComponentAwareTestSuite.run(ComponentAwareTestSuite.java:108)
    at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:325)
    at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:536)
Caused by: org.xml.sax.SAXParseException: The processing instruction 
target matching "[xX][mM][lL]" is not allowed.
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    at 
org.apache.ojb.broker.metadata.RepositoryPersistor.readMetadataFromXML(RepositoryPersistor.java:309)
    at 
org.apache.ojb.broker.metadata.RepositoryPersistor.buildRepository(RepositoryPersistor.java:264)
    at 
org.apache.ojb.broker.metadata.RepositoryPersistor.readDescriptorRepository(RepositoryPersistor.java:176)
    at 
org.apache.ojb.broker.metadata.MetadataManager.init(MetadataManager.java:148)
    ... 28 more
------------- ---------------- ---------------
Testcase: 
test001(org.apache.jetspeed.components.portletregistry.TestRegistryDirectPart2):    
Caused an ERROR
null
java.lang.NullPointerException
    at 
org.apache.jetspeed.components.persistence.store.ojb.pb.PBStore.checkBroker(PBStore.java:188)
    at 
org.apache.jetspeed.components.persistence.store.ojb.pb.PBStore.getBroker(PBStore.java:202)
    at 
org.apache.jetspeed.components.persistence.store.ojb.pb.PBTransaction.begin(PBTransaction.java:46)
    at 
org.apache.jetspeed.components.portletregistry.TestRegistryDirectPart2.test001(TestRegistryDirectPart2.java:117)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at 
org.apache.jetspeed.components.ComponentAwareTestSuite.runTest(ComponentAwareTestSuite.java:141)
    at 
org.apache.jetspeed.components.ComponentAwareTestSuite.run(ComponentAwareTestSuite.java:108)

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message