java.lang.Error

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • The latest refactoring forces KF to do double URL registration: Running org.springframework.osgi.test.platform.KnopflerfishPlatformTest ## DEBUG: Cannot set global URL handlers, continuing without OSGi service URL ha ndler (java.lang.Error: factory already defined) java.lang.Error: factory already defined at java.net.URL.setURLStreamHandlerFactory(URL.java:980) at org.knopflerfish.framework.Framework.<init>(Framework.java:292) at org.springframework.osgi.test.platform.KnopflerfishPlatform.start(Kno pflerfishPlatform.java:68) at org.springframework.osgi.test.platform.AbstractOsgiPlatformTest.setUp (AbstractOsgiPlatformTest.java:39) 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 junit.framework.TestSuite.run(TestSuite.java:203) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.jav a:213) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTes tSet(AbstractDirectoryTestSuite.java:138) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(Ab stractDirectoryTestSuite.java:163) at org.apache.maven.surefire.Surefire.run(Surefire.java:84) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su refireBooter.java:244) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.j ava:814)
    via by Costin Leau,
  • The latest refactoring forces KF to do double URL registration: Running org.springframework.osgi.test.platform.KnopflerfishPlatformTest ## DEBUG: Cannot set global URL handlers, continuing without OSGi service URL ha ndler (java.lang.Error: factory already defined) java.lang.Error: factory already defined at java.net.URL.setURLStreamHandlerFactory(URL.java:980) at org.knopflerfish.framework.Framework.<init>(Framework.java:292) at org.springframework.osgi.test.platform.KnopflerfishPlatform.start(Kno pflerfishPlatform.java:68) at org.springframework.osgi.test.platform.AbstractOsgiPlatformTest.setUp (AbstractOsgiPlatformTest.java:39) 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 junit.framework.TestSuite.run(TestSuite.java:203) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.jav a:213) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTes tSet(AbstractDirectoryTestSuite.java:138) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(Ab stractDirectoryTestSuite.java:163) at org.apache.maven.surefire.Surefire.run(Surefire.java:84) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su refireBooter.java:244) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.j ava:814)
    via by Costin Leau,
  • Spring-OSGi build errors
    via by Mario Scalas,
  • java.lang.Error: factory already defined
    via by Hendy Irawan,
  • Karaf - User - embedding karaf
    via by Unknown author,
  • Embedded ACC and GFv3 | Java.net
    via by Unknown author,
    • java.lang.Error: factory already defined at java.net.URL.setURLStreamHandlerFactory(URL.java:980) at org.knopflerfish.framework.Framework.<init>(Framework.java:292) at org.springframework.osgi.test.platform.KnopflerfishPlatform.start(KnopflerfishPlatform.java:68) at org.springframework.osgi.test.platform.AbstractOsgiPlatformTest.setUp(AbstractOsgiPlatformTest.java:39) 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 junit.framework.TestSuite.run(TestSuite.java:203) 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:324) at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:163) at org.apache.maven.surefire.Surefire.run(Surefire.java:84) 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:324)

    Users with the same issue

    serious2monkeysserious2monkeys
    5 times, last one,