0 Replies Latest reply on Dec 26, 2010 6:53 AM by chesplay

    java.lang.UnsatisfiedLinkError: no com_splwg_base_support_cobol_host_socket

    chesplay
      Hi.. i am trying to run JUnit in my eclipse which is linked to CCB2.3 dev environmnt. i created a separate folder src-test nd placed my test classes there.. but these classes are not getting compiled and .class files are not getting placed in target folder.. also when i manually compiled the test file and placed the .class file in target folder and ran as JUnit i am getting the following error:

      java.lang.UnsatisfiedLinkError: no com_splwg_base_support_cobol_host_sockets_WindowsPipeSocket in java.library.path
           at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
           at java.lang.Runtime.loadLibrary0(Runtime.java:822)
           at java.lang.System.loadLibrary(System.java:993)
           at com.splwg.base.support.cobol.host.sockets.WindowsPipeSocket.<clinit>(WindowsPipeSocket.java:25)
           at com.splwg.base.support.cobol.host.sockets.WindowsPipeSocketStrategy.clearServerPortResources(WindowsPipeSocketStrategy.java:51)
           at com.splwg.base.support.cobol.host.SocketStrategy.bindServerPort(SocketStrategy.java:144)
           at com.splwg.base.support.cobol.host.OptimizedRemoteExecuterSkel.<init>(OptimizedRemoteExecuterSkel.java:34)
           at com.splwg.base.support.cobol.host.OptimizedInvocationStrategy.startOnParentJvm(OptimizedInvocationStrategy.java:25)
           at com.splwg.base.support.cobol.host.RemoteJVMFactoryImpl.<init>(RemoteJVMFactoryImpl.java:63)
           at com.splwg.base.support.cobol.host.CobolHostStartup.startup(CobolHostStartup.java:40)
           at com.splwg.base.support.context.ApplicationContext.initializeCobolRuntime(ApplicationContext.java:195)
           at com.splwg.base.support.context.ApplicationContext.initialize(ApplicationContext.java:176)
           at com.splwg.base.support.context.ContextFactory.buildContext(ContextFactory.java:115)
           at com.splwg.base.support.context.ContextFactory.buildContext(ContextFactory.java:88)
           at com.splwg.base.support.context.ContextFactory.createDefaultContext(ContextFactory.java:497)
           at com.splwg.base.api.testers.ApplicationComponentTestCase.<clinit>(ApplicationComponentTestCase.java:56)
           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:494)
           at junit.framework.TestSuite.createTest(TestSuite.java:131)
           at junit.framework.TestSuite.addTestMethod(TestSuite.java:114)
           at junit.framework.TestSuite.<init>(TestSuite.java:75)
           at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader.getTest(JUnit3TestLoader.java:102)
           at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader.loadTests(JUnit3TestLoader.java:59)
           at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:445)
           at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
           at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
           at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
      - 10:41:48,452 [main] ERROR (host.sockets.WindowsPipeSocket) Cannot instantiate com.splwg.base.support.cobol.host.sockets.WindowsPipeSocket because of problem loading a library com_splwg_base_support_cobol_host_sockets_WindowsPipeSocket during static initialization.
      java.lang.UnsatisfiedLinkError: no com_splwg_base_support_cobol_host_sockets_WindowsPipeSocket in java.library.path
           at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
           at java.lang.Runtime.loadLibrary0(Runtime.java:822)
           at java.lang.System.loadLibrary(System.java:993)
           at com.splwg.base.support.cobol.host.sockets.WindowsPipeSocket.<clinit>(WindowsPipeSocket.java:25)
           at com.splwg.base.support.cobol.host.sockets.WindowsPipeSocketStrategy.clearServerPortResources(WindowsPipeSocketStrategy.java:51)
           at com.splwg.base.support.cobol.host.SocketStrategy.bindServerPort(SocketStrategy.java:144)
           at com.splwg.base.support.cobol.host.OptimizedRemoteExecuterSkel.<init>(OptimizedRemoteExecuterSkel.java:34)
           at com.splwg.base.support.cobol.host.OptimizedInvocationStrategy.startOnParentJvm(OptimizedInvocationStrategy.java:25)
           at com.splwg.base.support.cobol.host.RemoteJVMFactoryImpl.<init>(RemoteJVMFactoryImpl.java:63)
           at com.splwg.base.support.cobol.host.CobolHostStartup.startup(CobolHostStartup.java:40)
           at com.splwg.base.support.context.ApplicationContext.initializeCobolRuntime(ApplicationContext.java:195)
           at com.splwg.base.support.context.ApplicationContext.initialize(ApplicationContext.java:176)
           at com.splwg.base.support.context.ContextFactory.buildContext(ContextFactory.java:115)
           at com.splwg.base.support.context.ContextFactory.buildContext(ContextFactory.java:88)
           at com.splwg.base.support.context.ContextFactory.createDefaultContext(ContextFactory.java:497)
           at com.splwg.base.api.testers.ApplicationComponentTestCase.<clinit>(ApplicationComponentTestCase.java:56)
           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:494)
           at junit.framework.TestSuite.createTest(TestSuite.java:131)
           at junit.framework.TestSuite.addTestMethod(TestSuite.java:114)
           at junit.framework.TestSuite.<init>(TestSuite.java:75)
           at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader.getTest(JUnit3TestLoader.java:102)
           at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader.loadTests(JUnit3TestLoader.java:59)
           at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:445)
           at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
           at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
           at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
      - 10:41:48,452 [main] FATAL (support.context.ApplicationContext) Error initializing ApplicationContext
      - 10:41:48,452 [main] ERROR (api.testers.ApplicationComponentTestCase) error initializing test context
      java.lang.ExceptionInInitializerError
           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:494)
           at junit.framework.TestSuite.createTest(TestSuite.java:131)
           at junit.framework.TestSuite.addTestMethod(TestSuite.java:114)
           at junit.framework.TestSuite.<init>(TestSuite.java:75)
           at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader.getTest(JUnit3TestLoader.java:102)
           at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader.loadTests(JUnit3TestLoader.java:59)
           at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:445)
           at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
           at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
           at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
      Caused by: com.splwg.shared.common.LoggedException:
      The following stacked messages were reported as the LoggedException was rethrown:
      com.splwg.base.support.context.ContextFactory.createDefaultContext(ContextFactory.java:497): error initializing test context
      com.splwg.base.support.context.ApplicationContext.initializeCobolRuntime(ApplicationContext.java:195): Error initializing ApplicationContext

      The root LoggedException was: Cannot instantiate com.splwg.base.support.cobol.host.sockets.WindowsPipeSocket because of problem loading a library com_splwg_base_support_cobol_host_sockets_WindowsPipeSocket during static initialization.
           at com.splwg.shared.common.LoggedException.wrap(LoggedException.java:198)
           at com.splwg.shared.common.LoggedException.wrap(LoggedException.java:85)
           at com.splwg.base.support.cobol.host.sockets.WindowsPipeSocket.<init>(WindowsPipeSocket.java:55)
           at com.splwg.base.support.cobol.host.sockets.WindowsPipeSocket.createSocket(WindowsPipeSocket.java:100)
           at com.splwg.base.support.cobol.host.sockets.WindowsPipeSocket.connect(WindowsPipeSocket.java:96)
           at com.splwg.base.support.cobol.host.sockets.WindowsPipeSocketStrategy.clearServerPortResources(WindowsPipeSocketStrategy.java:51)
           at com.splwg.base.support.cobol.host.SocketStrategy.bindServerPort(SocketStrategy.java:144)
           at com.splwg.base.support.cobol.host.OptimizedRemoteExecuterSkel.<init>(OptimizedRemoteExecuterSkel.java:34)
           at com.splwg.base.support.cobol.host.OptimizedInvocationStrategy.startOnParentJvm(OptimizedInvocationStrategy.java:25)
           at com.splwg.base.support.cobol.host.RemoteJVMFactoryImpl.<init>(RemoteJVMFactoryImpl.java:63)
           at com.splwg.base.support.cobol.host.CobolHostStartup.startup(CobolHostStartup.java:40)
           at com.splwg.base.support.context.ApplicationContext.initializeCobolRuntime(ApplicationContext.java:195)
           at com.splwg.base.support.context.ApplicationContext.initialize(ApplicationContext.java:176)
           at com.splwg.base.support.context.ContextFactory.buildContext(ContextFactory.java:115)
           at com.splwg.base.support.context.ContextFactory.buildContext(ContextFactory.java:88)
           at com.splwg.base.support.context.ContextFactory.createDefaultContext(ContextFactory.java:497)
           at com.splwg.base.api.testers.ApplicationComponentTestCase.<clinit>(ApplicationComponentTestCase.java:56)
           ... 13 more
      Caused by: java.lang.UnsatisfiedLinkError: no com_splwg_base_support_cobol_host_sockets_WindowsPipeSocket in java.library.path
           at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
           at java.lang.Runtime.loadLibrary0(Runtime.java:822)
           at java.lang.System.loadLibrary(System.java:993)
           at com.splwg.base.support.cobol.host.sockets.WindowsPipeSocket.<clinit>(WindowsPipeSocket.java:25)
           ... 25 more



      Plz suggest me whats going wrong here.. y eclipse is not copiling .java files by default...