Mode in java

Hello, I am new to java and have a school project that im working on i have to do maximum, minimum, avg, mode and standard Deviation..
I have max, min, and avg, can anyone help me with how to get the mode? here is what i got so far.
import java.io.*;
import java.util.*;
import java.text.*;
public class labexample2 {
public static void main(String[] args) throws IOException {
BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
int[] nums = new int[10];
for (int i = 0; i < nums.length; i++) {
System.out.print("Enter a number: ");
nums[i] = Integer.parseInt(r.readLine()); }
int min = nums[0];
for (int i = 1; i < nums.length; i++) {
if (nums[i] < min) min = nums;
System.out.println("Minimum: " + min);
int max = nums[0];
for (int i = 1; i < nums.length; i++) {
if (nums[i] > max) max = nums[i];
System.out.println("Maximum: " + max);
int sum = 0;
for (int i = 1; i < nums.length; i++) {
sum += nums[i]; }
double avg = sum / (double)nums.length;
System.out.println("Average " + avg);

First suggestion, don't shove all your code into the main method. Start breaking it down into smaller chunks and place each chunk in its own method. It should be obvious what these chunks could be.
Do you know how to work out the mode if you had a bunch of numbers written on a piece of paper? If you can figure it out manually, figuring it out in detailed step-bystep instructions, then it should be easy to translate that into code. Make an attempt at writing the code and come back with a specific question. "It doesn't work" or "I don't know how to do it" are too broad and do not get much help.
Also, when posting code, hightlight it and click the CODE button.

Similar Messages

  • Change file mode using java?

    Hi
    Can I change file mode using java method other than
    Runtime.exec()
    thx
    Jacinle

    Hi
    Thank you Roopasri. But what I want is not using Runtime.exec
    I am using Unix and I want to change some image file access mode
    so not a RandomAccess File.
    So is there anything like chmod command on Unix?
    something like maybe java.io.File.chmod("755");
    I read that's a feature requested early on 1.2
    Will it be included in 1.4?
    Jacinle

  • Setting template start mode in java

    In my stylesheet I have templates like this:
    <xsl:template match="/" mode="query">
    <!-- content -->
    </xsl:template>
    How do I pass a start mode to my XSLStylesheet in java?

    Terrence,
       Thank you for responding and confirming the issues I'm having with static addressing.  As far as the example above, I do have the standard LEDs working correctly, however, the example I'm referring to above is from the JavaME samples using the GPIO Port for the LEDS, according to the Device I/O Preconfigured List you referenced:
    GPIO Ports
    The following GPIO ports are preconfigured.
    Devicel ID
    Device Name
    Mapped
    Configuration
    8
    LEDS
    PTB22
    PTE26
    PTB21
    direction = 1 (Output only)
    initValue = 0
    GPIOPins:
    controllerNumber = 1
    pinNumber = 22
    mode = 4 (Push-pull mode)
    controllerNumber = 4
    pinNumber = 26
    mode = 4 (Push-pull mode)
    controllerNumber = 1
    pinNumber = 21
    mode = 4 (Push-pull mode)
    So is the assumption that using GPIOPort for accessing the GPIO port for Device ID 8 as listed in the Device I/O Preconfigured list not supported?

  • Oracle Enterprise Pack for Eclipse mode debug  java.lang.AssertionError

    Hi,
    I've got an issue with OEPE and weblogic 10.3.5 when i use trinidad 1.2 in DEBUG mode.
    java.lang.AssertionError
         at org.apache.myfaces.trinidadinternal.style.util.CSSUtils.getBaseSkinStyleSheetURI(CSSUtils.java:136)
         at org.apache.myfaces.trinidadinternal.skin.SkinStyleSheetParserUtils._createStyleSheetEntry(SkinStyleSheetParserUtils.java:186)
         at org.apache.myfaces.trinidadinternal.skin.SkinStyleSheetParserUtils.parseCSSSource(SkinStyleSheetParserUtils.java:120)
         at org.apache.myfaces.trinidadinternal.skin.StyleSheetEntry._createSkinStyleSheetFromCSS(StyleSheetEntry.java:282)
         at org.apache.myfaces.trinidadinternal.skin.StyleSheetEntry._createSkinStyleSheet(StyleSheetEntry.java:260)
         at org.apache.myfaces.trinidadinternal.skin.StyleSheetEntry.createEntry(StyleSheetEntry.java:85)
         at org.apache.myfaces.trinidadinternal.skin.SkinImpl._createStyleSheetDocument(SkinImpl.java:563)
         at org.apache.myfaces.trinidadinternal.skin.SkinImpl.getStyleSheetDocument(SkinImpl.java:346)
         at org.apache.myfaces.trinidadinternal.skin.SkinExtension.getStyleSheetDocument(SkinExtension.java:527)
         at org.apache.myfaces.trinidadinternal.skin.SkinStyleProvider.createStyleSheetDocument(SkinStyleProvider.java:163)
         at org.apache.myfaces.trinidadinternal.style.cache.FileSystemStyleCache._getStyleSheetDocument(FileSystemStyleCache.java:557)
    Any idea ?

    Me too, I have the same problem! Has anyone found a solution for this? I've seen references to the Trinidad guys thinking it is there problem. I wonder if there is a way to turn off Assertions in MyFaces or something?

  • Video/graphic mode in java application

    hello all,
    I have a question. How can I run my application in Video/Graphics mode.
    Egs.... just like screen savers run. I mean no frame or window, not resizable, not restorable, not canelable..nothing..just like in C/C++ where whole of the screen is black and ur application is running....like games etc.
    pls...answer it if anybody knows
    Thanks in advace.
    Sanjeev Dhiman

    hi , giving u my last single dollar..
    Although I found ans as soon as I posted but thanks for ur effort.
    Cheers !
    Sanjeev Dhiman at [email protected]

  • Is there a full text mode in Java?

    Hi everyone.
    I'd like to write a java application for running exclusively on the command line. I know how to use system.out for printing basic texts, but i'd like to have a greater control over the output. I need just to clear the terminal window in wich i'm executing the application. I need too to position the cursor anywhere in the terminal window. Is this just possible in Java (a la old DOS programming) or must i pass through the the awt classes to do something alike?.
    Thanks for your help.
    Carlos.

    hi,
    no it is not possible, to set the cursor anywhere like in pascal, basic or c. You have to pass through awt, because java was developed as a web-language and so it isn't really useful to work on the command line. In my opinion and in the opinion of most other programmers system.out is just for test, debug or error-output and in this way, you should use it.
    but there is one way to do what you want: rewrite the underlying native classes and libraries, which will be used when system.out is invoked.
    regards

  • Custom taglib support in Java Studio Creator (JSP-mode)?

    I want to use jstl-1.1 taglib in my project. - to do that I need to write:
    <jsp:root version="1.2" xmlns:c="http://java.sun.com/jsp/jstl/core" ...>but when I have done so I didn't found any support for jstl in jsp-mode of Java Studio Creator. I have to manually type all jstl's tags and their attributes.
    What I should do to switch on that support?

    All problems have solved - I only restarted IDE. :-)

  • JRE 1.7 / Java Plug-in - Long delay in retrieving the applet File(JAR) due to a request to the Domain Controller(on port 53)

    Description:
    A specific group of users/customers (using Windows7 OS with IE and FireFox web browsers) are facing problems with retrieving the applet File, after they upgraded the JRE on the system(PC) to JRE 1.7.0_25-b17 from JRE version 1.6.0_29-b11.
    With JRE 1.7.0_25-b17 it is noticed that when the Java plugin requests for the applet File; it sends a request to the Domain Controller of the user, which causes a delay of 2 to 5 minutes and sometimes hangs. The problem occurs consistently.
    The current temporary workaround for this group of users is to use JRE version 1.6.0_29-b11.
    Problem analysis:
    To investigate the problem the below steps were executed:
    1) Collected the Java console outputbelow details from the user's system. (The complete output is not posted due to lengthy content, though can be added further to this post if required.)
    (a) Works fine with JRE version 1.6.0_29-b11. Kindly refer to Java console output in the code ‘section A’ towards the end of this post.
    (b) The problem occurs with problem with JRE version 1.7.0_25-b17. Kindly refer to Java console output in the code ‘section B’ towards the end of this post. The step where the problem is observed, is indicated as(##<comment>##).
    2) The network settings in the user's browser was checked. Internet Options > Connections > LAN setting
    The configured option is 'Use automatic configuration script' and the value is http://www.userAppX.com/proxy.pac
    This configuration remains the same irrespective of the JRE version in use.
    3) The network settings in the Java Control Panel was checked.
    The used/selected option is "Use browser settings", although values for 'Use proxy server' and 'use automatic proxy configuration script' are filled-in as 'user-proxy.com' and 'http://www.userAppX.com/proxy.pac' respectively.
    This configuration remains the same irrespective of the JRE version in use.
    4) The proxy PAC file was checked and debugging was done for the request 'https://myAppletHost.com/download/...'. The FindProxyForUrl function (including the conditions defined in it, for the hostname and domain checks) returns PROXY user-proxy.com:80
    5) The user also tried the below
    a. Changed the option in the network settings in the browser to 'Proxy server' with Address 'user-proxy.com' and Port '80'
    b. Restarted the browser.
    c. Tried with Java Plug-in 1.6.0_29, JRE version 1.6.0_29-b11. There was no problem and no request to the Domain Controller of the user.
    d. Tried with Java Plug-in 10.40.2.43, JRE version 1.7.0_40-b43. The problem occurs with the delay and a request to the Domain Controller of the user is observed.
    Kindly refer to Java console output in the code ‘section C’ towards the end of this post.
    6) The user also tried setting the below property in the Java Control panel; restarted the browser, and try with JRE 1.7.0_40-b43. The problem stil persists.
    -Djava.net.preferIPv4Stack=true
    7) The Global Policy Management of the Domain Controller was verified by the user. It has GPO for proxy setting but nothing related to Java security.
    Questions:
    The problem seems be specific to a particular (user) environment setup, and the user faces the problem when using JRE 1.7.
    We would like to know if the issue is in the (user) environment setup or in JRE 1.7.
    Could you please help with information/ideas/suggestions to identify the root cause and solution for this problem?
    Section A:
    Java Plug-in 1.6.0_29
    Using JRE version 1.6.0_29-b11 Java HotSpot(TM) Client VM
    User home directory = C:\Users\userA
    basic: Plugin2ClassLoader.addURL parent called for https://myAppletHost.com/download/myApplet.jar
    network: Connecting https://myAppletHost.com/download/myApplet.jar with proxy=HTTP @ user-proxy.com/194.xxx.xx.xx:80
    network: Server https://myAppletHost.com/download/myApplet.jar requesting to set-cookie with "BCSI-CS-b1bb5056c5b0e83f=2; Path=/"
    network: Server https://myAppletHost.com/download/myApplet.jar requesting to set-cookie with "BCSI-CS-b1bb5056c5b0e83f=2; Path=/"
    security: Loading Root CA certificates from C:\Program Files (x86)\Java\jre6\lib\security\cacerts
    security: Loaded Root CA certificates from C:\Program Files (x86)\Java\jre6\lib\security\cacerts
    security: Loading SSL Root CA certificates from C:\Program Files (x86)\Java\jre6\lib\security\cacerts
    security: Loaded SSL Root CA certificates from C:\Program Files (x86)\Java\jre6\lib\security\cacerts
    security: Loading certificates from Deployment session certificate store
    security: Loaded certificates from Deployment session certificate store
    security: Loading certificates from Internet Explorer ROOT certificate store
    security: Loaded certificates from Internet Explorer ROOT certificate store
    security: Checking if certificate is in Deployment denied certificate store
    network: Connecting https://myAppletHost.com/download/myApplet.jar with cookie "JSESSIONID=0000IK4bEMoqXH10zsl88rwvoRI:175oe9tjd; BCSI-CS-b1bb5056c5b0e83f=2"
    network: Downloading resource: https://myAppletHost.com/download/myApplet.jar
                    Content-Length: 403.293
                    Content-Encoding: null
    Dump system properties ...
    https.protocols = TLSv1,SSLv3
    java.vm.info = mixed mode, sharing
    java.vm.name = Java HotSpot(TM) Client VM
    java.vm.specification.name = Java Virtual Machine Specification
    java.vm.specification.vendor = Sun Microsystems Inc.
    java.vm.specification.version = 1.0
    java.vm.vendor = Sun Microsystems Inc.
    java.vm.version = 20.4-b02
    javaplugin.nodotversion = 160_29
    javaplugin.version = 1.6.0_29
    javaplugin.vm.options =
    os.arch = x86
    os.name = Windows 7
    os.version = 6.1
    trustProxy = true
    deployment.proxy.auto.config.url = http://www.userAppX.com/proxy.pac
    deployment.proxy.bypass.local = false
    deployment.proxy.http.host = user-proxy.com
    deployment.proxy.http.port = 80
    deployment.proxy.override.hosts =
    deployment.proxy.same = false
    deployment.proxy.type = 3
    deployment.security.SSLv2Hello = false
    deployment.security.SSLv3 = true
    deployment.security.TLSv1 = true
    deployment.security.mixcode = ENABLE
    Section B:
    Java Plug-in 10.25.2.17
    Using JRE version 1.7.0_25-b17 Java HotSpot(TM) Client VM
    User home directory = C:\Users\userA
    basic: Added progress listener: sun.plugin.util.ProgressMonitorAdapter@12adac5
    basic: Plugin2ClassLoader.addURL parent called for https://myAppletHost.com/download/myApplet.jar
    network: Connecting https://myAppletHost.com/download/myApplet.jar with proxy=HTTP @ user-proxy.com/194.xxx.xx.xx:80
    network: Server https://myAppletHost.com/download/myApplet.jar requesting to set-cookie with "BCSI-CS-2d4ce94a2ae7b460=2; Path=/"
    network: Connecting http://10.x.x.xx:53/ with proxy=DIRECT
                    (##THE ABOVE REQUEST CAUSES THE DELAY OR HANGS##)
    network: Server https://myAppletHost.com/download/myApplet.jar requesting to set-cookie with "BCSI-CS-2d4ce94a2ae7b460=2; Path=/"
    security: Loading Root CA certificates from C:\Program Files (x86)\Java\jre7\lib\security\cacerts
    security: Loaded Root CA certificates from C:\Program Files (x86)\Java\jre7\lib\security\cacerts
    security: Loading SSL Root CA certificates from C:\Program Files (x86)\Java\jre7\lib\security\cacerts
    security: Loaded SSL Root CA certificates from C:\Program Files (x86)\Java\jre7\lib\security\cacerts
    security: Loading certificates from Deployment session certificate store
    security: Loaded certificates from Deployment session certificate store
    security: Loading certificates from Internet Explorer ROOT certificate store
    security: Loaded certificates from Internet Explorer ROOT certificate store
    network: Connecting https://myAppletHost.com/download/myApplet.jar with proxy=HTTP @ user-proxy.com/194.xxx.xx.xx:80
    network: Server https://myAppletHost.com/download/myApplet.jar requesting to set-cookie with "BCSI-CS-2d4ce94a2ae7b460=2; Path=/"
    network: Server https://myAppletHost.com/download/myApplet.jar requesting to set-cookie with "BCSI-CS-2d4ce94a2ae7b460=2; Path=/"
    network: Connecting https://myAppletHost.com/download/myApplet.jar with cookie "JSESSIONID=0000UQuXWY5tjxjpwcKHlfJKe_8:175oe9j45; BCSI-CS-2d4ce94a2ae7b460=2"
    network: ResponseCode for https://myAppletHost.com/download/myApplet.jar : 200
    network: Encoding for https://myAppletHost.com/download/myApplet.jar : null
    network: Server response: (length: -1, lastModified: Thu Feb xx yy:yy:yy CET 2013, downloadVersion: null, mimeType: text/plain)
    network: Downloading resource: https://myAppletHost.com/download/myApplet.jar
                    Content-Length: -1
                    Content-Encoding: null
    Section C:
    Java Plug-in 10.40.2.43
    Using JRE version 1.7.0_40-b43 Java HotSpot(TM) Client VM
    User home directory = C:\Users\userA
    basic: Plugin2ClassLoader.addURL parent called for https://myAppletHost.com/download/myApplet.jar
    network: Connecting https://myAppletHost.com/download/myApplet.jar with proxy=HTTP @ user-proxy.com/194.xxx.xx.xx:80
    network: Server https://myAppletHost.com/download/myApplet.jar requesting to set-cookie with "BCSI-CS-1d67c8b6508ca09c=2; Path=/"
    network: Connecting http://10.x.x.xx:53/ with proxy=DIRECT
                    (##THE ABOVE REQUEST CAUSES THE DELAY OR HANGS##)
    network: Checking for update at: https://javadl-esd-secure.oracle.com/update/blacklist
    network: Checking for update at: https://javadl-esd-secure.oracle.com/update/blacklisted.certs
    network: Checking for update at: https://javadl-esd-secure.oracle.com/update/baseline.version
    network: Connecting https://javadl-esd-secure.oracle.com/update/blacklist with proxy=HTTP @ user-proxy.com/194.xxx.xx.xx:80
    network: Connecting https://javadl-esd-secure.oracle.com/update/baseline.version with proxy=HTTP @ user-proxy.com/194.xxx.xx.xx:80
    network: Connecting https://javadl-esd-secure.oracle.com/update/blacklisted.certs with proxy=HTTP @ user-proxy.com/194.xxx.xx.xx:80
    security: Loading Root CA certificates from C:\Program Files (x86)\Java\jre7\lib\security\cacerts
    security: Loaded Root CA certificates from C:\Program Files (x86)\Java\jre7\lib\security\cacerts
    security: Loading SSL Root CA certificates from C:\Program Files (x86)\Java\jre7\lib\security\cacerts
    security: Loaded SSL Root CA certificates from C:\Program Files (x86)\Java\jre7\lib\security\cacerts
    Dump system properties ...
    https.protocols = TLSv1,SSLv3
    java.vm.info = mixed mode, sharing
    java.vm.name = Java HotSpot(TM) Client VM
    java.vm.specification.name = Java Virtual Machine Specification
    java.vm.specification.vendor = Oracle Corporation
    java.vm.specification.version = 1.7
    java.vm.vendor = Oracle Corporation
    java.vm.version = 24.0-b56
    javaplugin.nodotversion = 10402
    javaplugin.version = 10.40.2.43
    os.arch = x86
    os.name = Windows 7
    os.version = 6.1
    trustProxy = true
    active.deployment.proxy.auto.config.url = http://www.userAppX.com/proxy.pac
    active.deployment.proxy.bypass.local = false
    active.deployment.proxy.http.host = user-proxy.com
    active.deployment.proxy.http.port = 80
    active.deployment.proxy.same = false
    active.deployment.proxy.type = 3
    deployment.browser.path = C:\Program Files (x86)\Internet Explorer\iexplore.exe
    deployment.proxy.auto.config.url = http://www.userAppX.com/proxy.pac
    deployment.proxy.bypass.local = false
    deployment.proxy.http.host = user-proxy.com
    deployment.proxy.http.port = 80
    deployment.proxy.override.hosts =
    deployment.proxy.same = false
    deployment.proxy.type = 3                                                                                                                                                                                                                                                            
    deployment.security.SSLv2Hello = false
    deployment.security.SSLv3 = true
    deployment.security.TLSv1 = true
    deployment.security.TLSv1.1 = false
    deployment.security.TLSv1.2 = false
    deployment.security.authenticator = true
    deployment.security.disable = false
    deployment.security.level = HIGH
    deployment.security.mixcode = ENABLE
    PS:
    Since the JRE 1.7.0_25-b17 update, it is noticed that when the Java plugin requests for the applet File; it sends a request to the Domain Controller of the user, which causes a delay of 2 to 5 minutes and sometimes hangs.
    The problem occurs consistently, and also with JRE 1.7.0_45-b18.
    Java Plug-in 10.45.2.18
    Using JRE version 1.7.0_45-b18 Java HotSpot(TM) Client VM
    User home directory = C:\Users\userA
    c:   clear console window
    f:   finalize objects on finalization queue
    g:   garbage collect
    h:   display this help message
    l:   dump classloader list
    m:   print memory usage
    o:   trigger logging
    q:   hide console
    r:   reload policy configuration
    s:   dump system and deployment properties
    t:   dump thread list
    v:   dump thread stack
    x:   clear classloader cache
    0-5: set trace level to <n>
    cache: Initialize resource manager: com.sun.deploy.cache.ResourceProviderImpl@134a33d
    basic: Added progress listener: sun.plugin.util.ProgressMonitorAdapter@1971f66
    basic: Plugin2ClassLoader.addURL parent called for https://myAppletHost.com/download/myApplet.jar
    network: Connecting https://myAppletHost.com/download/myApplet.jar with proxy=HTTP @ user-proxy.com/194.xxx.xx.xx:80
    network: Server https://myAppletHost.com/download/myApplet.jar requesting to set-cookie with "BCSI-CS-f797d4d262467220=2; Path=/"
    network: Connecting http://10.x.x.xx:53/ with proxy=DIRECT
    network: Connecting http://10.x.x.xx:53/ with proxy=DIRECT
                    (##THE ABOVE REQUEST CAUSES THE DELAY AND SOMETIMES HANGS##)

    My organization is experiencing very similar problems.  We have resolved it through several steps.
    We upgraded the client to Java 8 and we saw in the console that the hanging connection with the Domain Controller no longer occurs.  This may be all that is necessary for your environment as well. 

  • Certain Java methods only available on Tomcat, when logged in as a user

    Certain java methods are only available in a Tomcat webapp, when the Tomcat server is started in a terminal window, while the user is directly logged into the system
    When one of those methods are called from a command line app, for a split second an app pops up in the dock, even though no UI-method is called directly.
    For example include a method like javax.imageio.ImageIO.createImageInputStream into a servlet inside a tomcat webapp and start tomcat through a ssh-connection.
    The servlet will crash with following exception:
    java.lang.NoClassDefFoundError: Could not initialize class sun.java2d.Disposer
    javax.imageio.stream.FileImageInputStream.<init>(FileImageInputStream.java:82)
    javax.imageio.stream.FileImageInputStream.<init>(FileImageInputStream.java:57)
    com.sun.imageio.spi.FileImageInputStreamSpi.createInputStreamInstance(FileImage InputStreamSpi.java:37)
    javax.imageio.ImageIO.createImageInputStream(ImageIO.java:331)
    com.sage.utility.ImageUtil.getFormatName(ImageUtil.java:76)
    When Tomcat is started from a normal terminal window, while being logged into Mac OS, the very same method works without a problem.
    It looks like the problem only exists on Mac OS X... on Linux it runs without a problem under the same configurations
    I just noticed, that when the user logs out, the server will remain active, but another exception is raised:
    Can't connect to window server - not enough permissions.
    It looks like the reason for this is a crooked implementation of the java api by apple.
    Since it doesn't really work for us, doing all out administration though screen sharing, I would love to hear, that there is a way around this.

    After I filed a bug-report an Apple engineer contacted me, and asked me to try running java in headless mode: http://java.sun.com/developer/technicalArticles/J2SE/Desktop/headless/
    That solved the problem!

  • Java Server crash in Debian Linux

    Debian Linux
    Pentium 4 2.8
    1024 Ram
    java version "1.5.0_09"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b03)
    Java HotSpot(TM) Client VM (build 1.5.0_09-b03, mixed mode)
    The Java Server crash after from Begin or after 1-2 hours
    im user to java server no develope and no have gnosis
    please help me. what is problem? :(
    any solution to fix?
    try to reinstall operator system but same problem
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # SIGSEGV (0xb) at pc=0xb777edb2, pid=26766, tid=2384333744
    # Java VM: Java HotSpot(TM) Client VM (1.5.0_09-b03 mixed mode)
    # Problematic frame:
    # V [libjvm.so+0xa2db2]
    # An error report file with more information is saved as hs_err_pid26766.log
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    hs log file
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # SIGILL (0x4) at pc=0xb770650a, pid=27377, tid=2384006064
    # Java VM: Java HotSpot(TM) Client VM (1.5.0_09-b03 mixed mode)
    # Problematic frame:
    # V [libjvm.so+0x7750a]
    --------------- T H R E A D ---------------
    Current thread (0x080c7fe0): JavaThread "CompilerThread0" daemon [_thread_in_native, id=27382]
    siginfo:si_signo=4, si_errno=0, si_code=2, si_addr=0xb770650a
    Registers:
    EAX=0xb7a1bac8, EBX=0xb7a16aec, ECX=0x080ce380, EDX=0x00000028
    ESP=0x8e18fa50, EBP=0x8e18fb08, ESI=0x08137530, EDI=0x00000027
    EIP=0xb770650a, CR2=0x00000000, EFLAGS=0x00010206
    Top of Stack: (sp=0x8e18fa50)
    0x8e18fa50: 080e165c 080e152c 8e18fa98 08137250
    0x8e18fa60: 8e18fbe0 080e1530 080ce5a0 08136f90
    0x8e18fa70: 08137430 00007ff4 8e18fa98 08137210
    0x8e18fa80: 08137210 0000004b 8e18fae8 b794ab6a
    0x8e18fa90: b7a16aec 08137488 8e18fac8 b77563fd
    0x8e18faa0: 00000004 8e18fab0 00000000 b76ba7ba
    0x8e18fab0: b7a16aec 080ce6b4 8e18fae8 b7a16aec
    0x8e18fac0: 08137488 8e18fbd0 8e18fb08 b7756836
    Instructions: (pc=0xb770650a)
    0xb77064fa: 04 8b 10 42 89 10 8b 83 24 0a 00 00 10 01 08 ff
    0xb770650a: ff ff ff c7 ff ff 00 00 00 00 c7 46 00 83 00 00
    Stack: [0x8e111000,0x8e191000), sp=0x8e18fa50, free space=506k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    V [libjvm.so+0x7750a]
    V [libjvm.so+0x79c09]
    V [libjvm.so+0x79f4c]
    V [libjvm.so+0x83f49]
    V [libjvm.so+0x84944]
    V [libjvm.so+0x852c2]
    V [libjvm.so+0x6be52]
    V [libjvm.so+0x6c559]
    V [libjvm.so+0x6cc01]
    V [libjvm.so+0x6d0a7]
    V [libjvm.so+0x6dc0b]
    V [libjvm.so+0x109a6e]
    V [libjvm.so+0x1093f3]
    V [libjvm.so+0x2f9da6]
    V [libjvm.so+0x2f43d3]
    V [libjvm.so+0x28bbe8]
    C [libpthread.so.0+0x5ced]
    Current CompileTask:
    HotSpot Client Compiler: 72 b java.util.AbstractCollection.toArray([Ljava/lang/Object;)[Ljava/lang/Object; (75 bytes)
    ---------------  P R O C E S S  ---------------
    Java Threads: ( => current thread )
      0x080c9540 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=27383]
    =>0x080c7fe0 JavaThread "CompilerThread0" daemon [_thread_in_native, id=27382]
    0x080c7100 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=27381]
    0x080bcbc8 JavaThread "Finalizer" daemon [_thread_blocked, id=27380]
    0x080bbf48 JavaThread "Reference Handler" daemon [_thread_blocked, id=27379]
    0x0805c9c8 JavaThread "main" [_thread_in_vm, id=27377]
    Other Threads:
    0x080b9298 VMThread [id=27378]
    0x080ca9e0 WatcherThread [id=27384]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation total 576K, used 240K [0x8e5c0000, 0x8e660000, 0x90d20000)
    eden space 512K, 44% used [0x8e5c0000, 0x8e5f8970, 0x8e640000)
    from space 64K, 21% used [0x8e650000, 0x8e6537a0, 0x8e660000)
    to space 64K, 0% used [0x8e640000, 0x8e640000, 0x8e650000)
    tenured generation total 1408K, used 431K [0x90d20000, 0x90e80000, 0xae5c0000)
    the space 1408K, 30% used [0x90d20000, 0x90d8bd70, 0x90d8be00, 0x90e80000)
    compacting perm gen total 8192K, used 3677K [0xae5c0000, 0xaedc0000, 0xb25c0000)
    the space 8192K, 44% used [0xae5c0000, 0xae957450, 0xae957600, 0xaedc0000)
    No shared spaces configured.
    Dynamic libraries:
    08048000-08057000 r-xp 00000000 03:02 6521931 /usr/lib/j2se1.4-sun/jre/bin/java
    08057000-08059000 rwxp 0000e000 03:02 6521931 /usr/lib/j2se1.4-sun/jre/bin/java
    08059000-08253000 rwxp 08059000 00:00 0 [heap]
    8d9b7000-8d9c8000 r-xp 00000000 03:02 6537244 /usr/lib/j2se1.4-sun/jre/lib/i386/libnet.so
    8d9c8000-8d9c9000 rwxp 00011000 03:02 6537244 /usr/lib/j2se1.4-sun/jre/lib/i386/libnet.so
    8d9c9000-8dc22000 r-xs 00000000 03:02 7766468 /root/lineage2server160/gameserver/l2j-gameserver.jar
    8dc22000-8dc89000 r-xs 00000000 03:02 7766471 /root/lineage2server160/gameserver/mysql-connector-java-3.1.10-bin.jar
    8dc89000-8dd01000 r-xs 00000000 03:02 7766462 /root/lineage2server160/gameserver/c3p0-0.9.0.4.jar
    8dd01000-8de28000 r-xs 00000000 03:02 7766467 /root/lineage2server160/gameserver/jython.jar
    8de28000-8de6d000 r-xs 00000000 03:02 7766461 /root/lineage2server160/gameserver/bsh-2.0.jar
    8de6d000-8deb4000 r-xs 00000000 03:02 7766466 /root/lineage2server160/gameserver/javolution.jar
    8deb4000-8dedf000 r-xs 00000000 03:02 7766460 /root/lineage2server160/gameserver/bsf.jar
    8dedf000-8deee000 r-xs 00000000 03:02 7766465 /root/lineage2server160/gameserver/ibmaio.jar
    8deee000-8df19000 r-xs 00000000 03:02 6522080 /usr/lib/j2se1.4-sun/jre/lib/ext/sunpkcs11.jar
    8df19000-8df40000 r-xs 00000000 03:02 6521992 /usr/lib/j2se1.4-sun/jre/lib/ext/sunjce_provider.jar
    8df40000-8e004000 r-xs 00000000 03:02 6521991 /usr/lib/j2se1.4-sun/jre/lib/ext/localedata.jar
    8e004000-8e011000 r-xs 00000000 03:02 6521990 /usr/lib/j2se1.4-sun/jre/lib/ext/ldapsec.jar
    8e011000-8e012000 ---p 8e011000 00:00 0
    8e012000-8e091000 rwxp 8e012000 00:00 0
    8e091000-8e094000 ---p 8e091000 00:00 0
    8e094000-8e111000 rwxp 8e094000 00:00 0
    8e111000-8e114000 ---p 8e111000 00:00 0
    8e114000-8e191000 rwxp 8e114000 00:00 0
    8e191000-8e194000 ---p 8e191000 00:00 0
    8e194000-8e211000 rwxp 8e194000 00:00 0
    8e211000-8e214000 ---p 8e211000 00:00 0
    8e214000-8e291000 rwxp 8e214000 00:00 0
    8e291000-8e294000 ---p 8e291000 00:00 0
    8e294000-8e311000 rwxp 8e294000 00:00 0
    8e311000-8e312000 ---p 8e311000 00:00 0
    8e312000-8e396000 rwxp 8e312000 00:00 0
    8e396000-8e3b2000 rwxp 8e396000 00:00 0
    8e3b2000-8e3b3000 rwxp 8e3b2000 00:00 0
    8e3b3000-8e49f000 rwxp 8e3b3000 00:00 0
    8e49f000-8e4a0000 rwxp 8e49f000 00:00 0
    8e4a0000-8e4b2000 rwxp 8e4a0000 00:00 0
    8e4b2000-8e4b4000 rwxp 8e4b2000 00:00 0
    8e4b4000-8e59f000 rwxp 8e4b4000 00:00 0
    8e59f000-8e5a3000 rwxp 8e59f000 00:00 0
    8e5a3000-8e5bf000 rwxp 8e5a3000 00:00 0
    8e5bf000-8e660000 rwxp 8e5bf000 00:00 0
    8e660000-90d20000 rwxp 8e660000 00:00 0
    90d20000-90e80000 rwxp 90d20000 00:00 0
    90e80000-ae5c0000 rwxp 90e80000 00:00 0
    ae5c0000-aedc0000 rwxp ae5c0000 00:00 0
    aedc0000-b25c0000 rwxp aedc0000 00:00 0
    b25c0000-b25c6000 r-xp 00000000 03:02 6537245 /usr/lib/j2se1.4-sun/jre/lib/i386/libnio.so
    b25c6000-b25c7000 rwxp 00005000 03:02 6537245 /usr/lib/j2se1.4-sun/jre/lib/i386/libnio.so
    b25c7000-b25ca000 rwxp b25c7000 00:00 0
    b25ca000-b2647000 rwxp b25ca000 00:00 0
    b2647000-b26ef000 rwxp b2647000 00:00 0
    b26ef000-b4647000 rwxp b26ef000 00:00 0
    b4647000-b4eb7000 r-xs 00000000 03:02 6521980 /usr/lib/j2se1.4-sun/jre/lib/charsets.jar
    b4eb7000-b4ecc000 r-xs 00000000 03:02 6522045 /usr/lib/j2se1.4-sun/jre/lib/jce.jar
    b4ecc000-b4f51000 r-xs 00000000 03:02 6522046 /usr/lib/j2se1.4-sun/jre/lib/jsse.jar
    b4f51000-b4f67000 r-xs 00000000 03:02 6522054 /usr/lib/j2se1.4-sun/jre/lib/sunrsasign.jar
    b4f67000-b4fd0000 rwxp b4f67000 00:00 0
    b4fd0000-b75e6000 r-xs 00000000 03:02 6522053 /usr/lib/j2se1.4-sun/jre/lib/rt.jar
    b75e6000-b75f5000 r-xp 00000000 03:02 6537248 /usr/lib/j2se1.4-sun/jre/lib/i386/libzip.so
    b75f5000-b75f7000 rwxp 0000e000 03:02 6537248 /usr/lib/j2se1.4-sun/jre/lib/i386/libzip.so
    b75f7000-b7618000 r-xp 00000000 03:02 6537233 /usr/lib/j2se1.4-sun/jre/lib/i386/libjava.so
    b7618000-b761a000 rwxp 00020000 03:02 6537233 /usr/lib/j2se1.4-sun/jre/lib/i386/libjava.so
    b761a000-b7625000 r-xp 00000000 03:02 6537247 /usr/lib/j2se1.4-sun/jre/lib/i386/libverify.so
    b7625000-b7626000 rwxp 0000b000 03:02 6537247 /usr/lib/j2se1.4-sun/jre/lib/i386/libverify.so
    b7626000-b7630000 r-xp 00000000 03:02 6980699 /lib/tls/libnss_files-2.3.6.so
    b7630000-b7632000 rwxp 00009000 03:02 6980699 /lib/tls/libnss_files-2.3.6.so
    b7632000-b763a000 r-xp 00000000 03:02 6980703 /lib/tls/libnss_nis-2.3.6.so
    b763a000-b763c000 rwxp 00008000 03:02 6980703 /lib/tls/libnss_nis-2.3.6.so
    b763c000-b7643000 r-xp 00000000 03:02 6980695 /lib/tls/libnss_compat-2.3.6.so
    b7643000-b7645000 rwxp 00006000 03:02 6980695 /lib/tls/libnss_compat-2.3.6.so
    b7645000-b7657000 r-xp 00000000 03:02 6980693 /lib/tls/libnsl-2.3.6.so
    b7657000-b7659000 rwxp 00012000 03:02 6980693 /lib/tls/libnsl-2.3.6.so
    b7659000-b765b000 rwxp b7659000 00:00 0
    b7661000-b7669000 rwxs 00000000 03:02 8552508 /tmp/hsperfdata_root/27377
    b7669000-b768d000 r-xp 00000000 03:02 6980690 /lib/tls/libm-2.3.6.so
    b768d000-b768f000 rwxp 00023000 03:02 6980690 /lib/tls/libm-2.3.6.so
    b768f000-b79fb000 r-xp 00000000 03:02 6537222 /usr/lib/j2se1.4-sun/jre/lib/i386/client/libjvm.so
    b79fb000-b7a1a000 rwxp 0036b000 03:02 6537222 /usr/lib/j2se1.4-sun/jre/lib/i386/client/libjvm.so
    b7a1a000-b7e31000 rwxp b7a1a000 00:00 0
    b7e31000-b7f5f000 r-xp 00000000 03:02 6980682 /lib/tls/libc-2.3.6.so
    b7f5f000-b7f64000 r-xp 0012e000 03:02 6980682 /lib/tls/libc-2.3.6.so
    b7f64000-b7f67000 rwxp 00133000 03:02 6980682 /lib/tls/libc-2.3.6.so
    b7f67000-b7f69000 rwxp b7f67000 00:00 0
    b7f69000-b7f6b000 r-xp 00000000 03:02 6980688 /lib/tls/libdl-2.3.6.so
    b7f6b000-b7f6d000 rwxp 00001000 03:02 6980688 /lib/tls/libdl-2.3.6.so
    b7f6d000-b7f6e000 rwxp b7f6d000 00:00 0
    b7f6e000-b7f7c000 r-xp 00000000 03:02 6980708 /lib/tls/libpthread-2.3.6.so
    b7f7c000-b7f7e000 rwxp 0000d000 03:02 6980708 /lib/tls/libpthread-2.3.6.so
    b7f7e000-b7f80000 rwxp b7f7e000 00:00 0
    b7f83000-b7f85000 r-xs 00000000 03:02 6521989 /usr/lib/j2se1.4-sun/jre/lib/ext/dnsns.jar
    b7f85000-b7f8b000 r-xp 00000000 03:02 6537250 /usr/lib/j2se1.4-sun/jre/lib/i386/native_threads/libhpi.so
    b7f8b000-b7f8c000 rwxp 00006000 03:02 6537250 /usr/lib/j2se1.4-sun/jre/lib/i386/native_threads/libhpi.so
    b7f8c000-b7f8d000 rwxp b7f8c000 00:00 0
    b7f8d000-b7f8e000 r-xp b7f8d000 00:00 0
    b7f8e000-b7f90000 rwxp b7f8e000 00:00 0
    b7f90000-b7fa5000 r-xp 00000000 03:02 6964464 /lib/ld-2.3.6.so
    b7fa5000-b7fa7000 rwxp 00015000 03:02 6964464 /lib/ld-2.3.6.so
    bf6c3000-bf6c6000 ---p bf6c3000 00:00 0
    bf6c6000-bf8c3000 rwxp bf6c6000 00:00 0 [stack]
    ffffe000-fffff000 ---p 00000000 00:00 0 [vdso]
    VM Arguments:
    jvm_args: -Xmx512m
    java_command: net.sf.l2j.gameserver.GameServer
    Launcher Type: SUN_STANDARD
    Environment Variables:
    PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin:/usr/games
    LD_LIBRARY_PATH=/usr/lib/j2se1.4-sun/jre/lib/i386/client:/usr/lib/j2se1.4-sun/jre/lib/i386:/usr/lib/j2se1.4-sun/jre/../lib/i386
    SHELL=/bin/bash
    Signal Handlers:
    SIGSEGV: [libjvm.so+0x325bd0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGBUS: [libjvm.so+0x325bd0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGFPE: [libjvm.so+0x28a010], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGPIPE: [libjvm.so+0x28a010], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGILL: [libjvm.so+0x28a010], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
    SIGUSR2: [libjvm.so+0x28c460], sa_mask[0]=0x00000000, sa_flags=0x10000004
    SIGHUP: [libjvm.so+0x28be90], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGINT: [libjvm.so+0x28be90], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGQUIT: [libjvm.so+0x28be90], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGTERM: [libjvm.so+0x28be90], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    --------------- S Y S T E M ---------------
    OS:testing/unstable
    uname:Linux 2.6.17 #4 SMP PREEMPT Wed May 10 13:53:45 CEST 2006 i686
    libc:glibc 2.3.6 NPTL 2.3.6
    rlimit: STACK 8192k, CORE 0k, NPROC infinity, NOFILE 1024, AS infinity
    load average:0.00 0.11 0.08
    CPU:total 1 (cores per cpu 1, threads per core 1) family 15 model 2 stepping 9, cmov, cx8, fxsr, mmx, sse, sse2
    Memory: 4k page, physical 1003220k(219224k free), swap 2096440k(2096360k free)
    vm_info: Java HotSpot(TM) Client VM (1.5.0_09-b03) for linux-x86, built on Oct 12 2006 10:54:08 by java_re with gcc 3.2.1-7a (J2SE release)
    Message was edited by:
    PantelisKap

    # An unexpected error has been detected by HotSpot Virtual Machine:
    # SIGSEGV (0xb) at pc=0xb279fb2c, pid=16446, tid=3084670656
    # Java VM: Java HotSpot(TM) Client VM (1.5.0_09-b03 mixed mode, sharing)
    # Problematic frame:
    # J net.sf.l2j.gameserver.skills.DocumentSkill.parseSkill(Lorg/w3c/dom/Node;)V
    --------------- T H R E A D ---------------
    Current thread (0x0805c9c8): JavaThread "main" [_thread_in_Java, id=16446]
    siginfo:si_signo=11, si_errno=0, si_code=1, si_addr=0x004f964e
    Registers:
    EAX=0x6cae9ef8, EBX=0x00000000, ECX=0xfffffffc, EDX=0x8cdbc580
    ESP=0xbf871400, EBP=0xbf871498, ESI=0x0036574e, EDI=0x00000000
    EIP=0xb279fb2c, CR2=0x004f964e, EFLAGS=0x00010207
    Top of Stack: (sp=0xbf871400)
    0xbf871400: 00000000 8cdbc568 6cae9cf8 ffffffff
    0xbf871410: 708cb1d8 b76df649 8ca83a58 00000002
    0xbf871420: 00000000 00000023 bf871478 b26b3084
    0xbf871430: 00000023 b278513f 6cae61b0 708cfb00
    0xbf871440: 708ca048 bf871458 6cae9da8 b27936fa
    0xbf871450: 00000073 00000023 00000023 00000d41
    0xbf871460: ffffffff 8cdbc568 6cae9cf8 ffffffff
    0xbf871470: 00000000 708cb1d8 bf871498 00000001
    Instructions: (pc=0xb279fb2c)
    0xb279fb1c: 4f 0f 85 f1 ff ff ff 8b 75 b0 89 46 10 c1 ee 09
    0xb279fb2c: c6 86 00 3f 0e b2 00 8b 75 0c 8b 76 10 89 75 b0
    Stack: [0xbf675000,0xbf875000), sp=0xbf871400, free space=2033k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    J net.sf.l2j.gameserver.skills.DocumentSkill.parseSkill(Lorg/w3c/dom/Node;)V
    J net.sf.l2j.gameserver.skills.DocumentSkill.parseDocument(Lorg/w3c/dom/Document;)V
    j net.sf.l2j.gameserver.skills.DocumentBase.parse()Lorg/w3c/dom/Document;+66
    j net.sf.l2j.gameserver.skills.SkillsEngine.loadSkills(Ljava/io/File;)Ljava/util/List;+44
    j net.sf.l2j.gameserver.skills.SkillsEngine.loadAllSkills(Ljava/util/Map;)V+35
    j net.sf.l2j.gameserver.SkillTable.<init>()V+27
    j net.sf.l2j.gameserver.SkillTable.getInstance()Lnet/sf/l2j/gameserver/SkillTable;+10
    j net.sf.l2j.gameserver.skills.DocumentBase.attachSkill(Lorg/w3c/dom/Node;Ljava/lang/Object;Lnet/sf/l2j/gameserver/skills/Condition;)V+86
    J net.sf.l2j.gameserver.skills.DocumentBase.parseTemplate(Lorg/w3c/dom/Node;Ljava/lang/Object;)V
    J net.sf.l2j.gameserver.skills.DocumentItem.parseItem(Lorg/w3c/dom/Node;)V
    J net.sf.l2j.gameserver.skills.DocumentItem.parseDocument(Lorg/w3c/dom/Document;)V
    j net.sf.l2j.gameserver.skills.DocumentBase.parse()Lorg/w3c/dom/Document;+66
    j net.sf.l2j.gameserver.skills.SkillsEngine.loadData(Ljava/util/Map;Ljava/util/List;)Ljava/util/List;+52
    j net.sf.l2j.gameserver.skills.SkillsEngine.loadWeapons(Ljava/util/Map;)Ljava/util/List;+14
    J net.sf.l2j.gameserver.ItemTable.<init>()V
    v ~OSRAdapter
    j net.sf.l2j.gameserver.ItemTable.getInstance()Lnet/sf/l2j/gameserver/ItemTable;+10
    j net.sf.l2j.gameserver.GameServer.<init>()V+213
    j net.sf.l2j.gameserver.GameServer.main([Ljava/lang/String;)V+70
    v ~StubRoutines::call_stub
    V [libjvm.so+0x17a75c]
    V [libjvm.so+0x28afd8]
    V [libjvm.so+0x17a58f]
    V [libjvm.so+0x1a4e32]
    V [libjvm.so+0x196042]
    C [java+0x1873]
    C [libc.so.6+0x14ea8] __libc_start_main+0xc8
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x083d9568 JavaThread "GerenalSTPool-3" [_thread_blocked, id=16463]
    0x083d99b0 JavaThread "GerenalSTPool-2" [_thread_blocked, id=16462]
    0x083a6738 JavaThread "GameTimeController" daemon [_thread_blocked, id=16461]
    0x082574d0 JavaThread "GerenalSTPool-1" [_thread_blocked, id=16460]
    0x08235a18 JavaThread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2" daemon [_thread_blocked, id=16458]
    0x0822c690 JavaThread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1" daemon [_thread_blocked, id=16457]
    0x0822bd18 JavaThread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0" daemon [_thread_blocked, id=16456]
    0x0822b570 JavaThread "Timer-0" daemon [_thread_blocked, id=16454]
    0x080a53f0 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=16452]
    0x080a3e90 JavaThread "CompilerThread0" daemon [_thread_blocked, id=16451]
    0x080a2db0 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=16450]
    0x0809cb30 JavaThread "Finalizer" daemon [_thread_blocked, id=16449]
    0x0809be40 JavaThread "Reference Handler" daemon [_thread_blocked, id=16448]
    =>0x0805c9c8 JavaThread "main" [_thread_in_Java, id=16446]
    Other Threads:
    0x080992e0 VMThread [id=16447]
    0x080a6890 WatcherThread [id=16453]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation total 3072K, used 840K [0x6ca20000, 0x6cd70000, 0x6f180000)
    eden space 2752K, 30% used [0x6ca20000, 0x6caf23b0, 0x6ccd0000)
    from space 320K, 0% used [0x6cd20000, 0x6cd20000, 0x6cd70000)
    to space 320K, 0% used [0x6ccd0000, 0x6ccd0000, 0x6cd20000)
    tenured generation total 40172K, used 31252K [0x6f180000, 0x718bb000, 0x8ca20000)
    the space 40172K, 77% used [0x6f180000, 0x710051d8, 0x71005200, 0x718bb000)
    compacting perm gen total 8192K, used 4319K [0x8ca20000, 0x8d220000, 0x90a20000)
    the space 8192K, 52% used [0x8ca20000, 0x8ce57d68, 0x8ce57e00, 0x8d220000)
    ro space 8192K, 68% used [0x90a20000, 0x90f9ed48, 0x90f9ee00, 0x91220000)
    rw space 12288K, 48% used [0x91220000, 0x917e9e68, 0x917ea000, 0x91e20000)
    Dynamic libraries:
    08048000-08057000 r-xp 00000000 03:02 6996556 /usr/lib/j2sdk1.5-sun/bin/java
    08057000-08059000 rwxp 0000e000 03:02 6996556 /usr/lib/j2sdk1.5-sun/bin/java
    08059000-084e8000 rwxp 08059000 00:00 0 [heap]
    6ca20000-6cd70000 rwxp 6ca20000 00:00 0
    6cd70000-6f180000 rwxp 6cd70000 00:00 0
    6f180000-718bb000 rwxp 6f180000 00:00 0
    718bb000-8ca20000 rwxp 718bb000 00:00 0
    8ca20000-8d220000 rwxp 8ca20000 00:00 0
    8d220000-90a20000 rwxp 8d220000 00:00 0
    90a20000-90f9f000 r-xs 00001000 03:02 6980776 /usr/lib/j2sdk1.5-sun/jre/lib/i386/client/classes.jsa
    90f9f000-91220000 rwxp 90f9f000 00:00 0
    91220000-917ea000 rwxp 00580000 03:02 6980776 /usr/lib/j2sdk1.5-sun/jre/lib/i386/client/classes.jsa
    917ea000-91e20000 rwxp 917ea000 00:00 0
    91e20000-91ef0000 rwxp 00b4a000 03:02 6980776 /usr/lib/j2sdk1.5-sun/jre/lib/i386/client/classes.jsa
    91ef0000-92220000 rwxp 91ef0000 00:00 0
    92220000-92224000 r-xs 00c1a000 03:02 6980776 /usr/lib/j2sdk1.5-sun/jre/lib/i386/client/classes.jsa
    92224000-92620000 rwxp 92224000 00:00 0
    b1560000-b1563000 ---p b1560000 00:00 0
    b1563000-b15e0000 rwxp b1563000 00:00 0
    b15e0000-b15e3000 ---p b15e0000 00:00 0
    b15e3000-b1660000 rwxp b15e3000 00:00 0
    b1660000-b1663000 ---p b1660000 00:00 0
    b1663000-b16e0000 rwxp b1663000 00:00 0
    b16e0000-b16e3000 ---p b16e0000 00:00 0
    b16e3000-b1760000 rwxp b16e3000 00:00 0
    b1760000-b1763000 ---p b1760000 00:00 0
    b1763000-b17e0000 rwxp b1763000 00:00 0
    b17e0000-b17e3000 ---p b17e0000 00:00 0
    b17e3000-b1860000 rwxp b17e3000 00:00 0
    b1860000-b1863000 ---p b1860000 00:00 0
    b1863000-b18e0000 rwxp b1863000 00:00 0
    b18e0000-b18e3000 ---p b18e0000 00:00 0
    b18e3000-b1960000 rwxp b18e3000 00:00 0
    b1960000-b1966000 r-xp 00000000 03:02 6980787 /usr/lib/j2sdk1.5-sun/jre/lib/i386/libnio.so
    b1966000-b1967000 rwxp 00005000 03:02 6980787 /usr/lib/j2sdk1.5-sun/jre/lib/i386/libnio.so
    b1967000-b1978000 r-xp 00000000 03:02 6980786 /usr/lib/j2sdk1.5-sun/jre/lib/i386/libnet.so
    b1978000-b1979000 rwxp 00011000 03:02 6980786 /usr/lib/j2sdk1.5-sun/jre/lib/i386/libnet.so
    b1979000-b1bd2000 r-xs 00000000 03:02 7766468 /root/lineage2server160/gameserver/l2j-gameserver.jar
    b1bd2000-b1c39000 r-xs 00000000 03:02 7766471 /root/lineage2server160/gameserver/mysql-connector-java-3.1.10-bin.jar
    b1c39000-b1cb1000 r-xs 00000000 03:02 7766462 /root/lineage2server160/gameserver/c3p0-0.9.0.4.jar
    b1cb1000-b1dd8000 r-xs 00000000 03:02 7766467 /root/lineage2server160/gameserver/jython.jar
    b1dd8000-b1e1d000 r-xs 00000000 03:02 7766461 /root/lineage2server160/gameserver/bsh-2.0.jar
    b1e1d000-b1e64000 r-xs 00000000 03:02 7766466 /root/lineage2server160/gameserver/javolution.jar
    b1e64000-b1e8f000 r-xs 00000000 03:02 7766460 /root/lineage2server160/gameserver/bsf.jar
    b1e8f000-b1e9e000 r-xs 00000000 03:02 7766465 /root/lineage2server160/gameserver/ibmaio.jar
    b1e9e000-b1f62000 r-xs 00000000 03:02 6995979 /usr/lib/j2sdk1.5-sun/jre/lib/ext/localedata.jar
    b1f62000-b1f8d000 r-xs 00000000 03:02 6995977 /usr/lib/j2sdk1.5-sun/jre/lib/ext/sunpkcs11.jar
    b1f8d000-b1fb4000 r-xs 00000000 03:02 6995976 /usr/lib/j2sdk1.5-sun/jre/lib/ext/sunjce_provider.jar
    b1fb4000-b1fb5000 ---p b1fb4000 00:00 0
    b1fb5000-b2034000 rwxp b1fb5000 00:00 0
    b2034000-b2037000 ---p b2034000 00:00 0
    b2037000-b20b4000 rwxp b2037000 00:00 0
    b20b4000-b20b7000 ---p b20b4000 00:00 0
    b20b7000-b2134000 rwxp b20b7000 00:00 0
    b2134000-b2137000 ---p b2134000 00:00 0
    b2137000-b21b4000 rwxp b2137000 00:00 0
    b21b4000-b21b7000 ---p b21b4000 00:00 0
    b21b7000-b2234000 rwxp b21b7000 00:00 0
    b2234000-b2237000 ---p b2234000 00:00 0
    b2237000-b22b4000 rwxp b2237000 00:00 0
    b22b4000-b22b5000 ---p b22b4000 00:00 0
    b22b5000-b2340000 rwxp b22b5000 00:00 0
    b2340000-b235c000 rwxp b2340000 00:00 0
    b235c000-b2370000 rwxp b235c000 00:00 0
    b2370000-b2449000 rwxp b2370000 00:00 0
    b2449000-b244b000 rwxp b2449000 00:00 0
    b244b000-b245c000 rwxp b244b000 00:00 0
    b245c000-b2471000 rwxp b245c000 00:00 0
    b2471000-b2549000 rwxp b2471000 00:00 0
    b2549000-b254d000 rwxp b2549000 00:00 0
    b254d000-b2569000 rwxp b254d000 00:00 0
    b2569000-b257c000 rwxp b2569000 00:00 0
    b257c000-b25f4000 rwxp b257c000 00:00 0
    b25f4000-b27ec000 rwxp b25f4000 00:00 0
    b27ec000-b45f4000 rwxp b27ec000 00:00 0
    b45f4000-b4e64000 r-xs 00000000 03:02 6980848 /usr/lib/j2sdk1.5-sun/jre/lib/charsets.jar
    b4e64000-b4e79000 r-xs 00000000 03:02 6980813 /usr/lib/j2sdk1.5-sun/jre/lib/jce.jar
    b4e79000-b4efe000 r-xs 00000000 03:02 6980846 /usr/lib/j2sdk1.5-sun/jre/lib/jsse.jar
    b4efe000-b4f67000 rwxp b4efe000 00:00 0
    b4f67000-b757d000 r-xs 00000000 03:02 6980850 /usr/lib/j2sdk1.5-sun/jre/lib/rt.jar
    b757d000-b758c000 r-xp 00000000 03:02 6980783 /usr/lib/j2sdk1.5-sun/jre/lib/i386/libzip.so
    b758c000-b758e000 rwxp 0000e000 03:02 6980783 /usr/lib/j2sdk1.5-sun/jre/lib/i386/libzip.so
    b758e000-b75af000 r-xp 00000000 03:02 6980781 /usr/lib/j2sdk1.5-sun/jre/lib/i386/libjava.so
    b75af000-b75b1000 rwxp 00020000 03:02 6980781 /usr/lib/j2sdk1.5-sun/jre/lib/i386/libjava.so
    b75b1000-b75bc000 r-xp 00000000 03:02 6980780 /usr/lib/j2sdk1.5-sun/jre/lib/i386/libverify.so
    b75bc000-b75bd000 rwxp 0000b000 03:02 6980780 /usr/lib/j2sdk1.5-sun/jre/lib/i386/libverify.so
    b75bd000-b75c6000 r-xp 00000000 03:02 6980876 /lib/tls/libnss_files-2.3.6.so
    b75c6000-b75c8000 rwxp 00008000 03:02 6980876 /lib/tls/libnss_files-2.3.6.so
    b75c8000-b75d0000 r-xp 00000000 03:02 6980878 /lib/tls/libnss_nis-2.3.6.so
    b75d0000-b75d2000 rwxp 00007000 03:02 6980878 /lib/tls/libnss_nis-2.3.6.so
    b75d2000-b75d9000 r-xp 00000000 03:02 6980874 /lib/tls/libnss_compat-2.3.6.so
    b75d9000-b75db000 rwxp 00006000 03:02 6980874 /lib/tls/libnss_compat-2.3.6.so
    b75db000-b75ed000 r-xp 00000000 03:02 6980873 /lib/tls/libnsl-2.3.6.so
    b75ed000-b75ef000 rwxp 00011000 03:02 6980873 /lib/tls/libnsl-2.3.6.so
    b75ef000-b75f1000 rwxp b75ef000 00:00 0
    b75f5000-b75f7000 r-xs 00000000 03:02 6995978 /usr/lib/j2sdk1.5-sun/jre/lib/ext/dnsns.jar
    b75f7000-b75ff000 rwxs 00000000 03:02 8552461 /tmp/hsperfdata_root/16446
    b75ff000-b7622000 r-xp 00000000 03:02 6980871 /lib/tls/libm-2.3.6.so
    b7622000-b7624000 rwxp 00022000 03:02 6980871 /lib/tls/libm-2.3.6.so
    b7624000-b7990000 r-xp 00000000 03:02 6980774 /usr/lib/j2sdk1.5-sun/jre/lib/i386/client/libjvm.so
    b7990000-b79af000 rwxp 0036b000 03:02 6980774 /usr/lib/j2sdk1.5-sun/jre/lib/i386/client/libjvm.so
    b79af000-b7dc6000 rwxp b79af000 00:00 0
    b7dc6000-b7eee000 r-xp 00000000 03:02 6980867 /lib/tls/libc-2.3.6.so
    b7eee000-b7ef3000 r-xp 00127000 03:02 6980867 /lib/tls/libc-2.3.6.so
    b7ef3000-b7ef5000 rwxp 0012c000 03:02 6980867 /lib/tls/libc-2.3.6.so
    b7ef5000-b7ef8000 rwxp b7ef5000 00:00 0
    b7ef8000-b7efa000 r-xp 00000000 03:02 6980870 /lib/tls/libdl-2.3.6.so
    b7efa000-b7efc000 rwxp 00001000 03:02 6980870 /lib/tls/libdl-2.3.6.so
    b7efc000-b7efd000 rwxp b7efc000 00:00 0
    b7efd000-b7f0b000 r-xp 00000000 03:02 6980864 /lib/tls/libpthread-2.3.6.so
    b7f0b000-b7f0d000 rwxp 0000d000 03:02 6980864 /lib/tls/libpthread-2.3.6.so
    b7f0d000-b7f14000 rwxp b7f0d000 00:00 0
    b7f14000-b7f1a000 r-xp 00000000 03:02 6980769 /usr/lib/j2sdk1.5-sun/jre/lib/i386/native_threads/libhpi.so
    b7f1a000-b7f1b000 rwxp 00006000 03:02 6980769 /usr/lib/j2sdk1.5-sun/jre/lib/i386/native_threads/libhpi.so
    b7f1b000-b7f1c000 rwxp b7f1b000 00:00 0
    b7f1c000-b7f1d000 r-xp b7f1c000 00:00 0
    b7f1d000-b7f1f000 rwxp b7f1d000 00:00 0
    b7f1f000-b7f34000 r-xp 00000000 03:02 6964594 /lib/ld-2.3.6.so
    b7f34000-b7f36000 rwxp 00014000 03:02 6964594 /lib/ld-2.3.6.so
    bf675000-bf678000 ---p bf675000 00:00 0
    bf678000-bf875000 rwxp bf678000 00:00 0 [stack]
    ffffe000-fffff000 ---p 00000000 00:00 0 [vdso]
    VM Arguments:
    jvm_args: -Xmx512m
    java_command: net.sf.l2j.gameserver.GameServer
    Launcher Type: SUN_STANDARD
    Environment Variables:
    PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin:/usr/games
    LD_LIBRARY_PATH=/usr/lib/j2sdk1.5-sun/jre/lib/i386/client:/usr/lib/j2sdk1.5-sun/jre/lib/i386:/usr/lib/j2sdk1.5-sun/jre/../lib/i386
    SHELL=/bin/bash
    Signal Handlers:
    SIGSEGV: [libjvm.so+0x325bd0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGBUS: [libjvm.so+0x325bd0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGFPE: [libjvm.so+0x28a010], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGPIPE: [libjvm.so+0x28a010], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGILL: [libjvm.so+0x28a010], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
    SIGUSR2: [libjvm.so+0x28c460], sa_mask[0]=0x00000000, sa_flags=0x10000004
    SIGHUP: [libjvm.so+0x28be90], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGINT: [libjvm.so+0x28be90], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGQUIT: [libjvm.so+0x28be90], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGTERM: [libjvm.so+0x28be90], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    --------------- S Y S T E M ---------------
    OS:4.0
    uname:Linux 2.6.17 #4 SMP PREEMPT Wed May 10 13:53:45 CEST 2006 i686
    libc:glibc 2.3.6 NPTL 2.3.6
    rlimit: STACK 8192k, CORE 0k, NPROC infinity, NOFILE 1024, AS infinity
    load average:1.31 0.62 0.38
    CPU:total 1 (cores per cpu 1, threads per core 1) family 15 model 2 stepping 9, cmov, cx8, fxsr, mmx, sse, sse2
    Memory: 4k page, physical 1003220k(251136k free), swap 2096440k(2096396k free)
    vm_info: Java HotSpot(TM) Client VM (1.5.0_09-b03) for linux-x86, built on Oct 12 2006 10:54:08 by java_re with gcc 3.2.1-7a (J2SE release)

  • Java 6 not working on Mac OS X 10.5.8 on iMac8,1 intel Core 2 Duo

    Posted: Mar 30, 2010 10:33 AM
    Click to reply to this topic Reply email Email
    For some odd reason I cannot activate Java 6. I have installed all updates, up to Java for Mac OS X 10.5 Update 6, and the software update on the machine says that there are no further updates. Under Java preferences I have Java SE 6 64 bit on top, followed by J2SE 5.0 64-bit and then 32-bit, under plugins and under Java programs. I have also done the following:
    cd /System/Library/Frameworks/JavaVM.framework/Versions
    sudo rm -fr CurrentJDK
    sudo ln -s 1.6 CurrentJDK
    Then I do java -version:
    java version "1.6.0_17"
    Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248-9M3125)
    Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101, mixed mode)
    So Java 6 seems to be there. However, when I run Safari, it only seems to know about Java 1.5.0_22. And under Safari installed plugins, there is nothing above 1.5.0_22. No 1.6. And if I uncheck Java 5 under Java preferences, Safari does not find any Java at all.
    So where did my Java 6 go?

    I can't access Leopard Mac now, but if I remember correctly Safari in Leopard is 32bit and can only use 32bit plugins. If there is only 64bit Java6, then I guess Safari can't use it.

  • South Sudan (SS) not known in Locale of Java

    I'm currently programming a payment program and I'm encountering an issue with my validation of BIC's. I have a giant list of all known BIC's but one seems to fail (I validate on it's ISO country code where is use the build in Locale API from Java.
    But unfortunately it doesn't seem to know South Sudan (SS) as valid ISO country, but according to Wikipedia and Swift (=keeper of the BIC's) South Sudan is a valid country and ISO:
    http://en.wikipedia.org/wiki/ISO_3166-2:SS
    Also Java seems to follow the ISO 3166 standard and they also state that South Sudan SS exists:
    http://www.iso.org/iso/support/country_codes/iso_3166_code_lists/iso-3166-1_decoding_table.htm#SS
    I can work around this (but I don't like to create exceptions for this sort of things :p), but maybe someone can give me an explanation. Or should I submit a bug report ;)?
    Thanks in advanced
    Regards

    Updated yesterday to be sure I had the latest version:
    Java JDK 7.0u4
    NetBeans 7.1.2
    Below I'm listing all country code's available to Java. SS doesn't seem to be in there :-/
    Result of following code
    Locale country = new Locale("en", "SS");
    System.out.println(country.getDisplayCountry() + "\nList all countery CODE");
    for (String con : Locale.getISOCountries()) {
         System.out.println(con);
    Properties p = System.getProperties();
    Enumeration keys = p.keys();
    while (keys.hasMoreElements()) {
         String key = (String) keys.nextElement();
         String value = (String) p.get(key);
         System.out.println(key + ": " + value);
    }SS >> This should be South Sudan, but since Java doesn't know it, they display SS
    List all countery CODE
    AD|AE|AF|AG|AI|AL|AM|AN|AO|AQ|AR|AS|AT|AU|AW|AX|AZ|BA|BB|BD|BE|BF|BG|BH|BI|BJ|BL|BM|BN|BO|BQ|BR|BS|BT|BV|BW|BY|BZ|CA|CC|CD|CF|CG|CH|CI|CK|CL|CM|CN|CO|CR|CU|CV|CW|CX|CY|CZ|DE|DJ|DK|DM|DO|DZ|EC|EE|EG|EH|ER|ES|ET|FI|FJ|FK|FM|FO|FR|GA|GB|GD|GE|GF|GG|GH|GI|GL|GM|GN|GP|GQ|GR|GS|GT|GU|GW|GY|HK|HM|HN|HR|HT|HU|ID|IE|IL|IM|IN|IO|IQ|IR|IS|IT|JE|JM|JO|JP|KE|KG|KH|KI|KM|KN|KP|KR|KW|KY|KZ|LA|LB|LC|LI|LK|LR|LS|LT|LU|LV|LY|MA|MC|MD|ME|MF|MG|MH|MK|ML|MM|MN|MO|MP|MQ|MR|MS|MT|MU|MV|MW|MX|MY|MZ|NA|NC|NE|NF|NG|NI|NL|NO|NP|NR|NU|NZ|OM|PA|PE|PF|PG|PH|PK|PL|PM|PN|PR|PS|PT|PW|PY|QA|RE|RO|RS|RU|RW|SA|SB|SC|SD|SE|SG|SH|SI|SJ|SK|SL|SM|SN|SO|SR|ST|SV|SX|SY|SZ|TC|TD|TF|TG|TH|TJ|TK|TL|TM|TN|TO|TR|TT|TV|TW|TZ|UA|UG|UM|US|UY|UZ|VA|VC|VE|VG|VI|VN|VU|WF|WS|YE|YT|ZA|ZM|ZW
    java.runtime.name: Java(TM) SE Runtime Environment
    sun.boot.library.path: C:\Program Files (x86)\Java\jdk1.7.0_04\jre\bin
    java.vm.version: 23.0-b21
    user.country.format: BE
    java.vm.vendor: Oracle Corporation
    java.vendor.url: http://java.oracle.com/
    path.separator: ;
    java.vm.name: Java HotSpot(TM) Client VM
    file.encoding.pkg: sun.io
    user.country: US
    user.script:
    sun.java.launcher: SUN_STANDARD
    sun.os.patch.level: Service Pack 1
    java.vm.specification.name: Java Virtual Machine Specification
    user.dir: D:\Steven\Documenten\Java\PaymentGenerator
    java.runtime.version: 1.7.0_04-b20
    java.awt.graphicsenv: sun.awt.Win32GraphicsEnvironment
    java.endorsed.dirs: C:\Program Files (x86)\Java\jdk1.7.0_04\jre\lib\endorsed
    os.arch: x86
    java.io.tmpdir: C:\Users\Steven\AppData\Local\Temp\
    line.separator:
    java.vm.specification.vendor: Oracle Corporation
    user.variant:
    os.name: Windows 7
    sun.jnu.encoding: Cp1252
    java.library.path: C:\Program Files (x86)\Java\jdk1.7.0_04\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;"C:\Program Files (x86)\Java\jre7\bin";.
    java.specification.name: Java Platform API Specification
    java.class.version: 51.0
    sun.management.compiler: HotSpot Client Compiler
    os.version: 6.1
    user.home: C:\Users\Steven
    user.timezone:
    java.awt.printerjob: sun.awt.windows.WPrinterJob
    file.encoding: UTF-8
    java.specification.version: 1.7
    java.class.path: C:\Program Files (x86)\Java\jdk1.7.0_03\db\lib\derbyclient.jar;C:\Program Files (x86)\Java\jdk1.7.0_03\db\lib\derby.jar;D:\Steven\Documenten\Java\lib\jdom-1.1.3.jar;D:\Steven\Documenten\Java\lib\commons-lang3-3.1-sources.jar;D:\Steven\Documenten\Java\PaymentGenerator\build\classes
    user.name: Steven
    java.vm.specification.version: 1.7
    sun.java.command: eu.uytterhoeven.paymentgenerator.bank.BIC
    java.home: C:\Program Files (x86)\Java\jdk1.7.0_04\jre
    sun.arch.data.model: 32
    user.language: en
    java.specification.vendor: Oracle Corporation
    user.language.format: nl
    awt.toolkit: sun.awt.windows.WToolkit
    java.vm.info: mixed mode, sharing
    java.version: 1.7.0_04
    java.ext.dirs: C:\Program Files (x86)\Java\jdk1.7.0_04\jre\lib\ext;C:\Windows\Sun\Java\lib\ext
    sun.boot.class.path: C:\Program Files (x86)\Java\jdk1.7.0_04\jre\lib\resources.jar;C:\Program Files (x86)\Java\jdk1.7.0_04\jre\lib\rt.jar;C:\Program Files (x86)\Java\jdk1.7.0_04\jre\lib\sunrsasign.jar;C:\Program Files (x86)\Java\jdk1.7.0_04\jre\lib\jsse.jar;C:\Program Files (x86)\Java\jdk1.7.0_04\jre\lib\jce.jar;C:\Program Files (x86)\Java\jdk1.7.0_04\jre\lib\charsets.jar;C:\Program Files (x86)\Java\jdk1.7.0_04\jre\lib\jfr.jar;C:\Program Files (x86)\Java\jdk1.7.0_04\jre\classes
    java.vendor: Oracle Corporation
    file.separator: \
    java.vendor.url.bug: http://bugreport.sun.com/bugreport/
    sun.io.unicode.encoding: UnicodeLittle
    sun.cpu.endian: little
    sun.desktop: windows
    sun.cpu.isalist: pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
    Edited by: 923091 on Apr 30, 2012 1:56 PM

  • How to resolve Exception in thread "main" java.lang.NoSuchFieldError: strm

    Hi,
    Aplogies, if I am posting this in the wrong place, else please guide me.
    We were running JBoss server 4.2.3 GA with Java 5 Update 19 in Solaris 10.
    Details of uname command in Solaris box is,
    uname -a
    SunOS uktapp06 5.10 Generic_125100-10 sun4us sparc FJSV,GPUZC-M
    Due to performance issues we need to upgrade to latest Java [Java 6 Update 21] and when I tried to run JBoss with 64 bit mode using Java options like,
    JAVA_OPTS="*-d64* -Xms3g -Xmx3g -XX:ThreadStackSize=512 -XX:+UseParallelGC -XX:MaxPermSize=256m -XX:NewRatio=2"
    I get the below error,
    Exception in thread "main" java.lang.NoSuchFieldError: strm
            at java.util.zip.Inflater.initIDs(Native Method)
            at java.util.zip.Inflater.<clinit>(Inflater.java:68)
            at java.util.zip.ZipFile.getInflater(ZipFile.java:266)
            at java.util.zip.ZipFile.getInputStream(ZipFile.java:212)
            at java.util.zip.ZipFile.getInputStream(ZipFile.java:180)
            at java.util.jar.JarFile.hasClassPathAttribute(JarFile.java:465)
            at java.util.jar.JavaUtilJarAccessImpl.jarFileHasClassPathAttribute(JavaUtilJarAccessImpl.java:21)
            at sun.misc.URLClassPath$JarLoader.getClassPath(URLClassPath.java:903)
            at sun.misc.URLClassPath.getLoader(URLClassPath.java:302)
            at sun.misc.URLClassPath.getResource(URLClassPath.java:168)
            at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
            at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)I have posted this at JBoss Forum here, http://community.jboss.org/message/553489
    and got a response that we need to reinstall Java 6 Update 21 in Solaris
    However my System admin verified and said there are no issues in Java installation.
    I could run a HelloWorld sample program using the same Java options [with -d64 flag] and that runs perfectly.
    I do not have any clue because I do not think there is any issues in the JBoss server
    From the above trace, it is failing at a native call and not picking up the required libraries.
    Please also let me know the below
    1. Whether I need to set any environment variables?
    2. Whether the installation would have been corrupted and we need to reinstall?
    Thanks,
    Prabhu

    Hi Franco,
    Yes, I solved that by reinstalling Java 6 Update 21.
    There are three versions for Solaris namely, SPARC, x64 and x86. Our platform is SPARC and I think System admin has installed the wrong version instead of installing SPARC version of Java.
    After installing SPARC version of Java this got resolved. And I confirmed everything is fine by running a small program as below. You can run this program from command line using the -d64 flag. If the installation is wrong you will get the same exception as I mentioned.
    public class Analyzer {
          public static void main(String args[]) throws Exception{
               InputStream fin = new FileInputStream(args[0]);
               int iSize = fin.available();
               byte mvIn[] = new byte[iSize];
               fin.read(mvIn,0,iSize);
               fin.close();
               String strText = new String(mvIn);
               PrintStream fout = new PrintStream(new FileOutputStream(args[0]+".csv"));
               fout.println("Before,After,Seconds");
               Pattern p = Pattern.compile("\\[(?:Full |)GC (\\d*)K->(\\d*)K\\(\\d*K\\), ([\\d.]*) secs\\]");
               Matcher m = p.matcher(strText);
               while(m.find()){
                    fout.println(m.group(1)+ "," + m.group(2) + "," + m.group(3));
               fout.close();
    }Hope this helps.
    Regards,
    Prabhu

  • Set full screen mode

    Hi everyone
    It may not seem a JMF problem but i am hoping for some help.
    I am just trying to implment full screen on jmf player panel, i tried but the nothing is shown but a black screen
    the following is the code of whole program:-
    import java.awt.*;
    import java.awt.Rectangle;
    import java.awt.Dimension;
    import java.awt.event.*;
    import javax.media.*;
    import javax.media.Player;
    public class MyPlayer extends Frame implements ControllerListener
         private Player player;
         private Panel panel;
         private String [] urls;
         int currentsong = 0;
         MediaLocator ml;
         int flag = 0;
         int videoWidth = 320, videoHeight = 200, controlHeight = 30;
         Dimension size;
         Component visual, control;
         private Dimension dimFrameSizeBeforeFullScreen = null;
         private Window windowFullScreen = null;
         public static void main(String[] args)
              String[] files = { "Khalid_Diana.mpg", "11.mpg", "Taha.mpg" };
              MyPlayer Medialist = new MyPlayer(files );
              Medialist.nextMedia(0);
         public void setFullScreen() {
              System.out.println("Full Screen");
              Dimension dimScreen;
              Dimension dimPrefSize = new Dimension(500,300);
              Rectangle rectVideo;
              panel = new Panel();
              panel.setLayout(new BorderLayout());
              //if (panel == null)
              //     return;
              dimScreen = Toolkit.getDefaultToolkit().getScreenSize();
              System.out.println("Screen Size: " + dimScreen.toString());
              if (windowFullScreen == null)
                   windowFullScreen = new Window(this);
                   windowFullScreen.setLayout(null);
                   windowFullScreen.setBackground(Color.black);
              windowFullScreen.setBounds(0, 0, dimScreen.width, dimScreen.height);
              rectVideo = new Rectangle(0, 0, dimScreen.width, dimScreen.height);
              if ((float)dimPrefSize.width / dimPrefSize.height >= (float)dimScreen.width / dimScreen.height){
                   rectVideo.height = (dimPrefSize.height * dimScreen.width) / dimPrefSize.width;
                   rectVideo.y = (dimScreen.height - rectVideo.height) / 2;
              else{
                   rectVideo.width = (dimPrefSize.width * dimScreen.height) / dimPrefSize.height;
                   rectVideo.x = (dimScreen.width - rectVideo.width) / 2;
              Toolkit.getDefaultToolkit().sync();
              windowFullScreen.add(panel);
              panel.setBounds(rectVideo);
              windowFullScreen.setVisible(true);
              windowFullScreen.validate();
         public MyPlayer(String[] files)
              addWindowListener(new WindowAdapter()
                   public void windowClosing(WindowEvent e)
                        if (player!=null) player.close();
                        System.exit(0);
                   try{
                        Thread.sleep(2000);
                        setFullScreen();
                   }catch (Exception e){
              urls = files;
              //setTitle("Player");
              //panel.setBackground(Color.BLACK);
              //add(panel);
              //setLocation(300,250);
              //setSize(500, 500);
              //setResizable(false);
              //setVisible(true);
         public void nextMedia(){ nextMedia(0);}
         public void nextMedia(int index)
              try
                   ml = new MediaLocator("file:D:/Temp/" + urls[index]);
                   player = Manager.createPlayer(ml);
                   player.addControllerListener(this);
                   player.start();
              catch(Exception x) { x.printStackTrace(); }
         public void controllerUpdate(ControllerEvent ce)
              if (ce instanceof RealizeCompleteEvent)
                   visual=player.getVisualComponent();
                   if (visual !=null)
                      // size=visual.getPreferredSize();
                        //videoWidth=size.width;
                        //videoHeight=size.height;
                        panel.add( "Center", visual);
                   else {
                      // do nothing
                   if ((control=player.getControlPanelComponent())!=null)
                        //controlHeight=control.getPreferredSize().height;
                        //panel.add("South", control);
                   //setSize(videoWidth+10, videoHeight+controlHeight+30);
                   //validate();
                   //repaint();
              else if(ce instanceof EndOfMediaEvent) {
                   player.close();
                   player.deallocate();
                   panel.removeAll();
                   nextMedia(currentsong=(currentsong+1)% urls.length);
              //System.out.println("\n " + urls[currentsong] + " : " + ce.toString() );
              //else if ( ce instanceof FormatChangeEvent){}
    }Thanks in advance

    My problem is solved !
    Following is code of how to set full screen mode:-
    mport java.awt.*;
    //import java.awt.Rectangle;
    import java.awt.Dimension;
    import java.awt.event.*;
    import javax.media.*;
    import javax.media.Player;
    import javax.swing.*;
    public class MyPlayer extends JFrame implements ControllerListener
         private Player player;
         private Panel panel;
         private String [] urls;
         int currentsong = 0;
         MediaLocator ml;
         int flag = 0;
         int videoWidth = 1024, videoHeight = 768, controlHeight = 30;
         Dimension size;
         Component visual, control;
         private Dimension dimFrameSizeBeforeFullScreen = null;
         private Window windowFullScreen = null;
         Container content = getContentPane();
         public static void main(String[] args)
              String[] files = { "Khalid_Diana.mpg", "11.mpg", "Taha.mpg" };
              MyPlayer Medialist = new MyPlayer(files );
              Medialist.nextMedia(0);
         public MyPlayer(String[] files)
              setBackground(Color.BLACK);
              setUndecorated(true);
              Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
              System.out.println("\n\n The Screen DIM: " + screenSize);
              content.setBounds(0, 0, screenSize.width, screenSize.height);
              addWindowListener(new WindowAdapter()
                   public void windowClosing(WindowEvent e)
                        if (player!=null) player.close();
                        System.exit(0);
              urls = files;
              setTitle("Player");
              panel = new Panel();
              panel.setLayout(new BorderLayout());
              panel.setBackground(Color.BLACK);
              add(panel);
              pack();
              //setLocation(300,250);
              setSize(1024, 768);
              //setResizable(false);
              setVisible(true);
         public void nextMedia(){ nextMedia(0);}
         public void nextMedia(int index)
              try
                   ml = new MediaLocator("file:D:/Temp/" + urls[index]);
                   player = Manager.createPlayer(ml);
                   player.addControllerListener(this);
                   player.start();
              catch(Exception x) { x.printStackTrace(); }
         public void controllerUpdate(ControllerEvent ce)
              if (ce instanceof RealizeCompleteEvent)
                   visual=player.getVisualComponent();
                   if (visual !=null)
                       size=visual.getPreferredSize();
                        videoWidth = size.width;
                        videoHeight = size.height;
                        panel.add(visual, BorderLayout.CENTER);
                   else {
                      // do nothing
                   if ((control=player.getControlPanelComponent())!=null)
                        //controlHeight=control.getPreferredSize().height;
                        //panel.add("South", control);
                   validate();
                   repaint();
              else if(ce instanceof EndOfMediaEvent) {
                   player.close();
                   player.deallocate();
                   panel.removeAll();
                   nextMedia(currentsong=(currentsong+1)% urls.length);
              //System.out.println("\n " + urls[currentsong] + " : " + ce.toString() );
              //else if ( ce instanceof FormatChangeEvent){}
    }By the way thanks Stefan for being supportive

  • I can't get Java to work

    Hi,
    I am running OSX version 10.7.5 and safari 6.0.2 (7536.26.17).
    It is a clean install onto a new drive.
    I want to be able to use Java but cannot get it to work.
    I have made sure that safari is running in 64 bit mode and that Java is enabled in the safari preferences.
    I have installed Java 7 update 15 which has completed successfully but java does not work even after reloading/restarting safari.
    If I visit a java test page, I get the message that i have had a plug in failure.
    I have spent quite a time reading about this on the internet but cannot see how to get safari and Java to play nice!
    Any help would be gratefuly received.
    Thanks

    Don't know what else to tell you. I've both and show these when running the appropriate command in the Terminal:
    For Java 7
    /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java -version
    java version "1.7.0_17"
    Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
    Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)
    For Java 6
    java -version
    java version "1.6.0_43"
    Java(TM) SE Runtime Environment (build 1.6.0_43-b01-447-11M4203)
    Java HotSpot(TM) 64-Bit Server VM (build 20.14-b01-447, mixed mode)

Maybe you are looking for

  • How to Populate Scrath Pad dynamically in IC web client..

    Hi all, i am struck in a requirement where i need to autopopulate error message in Scratch pad of IC when CSR accepts the call of Customer.The error message is generated when customer puts any wrong data in IVR.                                      i

  • Context mapping vs. Java beans

    Hi, I'm making a "Server" Component (Java Web Dynpro) that exposes a view to other "Client" Components (other Java Web DynPros). The Clients can insert the exposed view into their views to use the Server's services. The Server, obviously, has to be i

  • Transaction Xk01 output screen

    Hi All, I am working on a task, where whenever we run the transaction Xk01  on the output screen we have field called company code and it's by defaulted as '001'. Now the requirement is that we need to greyed out the company code field... so that the

  • Component RUL Oracle Rules Manager 10.2.0.2.0 INVALID

    Hi, First lines from dba_errors show this : PLS-00201: identifier 'ORDSYS.ORDIMAGESIGNATURE' must be declared PL/SQL: Compilation unit analysis terminated PLS-00905: object SYS.ORDIMAGEINDEXSTATS is invalid PLS-00304: cannot compile body of 'ORDIMAGE

  • Keychain Assistant: A possible Keychain Lockup?

    Hello, Community. After some time of using Keychains, Certificates and relevant materials, I have come across a problem, which only just struck me. I tried to fix it myself, before I posted, and will continue to do so. A search through the internet d