brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aledsage <...@git.apache.org>
Subject [GitHub] brooklyn-server issue #847: Catalog init refactor
Date Mon, 02 Oct 2017 13:07:07 GMT
Github user aledsage commented on the issue:

    https://github.com/apache/brooklyn-server/pull/847
  
    Thanks @m4rkmckenna - full stacktrace from log on jenkins is shown below. I don't think
it's related to this PR, but I'll fix it here.
    ```
    2017-10-02 05:16:31,175 INFO  TESTNG FAILED: "Surefire test" - org.apache.brooklyn.util.core.ClassLoaderUtilsTest.testLoadClassInOsgiCore()
finished in 32 ms
    java.lang.IllegalStateException: Bundle BasicManagedBundle{symbolicName=null, version=null,
url=system:file:/home/jenkins/jenkins-slave/workspace/brooklyn-server-pull-requests%402/core/target/classes/}
failed preparation: Error creating ZIP from classpath spec file:/home/jenkins/jenkins-slave/workspace/brooklyn-server-pull-requests%402/core/target/classes/:
StringIndexOutOfBoundsException: String index out of range: -1
    	at org.apache.brooklyn.core.mgmt.ha.OsgiArchiveInstaller.install(OsgiArchiveInstaller.java:643)
    	at org.apache.brooklyn.core.mgmt.ha.OsgiManager.installDeferredStart(OsgiManager.java:359)
    	at org.apache.brooklyn.core.catalog.internal.CatalogUtils.installLibraries(CatalogUtils.java:191)
    	at org.apache.brooklyn.core.catalog.internal.BasicBrooklynCatalog.addItem(BasicBrooklynCatalog.java:1805)
    	at org.apache.brooklyn.util.core.ClassLoaderUtilsTest.createSimpleEntity(ClassLoaderUtilsTest.java:393)
    	at org.apache.brooklyn.util.core.ClassLoaderUtilsTest.testLoadClassInOsgiCore(ClassLoaderUtilsTest.java:221)
    Caused by: org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: Error creating
ZIP from classpath spec file:/home/jenkins/jenkins-slave/workspace/brooklyn-server-pull-requests%402/core/target/classes/:
StringIndexOutOfBoundsException: String index out of range: -1
    	at org.apache.brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:180)
    	at org.apache.brooklyn.util.exceptions.Exceptions.propagateAnnotated(Exceptions.java:160)
    	at org.apache.brooklyn.util.core.osgi.BundleMaker.createJarFromClasspathDir(BundleMaker.java:118)
    	at org.apache.brooklyn.core.mgmt.ha.OsgiArchiveInstaller.makeLocalZipFileFromInputStreamOrUrl(OsgiArchiveInstaller.java:222)
    	at org.apache.brooklyn.core.mgmt.ha.OsgiArchiveInstaller.install(OsgiArchiveInstaller.java:351)
    	... 34 more
    Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    	at java.lang.String.substring(String.java:1931)
    	at org.apache.brooklyn.util.core.osgi.BundleMaker.addUrlFileToZip(BundleMaker.java:362)
    	at org.apache.brooklyn.util.core.osgi.BundleMaker.addUrlItemRecursively(BundleMaker.java:307)
    	at org.apache.brooklyn.util.core.osgi.BundleMaker.createJarFromClasspathDir(BundleMaker.java:107)
    	... 36 more
    ```


---

Mime
View raw message