java.lang.Error: factory already defined

Spring JIRA | Costin Leau | 10 years ago
  1. 0

    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)

    Spring JIRA | 10 years ago | Costin Leau
    java.lang.Error: factory already defined
  2. 0

    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)

    Spring JIRA | 10 years ago | Costin Leau
    java.lang.Error: factory already defined
  3. 0

    Spring-OSGi build errors

    Google Groups | 10 years ago | Mario Scalas
    java.lang.Error: factory already defined
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    java.lang.Error: factory already defined when trying to start the Tomcat

    apache.org | 1 year ago
    org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/]]

  1. serious2monkeys 5 times, last 4 months ago
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.Error

    factory already defined

    at java.net.URL.setURLStreamHandlerFactory()
  2. Java RT
    URL.setURLStreamHandlerFactory
    1. java.net.URL.setURLStreamHandlerFactory(URL.java:980)
    1 frame
  3. org.knopflerfish.framework
    Framework.<init>
    1. org.knopflerfish.framework.Framework.<init>(Framework.java:292)
    1 frame
  4. org.springframework.osgi
    AbstractOsgiPlatformTest.setUp
    1. org.springframework.osgi.test.platform.KnopflerfishPlatform.start(KnopflerfishPlatform.java:68)
    2. org.springframework.osgi.test.platform.AbstractOsgiPlatformTest.setUp(AbstractOsgiPlatformTest.java:39)
    2 frames
  5. JUnit
    TestSuite.run
    1. junit.framework.TestCase.runBare(TestCase.java:125)
    2. junit.framework.TestResult$1.protect(TestResult.java:106)
    3. junit.framework.TestResult.runProtected(TestResult.java:124)
    4. junit.framework.TestResult.run(TestResult.java:109)
    5. junit.framework.TestCase.run(TestCase.java:118)
    6. junit.framework.TestSuite.runTest(TestSuite.java:208)
    7. junit.framework.TestSuite.run(TestSuite.java:203)
    7 frames
  6. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:324)
    4 frames
  7. org.apache.maven
    JUnitTestSet.execute
    1. org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
    1 frame
  8. SureFire
    Surefire.run
    1. org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
    2. org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:163)
    3. org.apache.maven.surefire.Surefire.run(Surefire.java:84)
    3 frames
  9. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:324)
    4 frames