Wednesday, July 8, 2015

Development challanges



Error-1

java.lang.ClassFormatError: Illegal local variable table start_pc 39 in method org.apache.synapse.transport.passthru.PassThroughHttpSender.sendUsingOutputStream(Lorg/apache/axis2/context/MessageContext;)V

java.lang.ClassFormatError: Illegal local variable table length 81 in method org.apache.synapse.transport.passthru.PassThroughHttpSender.maintenanceShutdown(J)V

Solution
adding the JVM arg -XX:-UseSplitVerifier(in wso2server.sh/bat)
Ex:-     $JAVACMD \
    -Xbootclasspath/a:"$CARBON_XBOOTCLASSPATH" \
    -Xms256m -Xmx1024m -XX:MaxPermSize=256m \
    -XX:-UseSplitVerifier \


###############################################

Error-1
When we run load test on ESB server by default it will only allow 20 concurrent threads to send out so if we increase the size of the thread in synapse properties(//repository/conf/synapse.properties) we may encounter the error.

[CodeBlob (0x00007f3fc1051e10)]
Framesize: 0
BufferBlob (0x00007f3fc1051e10) used for StubRoutines (2)
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (sharedRuntime.cpp:834), pid=4948, tid=139907131430656
#  fatal error: exception happened outside interpreter, nmethods and vtable stubs at pc 0x00007f3fc105436f
#
# JRE version: Java(TM) SE Runtime Environment (8.0_45-b14) (build 1.8.0_45-b14)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.45-b02 mixed mode linux-amd64 compressed oops)
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/rajjaz/Documents/ESB/wso2esb-5.0.0-RC/hs_err_pid4948.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#
Aborted (core dumped)


Solution

Increase the number based on the machine capacity

No comments:

Post a Comment