Topic
7 replies Latest Post - ‏2013-09-27T19:38:16Z by Stan
alauria
alauria
3 Posts
ACCEPTED ANSWER

Pinned topic error in example 027_java_op_at_work

‏2013-08-13T08:21:52Z |
I  executed the composite  Main in project  027_java_op_at_work, this project is a tutorial in vmware-streamsV3.1.0.0-qse-v1.
 
I used  the command /output/bin/standalone, and i get this  error:
 
 12 Aug 2013 18:07:27.276 [28118] ERROR #splapptrc,J[0],P[0],TickerWithTime M[JavaOp.cpp:trace:148]  - awt (An exception was pending after running JNI_OnLoad)
12 Aug 2013 18:07:27.277 [28118] ERROR #splapptrc,J[0],P[0],TickerWithTime M[JavaOp.cpp:trace:148]  - java.lang.UnsatisfiedLinkError: awt (An exception was pending after running JNI_OnLoad)
12 Aug 2013 18:07:27.277 [28118] ERROR #splapptrc,J[0],P[0],TickerWithTime M[JavaOp.cpp:trace:148]  - java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:1030)
12 Aug 2013 18:07:27.278 [28118] ERROR #splapptrc,J[0],P[0],TickerWithTime M[JavaOp.cpp:trace:148]  - java.lang.ClassLoader.loadLibraryWithClassLoader(ClassLoader.java:994)
12 Aug 2013 18:07:27.278 [28118] ERROR #splapptrc,J[0],P[0],TickerWithTime M[JavaOp.cpp:trace:148]  - java.lang.System.loadLibrary(System.java:507)
12 Aug 2013 18:07:27.278 [28118] ERROR #splapptrc,J[0],P[0],TickerWithTime M[JavaOp.cpp:trace:148]  - sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:69)
12 Aug 2013 18:07:27.279 [28118] ERROR #splapptrc,J[0],P[0],TickerWithTime M[JavaOp.cpp:trace:148]  - java.security.AccessController.doPrivileged(AccessController.java:273)
12 Aug 2013 18:07:27.279 [28118] ERROR #splapptrc,J[0],P[0],TickerWithTime M[JavaOp.cpp:trace:148]  - java.awt.Toolkit.loadLibraries(Toolkit.java:1619)
12 Aug 2013 18:07:27.279 [28118] ERROR #splapptrc,J[0],P[0],TickerWithTime M[JavaOp.cpp:trace:148]  - java.awt.Toolkit.<clinit>(Toolkit.java:1641)
12 Aug 2013 18:07:27.280 [28118] ERROR #splapptrc,J[0],P[0],TickerWithTime M[JavaOp.cpp:trace:148]  - java.lang.J9VMInternals.initializeImpl(Native Method)
12 Aug 2013 18:07:27.280 [28118] ERROR #splapptrc,J[0],P[0],TickerWithTime M[JavaOp.cpp:trace:148]  - java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
12 Aug 2013 18:07:27.282 [28118] ERROR #splapptrc,J[0],P[0],TickerWithTime M[JavaOp.cpp:trace:148]  - java.lang.J9VMInternals.initialize(J9VMInternals.java:167)
12 Aug 2013 18:07:27.282 [28118] ERROR #splapptrc,J[0],P[0],TickerWithTime M[JavaOp.cpp:trace:148]  - sun.awt.AppContext$2.run(AppContext.java:249)
12 Aug 2013 18:07:27.282 [28118] ERROR #splapptrc,J[0],P[0],TickerWithTime M[JavaOp.cpp:trace:148]  - sun.awt.AppContext$2.run(AppContext.java:238)
12 Aug 2013 18:07:27.282 [28118] ERROR #splapptrc,J[0],P[0],TickerWithTime M[JavaOp.cpp:trace:148]  - java.security.AccessController.doPrivileged(AccessController.java:273)
12 Aug 2013 18:07:27.283 [28118] ERROR #splapptrc,J[0],P[0],TickerWithTime M[JavaOp.cpp:trace:148]  - sun.awt.AppContext.initMainAppContext(AppContext.java:238)
12 Aug 2013 18:07:27.283 [28118] ERROR #splapptrc,J[0],P[0],TickerWithTime M[JavaOp.cpp:trace:148]  - sun.awt.AppContext.access$200(AppContext.java:124)
12 Aug 2013 18:07:27.283 [28118] ERROR #splapptrc,J[0],P[0],TickerWithTime M[JavaOp.cpp:trace:148]  - sun.awt.AppContext$3.run(AppContext.java:306)
12 Aug 2013 18:07:27.283 [28118] ERROR #splapptrc,J[0],P[0],TickerWithTime M[JavaOp.cpp:trace:148]  - java.security.AccessController.doPrivileged(AccessController.java:273)
12 Aug 2013 18:07:27.284 [28118] ERROR #splapptrc,J[0],P[0],TickerWithTime M[JavaOp.cpp:trace:148]  - sun.awt.AppContext.getAppContext(AppContext.java:287)
12 Aug 2013 18:07:27.284 [28118] ERROR #splapptrc,J[0],P[0],TickerWithTime M[JavaOp.cpp:trace:148]  - com.sun.jmx.trace.Trace.out(Trace.java:192)
12 Aug 2013 18:07:27.284 [28118] ERROR #splapptrc,J[0],P[0],TickerWithTime M[JavaOp.cpp:trace:148]  - com.sun.jmx.trace.Trace.isSelected(Trace.java:100)
12 Aug 2013 18:07:27.285 [28118] ERROR #splapptrc,J[0],P[0],TickerWithTime M[JavaOp.cpp:trace:148]  - com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.isTraceOn(DefaultMBeanServerInterceptor.java:1842)
12 Aug 2013 18:07:27.285 [28118] ERROR #splapptrc,J[0],P[0],TickerWithTime M[JavaOp.cpp:trace:148]  - com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:941)
12 Aug 2013 18:07:27.286 [28118] ERROR #splapptrc,J[0],P[0],TickerWithTime M[JavaOp.cpp:trace:148]  - com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:928)
12 Aug 2013 18:07:27.288 [28118] ERROR #splapptrc,J[0],P[0],TickerWithTime M[JavaOp.cpp:trace:148]  - com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:324)
12 Aug 2013 18:07:27.289 [28118] ERROR #splapptrc,J[0],P[0],TickerWithTime M[JavaOp.cpp:trace:148]  - com.sun.jmx.mbeanserver.JmxMBeanServer$2.run(JmxMBeanServer.java:1207)
12 Aug 2013 18:07:27.289 [28118] ERROR #splapptrc,J[0],P[0],TickerWithTime M[JavaOp.cpp:trace:148]  - java.security.AccessController.doPrivileged(AccessController.java:327)
12 Aug 2013 18:07:27.290 [28118] ERROR #splapptrc,J[0],P[0],TickerWithTime M[JavaOp.cpp:trace:148]  - com.sun.jmx.mbeanserver.JmxMBeanServer.initialize(JmxMBeanServer.java:1205)
12 Aug 2013 18:07:27.290 [28118] ERROR #splapptrc,J[0],P[0],TickerWithTime M[JavaOp.cpp:trace:148]  - com.sun.jmx.mbeanserver.JmxMBeanServer.<init>(JmxMBeanServer.java:237)
12 Aug 2013 18:07:27.291 [28118] ERROR #splapptrc,J[0],P[0],TickerWithTime M[JavaOp.cpp:trace:148]  - com.sun.jmx.mbeanserver.JmxMBeanServer.<init>(JmxMBeanServer.java:182)
12 Aug 2013 18:07:27.291 [28118] ERROR #splapptrc,J[0],P[0],TickerWithTime M[JavaOp.cpp:trace:148]  - com.sun.jmx.mbeanserver.JmxMBeanServer.newMBeanServer(JmxMBeanServer.java:1413)
12 Aug 2013 18:07:27.291 [28118] ERROR #splapptrc,J[0],P[0],TickerWithTime M[JavaOp.cpp:trace:148]  - javax.management.MBeanServerBuilder.newMBeanServer(MBeanServerBuilder.java:104)
12 Aug 2013 18:07:27.291 [28118] ERROR #splapptrc,J[0],P[0],TickerWithTime M[JavaOp.cpp:trace:148]  - javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory.java:322)
12 Aug 2013 18:07:27.292 [28118] ERROR #splapptrc,J[0],P[0],TickerWithTime M[JavaOp.cpp:trace:148]  - javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:225)
12 Aug 2013 18:07:27.292 [28118] ERROR #splapptrc,J[0],P[0],TickerWithTime M[JavaOp.cpp:trace:148]  - javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:186)
12 Aug 2013 18:07:27.292 [28118] ERROR #splapptrc,J[0],P[0],TickerWithTime M[JavaOp.cpp:trace:148]  - java.lang.management.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:297)
12 Aug 2013 18:07:27.293 [28118] ERROR #splapptrc,J[0],P[0],TickerWithTime M[JavaOp.cpp:trace:148]  - com.ibm.streams.operator.internal.management.MXBeanControl.platformRegister(MXBeanControl.java:46)
12 Aug 2013 18:07:27.293 [28118] ERROR #splapptrc,J[0],P[0],TickerWithTime M[JavaOp.cpp:trace:148]  - com.ibm.streams.operator.internal.runtime.api.PEMXBeanImpl.registerForPE(PEMXBeanImpl.java:50)
12 Aug 2013 18:07:27.293 [28118] ERROR #splapptrc,J[0],P[0],TickerWithTime M[JavaOp.cpp:trace:148]  - com.ibm.streams.operator.internal.runtime.api.PE.<init>(PE.java:112)
12 Aug 2013 18:07:27.294 [28118] ERROR #splapptrc,J[0],P[0],TickerWithTime M[JavaOp.cpp:trace:148]  - com.ibm.streams.operator.internal.jni.JNIPE.<init>(JNIPE.java:86)
12 Aug 2013 18:07:27.294 [28118] ERROR #splapptrc,J[0],P[0],TickerWithTime M[JavaOp.cpp:trace:148]  - com.ibm.streams.operator.internal.jni.JNIPE.getPE(JNIPE.java:57)
12 Aug 2013 18:07:27.295 [28118] ERROR #splapptrc,J[0],P[0],TickerWithTime M[JavaOp.cpp:trace:148]  - com.ibm.streams.operator.internal.jni.JNIBridge.<init>(JNIBridge.java:246)
Exception in thread "Thread-8" java.lang.UnsatisfiedLinkError: awt (An exception was pending after running JNI_OnLoad)
        at java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:1030)
        at java.lang.ClassLoader.loadLibraryWithClassLoader(ClassLoader.java:994)
        at java.lang.System.loadLibrary(System.java:507)
        at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:69)
        at java.security.AccessController.doPrivileged(AccessController.java:273)
        at java.awt.Toolkit.loadLibraries(Toolkit.java:1619)
        at java.awt.Toolkit.<clinit>(Toolkit.java:1641)
        at java.lang.J9VMInternals.initializeImpl(Native Method)
        at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
        at java.lang.J9VMInternals.initialize(J9VMInternals.java:167)
        at sun.awt.AppContext$2.run(AppContext.java:249)
        at sun.awt.AppContext$2.run(AppContext.java:238)
        at java.security.AccessController.doPrivileged(AccessController.java:273)
        at sun.awt.AppContext.initMainAppContext(AppContext.java:238)
        at sun.awt.AppContext.access$200(AppContext.java:124)
        at sun.awt.AppContext$3.run(AppContext.java:306)
        at java.security.AccessController.doPrivileged(AccessController.java:273)
        at sun.awt.AppContext.getAppContext(AppContext.java:287)
        at com.sun.jmx.trace.Trace.out(Trace.java:192)
        at com.sun.jmx.trace.Trace.isSelected(Trace.java:100)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.isTraceOn(DefaultMBeanServerInterceptor.java:1842)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:941)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:928)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:324)
        at com.sun.jmx.mbeanserver.JmxMBeanServer$2.run(JmxMBeanServer.java:1207)
        at java.security.AccessController.doPrivileged(AccessController.java:327)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.initialize(JmxMBeanServer.java:1205)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.<init>(JmxMBeanServer.java:237)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.<init>(JmxMBeanServer.java:182)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.newMBeanServer(JmxMBeanServer.java:1413)
        at javax.management.MBeanServerBuilder.newMBeanServer(MBeanServerBuilder.java:104)
        at javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory.java:322)
        at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:225)
        at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:186)
        at java.lang.management.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:297)
        at com.ibm.streams.operator.internal.management.MXBeanControl.platformRegister(MXBeanControl.java:46)
        at com.ibm.streams.operator.internal.runtime.api.PEMXBeanImpl.registerForPE(PEMXBeanImpl.java:50)
        at com.ibm.streams.operator.internal.runtime.api.PE.<init>(PE.java:112)
        at com.ibm.streams.operator.internal.jni.JNIPE.<init>(JNIPE.java:86)
        at com.ibm.streams.operator.internal.jni.JNIPE.getPE(JNIPE.java:57)
        at com.ibm.streams.operator.internal.jni.JNIBridge.<init>(JNIBridge.java:246)
12 Aug 2013 18:07:27.436 [28118] ERROR #splapptrc,J[0],P[0],TickerWithTime,spl_function M[JavaOp.cpp:newBridge:1019]  - CDISR5126E: A Java exception occurred at Operator.initialize() during the JavaOp invocation.
12 Aug 2013 18:07:27.574 [28118] ERROR #splapplog,J[0],P[0],TickerWithTime,spl_pe M[PEImpl.cpp:logTerminatingException:1217]  - CDISR5033E: An exception occurred during the execution of the TickerWithTime operator. Processing element number 0 is terminating.
12 Aug 2013 18:07:27.575 [28118] ERROR #splapptrc,J[0],P[0],TickerWithTime,spl_operator M[PEImpl.cpp:instantiateOperators:463]  - CDISR5030E: An exception occurred during the execution of the TickerWithTime operator. The exception is: A Java exception occurred at Operator.initialize() during the JavaOp invocation.
12 Aug 2013 18:07:27.575 [28118] ERROR #splapptrc,J[0],P[0],TickerWithTime,spl_pe M[PEImpl.cpp:process:675]  - CDISR5079E: An exception occurred during the processing of the processing element. The error is: A Java exception occurred at Operator.initialize() during the JavaOp invocation..
12 Aug 2013 18:07:27.575 [28118] ERROR #splapptrc,J[0],P[0],TickerWithTime,spl_operator M[PEImpl.cpp:process:696]  - CDISR5053E: Runtime failures occurred in the following operators: TickerWithTime.
 
 
 
what is the solution? 
I have the same error when i execute the example in telco_cdr_toolkit.
 
 
thanks.

 

 

a.lauria

 
  • Walt_Madden
    Walt_Madden
    6 Posts
    ACCEPTED ANSWER

    Re: error in example 027_java_op_at_work

    ‏2013-08-14T19:05:30Z  in response to alauria

    At a glance, it seems there may be an issue with the JVM installed in the QSE VM image.  I will investigate further and get back to you.

     

  • Walt_Madden
    Walt_Madden
    6 Posts
    ACCEPTED ANSWER

    Re: error in example 027_java_op_at_work

    ‏2013-08-16T03:33:02Z  in response to alauria

    Unfortunately, it appears we will need to update the QSE VM image to correct this.

    In the meantime, I believe you may be able to use an alternate JVM within Streams by doing the following:

    Edit /home/streamsadmin/.bashrc and comment out the export PATH= and export JAVA_HOME= lines. 

    Shutdown/Restart the VM.

    Rebuild the example program:

    cd /home/streamsadmin/workspace/027_java_op_at_work; sc -M my.sample::Main --output-directory=output/my.sample.Main/Standalone -T -a

    Now try running the example program again.

    Thanks for bringing this to our attention and sorry about the inconvenience...
     

  • alauria
    alauria
    3 Posts
    ACCEPTED ANSWER

    Re: error in example 027_java_op_at_work

    ‏2013-08-20T07:21:50Z  in response to alauria
    I will wait for the update of the VM, thank you for answering.
    • Walt_Madden
      Walt_Madden
      6 Posts
      ACCEPTED ANSWER

      Re: error in example 027_java_op_at_work

      ‏2013-08-20T18:01:24Z  in response to alauria

      An updated Streams 3.1 Quick Start Edition VMware image named vmware-streamsV3.1.0.0-qse-v2.zip is now available here:

      https://www.ibm.com/services/forms/preLogin.do?source=swg-ibmistvi

      T
      hanks again for bringing this to our attention!

       

      • alauria
        alauria
        3 Posts
        ACCEPTED ANSWER

        Re: error in example 027_java_op_at_work

        ‏2013-09-09T10:08:01Z  in response to Walt_Madden

        the new version works.

         

        thanks.

        Anna Maria.

  • bmwilli
    bmwilli
    41 Posts
    ACCEPTED ANSWER

    Re: error in example 027_java_op_at_work

    ‏2013-09-26T15:24:24Z  in response to alauria

    We are having the same issue with a java operator we are using.  We, however, are on our own cluster, and using the Oracle/Sun Java.  What did you do to the QuickStart VM to fix this?  Any ideas what we need to do to fix the issue on our cluster?  We also posted this as a separate forum question today by the user (Developer254) entitled: libmawt.so missing

    • Stan
      Stan
      76 Posts
      ACCEPTED ANSWER

      Re: error in example 027_java_op_at_work

      ‏2013-09-27T19:38:16Z  in response to bmwilli

      Have you rececntly upgraded JAVA on your system?  This appears to be a problem introduced by changes in the Oracle Java security update released in July.  The IBM JVM is built on the base release from Oracle and so has this problem beginning with Java 6 SR14.  Here is the post about the propblem:

        http://www-01.ibm.com/support/docview.wss?uid=swg1IV25456

      If this is the problem and until a fix is released I believe you will need to regress to a previous version of java.