[ https://issues.apache.org/jira/browse/CLEREZZA-724?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13579146#comment-13579146 ]
Tommaso Teofili edited comment on CLEREZZA-724 at 2/15/13 1:01 PM: ------------------------------------------------------------------- If I apply the patch I get a failure in SCB Jena TDB Storage Provider module on test org.apache.clerezza.rdf.jena.tdb.storage.MultiThreadedSingleTdbDatasetTest with the following: Test set: org.apache.clerezza.rdf.jena.tdb.storage.MultiThreadedSingleTdbDatasetTest ------------------------------------------------------------------------------- Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 1.32 sec <<< FAILURE! org.apache.clerezza.rdf.jena.tdb.storage.MultiThreadedSingleTdbDatasetTest Time elapsed: 434.91 sec <<< ERROR! java.lang.OutOfMemoryError: Java heap space at java.util.HashMap.<init>(HashMap.java:187) at java.util.LinkedHashMap.<init>(LinkedHashMap.java:213) at org.openjena.atlas.lib.cache.CacheImpl.<init>(CacheImpl.java:33) at org.openjena.atlas.lib.cache.CacheLRU.<init>(CacheLRU.java:25) at org.openjena.atlas.lib.CacheFactory.createCache(CacheFactory.java:31) at org.openjena.atlas.lib.CacheFactory.createCache(CacheFactory.java:21) at com.hp.hpl.jena.tdb.nodetable.NodeTableCache.<init>(NodeTableCache.java:47) at com.hp.hpl.jena.tdb.nodetable.NodeTableCache.create(NodeTableCache.java:40) at com.hp.hpl.jena.tdb.sys.SetupTDB.makeNodeTable(SetupTDB.java:561) at com.hp.hpl.jena.tdb.sys.SetupTDB.buildDataset(SetupTDB.java:245) at com.hp.hpl.jena.tdb.sys.DatasetGraphSetup.createDatasetGraph(DatasetGraphSetup.java:21) at com.hp.hpl.jena.tdb.sys.CachingTDBMaker.createDatasetGraph(CachingTDBMaker.java:39) at com.hp.hpl.jena.tdb.sys.TDBMaker._createDatasetGraph(TDBMaker.java:78) at com.hp.hpl.jena.tdb.TDBFactory.createDatasetGraph(TDBFactory.java:126) at com.hp.hpl.jena.tdb.TDBFactory.createDataset(TDBFactory.java:83) at com.hp.hpl.jena.tdb.TDBFactory.createDataset(TDBFactory.java:79) at org.apache.clerezza.rdf.jena.tdb.storage.SingleTdbDatasetTcProvider.activate(SingleTdbDatasetTcProvider.java:417) at org.apache.clerezza.rdf.jena.tdb.storage.SingleTdbDatasetTcProvider.<init>(SingleTdbDatasetTcProvider.java:322) at org.apache.clerezza.rdf.jena.tdb.storage.MultiThreadedSingleTdbDatasetTest.setup(MultiThreadedSingleTdbDatasetTest.java:114) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) at org.junit.runners.ParentRunner.run(ParentRunner.java:236) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127) org.apache.clerezza.rdf.jena.tdb.storage.MultiThreadedSingleTdbDatasetTest Time elapsed: 434.911 sec <<< ERROR! java.lang.NullPointerException at org.apache.clerezza.rdf.jena.tdb.storage.MultiThreadedSingleTdbDatasetTest.cleanUpDirectory(MultiThreadedSingleTdbDatasetTest.java:144) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:37) at org.junit.runners.ParentRunner.run(ParentRunner.java:236) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127) at org.apache.maven.surefire.Surefire.run(Surefire.java:177) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009) was (Author: teofili): If I apply the patch I get a failure in _SCB Jena TDB Storage Provider_ module on test _org.apache.clerezza.rdf.jena.tdb.storage.MultiThreadedSingleTdbDatasetTest_ with the following: Test set: org.apache.clerezza.rdf.jena.tdb.storage.MultiThreadedSingleTdbDatasetTest ------------------------------------------------------------------------------- Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 1.32 sec <<< FAILURE! org.apache.clerezza.rdf.jena.tdb.storage.MultiThreadedSingleTdbDatasetTest Time elapsed: 434.91 sec <<< ERROR! java.lang.OutOfMemoryError: Java heap space at java.util.HashMap.<init>(HashMap.java:187) at java.util.LinkedHashMap.<init>(LinkedHashMap.java:213) at org.openjena.atlas.lib.cache.CacheImpl.<init>(CacheImpl.java:33) at org.openjena.atlas.lib.cache.CacheLRU.<init>(CacheLRU.java:25) at org.openjena.atlas.lib.CacheFactory.createCache(CacheFactory.java:31) at org.openjena.atlas.lib.CacheFactory.createCache(CacheFactory.java:21) at com.hp.hpl.jena.tdb.nodetable.NodeTableCache.<init>(NodeTableCache.java:47) at com.hp.hpl.jena.tdb.nodetable.NodeTableCache.create(NodeTableCache.java:40) at com.hp.hpl.jena.tdb.sys.SetupTDB.makeNodeTable(SetupTDB.java:561) at com.hp.hpl.jena.tdb.sys.SetupTDB.buildDataset(SetupTDB.java:245) at com.hp.hpl.jena.tdb.sys.DatasetGraphSetup.createDatasetGraph(DatasetGraphSetup.java:21) at com.hp.hpl.jena.tdb.sys.CachingTDBMaker.createDatasetGraph(CachingTDBMaker.java:39) at com.hp.hpl.jena.tdb.sys.TDBMaker._createDatasetGraph(TDBMaker.java:78) at com.hp.hpl.jena.tdb.TDBFactory.createDatasetGraph(TDBFactory.java:126) at com.hp.hpl.jena.tdb.TDBFactory.createDataset(TDBFactory.java:83) at com.hp.hpl.jena.tdb.TDBFactory.createDataset(TDBFactory.java:79) at org.apache.clerezza.rdf.jena.tdb.storage.SingleTdbDatasetTcProvider.activate(SingleTdbDatasetTcProvider.java:417) at org.apache.clerezza.rdf.jena.tdb.storage.SingleTdbDatasetTcProvider.<init>(SingleTdbDatasetTcProvider.java:322) at org.apache.clerezza.rdf.jena.tdb.storage.MultiThreadedSingleTdbDatasetTest.setup(MultiThreadedSingleTdbDatasetTest.java:114) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) at org.junit.runners.ParentRunner.run(ParentRunner.java:236) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127) org.apache.clerezza.rdf.jena.tdb.storage.MultiThreadedSingleTdbDatasetTest Time elapsed: 434.911 sec <<< ERROR! java.lang.NullPointerException at org.apache.clerezza.rdf.jena.tdb.storage.MultiThreadedSingleTdbDatasetTest.cleanUpDirectory(MultiThreadedSingleTdbDatasetTest.java:144) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:37) at org.junit.runners.ParentRunner.run(ParentRunner.java:236) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127) at org.apache.maven.surefire.Surefire.run(Surefire.java:177) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009) > Remove internally used "org.apache.xerces.util" from bundle > import-package/export-package > ----------------------------------------------------------------------------------------- > > Key: CLEREZZA-724 > URL: https://issues.apache.org/jira/browse/CLEREZZA-724 > Project: Clerezza > Issue Type: Bug > Components: rdf.parse > Affects Versions: 0.2-incubating > Reporter: Minto van der Sluis > Attachments: Issue-724.patch > > > I am experiencing LinkageError when using Clerezza in combination with CXF. > Caused by: java.lang.LinkageError: loader constraint violation: when > resolving method > "org.apache.xerces.util.ParserConfigurationSettings.<init>(Lorg/apache/xerces/xni/parser/XMLComponentManager;)V" > the class loader (instance of > org/apache/felix/framework/BundleWiringImpl$BundleClassLoaderJava5) of > the current class, org/apache/xerces/parsers/BasicParserConfiguration, > and the class loader (instance of > org/apache/felix/framework/BundleWiringImpl$BundleClassLoaderJava5) for > resolved class, org/apache/xerces/util/ParserConfigurationSettings, have > different Class objects for the type > gs.<init>(Lorg/apache/xerces/xni/parser/XMLComponentManager;)V used in > the signature > at org.apache.xerces.parsers.BasicParserConfiguration.<init>(Unknown > Source) > at org.apache.xerces.parsers.DTDConfiguration.<init>(Unknown Source) > at > org.apache.xerces.parsers.StandardParserConfiguration.<init>(Unknown Source) > at > org.apache.xerces.parsers.StandardParserConfiguration.<init>(Unknown Source) > at > com.hp.hpl.jena.rdf.arp.impl.RDFXMLParser.create(RDFXMLParser.java:117) > at com.hp.hpl.jena.rdf.arp.JenaReader.<init>(JenaReader.java:62) > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method)[:1.7.0_02] > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)[:1.7.0_02] > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)[:1.7.0_02] > at > java.lang.reflect.Constructor.newInstance(Constructor.java:525)[:1.7.0_02] > at java.lang.Class.newInstance0(Class.java:372)[:1.7.0_02] > at java.lang.Class.newInstance(Class.java:325)[:1.7.0_02] > at > com.hp.hpl.jena.rdf.model.impl.RDFReaderFImpl.getReader(RDFReaderFImpl.java:113) > at com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:226) > at > org.apache.clerezza.rdf.jena.parser.JenaParserProvider.parse(JenaParserProvider.java:68) > ... > Removing "org.apache.xerces.util" from the bundle import-package and > export-package resuls in expected operation. Since the Xerces library is > embedded inside the bundle it needs not to be exported. > See also the mailing list: > http://mail-archives.apache.org/mod_mbox/incubator-clerezza-dev/201212.mbox/%3C50C0B4BB.3030307%40xup.nl%3E -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira