Swing application with JavaHelp crashes outside Netbeans IDE.

Hi guys I have developed a small swing application in Netbeans IDE. I used the following code inside the IDE for JH.
public void createHelp()
       try {
               URL hsURL = new URL("jar:file:eDictionaryHelp.jar!/eDictionaryHelp/eDictionary.hs");
               hs = new HelpSet(null, hsURL);
       catch (Exception ee)
        // Say what the exception really is
        System.out.println( "HelpSet " + ee.getMessage());
        System.out.println("HelpSet "+ helpHS +" not found");
        JOptionPane.showMessageDialog(new JFrame(), ee.getMessage(), "Error", ERROR_MESSAGE);
        hb = hs.createHelpBroker();
   }When I run the program inside the IDE and and click on the corresponding MenuItem.. JavaHelp comes up as it should! No problems with that.
But when I build the project and tried to run it from the .jar file in the PROJECT_HOME/dist/ the swing got displayed till this function was called. and then it simply crashed.
Investigating further and commenting out one line at a time and compiling I found out that whenever the hs = new HelpSet(null, hsURL); is encountered, the app crashes (it doesnt throw any error).
But as I said this is not the case when i run and compile inside the IDE. I only get this problem when running the app from outside the IDE.
I have tried all kinds of combinations of the URL .. for eg ( I am aware of Bug 4149782)
ClassLoader cl = this.getClass().getClassLoader();
try {
               URL hsURL = HelpSet.findHelpSet(cl, helpHS);
.What can be the problem guys? Any suggestions?
Thanks!

Anyone has an answer on this?
I am facing the same problem.. I am using NetBeans 5.5
arijit_datta, do u have a solution for this problem already?
Thanks,
SK

Similar Messages

  • Create a swing application with reflection

    Hi folks, I'm seeing the possibility to create a application like eclipse wich loads the classes in a folder and builds the application , but I have a doubt, how organize the components in application , how I will add a component in a menu, how I will build the hierarchy , separating menus,panel and buttons , anyone have idea ?
    Thanks .

    1) Use JEditorPane
    2) Need to Highlight syntax
    3) Need to show lines
    check out these links
    coweb.cc.gatech.edu/mediaComp-plan/uploads/95/JESGutter.1.java
    http://javaalmanac.com/egs/javax.swing.text/style_HiliteWords2.html
    Now to popup
    setLayout for the JEditorPane to null
    You will have one JComboBox /or popup with all the properties and methods
    of the class.
    now add that JComboBox to JEditorPane
    You can get the position of the dot by using
    Point point = editorPane.getCaret().getMagicCaretPosition();
    popupMenu.show( jEditorPane,
    (int)point.getX(),
    (int)point.getY());
    Here you can show JComboBox too. (Absolute positioning).
    Now as you need to use JEditorPane implement DocumentListener on it.
    Using caret listener you can get the current word.
    You can use getClass() for that. Add all the methods and properties in JComboBox or Popup.
    As for other properties such as saving keywords, search, 'files opened' etc.
    you can use xml.

  • Unable to launch Java Swing application with JSE 5.0

    Hi,
    we have a swing appln that gets downloaded via java webstart - which was working fine with 1.4.x until 5.0 came. I know that JSE 5.0 includes java webstart too - but when I start my application, I get Marshal error & filenotfound Exception. What we are doing in the application is to download some XML files that are to be used by the program. But the program is unable to find the files.
    If I manually install 1.4.x & Web Start separately, everything works fine.....
    Is there any change needed in the JNLP file?
    TIA

    Hi there,
    Here's the issue:
    I have modified our web page that helps the user download the swing appln - as per the guidelines given in the web site:
    http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/launch.html
    Let's say that I already have JRE 1.4x & JWS installed on my m/c. When I visit our web page that downloads / starts the client application, I get an error:
    Java Web Start : Invalid Argument Error.
    General
    An error occurred while launching/running the application.
    Category: Invalid Argument error
    Could not load file/URL specified: http://myserver:8080/testdev/app/testb.jnlp
    Exception
    CouldNotLoadArgumentException[ Could not load file/URL specified: http://myserver:8080/testdev/app/testb.jnlp]
         at com.sun.javaws.Main.main(Unknown Source)
    Wrapped Exception
    java.io.IOException: Service Unavailable : http://myserver:8080/testdev/app/testb.jnlp
    at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
    at com.sun.javaws.Main.main(Unknown Source)
    If I uninstall JRE 1.4+ & etal - JRE 5.0 gets downloaded and everything works smooth. But I need to take care of backward compatibility... Hence this post....
    BTW, the JNLP file looks like:
    <?xml version="1.0" encoding="utf-8"?>
    <jnlp spec="1.0+"
         codebase="$$codebase"
         href="testb.jnlp">
    <information>
    <title>Test Application</title>
    <vendor>TP</vendor>
    <homepage href="help.htm"/>
    <description>TEST Application using Java Web Start </description>
    <description kind="short">TEST Application.</description>
    <icon href="logocropped.jpg"/>
    <icon kind="splash" href="logocropped.jpg"/>
    <offline-allowed/>
    </information>
    <resources>
    <j2se version="1.4+"/>
    <jar href="bars.jar" part="lpc" />
    <jar href="castor-0.9.4.3.jar" part="lpc" download="eager" />
    <jar href="xercesImpl.jar" download="eager"/>
    <jar href="xmlParserAPIs.jar" download="eager"/>
    <jar href="bsh-1.2b6.jar" download="eager"/>
    <jar href="gnujaxp.jar" download="eager"/>
    <jar href="itext-0.99.jar" download="eager"/>
    <jar href="jcommon-0.8.2.jar" download="eager"/>
    <jar href="junit.jar" download="eager"/>
    <jar href="pixie-0.8.0.jar" download="eager"/>
    <jar href="BarsUtil.jar" download="eager"/>
    </resources>
    <application-desc main-class="bars.Bars"/>
    <security>
    <all-permissions/>
    </security>
    </jnlp>
    Is there a version incompatibility issue that I need to take care of ?
    TIA for any help/direction......

  • Swing application with network event handling

    Hello, hope this is the right place for this post. I'm the design phase of a client application in java which talks to a remote server written in C via sockets. I have a design problem: I want my Swing app to have a GUI with buttons and all for normal activities, which activities report to the server, and I want the client to react to server calls anytime without interrupting normal GUi activities. Plus, all must work together, so I would prefer having a single thread for the app. (Think of an IRC client: the user uses the GUI for activities and sendim messages, and meanwhile the client listens for messages from the server and display them as they arrive). My question is: is this possible?
    I have something like (in pseudo-java):
    classMyApp extends JFrame {
      public MyApp() {
        // Manages and create the GUI
        NetHandler h = new NetHandler(this);
        h.connect();
        while(true) {
          h.pollNetEvents();
    class NetHandler {
      private BufferedReader iStream;
      private PrintWriter oStream;
      private MyApp app;
      public NetHandler(MyApp a) {
        app = a;
        Socket socket = createSocket(ip, port);
        iStream = new BufferedReader(new InputStreamReader(socket.getInputStream()));
        oStream = new PrintWriter(socket.getOutputStream());
        handshakeWithServer(); // Login & Password
      public pollNetEvents() {
        try {
          String s;
          for (;;) {
            s = iStream.readLine();
            if (s.equals("") == false)
              break;
            else
              app.parseCommand(s);
        catch (IOException e) {
          app.sendMessage("Error in pollNetEvent: " + e);
    }Roughly, something like this. With this solution the GUI works, but I cannot get the message the server sends.
    I hope my message is clear enough. Can anybody help me with the design of my app? Thanks a lot.
    Fabio.

    You might consider posting this in the Swing forum. You might get a more complete response there, but here are my first thoughts.
    -- I think you will end up wanting to use multiple threads, but only one thread will update the UI. For more about threading in Swing, see this tutorial: http://java.sun.com/docs/books/tutorial/uiswing/misc/threads.html
    and maybe also here: http://www.sourcebeat.com/TitleAction.do?id=10 (look at the sample chapter on Threads)
    -- For the polling code ...
    Of course, if you use the classes provided for client/server communication described below, you don't need to write your own polling code. You may still wish worry about threading so that your UI remains responsive and does not encounter major issues: http://java.sun.com/developer/JDCTechTips/2005/tt0419.html#1
    -- Updates to the UI from thread(s) that are not on the Event Dispatch Thread (the one that controls the UI) must be posted using the SwingUtilities methods, such as invokeLater
    Message was edited by:
    pthorson

  • Coding Swing Applications with Large JDBC ResultSets

    Hi,
    Does anyone know where I can find information regarding efficient ways to code Swing UI's with large JDBC result sets. I have been using JTextArea but my application seems to constantly run out of memory when I encounter a large result set. Also, any information regarding threading and if running database queries should be done entirely off the event thread vs SwingUtilities.invokeLater() would be of tremendous help.
    Thanks,
    John Meah

    If doing operations in the awt thread starts to impair the performance of your app, then create a new class that implements Runnable, and do this:
    Thread t = new Thread (new yourRunnable());
    t.start();
    t should have lower priority than the AWT thread.
    As far as large result sets, it is a fairly universal problem. My recommendation is that you arbitrarily impose a limit on how many of the records returned are displayed, like maybe 25 records. This should fix your problem

  • Applications with java crash on startup

    Hello!
    Suddenly my ftp-client Cyberduck 3.8.1 crash on startup. A also tried the client Transmit and the same thing happend. I may think this started after the latest software update with java.
    Same thing happend when i try it with a guest account. Here are the crash report, thanks for any help.
    Process:         Cyberduck [1312]
    Path:            /Applications/Cyberduck.app/Contents/MacOS/Cyberduck
    Identifier:      ch.sudo.cyberduck
    Version:         3.8.1 (7954) (7954)
    Code Type:       X86 (Native)
    Parent Process:  launchd [198]
    Date/Time:       2013-11-07 13:59:33.901 +0100
    OS Version:      Mac OS X 10.6.8 (10K549)
    Report Version:  6
    Interval Since Last Report:          1245482 sec
    Crashes Since Last Report:           25
    Per-App Interval Since Last Report:  4030678 sec
    Per-App Crashes Since Last Report:   10
    Anonymous UUID:                      EB51A53D-3105-4581-B742-7968A27D2CD7
    Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes: KERN_INVALID_ADDRESS at 0x000000003a656d61
    Crashed Thread:  0  Dispatch queue: com.apple.main-thread
    Application Specific Information:
    objc_msgSend() selector name: retain
    Java information:
    Exception type: Bus Error (0xa) at pc=0000000099049f8b
    Java VM: Java HotSpot(TM) Client VM (20.65-b04-462 mixed mode macosx-x86)
    Current thread (0000000003802400):  JavaThread "main" [_thread_in_native, id=-1599740608, stack(00000000bf800000,00000000c0000000)]
    Stack: [00000000bf800000,00000000c0000000]
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    j  com.sun.jna.Function.invokeVoid(I[Ljava/lang/Object;)V+0
    j  com.sun.jna.Function.invoke([Ljava/lang/Object;Ljava/lang/Class;Z)Ljava/lang/Ob ject;+45
    J  com.sun.jna.Function.invoke(Ljava/lang/Class;[Ljava/lang/Object;Ljava/util/Map; )Ljava/lang/Object;
    j  org.rococoa.internal.MsgSendHandler.invoke(Ljava/lang/Object;Ljava/lang/reflect /Method;[Ljava/lang/Object;)Ljava/lang/Object;+76
    j  com.sun.jna.Library$Handler.invoke(Ljava/lang/Object;Ljava/lang/reflect/Method; [Ljava/lang/Object;)Ljava/lang/Object;+320
    j  com.sun.proxy.$Proxy0.syntheticSendMessage(Ljava/lang/Class;Lorg/rococoa/ID;Lor g/rococoa/Selector;[Ljava/lang/Object;)Ljava/lang/Object;+29
    j  org.rococoa.Foundation.send(Lorg/rococoa/ID;Lorg/rococoa/Selector;Ljava/lang/Cl ***;[Ljava/lang/Object;)Ljava/lang/Object;+61
    j  org.rococoa.Foundation.send(Lorg/rococoa/ID;Ljava/lang/String;Ljava/lang/Class; [Ljava/lang/Object;)Ljava/lang/Object;+7
    j  org.rococoa.internal.ObjCObjectInvocationHandler.sendOnThisOrMainThread(Ljava/l ang/reflect/Method;Lorg/rococoa/ID;Ljava/lang/String;Ljava/lang/Class;[Ljava/la n g/Object;)Ljava/lang/Object;+32
    j  org.rococoa.internal.ObjCObjectInvocationHandler.invokeCocoa(Ljava/lang/reflect /Method;[Ljava/lang/Object;)Ljava/lang/Object;+32
    j  org.rococoa.internal.ObjCObjectInvocationHandler.intercept(Ljava/lang/Object;Lj ava/lang/reflect/Method;[Ljava/lang/Object;Lnet/sf/cglib/proxy/MethodProxy;)Lja v a/lang/Object;+93
    j  ch.cyberduck.ui.cocoa.application.NSApplication$$ByRococoa.run()V+31
    j  ch.cyberduck.ui.cocoa.MainApplication.main([Ljava/lang/String;)V+174
    v  ~StubRoutines::call_stub
    j  sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/la ng/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0
    j  sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Objec t;)Ljava/lang/Object;+87
    j  sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/O bject;)Ljava/lang/Object;+6
    j  java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lan g/Object;+161
    j  apple.launcher.LaunchRunner.run()V+76
    j  apple.launcher.LaunchRunner.callMain()V+1
    j  apple.launcher.JavaApplicationLauncher.launch(JJZ)V+11
    v  ~StubRoutines::call_stub
    Java Threads: ( => current thread )
      0000000012381000 JavaThread "pool-1-thread-7" [_thread_blocked, id=-1314566144, stack(00000000b1955000,00000000b1a55000)]
      0000000011142400 JavaThread "pool-1-thread-6" [_thread_blocked, id=-1315622912, stack(00000000b1853000,00000000b1953000)]
      000000001285ec00 JavaThread "pool-1-thread-5" [_thread_in_native, id=-1316679680, stack(00000000b1751000,00000000b1851000)]
      000000001285d800 JavaThread "pool-1-thread-4" [_thread_blocked, id=-1317736448, stack(00000000b164f000,00000000b174f000)]
      000000001113f400 JavaThread "pool-1-thread-3" [_thread_in_native, id=-1318793216, stack(00000000b154d000,00000000b164d000)]
      000000001113e400 JavaThread "pool-1-thread-2" [_thread_in_Java, id=-1319849984, stack(00000000b144b000,00000000b154b000)]
      000000001113dc00 JavaThread "pool-1-thread-1" [_thread_in_native, id=-1320906752, stack(00000000b1349000,00000000b1449000)]
      0000000012083800 JavaThread "Poller SunPKCS11-Darwin" daemon [_thread_blocked, id=-1325264896, stack(00000000b0f21000,00000000b1021000)]
      0000000012800000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=-1327378432, stack(00000000b0d1d000,00000000b0e1d000)]
      000000001200e400 JavaThread "C1 CompilerThread0" daemon [_thread_in_native, id=-1328435200, stack(00000000b0c1b000,00000000b0d1b000)]
      000000001200d400 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=-1329491968, stack(00000000b0b19000,00000000b0c19000)]
      000000001200c400 JavaThread "Surrogate Locker Thread (Concurrent GC)" daemon [_thread_blocked, id=-1330548736, stack(00000000b0a17000,00000000b0b17000)]
      000000000390bc00 JavaThread "Finalizer" daemon [_thread_blocked, id=-1331605504, stack(00000000b0915000,00000000b0a15000)]
      000000000390ac00 JavaThread "Reference Handler" daemon [_thread_blocked, id=-1332662272, stack(00000000b0813000,00000000b0913000)]
    =>0000000003802400 JavaThread "main" [_thread_in_native, id=-1599740608, stack(00000000bf800000,00000000c0000000)]
    Other Threads:
      0000000011002000 VMThread [stack: 00000000b0711000,00000000b0811000] [id=-1333719040]
      0000000003915400 WatcherThread [stack: 00000000b0e1f000,00000000b0f1f000] [id=-1326321664]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread:  ([mutex/lock_event])
    [0000000003500c90] CodeCache_lock - owner thread: 0000000000000000
    Heap
    par new generation   total 14784K, used 7184K [0000000006010000, 0000000007010000, 0000000007010000)
      eden space 13184K,  42% used [0000000006010000, 0000000006584090, 0000000006cf0000)
      from space 1600K, 100% used [0000000006e80000, 0000000007010000, 0000000007010000)
      to   space 1600K,   0% used [0000000006cf0000, 0000000006cf0000, 0000000006e80000)
    concurrent mark-sweep generation total 49152K, used 7582K [0000000007010000, 000000000a010000, 000000000c010000)
    concurrent-mark-sweep perm gen total 18816K, used 18687K [000000000c010000, 000000000d270000, 0000000010010000)
    Code Cache  [0000000004001000, 00000000041e2000, 0000000006001000)
    total_blobs=878 nmethods=734 adapters=88 free_code_cache=31590336 largest_free_block=256
    Virtual Machine Arguments:
    JVM Args: -Xbootclasspath/a:/System/Library/PrivateFrameworks/JavaApplicationLauncher.fra mework/Resources/LauncherSupport.jar -Dfile.encoding=utf-8
    Java Command: <unknown>
    Launcher Type: generic
    Physical Memory: Page Size = 4k, Total = 3968M, Free = 1709M
    Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
    0   libobjc.A.dylib                         0x99049f8b objc_msgSend + 27
    1   org.andymatuschak.Sparkle               0x037d840a -[SUUpdater newVersionAvailable] + 48
    2   org.andymatuschak.Sparkle               0x037d8721 -[SUUpdater appcastDidFinishLoading:] + 713
    3   com.apple.Foundation                    0x97a3c671 __NSThreadPerformPerform + 506
    4   com.apple.CoreFoundation                0x9028f42b __CFRunLoopDoSources0 + 1563
    5   com.apple.CoreFoundation                0x9028ceef __CFRunLoopRun + 1071
    6   com.apple.CoreFoundation                0x9028c3c4 CFRunLoopRunSpecific + 452
    7   com.apple.CoreFoundation                0x9028c1f1 CFRunLoopRunInMode + 97
    8   com.apple.HIToolbox                     0x9a5eae04 RunCurrentEventLoopInMode + 392
    9   com.apple.HIToolbox                     0x9a5eaaf5 ReceiveNextEventCommon + 158
    10  com.apple.HIToolbox                     0x9a5eaa3e BlockUntilNextEventMatchingListInMode + 81
    11  com.apple.AppKit                        0x90952595 _DPSNextEvent + 847
    12  com.apple.AppKit                        0x90951dd6 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 156
    13  com.apple.AppKit                        0x909141f3 -[NSApplication run] + 821
    14  jna6079135966213919336.tmp              0x037acf1d .LCFI1 + 26
    15  jna6079135966213919336.tmp              0x037acc81 ffi_call + 97
    16  jna6079135966213919336.tmp              0x037a372e dispatch + 574
    17  jna6079135966213919336.tmp              0x037a4107 Java_com_sun_jna_Function_invokeVoid + 55
    18  ???                                     0x0400b9d9 0 + 67156441
    19  ???                                     0x04003e31 0 + 67124785
    20  ???                                     0x0411a5c4 0 + 68265412
    21  ???                                     0x04004473 0 + 67126387
    22  ???                                     0x04004473 0 + 67126387
    23  ???                                     0x04004473 0 + 67126387
    24  ???                                     0x04003f97 0 + 67125143
    25  ???                                     0x04003f97 0 + 67125143
    26  ???                                     0x04003f97 0 + 67125143
    27  ???                                     0x04003f97 0 + 67125143
    28  ???                                     0x04004473 0 + 67126387
    29  ???                                     0x04003e31 0 + 67124785
    30  ???                                     0x04001374 0 + 67113844
    31  libjvm.dylib                            0x031a95eb JVM_Lseek + 207439
    32  libjvm.dylib                            0x031a935f JVM_Lseek + 206787
    33  libjvm.dylib                            0x031a9333 JVM_Lseek + 206743
    34  libjvm.dylib                            0x031c2ff1 JVM_NewInstanceFromConstructor + 3647
    35  libjvm.dylib                            0x031c4500 JVM_InvokeMethod + 1096
    36  libjvm.dylib                            0x031c4242 JVM_InvokeMethod + 394
    37  libjvmlinkage.dylib                     0x000ac74f JVM_InvokeMethod + 79
    38  libjava.jnilib                          0x0070217e Java_sun_reflect_NativeMethodAccessorImpl_invoke0 + 38
    39  ???                                     0x0400b9d9 0 + 67156441
    40  ???                                     0x04003f97 0 + 67125143
    41  ???                                     0x04003f97 0 + 67125143
    42  ???                                     0x04004473 0 + 67126387
    43  ???                                     0x04003f97 0 + 67125143
    44  ???                                     0x04003e31 0 + 67124785
    45  ???                                     0x04003e31 0 + 67124785
    46  ???                                     0x04001374 0 + 67113844
    47  libjvm.dylib                            0x031a95eb JVM_Lseek + 207439
    48  libjvm.dylib                            0x031a935f JVM_Lseek + 206787
    49  libjvm.dylib                            0x031a9333 JVM_Lseek + 206743
    50  libjvm.dylib                            0x031cfda3 JVM_FindLoadedClass + 7826
    51  libjvm.dylib                            0x0323b84c JNI_GetCreatedJavaVMs_Impl + 2538
    52  ...ple.JavaApplicationLauncher          0x00008f1a JNIEnv_::CallStaticVoidMethod(_jclass*, _jmethodID*, ...) + 44
    53  ...ple.JavaApplicationLauncher          0x00008deb CallAppLauncherMain(JNIEnv_*, __CFDictionary const*, __CFArray const*) + 286
    54  ...ple.JavaApplicationLauncher          0x000083d4 startJavaApplication + 3265
    55  ...ple.JavaApplicationLauncher          0x000097c6 launchJavaApplicationWithJVMInfo + 1306
    56  ...ple.JavaApplicationLauncher          0x00006c07 launchJavaApplication + 39
    57  ch.sudo.cyberduck                       0x00001e36 0x1000 + 3638
    58  ch.sudo.cyberduck                       0x00001c59 0x1000 + 3161
    59  ch.sudo.cyberduck                       0x00001b88 0x1000 + 2952
    Thread 1:  Dispatch queue: com.apple.libdispatch-manager
    0   libSystem.B.dylib                       0x9881b382 kevent + 10
    1   libSystem.B.dylib                       0x9881ba9c _dispatch_mgr_invoke + 215
    2   libSystem.B.dylib                       0x9881af59 _dispatch_queue_invoke + 163
    3   libSystem.B.dylib                       0x9881acfe _dispatch_worker_thread2 + 240
    4   libSystem.B.dylib                       0x9881a781 _pthread_wqthread + 390
    5   libSystem.B.dylib                       0x9881a5c6 start_wqthread + 30
    Thread 2:
    0   libSystem.B.dylib                       0x9881a412 __workq_kernreturn + 10
    1   libSystem.B.dylib                       0x9881a9a8 _pthread_wqthread + 941
    2   libSystem.B.dylib                       0x9881a5c6 start_wqthread + 30
    Thread 3:  Java: Exception Handler Thread
    0   libSystem.B.dylib                       0x987f4afa mach_msg_trap + 10
    1   libSystem.B.dylib                       0x987f5267 mach_msg + 68
    2   libSystem.B.dylib                       0x98860c78 mach_msg_server + 520
    3   libjvm.dylib                            0x031108d0 jio_snprintf + 45482
    4   libjvm.dylib                            0x03110757 jio_snprintf + 45105
    5   libjvm.dylib                            0x0310f1e0 jio_snprintf + 39610
    6   libSystem.B.dylib                       0x98822259 _pthread_start + 345
    7   libSystem.B.dylib                       0x988220de thread_start + 34
    Thread 4:  Java: Gang worker#0 (Parallel GC Threads)
    0   libSystem.B.dylib                       0x987f4afa mach_msg_trap + 10
    1   libSystem.B.dylib                       0x987f5267 mach_msg + 68
    2   libjvm.dylib                            0x0310f93a jio_snprintf + 41492
    3   libjvm.dylib                            0x0310f876 jio_snprintf + 41296
    4   libjvm.dylib                            0x0310f73c jio_snprintf + 40982
    5   libjvm.dylib                            0x0310f281 jio_snprintf + 39771
    6   libjvm.dylib                            0x0310f10b jio_snprintf + 39397
    7   libjvm.dylib                            0x03126bad jio_vsnprintf + 404
    8   libjvm.dylib                            0x03126a97 jio_vsnprintf + 126
    9   libjvm.dylib                            0x0310f1e0 jio_snprintf + 39610
    10  libSystem.B.dylib                       0x98822259 _pthread_start + 345
    11  libSystem.B.dylib                       0x988220de thread_start + 34
    Thread 5:  Java: Gang worker#1 (Parallel GC Threads)
    0   libSystem.B.dylib                       0x987f4afa mach_msg_trap + 10
    1   libSystem.B.dylib                       0x987f5267 mach_msg + 68
    2   libjvm.dylib                            0x0310f93a jio_snprintf + 41492
    3   libjvm.dylib                            0x0310f876 jio_snprintf + 41296
    4   libjvm.dylib                            0x0310f73c jio_snprintf + 40982
    5   libjvm.dylib                            0x0310f281 jio_snprintf + 39771
    6   libjvm.dylib                            0x0310f10b jio_snprintf + 39397
    7   libjvm.dylib                            0x03126bad jio_vsnprintf + 404
    8   libjvm.dylib                            0x03126a97 jio_vsnprintf + 126
    9   libjvm.dylib                            0x0310f1e0 jio_snprintf + 39610
    10  libSystem.B.dylib                       0x98822259 _pthread_start + 345
    11  libSystem.B.dylib                       0x988220de thread_start + 34
    Thread 6:  Java: Gang worker#2 (Parallel GC Threads)
    0   libSystem.B.dylib                       0x987f4afa mach_msg_trap + 10
    1   libSystem.B.dylib                       0x987f5267 mach_msg + 68
    2   libjvm.dylib                            0x0310f93a jio_snprintf + 41492
    3   libjvm.dylib                            0x0310f876 jio_snprintf + 41296
    4   libjvm.dylib                            0x0310f73c jio_snprintf + 40982
    5   libjvm.dylib                            0x0310f281 jio_snprintf + 39771
    6   libjvm.dylib                            0x0310f10b jio_snprintf + 39397
    7   libjvm.dylib                            0x03126bad jio_vsnprintf + 404
    8   libjvm.dylib                            0x03126a97 jio_vsnprintf + 126
    9   libjvm.dylib                            0x0310f1e0 jio_snprintf + 39610
    10  libSystem.B.dylib                       0x98822259 _pthread_start + 345
    11  libSystem.B.dylib                       0x988220de thread_start + 34
    Thread 7:  Java: Gang worker#3 (Parallel GC Threads)
    0   libSystem.B.dylib                       0x987f4afa mach_msg_trap + 10
    1   libSystem.B.dylib                       0x987f5267 mach_msg + 68
    2   libjvm.dylib                            0x0310f93a jio_snprintf + 41492
    3   libjvm.dylib                            0x0310f876 jio_snprintf + 41296
    4   libjvm.dylib                            0x0310f73c jio_snprintf + 40982
    5   libjvm.dylib                            0x0310f281 jio_snprintf + 39771
    6   libjvm.dylib                            0x0310f10b jio_snprintf + 39397
    7   libjvm.dylib                            0x03126bad jio_vsnprintf + 404
    8   libjvm.dylib                            0x03126a97 jio_vsnprintf + 126
    9   libjvm.dylib                            0x0310f1e0 jio_snprintf + 39610
    10  libSystem.B.dylib                       0x98822259 _pthread_start + 345
    11  libSystem.B.dylib                       0x988220de thread_start + 34
    Thread 8:  Java: Concurrent Mark-Sweep GC Thread
    0   libSystem.B.dylib                       0x987f4afa mach_msg_trap + 10
    1   libSystem.B.dylib                       0x987f5267 mach_msg + 68
    2   libjvm.dylib                            0x0310fa0a jio_snprintf + 41700
    3   libjvm.dylib                            0x0312d51e jio_vsnprintf + 27397
    4   libjvm.dylib                            0x0310f758 jio_snprintf + 41010
    5   libjvm.dylib                            0x0310f281 jio_snprintf + 39771
    6   libjvm.dylib                            0x0310f10b jio_snprintf + 39397
    7   libjvm.dylib                            0x0323a949 JVM_GetMethodIxExceptionTableEntry + 2250
    8   libjvm.dylib                            0x0323a8b7 JVM_GetMethodIxExceptionTableEntry + 2104
    9   libjvm.dylib                            0x0312d339 jio_vsnprintf + 26912
    10  libjvm.dylib                            0x0310f1e0 jio_snprintf + 39610
    11  libSystem.B.dylib                       0x98822259 _pthread_start + 345
    12  libSystem.B.dylib                       0x988220de thread_start + 34
    Thread 9:  Java: VM Thread
    0   libSystem.B.dylib                       0x987f4afa mach_msg_trap + 10
    1   libSystem.B.dylib                       0x987f5267 mach_msg + 68
    2   libjvm.dylib                            0x0310fa0a jio_snprintf + 41700
    3   libjvm.dylib                            0x0312d51e jio_vsnprintf + 27397
    4   libjvm.dylib                            0x0310f758 jio_snprintf + 41010
    5   libjvm.dylib                            0x0310f281 jio_snprintf + 39771
    6   libjvm.dylib                            0x0310f10b jio_snprintf + 39397
    7   libjvm.dylib                            0x031a8280 JVM_Lseek + 202468
    8   libjvm.dylib                            0x031a7f1f JVM_Lseek + 201603
    9   libjvm.dylib                            0x0310f1e0 jio_snprintf + 39610
    10  libSystem.B.dylib                       0x98822259 _pthread_start + 345
    11  libSystem.B.dylib                       0x988220de thread_start + 34
    Thread 10:  Java: Reference Handler
    0   libSystem.B.dylib                       0x987f4afa mach_msg_trap + 10
    1   libSystem.B.dylib                       0x987f5267 mach_msg + 68
    2   libjvm.dylib                            0x0310f93a jio_snprintf + 41492
    3   libjvm.dylib                            0x0310f876 jio_snprintf + 41296
    4   libjvm.dylib                            0x031b73e4 JVM_MonitorWait + 3810
    5   libjvm.dylib                            0x031b68e6 JVM_MonitorWait + 996
    6   libjvm.dylib                            0x031b65d5 JVM_MonitorWait + 211
    7   libjvmlinkage.dylib                     0x000a7e75 JVM_MonitorWait + 69
    8   ???                                     0x0400b9d9 0 + 67156441
    9   ???                                     0x04003e31 0 + 67124785
    10  ???                                     0x04003e31 0 + 67124785
    11  ???                                     0x04001374 0 + 67113844
    12  libjvm.dylib                            0x031a95eb JVM_Lseek + 207439
    13  libjvm.dylib                            0x031a935f JVM_Lseek + 206787
    14  libjvm.dylib                            0x031b627d JVM_StartThread + 3057
    15  libjvm.dylib                            0x031b6105 JVM_StartThread + 2681
    16  libjvm.dylib                            0x031b6084 JVM_StartThread + 2552
    17  libjvm.dylib                            0x031b5ed1 JVM_StartThread + 2117
    18  libjvm.dylib                            0x031b5d07 JVM_StartThread + 1659
    19  libjvm.dylib                            0x0310f1e0 jio_snprintf + 39610
    20  libSystem.B.dylib                       0x98822259 _pthread_start + 345
    21  libSystem.B.dylib                       0x988220de thread_start + 34
    Thread 11:  Java: Finalizer
    0   libSystem.B.dylib                       0x987f4afa mach_msg_trap + 10
    1   libSystem.B.dylib                       0x987f5267 mach_msg + 68
    2   libjvm.dylib                            0x0310f93a jio_snprintf + 41492
    3   libjvm.dylib                            0x0310f876 jio_snpr

    Hi Baltwo! Still got the same problem, here are the new crash report from today. Thanks for any help.
    Process:         Cyberduck [922]
    Path:            /Applications/Cyberduck.app/Contents/MacOS/Cyberduck
    Identifier:      ch.sudo.cyberduck
    Version:         3.8.1 (7954) (7954)
    Code Type:       X86 (Native)
    Parent Process:  launchd [193]
    Date/Time:       2013-12-05 14:47:07.791 +0100
    OS Version:      Mac OS X 10.6.8 (10K549)
    Report Version:  6
    Interval Since Last Report:          1085717 sec
    Crashes Since Last Report:           5
    Per-App Interval Since Last Report:  8 sec
    Per-App Crashes Since Last Report:   2
    Anonymous UUID:                      EB51A53D-3105-4581-B742-7968A27D2CD7
    Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes: KERN_INVALID_ADDRESS at 0x000000002d782f65
    Crashed Thread:  0  Dispatch queue: com.apple.main-thread
    Application Specific Information:
    objc_msgSend() selector name: retain
    Java information:
    Exception type: Bus Error (0xa) at pc=0000000099049f8b
    Java VM: Java HotSpot(TM) Client VM (20.65-b04-462 mixed mode macosx-x86)
    Current thread (0000000004001800):  JavaThread "main" [_thread_in_native, id=-1599740608, stack(00000000bf800000,00000000c0000000)]
    Stack: [00000000bf800000,00000000c0000000]
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    j  com.sun.jna.Function.invokeVoid(I[Ljava/lang/Object;)V+0
    j  com.sun.jna.Function.invoke([Ljava/lang/Object;Ljava/lang/Class;Z)Ljava/lang/Ob ject;+45
    J  com.sun.jna.Function.invoke(Ljava/lang/Class;[Ljava/lang/Object;Ljava/util/Map; )Ljava/lang/Object;
    j  org.rococoa.internal.MsgSendHandler.invoke(Ljava/lang/Object;Ljava/lang/reflect /Method;[Ljava/lang/Object;)Ljava/lang/Object;+76
    j  com.sun.jna.Library$Handler.invoke(Ljava/lang/Object;Ljava/lang/reflect/Method; [Ljava/lang/Object;)Ljava/lang/Object;+320
    j  com.sun.proxy.$Proxy0.syntheticSendMessage(Ljava/lang/Class;Lorg/rococoa/ID;Lor g/rococoa/Selector;[Ljava/lang/Object;)Ljava/lang/Object;+29
    j  org.rococoa.Foundation.send(Lorg/rococoa/ID;Lorg/rococoa/Selector;Ljava/lang/Cl ass;[Ljava/lang/Object;)Ljava/lang/Object;+61
    j  org.rococoa.Foundation.send(Lorg/rococoa/ID;Ljava/lang/String;Ljava/lang/Class; [Ljava/lang/Object;)Ljava/lang/Object;+7
    j  org.rococoa.internal.ObjCObjectInvocationHandler.sendOnThisOrMainThread(Ljava/l ang/reflect/Method;Lorg/rococoa/ID;Ljava/lang/String;Ljava/lang/Class;[Ljava/lan g/Object;)Ljava/lang/Object;+32
    j  org.rococoa.internal.ObjCObjectInvocationHandler.invokeCocoa(Ljava/lang/reflect /Method;[Ljava/lang/Object;)Ljava/lang/Object;+32
    j  org.rococoa.internal.ObjCObjectInvocationHandler.intercept(Ljava/lang/Object;Lj ava/lang/reflect/Method;[Ljava/lang/Object;Lnet/sf/cglib/proxy/MethodProxy;)Ljav a/lang/Object;+93
    j  ch.cyberduck.ui.cocoa.application.NSApplication$$ByRococoa.run()V+31
    j  ch.cyberduck.ui.cocoa.MainApplication.main([Ljava/lang/String;)V+174
    v  ~StubRoutines::call_stub
    j  sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/la ng/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0
    j  sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Objec t;)Ljava/lang/Object;+87
    j  sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/O bject;)Ljava/lang/Object;+6
    j  java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lan g/Object;+161
    j  apple.launcher.LaunchRunner.run()V+76
    j  apple.launcher.LaunchRunner.callMain()V+1
    j  apple.launcher.JavaApplicationLauncher.launch(JJZ)V+11
    v  ~StubRoutines::call_stub
    Java Threads: ( => current thread )
      0000000005a47c00 JavaThread "Thread-5" [_thread_in_native, id=-1310605312, stack(00000000b1d1c000,00000000b1e1c000)]
      0000000005a47000 JavaThread "Thread-4" [_thread_in_native, id=-1311662080, stack(00000000b1c1a000,00000000b1d1a000)]
      0000000005a45c00 JavaThread "Thread-3" [_thread_in_native, id=-1312718848, stack(00000000b1b18000,00000000b1c18000)]
      0000000005a45400 JavaThread "Thread-2" [_thread_in_native, id=-1313775616, stack(00000000b1a16000,00000000b1b16000)]
      0000000004021c00 JavaThread "pool-1-thread-7" [_thread_in_native, id=-1314832384, stack(00000000b1914000,00000000b1a14000)]
      00000000128c2c00 JavaThread "pool-1-thread-6" [_thread_in_native, id=-1315889152, stack(00000000b1812000,00000000b1912000)]
      0000000005a42000 JavaThread "pool-1-thread-5" [_thread_in_native, id=-1316945920, stack(00000000b1710000,00000000b1810000)]
      00000000128c1c00 JavaThread "pool-1-thread-4" [_thread_in_native, id=-1318002688, stack(00000000b160e000,00000000b170e000)]
      00000000128c0c00 JavaThread "pool-1-thread-3" [_thread_in_native, id=-1319059456, stack(00000000b150c000,00000000b160c000)]
      000000000539f800 JavaThread "pool-1-thread-2" [_thread_in_native, id=-1320116224, stack(00000000b140a000,00000000b150a000)]
      000000000539f000 JavaThread "pool-1-thread-1" [_thread_in_native, id=-1321172992, stack(00000000b1308000,00000000b1408000)]
      0000000005958000 JavaThread "Poller SunPKCS11-Darwin" daemon [_thread_blocked, id=-1325264896, stack(00000000b0f21000,00000000b1021000)]
      0000000005023400 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=-1327378432, stack(00000000b0d1d000,00000000b0e1d000)]
      0000000005022400 JavaThread "C1 CompilerThread0" daemon [_thread_blocked, id=-1328435200, stack(00000000b0c1b000,00000000b0d1b000)]
      0000000005021400 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=-1329491968, stack(00000000b0b19000,00000000b0c19000)]
      0000000005020400 JavaThread "Surrogate Locker Thread (Concurrent GC)" daemon [_thread_blocked, id=-1330548736, stack(00000000b0a17000,00000000b0b17000)]
      0000000004002c00 JavaThread "Finalizer" daemon [_thread_in_vm, id=-1331605504, stack(00000000b0915000,00000000b0a15000)]
      0000000005015400 JavaThread "Reference Handler" daemon [_thread_blocked, id=-1332662272, stack(00000000b0813000,00000000b0913000)]
    =>0000000004001800 JavaThread "main" [_thread_in_native, id=-1599740608, stack(00000000bf800000,00000000c0000000)]
    Other Threads:
      0000000005012c00 VMThread [stack: 00000000b0711000,00000000b0811000] [id=-1333719040]
      0000000005024c00 WatcherThread [stack: 00000000b0e1f000,00000000b0f1f000] [id=-1326321664]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    par new generation   total 14784K, used 6489K [0000000008010000, 0000000009010000, 0000000009010000)
      eden space 13184K,  39% used [0000000008010000, 000000000851a300, 0000000008cf0000)
      from space 1600K,  83% used [0000000008e80000, 0000000008fcc3d8, 0000000009010000)
      to   space 1600K,   0% used [0000000008cf0000, 0000000008cf0000, 0000000008e80000)
    concurrent mark-sweep generation total 49152K, used 7608K [0000000009010000, 000000000c010000, 000000000e010000)
    concurrent-mark-sweep perm gen total 25560K, used 18655K [000000000e010000, 000000000f906000, 0000000012010000)
    Code Cache  [0000000006001000, 00000000061e2000, 0000000008001000)
    total_blobs=867 nmethods=723 adapters=88 free_code_cache=31601856 largest_free_block=256
    Virtual Machine Arguments:
    JVM Args: -Xbootclasspath/a:/System/Library/PrivateFrameworks/JavaApplicationLauncher.fra mework/Resources/LauncherSupport.jar -Dfile.encoding=utf-8
    Java Command: <unknown>
    Launcher Type: generic
    Physical Memory: Page Size = 4k, Total = 3968M, Free = 495M
    Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
    0   libobjc.A.dylib                         0x99049f8b objc_msgSend + 27
    1   org.andymatuschak.Sparkle               0x037d840a -[SUUpdater newVersionAvailable] + 48
    2   org.andymatuschak.Sparkle               0x037d8721 -[SUUpdater appcastDidFinishLoading:] + 713
    3   com.apple.Foundation                    0x97a3c671 __NSThreadPerformPerform + 506
    4   com.apple.CoreFoundation                0x9028f42b __CFRunLoopDoSources0 + 1563
    5   com.apple.CoreFoundation                0x9028ceef __CFRunLoopRun + 1071
    6   com.apple.CoreFoundation                0x9028c3c4 CFRunLoopRunSpecific + 452
    7   com.apple.CoreFoundation                0x9028c1f1 CFRunLoopRunInMode + 97
    8   com.apple.HIToolbox                     0x9a5eae04 RunCurrentEventLoopInMode + 392
    9   com.apple.HIToolbox                     0x9a5eaaf5 ReceiveNextEventCommon + 158
    10  com.apple.HIToolbox                     0x9a5eaa3e BlockUntilNextEventMatchingListInMode + 81
    11  com.apple.AppKit                        0x90952595 _DPSNextEvent + 847
    12  com.apple.AppKit                        0x90951dd6 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 156
    13  com.apple.AppKit                        0x909141f3 -[NSApplication run] + 821
    14  jna7892181922294996304.tmp              0x037acf1d .LCFI1 + 26
    15  jna7892181922294996304.tmp              0x037acc81 ffi_call + 97
    16  jna7892181922294996304.tmp              0x037a372e dispatch + 574
    17  jna7892181922294996304.tmp              0x037a4107 Java_com_sun_jna_Function_invokeVoid + 55
    18  ???                                     0x0600b9d9 0 + 100710873
    19  ???                                     0x06003e31 0 + 100679217
    20  ???                                     0x06119904 0 + 101816580
    21  ???                                     0x06004473 0 + 100680819
    22  ???                                     0x06004473 0 + 100680819
    23  ???                                     0x06004473 0 + 100680819
    24  ???                                     0x06003f97 0 + 100679575
    25  ???                                     0x06003f97 0 + 100679575
    26  ???                                     0x06003f97 0 + 100679575
    27  ???                                     0x06003f97 0 + 100679575
    28  ???                                     0x06004473 0 + 100680819
    29  ???                                     0x06003e31 0 + 100679217
    30  ???                                     0x06001374 0 + 100668276
    31  libjvm.dylib                            0x032a95eb JVM_Lseek + 207439
    32  libjvm.dylib                            0x032a935f JVM_Lseek + 206787
    33  libjvm.dylib                            0x032a9333 JVM_Lseek + 206743
    34  libjvm.dylib                            0x032c2ff1 JVM_NewInstanceFromConstructor + 3647
    35  libjvm.dylib                            0x032c4500 JVM_InvokeMethod + 1096
    36  libjvm.dylib                            0x032c4242 JVM_InvokeMethod + 394
    37  libjvmlinkage.dylib                     0x000ac74f JVM_InvokeMethod + 79
    38  libjava.jnilib                          0x0070217e Java_sun_reflect_NativeMethodAccessorImpl_invoke0 + 38
    39  ???                                     0x0600b9d9 0 + 100710873
    40  ???                                     0x06003f97 0 + 100679575
    41  ???                                     0x06003f97 0 + 100679575
    42  ???                                     0x06004473 0 + 100680819
    43  ???                                     0x06003f97 0 + 100679575
    44  ???                                     0x06003e31 0 + 100679217
    45  ???                                     0x06003e31 0 + 100679217
    46  ???                                     0x06001374 0 + 100668276
    47  libjvm.dylib                            0x032a95eb JVM_Lseek + 207439
    48  libjvm.dylib                            0x032a935f JVM_Lseek + 206787
    49  libjvm.dylib                            0x032a9333 JVM_Lseek + 206743
    50  libjvm.dylib                            0x032cfda3 JVM_FindLoadedClass + 7826
    51  libjvm.dylib                            0x0333b84c JNI_GetCreatedJavaVMs_Impl + 2538
    52  ...ple.JavaApplicationLauncher          0x00008f1a JNIEnv_::CallStaticVoidMethod(_jclass*, _jmethodID*, ...) + 44
    53  ...ple.JavaApplicationLauncher          0x00008deb CallAppLauncherMain(JNIEnv_*, __CFDictionary const*, __CFArray const*) + 286
    54  ...ple.JavaApplicationLauncher          0x000083d4 startJavaApplication + 3265
    55  ...ple.JavaApplicationLauncher          0x000097c6 launchJavaApplicationWithJVMInfo + 1306
    56  ...ple.JavaApplicationLauncher          0x00006c07 launchJavaApplication + 39
    57  ch.sudo.cyberduck                       0x00001e36 0x1000 + 3638
    58  ch.sudo.cyberduck                       0x00001c59 0x1000 + 3161
    59  ch.sudo.cyberduck                       0x00001b88 0x1000 + 2952
    Thread 1:  Dispatch queue: com.apple.libdispatch-manager
    0   libSystem.B.dylib                       0x9881b382 kevent + 10
    1   libSystem.B.dylib                       0x9881ba9c _dispatch_mgr_invoke + 215
    2   libSystem.B.dylib                       0x9881af59 _dispatch_queue_invoke + 163
    3   libSystem.B.dylib                       0x9881acfe _dispatch_worker_thread2 + 240
    4   libSystem.B.dylib                       0x9881a781 _pthread_wqthread + 390
    5   libSystem.B.dylib                       0x9881a5c6 start_wqthread + 30
    Thread 2:
    0   libSystem.B.dylib                       0x9881a412 __workq_kernreturn + 10
    1   libSystem.B.dylib                       0x9881a9a8 _pthread_wqthread + 941
    2   libSystem.B.dylib                       0x9881a5c6 start_wqthread + 30
    Thread 3:  Java: Exception Handler Thread
    0   libSystem.B.dylib                       0x987f4afa mach_msg_trap + 10
    1   libSystem.B.dylib                       0x987f5267 mach_msg + 68
    2   libSystem.B.dylib                       0x98860c78 mach_msg_server + 520
    3   libjvm.dylib                            0x032108d0 jio_snprintf + 45482
    4   libjvm.dylib                            0x03210757 jio_snprintf + 45105
    5   libjvm.dylib                            0x0320f1e0 jio_snprintf + 39610
    6   libSystem.B.dylib                       0x98822259 _pthread_start + 345
    7   libSystem.B.dylib                       0x988220de thread_start + 34
    Thread 4:  Java: Gang worker#0 (Parallel GC Threads)
    0   libSystem.B.dylib                       0x987f4afa mach_msg_trap + 10
    1   libSystem.B.dylib                       0x987f5267 mach_msg + 68
    2   libjvm.dylib                            0x0320f93a jio_snprintf + 41492
    3   libjvm.dylib                            0x0320f876 jio_snprintf + 41296
    4   libjvm.dylib                            0x0320f73c jio_snprintf + 40982
    5   libjvm.dylib                            0x0320f281 jio_snprintf + 39771
    6   libjvm.dylib                            0x0320f10b jio_snprintf + 39397
    7   libjvm.dylib                            0x03226bad jio_vsnprintf + 404
    8   libjvm.dylib                            0x03226a97 jio_vsnprintf + 126
    9   libjvm.dylib                            0x0320f1e0 jio_snprintf + 39610
    10  libSystem.B.dylib                       0x98822259 _pthread_start + 345
    11  libSystem.B.dylib                       0x988220de thread_start + 34
    Thread 5:  Java: Gang worker#1 (Parallel GC Threads)
    0   libSystem.B.dylib                       0x987f4afa mach_msg_trap + 10
    1   libSystem.B.dylib                       0x987f5267 mach_msg + 68
    2   libjvm.dylib                            0x0320f93a jio_snprintf + 41492
    3   libjvm.dylib                            0x0320f876 jio_snprintf + 41296
    4   libjvm.dylib                            0x0320f73c jio_snprintf + 40982
    5   libjvm.dylib                            0x0320f281 jio_snprintf + 39771
    6   libjvm.dylib                            0x0320f10b jio_snprintf + 39397
    7   libjvm.dylib                            0x03226bad jio_vsnprintf + 404
    8   libjvm.dylib                            0x03226a97 jio_vsnprintf + 126
    9   libjvm.dylib                            0x0320f1e0 jio_snprintf + 39610
    10  libSystem.B.dylib                       0x98822259 _pthread_start + 345
    11  libSystem.B.dylib                       0x988220de thread_start + 34
    Thread 6:  Java: Gang worker#2 (Parallel GC Threads)
    0   libSystem.B.dylib                       0x987f4afa mach_msg_trap + 10
    1   libSystem.B.dylib                       0x987f5267 mach_msg + 68
    2   libjvm.dylib                            0x0320f93a jio_snprintf + 41492
    3   libjvm.dylib                            0x0320f876 jio_snprintf + 41296
    4   libjvm.dylib                            0x0320f73c jio_snprintf + 40982
    5   libjvm.dylib                            0x0320f281 jio_snprintf + 39771
    6   libjvm.dylib                            0x0320f10b jio_snprintf + 39397
    7   libjvm.dylib                            0x03226bad jio_vsnprintf + 404
    8   libjvm.dylib                            0x03226a97 jio_vsnprintf + 126
    9   libjvm.dylib                            0x0320f1e0 jio_snprintf + 39610
    10  libSystem.B.dylib                       0x98822259 _pthread_start + 345
    11  libSystem.B.dylib                       0x988220de thread_start + 34
    Thread 7:  Java: Gang worker#3 (Parallel GC Threads)
    0   libSystem.B.dylib                       0x987f4afa mach_msg_trap + 10
    1   libSystem.B.dylib                       0x987f5267 mach_msg + 68
    2   libjvm.dylib                            0x0320f93a jio_snprintf + 41492
    3   libjvm.dylib                            0x0320f876 jio_snprintf + 41296
    4   libjvm.dylib                            0x0320f73c jio_snprintf + 40982
    5   libjvm.dylib                            0x0320f281 jio_snprintf + 39771
    6   libjvm.dylib                            0x0320f10b jio_snprintf + 39397
    7   libjvm.dylib                            0x03226bad jio_vsnprintf + 404
    8   libjvm.dylib                            0x03226a97 jio_vsnprintf + 126
    9   libjvm.dylib                            0x0320f1e0 jio_snprintf + 39610
    10  libSystem.B.dylib                       0x98822259 _pthread_start + 345
    11  libSystem.B.dylib                       0x988220de thread_start + 34
    Thread 8:  Java: Concurrent Mark-Sweep GC Thread
    0   libSystem.B.dylib                       0x987f4afa mach_msg_trap + 10
    1   libSystem.B.dylib                       0x987f5267 mach_msg + 68
    2   libjvm.dylib                            0x0320fa0a jio_snprintf + 41700
    3   libjvm.dylib                            0x0322d51e jio_vsnprintf + 27397
    4   libjvm.dylib                            0x0320f758 jio_snprintf + 41010
    5   libjvm.dylib                            0x0320f281 jio_snprintf + 39771
    6   libjvm.dylib                            0x0320f10b jio_snprintf + 39397
    7   libjvm.dylib                            0x0333a949 JVM_GetMethodIxExceptionTableEntry + 2250
    8   libjvm.dylib                            0x0333a8b7 JVM_GetMethodIxExceptionTableEntry + 2104
    9   libjvm.dylib                            0x0322d339 jio_vsnprintf + 26912
    10  libjvm.dylib                            0x0320f1e0 jio_snprintf + 39610
    11  libSystem.B.dylib                       0x98822259 _pthread_start + 345
    12  libSystem.B.dylib                       0x988220de thread_start + 34
    Thread 9:  Java: VM Thread
    0   libSystem.B.dylib                       0x987f4afa mach_msg_trap + 10
    1   libSystem.B.dylib                       0x987f5267 mach_msg + 68
    2   libjvm.dylib                            0x0320fa0a jio_snprintf + 41700
    3   libjvm.dylib                            0x0322d51e jio_vsnprintf + 27397
    4   libjvm.dylib                            0x0320f758 jio_snprintf + 41010
    5   libjvm.dylib                            0x0320f281 jio_snprintf + 39771
    6   libjvm.dylib                            0x0320f10b jio_snprintf + 39397
    7   libjvm.dylib                            0x032a8280 JVM_Lseek + 202468
    8   libjvm.dylib                            0x032a7f1f JVM_Lseek + 201603
    9   libjvm.dylib                            0x0320f1e0 jio_snprintf + 39610
    10  libSystem.B.dylib                       0x98822259 _pthread_start + 345
    11  libSystem.B.dylib                       0x988220de thread_start + 34
    Thread 10:  Java: Reference Handler
    0   libSystem.B.dylib                       0x987f4afa mach_msg_trap + 10
    1   libSystem.B.dylib                       0x987f5267 mach_msg + 68
    2   libjvm.dylib                            0x0320f93a jio_snprintf + 41492
    3   libjvm.dylib                            0x0320f876 jio_snprintf + 41296
    4   libjvm.dylib                            0x032b73e4 JVM_MonitorWait + 3810
    5   libjvm.dylib                            0x032b68e6 JVM_MonitorWait + 996
    6   libjvm.dylib                            0x032b65d5 JVM_MonitorWait + 211
    7   libjvmlinkage.dylib                     0x000a7e75 JVM_MonitorWait + 69
    8   ???                                     0x0600b9d9 0 + 100710873
    9   ???                                     0x06003e31 0 + 100679217
    10  ???                                     0x06003e31 0 + 100679217
    11  ???                                     0x06001374 0 + 100668276
    12  libjvm.dylib                            0x032a95eb JVM_Lseek + 207439
    13  libjvm.dylib                            0x032a935f JVM_Lseek + 206787
    14  libjvm.dylib                            0x032b627d JVM_StartThread + 3057
    15  libjvm.dylib                            0x032b6105 JVM_StartThread + 2681
    16  libjvm.dylib                            0x032b6084 JVM_StartThread + 2552
    17  libjvm.dylib                            0x032b5ed1 JVM_StartThread + 2117
    18  libjvm.dylib                            0x032b5d07 JVM_StartThread + 1659
    19  libjvm.dylib                            0x0320f1e0 jio_snprintf + 39610
    20  libSystem.B.dylib                       0x98822259 _pthread_start + 345
    21  libSystem.B.dylib                       0x988220de thread_start + 34
    Thread 11:  Java: Finalizer
    0   libjvm.dylib                            0x033376ca JVM_DefineClassWithSourceCond + 1718
    1   libjvm.dylib                            0x0327bd4c JVM_Lseek + 20912
    2   libjvm.dylib                            0x0327a3e9 JVM_Lseek + 14413
    3   libjvm.dylib                            0x03277453 JVM_Lseek + 2231
    4   libjvm.dylib                            0x03337434 JVM_DefineClassWithSourceCond + 1056
    5   libjvm.dylib                            0x033372e1 JVM_DefineClassWithSourceCond + 717
    6   libjvm.dylib                            0x03337081 JVM_DefineClassWithSourceCond + 109
    7   libjvmlinkage.dylib                     0x000a982c JVM_DefineClassWithSourceCond + 188
    8   libjava.jnilib                          0x00703be6 Java_java_lang_ClassLoader_defineClass1 + 452
    9   ???                                     0x0600b9d9 0 + 100710873
    10  ???                                     0x06003f97 0 + 100679575
    11  ???                                     0x06003f97 0 + 100679575
    12  ???                                     0x06003f97 0 + 100679575
    13  ???                                     0x06164480 0 + 102122624
    14  ???                                     0x06003f97 0 + 100679575
    15  ???                                     0x06003f97 0 + 100679575
    16  ???                                     0x06003f97 0 + 100679575
    17  ???                                     0x06003f97 0 + 100679575
    18  ???                                     0x061535c8 0 + 102053320
    19  ???                                     0x06001374 0 + 100668276
    20  libjvm.dylib                            0x032a95eb JVM_Lseek + 207439
    21  libjvm.dylib                            0x032a935f JVM_Lseek + 206787
    22  libjvm.dylib                            0x032a9333 JVM_Lseek + 206743
    23  libjvm.dylib                            0x032b9137 JVM_MonitorWait + 11317
    24  libjvm.dylib                            0x0333bbec JVM_MonitorNotifyAll + 838
    25  libjava.jnilib                          0x00704fa1 Java_java_lang_ref_Finalizer_invokeFinalizeMethod + 97
    26  ???                                     0x061883ae 0 + 102269870
    27  ???                                     0x061899e0 0 + 102275552
    28  ???                                     0x06001374 0 + 100668276
    29  libjvm.dylib                            0x032a95eb JVM_Lseek + 207439
    30  libjvm.dylib                            0x032a935f JVM_Lseek + 206787
    31  libjvm.dylib                            0x032b627d JVM_StartThread + 3057
    32  libjvm.dylib                            0x032b6105 JVM_StartThread + 2681
    33  libjvm.dylib                            0x032b6084 JVM_StartThread + 2552
    34  libjvm.dylib                            0x032b5ed1 JVM_StartThread + 2117
    35  libjvm.dylib                            0x032b5d07 JVM_StartThread + 1659
    36  libjvm.dylib                            0x0320f1e0 jio_snprintf + 39610
    37  libSystem.B.dylib                       0x98822259 _pthread_start + 345
    38  libSystem.B.dylib                       0x988220de thread_start + 34
    Thread 12:  Java: Surrogate Locker Thread (Concurrent GC)
    0   libSystem.B.dylib                       0x987f4afa mach_msg_trap + 10
    1   libSystem.B.dylib                       0x987f5267 mach_msg + 68
    2   libjvm.dylib                            0x0320f93a jio_snprintf + 41492
    3   libjvm.dylib                            0x0320f876 jio_snprintf + 41296
    4   libjvm.dylib                            0x0320f73c jio_snprintf + 40982
    5   libjvm.dylib                            0x0320f281 jio_snprintf + 39771
    6   libjvm.dylib                            0x0320f04e jio_snprintf + 39208
    7   libjvm.dylib                            0x032c7fe4 JVM_IsPrimitiveClass + 3308
    8   libjvm.dylib                            0x032c7f28 JVM_IsPrimitiveClass + 3120
    9   libjvm.dylib                            0x032b5ed1 JVM_StartThread + 2117
    10  libjvm.dylib                            0x032b5d07 JVM_StartThread + 1659
    11  libjvm.dylib                            0x0320f1e0 jio_snprintf + 39610
    12  libSystem.B.dylib                       0x98822259 _pthread_start + 345
    13  libSystem.B.dylib                       0x988220de thread_start + 34
    Thread 13:  Java: Signal Dispatcher
    0   libSystem.B.dylib                       0x987f4b36 semaphore_wait_trap + 10
    1   libjvm.dylib                            0x032c88d2 JVM_IsPrimitiveClass + 5594
    2   libjvm.dylib                            0x032c82a8 JVM_IsPrimitiveClass + 4016
    3   libjvm.dylib                            0x032b5ed1 JVM_StartThread + 2117
    4   libjvm.dylib                            0x032b5d07 JVM_StartThread + 1659
    5   libjvm.dylib                            0x0320f1e0 jio_snprintf + 39610
    6   libSystem.B.dylib                       0x98822259 _pthread_start + 345
    7   libSystem.B.dylib                       0x988220de thread_start + 34
    Thread 14:  Java: C1 CompilerThread0
    0   libSystem.B.dylib                       0x987fb354 pthread_getspecific + 0
    1   libjvm.dylib                            0x034dad93 JVM_RaiseSignal + 544911
    2   libjvm.dylib                            0x032e4bfc JVM_Write + 84543
    3   libjvm.dylib                            0x032e4b59 JVM_Write + 84380
    4   libjvm.dylib                            0x032e4b25 JVM_Write + 84328
    5   libjvm.dylib                            0x032ea1ad JVM_Write + 106480
    6   libjvm.dylib                            0x032ebac3 JVM_Write + 112902
    7   libjvm.dylib                            0x03318273 JVM_Write + 295094
    8   libjvm.dylib                            0x032e7cb5 JVM_Write + 97016
    9   libjvm.dylib                            0x032e5385 JVM_Write + 86472
    10  libjvm.dylib                            0x032e52e9 JVM_Write + 86316
    11  libjvm.dylib                            0x032e0b81 JVM_Write + 68036
    12  libjvm.dylib                            0x032e0984 JVM_Write + 67527
    13  libjvm.dylib                            0x032e03b3 JVM_Write + 66038
    14  libjvm.dylib                            0x032e027e JVM_Write + 65729
    15  libjvm.dylib                            0x032e0213 JVM_Write + 65622
    16  libjvm.dylib                            0x032e00c7 JVM_Write + 65290
    17  libjvm.dylib                            0x032dff00 JVM_Write + 64835
    18  libjvm.dylib                            0x032df80a JVM_Write + 63053
    19  libjvm.dylib                            0x032df642 JVM_Write + 62597
    20  libjvm.dylib                            0x032df48b JVM_Write + 62158
    21  libjvm.dylib                            0x032d2352 JVM_Write + 8597
    22  libjvm.dylib                            0x032d0950 JVM_Write + 1939
    23  libjvm.dylib                            0x032c9a14 JVM_IsPrimitiveClass + 10012
    24  libjvm.dylib                            0x032c9862 JVM_IsPrimitiveClass + 9578
    25  libjvm.dylib                            0x032b5ed1 JVM_StartThread + 2117
    26  libjvm.dylib                            0x032b5d07 JVM_StartThread + 1659
    27  libjvm.dylib                            0x0320f1e0 jio_snprintf + 39610
    28  libSystem.B.dylib                       0x98822259 _pthread_start + 345
    29  libSystem.B.dylib                       0x988220de thread_start + 34
    Thread 15:  Java: Low Memory Detector
    0   libSystem.B.dylib                       0x987f4afa mach_msg_trap + 10
    1   libSystem.B.dylib                       0x987f5267 mach_msg + 68
    2   libjvm.dylib                            0x0320f93a jio_snprintf + 41492
    3   libjvm.dylib                            0x0320f876 jio_snprintf + 41296
    4   libjvm.dylib                            0x0320f73c jio_snprintf + 40982
    5   libjvm.dylib                            0x0320f281 jio_snprintf + 39771
    6   libjvm.dylib                            0x0320f10b jio_snprintf + 39397
    7   libjvm.dylib                            0x032ca7f8 JVM_IsPrimitiveClass + 13568
    8   libjvm.dylib                            0x032b5ed1 JVM_StartThread + 2117
    9   libjvm.dylib                            0x032b5d07 JVM_StartThread + 1659
    10  libjvm.dylib                            0x0320f1e0 jio_snprintf + 39610
    11  libSystem.B.dylib                       0x98822259 _pthread_start + 345
    12  libSystem.B.dylib                       0x988220de thread_start + 34
    Thread 16:  Java: VM Periodic Task Thread
    0   libSystem.B.dylib                       0x987f4afa mach_msg_trap + 10
    1   libSystem.B.dylib                       0x987f5267 mach_msg + 68
    2   libjvm.dylib                            0x0320fa0a jio_snprintf + 41700
    3   libjvm.dylib                            0x0322d51e jio_vsnprintf + 27397
    4   libjvm.dylib                            0x032cd3ad JVM_IsPrimitiveClass + 24757
    5   libjvm.dylib                            0x0320f1e0 jio_snprintf + 39610
    6   libSystem.B.dylib                       0x98822259 _pthread_start + 345
    7   libSystem.B.dylib                       0x988220de thread_start + 34
    Thread 17:  Java: Poller SunPKCS11-Darwin
    0   libSystem.B.dylib                       0x987f4afa mach_msg_trap + 10
    1   libSystem.B.dylib                       0x987f5267 mach_msg + 68
    2   libjvm.dylib                            0x0320fa0a jio_snprintf + 41700
    3   libjvm.dylib                            0x03345775 JVM_MonitorNotify + 923
    4   libjvm.dylib                            0x03348cae JVM_Sleep + 254
    5   libjvmlinkage.dylib                     0x000a8a68 JVM_Sleep + 72
    6   ???                                     0x0600b9d9 0 + 100710873
    7   ???                                     0x06003e31 0 + 100679217
    8   ???                                     0x0600430d 0 + 100680461
    9   ???                                     0x06001374 0 + 100668276
    10  libjvm.dylib                            0x032a95eb JVM_Lseek + 207439
    11  libjvm.dylib                            0x032a935f JVM_Lseek + 206787
    12  libjvm.dylib                            0x032b627d JVM_StartThread + 3057
    13  libjvm.dylib                            0x032b6105 JVM_StartThread + 2681
    14  libjvm.dylib                            0x032b6084 JVM_StartThread + 2552
    15  libjvm.dylib                            0x032b5ed1 JVM_StartThread + 2117
    16  libjvm.dylib                            0x032b5d07 JVM_StartThread + 1659
    17  libjvm.dylib                            0x0320f1e0 jio_snprintf + 39610
    18  libSystem.B.dylib                       0x98822259 _pthread_start + 345
    19  libSystem.B.dylib                       0x988220de thread_start + 34
    Thread 18:
    0   libSystem.B.dylib                       0x9881a412 __workq_kernreturn + 10
    1   libSystem.B.dylib                       0x9881a9a8 _pthread_wqthread + 941
    2   libSystem.B.dylib                       0x9881a5c6 start_wqthread + 30
    Thread 19:
    0   libSystem.B.dylib                       0x9881a412 __workq_kernreturn + 10
    1   libSystem.B.dylib                       0x9881a9a8 _pthread_wqthread + 941
    2   libSystem.B.dylib                       0x9881a5c6 start_wqthread + 30
    Thread 20:
    0   libSystem.B.dylib                       0x987f4afa mach_msg_trap + 10
    1   libSystem.B.dylib                       0x987f5267 mach_msg + 68
    2   com.apple.CoreFoundation                0x9028d2df __CFRunLoopRun + 2079
    3   com.apple.CoreFoundation                0x9028c3c4 CFRunLoopRunSpecific + 452
    4   com.apple.CoreFoundation                0x9028c1f1 CFRunLoopRunInMode + 97
    5   com.apple.Foundation                    0x97a5f224 +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:] + 329
    6   com.apple.Foundation                    0x97a264c4 -[NSThread main] + 45
    7   com.apple.Foundation                    0x97a26474 __NSThread__main__ + 1499
    8   libSystem.B.dylib                       0x98822259 _pthread_start + 345
    9   libSystem.B.dylib                       0x988220de thread_start + 34
    Thread 21:  com.apple.CFSocket.private
    0   libSystem.B.dylib                       0x98813ac6 select$DARWIN_EXTSN + 10
    1   com.apple.CoreFoundation                0x902ccc53 __CFSocketManager + 1091
    2   libSystem.B.dylib                       0x98822259 _pthread_start + 345
    3   libSystem.B.dylib                       0x988220de thread_start + 34
    Thread 22:
    0   libSystem.B.dylib                       0x9881a412 __workq_kernreturn + 10
    1   libSystem.B.dylib                       0x9881a9a8 _pthread_wqthread + 941
    2   libSystem.B.dylib                       0x9881a5c6 start_wqthread + 30
    Thread 23:
    0   libSystem.B.dylib                       0x98822aa2 __semwait_signal + 10
    1   libSystem.B.dylib                       0x9884e9c5 nanosleep$UNIX2003 + 188
    2   libSystem.B.dylib                       0x9884e903 usleep$UNIX2003 + 61
    3   com.apple.AppKit                        0x90abbe2d -[NSUIHeartBeat _heartBeatThread:] + 2039
    4   com.apple.Foundation                    0x97a264c4 -[NSThread main] + 45
    5   com.apple.Foundation                    0x97a26474 __NSThread__main__ + 1499
    6   libSystem.B.dylib                       0x98822259 _pthread_start + 345
    7   libSystem.B.dylib                       0x988220de thread_start + 34
    Thread 24:  Java: pool-1-thread-1
    0   libSystem.B.dylib                       0x98822aa2 __semwait_signal + 10
    1   libSystem.B.dylib                       0x9882275e _pthread_cond_wait + 1191
    2   libSystem.B.dylib                       0x988243f8 pthread_cond_wait$UNIX2003 + 73
    3   com.apple.Foundation                    0x97a4e6b3 -[NSCondition wait] + 316
    4   com.apple.Foundation                    0x97a3bd35 -[NSObject(NSThreadPerformAdditions) performSelector:onThread:withObject:waitUntilDone:modes:] + 1111
    5   com.apple.Foundation                    0x97a4e80f -[NSObject(NSThreadPerformAdditions) performSelectorOnMainThread:withObject:waitUntilDone:] + 184
    6   librococoa.dylib                        0x037be2c2 callOnMainThread + 143
    7   jna7892181922294996304.tmp              0x037acf1d .LCFI1 + 26
    8   jna7892181922294996304.tmp              0x037acc81 ffi_call + 97
    9   jna7892181922294996304.tmp              0x037a372e dispatch + 574
    10  jna7892181922294996304.tmp              0x037a4107 Java_com_sun_jna_Function_invokeVoid + 55
    11  ???                                     0x0600b9d9 0 + 100710873
    12  ???                                     0x061a42a4 0 + 102384292
    13  ???                                     0x0600430d 0 + 100680461
    14  ???                                     0x06003e31 0 + 100679217
    15  ???                                     0x06003e31 0 + 100679217
    16  ???                                     0x06003e31 0 + 100679217
    17  ???                                     0x06003e31 0 + 100679217
    18  ???                                     0x0600430d 0 + 100680461
    19  ???                                     0x06003e31 0 + 100679217
    20  ???                                     0x0600430d 0 + 100680461
    21  ???                                     0x06001374 0 + 100668276
    22  libjvm.dylib                            0x032a95eb JVM_Lseek + 207439
    23  libjvm.dylib                            0x032a935f JVM_Lseek + 206787
    24  libjvm.dylib                            0x032b627d JVM_StartThread + 3057
    25  libjvm.dylib                            0x032b6105 JVM_StartThread + 2681
    26  libjvm.dylib                            0x032b6084 JVM_StartThread + 2552
    27  libjvm.dylib                            0x032b5ed1 JVM_StartThread + 2117
    28  libjvm.dylib                            0x032b5d07 JVM_StartThread + 1659
    29  libjvm.dylib                            0x0320f1e0 jio_snprintf + 39610
    30  libSystem.B.dylib                       0x98822259 _pthread_start + 345
    31  libSystem.B.dylib                       0x988220de thread_start + 34
    Thread 25:  Java: pool-1-thread-2
    0   libjvm.dylib                            0x03276c6f JVM_Lseek + 211
    1   libjvm.dylib                            0x03361d58 JVM_NanoTime + 86113
    2   jna7892181922294996304.tmp              0x037a3e8b dispatch + 2459
    3   jna7892181922294996304.tmp              0x037a4197 Java_com_sun_jna_Function_invokeInt + 55
    4   ???                                     0x061ba0f7 0 + 102473975
    5   ???                                     0x061a4118 0 + 102383896
    6   ???                                     0x06004473 0 + 100680819
    7   ???                                     0x06003f97 0 + 100679575
    8   ???                                     0x061bad5c 0 + 102477148
    9   ???                                     0x06003f97 0 + 100679575
    10  ???                                     0x06004473 0 + 100680819
    11  ???                                     0x06003e31 0 + 100679217
    12  ???                                     0x06003e31 0 + 100679217
    13  ???                                     0x06003f97 0 + 100679575
    14  ???                                     0x06003f97 0 + 100679575
    15  ???                                     0x06004473 0 + 100680819
    16  ???                                     0x06003e31 0 + 100679217
    17  ???                                     0x06003e31 0 + 100679217
    18  ???                                     0x0600430d 0 + 100680461
    19  ???                                     0x0600430d 0 + 100680461
    20  ???                                     0x06003e31 0 + 100679217
    21  ???                                     0x0600430d 0 + 100680461
    22  ???                                     0x06001374 0 + 100668276
    23  libjvm.dylib                            0x032a95eb JVM_Lseek + 207439
    24  libjvm.dylib                            0x032a935f JVM_Lseek + 206787
    25  libjvm.dylib                            0x032b627d JVM_StartThread + 3057
    26  libjvm.dylib                            0x032b6105 JVM_StartThread + 2681
    27  libjvm.dylib                            0x032b6084 JVM_StartThread + 2552
    28  libjvm.dylib                            0x032b5ed1 JVM_StartThread + 2117
    29  libjvm.dylib                            0x032b5d07 JVM_StartThread + 1659
    30  libjvm.dylib                            0x0320f1e0 jio_snprintf + 39610
    31  libSystem.B.dylib                       0x98822259 _pthread_start + 345
    32  libSystem.B.dylib                       0x988220de thread_start + 34
    Thread 26:  Java: pool-1-thread-3
    0   libSystem.B.dylib                       0x987f4b42 semaphore_wait_signal_trap + 10
    1   libSystem.B.dylib                       0x987fa646 pthread_mutex_lock + 490
    2   com.apple.CoreFoundation                0x902958e3 CFPreferencesCopyAppValue + 35
    3   com.apple.Foundation                    0x97a19c56 -[NSUserDefaults(NSUserDefaults) objectForKey:] + 36
    4   jna7892181922294996304.tmp              0x037acf1d .LCFI1 + 26
    5   jna7892181922294996304.tmp              0x037acc81 ffi_call + 97
    6   jna7892181922294996304.tmp              0x037a372e dispatch + 574
    7   jna7892181922294996304.tmp              0x037a4197 Java_com_sun_jna_Function_invokeInt + 55
    8   ???                                     0x061ba0f7 0 + 102473975
    9   ???                                     0x061a4118 0 + 102383896
    10  ???                                     0x06003f97 0 + 100679575
    11  ???                                     0x06003f97 0 + 100679575
    12  ???                                     0x0600405d 0 + 100679773
    13  ???                                     0x06003e31 0 + 100679217
    14  ???                                     0x06003e31 0 + 100679217
    15  ???                                     0x06003e31 0 + 100679217
    16  ???                                     0x06003f97 0 + 100679575
    17  ???                                     0x06003f97 0 + 100679575
    18  ???                                     0x06004473 0 + 100680819
    19  ???                                     0x06003e31 0 + 100679217
    20  ???                                     0x0600430d 0 + 100680461
    21  ???                                     0x0600430d 0 + 100680461
    22  ???                                     0x06003e31 0 + 100679217
    23  ???                                     0x0600430d 0 + 100680461
    24  ???                                     0x06001374 0 + 100668276
    25  libjvm.dylib                            0x032a95eb JVM_Lseek + 207439
    26  libjvm.dylib                            0x032a935f JVM_Lseek + 206787
    27  libjvm.dylib                            0x032b627d JVM_StartThread + 3057
    28  libjvm.dylib                            0x032b6105 JVM_StartThread + 2681
    29  libjvm.dylib                            0x032b6084 JVM_StartThread + 2552
    30  libjvm.dylib                            0x032b5ed1 JVM_StartThread + 2117
    31  libjvm.dylib                            0x032b5d07 JVM_StartThread + 1659
    32  libjvm.dylib                            0x0320f1e0 jio_snprintf + 39610
    33  libSystem.B.dylib                       0x98822259 _pthread_start + 345
    34  libSystem.B.dylib                       0x988220de thread_start + 34
    Thread 27:  Java: pool-1-thread-4
    0   com.apple.CoreFoundation                0x90299620 -[CFXPreferencesSearchListSource getValueForKey:] + 96
    1   com.apple.CoreFoundation                0x9029590e CFPreferencesCopyAppValue + 78
    2   com.apple.Foundation                    0x97a19c56 -[NSUserDefaults(NSUserDefaults) objectForKey:] + 36
    3   jna7892181922294996304.tmp              0x037acf1d .LCFI1 + 26
    4   jna7892181922294996304.tmp              0x037acc81 ffi_call + 97
    5   jna7892181922294996304.tmp              0x037a372e dispatch + 574
    6   jna7892181922294996304.tmp              0x037a4197 Java_com_sun_jna_Function_invokeInt + 55
    7   ???                                     0x061ba0f7 0 + 102473975
    8   ???                                     0x061a4118 0 + 102383896
    9   ???                                     0x06003f97 0 + 100679575
    10  ???                                     0x06003f97 0 + 100679575
    11  ???                                     0x06003e31 0 + 100679217
    12  ???                                     0x06003e31 0 + 100679217
    13  ???                                     0x06003e31 0 + 100679217
    14  ???                                     0x06003f97 0 + 100679575
    15  ???                                     0x06003f97 0 + 100679575
    16  ???                                     0x06004473 0 + 100680819
    17  ???                                     0x06003e31 0 + 100679217
    18  ???                                     0x06003e31 0 + 100679217
    19  ???                                     0x0600430d 0 + 100680461
    20  ???                                     0x0600430d 0 + 100680461
    21  ???                                     0x06003e31 0 + 100679217
    22  ???                                     0x0600430d 0 + 100680461
    23  ???                                     0x06001374 0 + 100668276
    24  libjvm.dylib                            0x032a95eb JVM_Lseek + 207439
    25  libjvm.dylib                            0x032a935f JVM_Lseek + 206787
    26  libjvm.dylib                            0x032b627d JVM_StartThread + 3057
    27  libjvm.dylib                            0x032b6105 JVM_StartThread + 2681
    28  libjvm.dylib         

  • Can Someone help with this crash report - Any Ideas?

    Hello,
    Since OS X 10.4.6 Jedi Knight II Multiplayer crashes. It was perfectly fine before 10.4.6, and I can get it to run under classic. The Single-player app also works perfectly.
    The multi-player game will crash when trying to load certain maps.
    It generates the following crash report.
    CGFontKey.c:227: failed assertion `id[k].qx <= kCGFontSharedCacheKeyMaxQ'
    Does anyone have any ideas?
    I'd like to get this fixed, as I'd rather remove Classic from my system.
    Thanks

    Thanks for the quick reply.
    I've cleaned all font caches and have restored all fonts back to their original state. Still no joy. I have the same problem on my G4 at work, but not on my G3 iBook. (The iBook isn't fast enough to run the game adequately though).
    I wonder if there was anything specific that changed between 10.4.5 and 10.4.6 that caused this - such as a graphics card update -that would cause this. I've tried e-mailing the game developer, but no joy from them.
    Thanks for the suggestion though.

  • How can I create JScrollPane in my swing application with scroll bars movin

    Hi,
    How can we create scrollpanes moving with scrollbars.I tried many times with custom layout.but it does not work if i set custom layout.I hope that I will get my problem solved.
    Thanks and Regards,
    Rameh RK

    This means it is not possible to create a pure unicode file without the byte order mark?
    You wouldn't happen to know how a file with byte order mark should read on a Linux system?
    Or if this possible or not?
    Regards
    Christian

  • Memory Leak in a multi threaded Swing application  (ImageIcon)

    When I profile my swing application with netbeans 5.5 , I notice that after each periodically tidy up my image container (add,remove IconImage objects to a hashmap or arraylist), there gather by and by surviving objects. This leads to run out of memory after a while. Is there any other way to avoid this effect?
    Any ideas about "The JVM is notorious for caching images."
    please help..
    what I have made briefly:
    1.) Read the binary stream from the db :
    rs=stmt.executeQuery(query);
    if(rs.next()){
        int len=rs.getInt(2);
        byte [] b=new byte[len];
        InputStream in = rs.getBinaryStream(3);
        try {
                in.read(b);
                in.close();
                img=Toolkit.getDefaultToolkit().createImage(b);
         } catch (IOException e) {
                e.printStackTrace();
    stmt.close();
    rs.close();2.) hold the icon as field :
    this.icon =  new ImageIcon(img);3.) After a while I remove the object from my collection and on the
    overridden method finalize() I also call the flush() method.
    if(this.icon != null){
                this.icon.getImage().flush();
                this.icon = null;
    }The surviving objects still increase?! On the page of SUN they
    submitted a bug. But this is set on closed/fixed.
    (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4014323)
    What am I doing wrong? I also use the byte[] constructor on creating the icon and
    my java version is 1.5.0_10.

    If in your JFrame u have placed your image, before invoke the dispose()
    method put explicitly the image pointer to null and deregister all listener
    you have added to any componentI implemented your suggest and after starting a long time test, in one hour there gathered aprox. 500 surviving generations. I attach a snapshot and the java file ( http://www.box.net/public/eqznamrazd ). The used heap size swings between 3MB and 5MB. I guess this wont kill so quickly the application but anyway there is something wrong!
    Even properly closed streams, database connections etc.. Really despairing. Could one take a look to the java source?
    some snippets bellow:
    private class MyImageIcon extends ImageIcon {
            public MyImageIcon(Image img){
                super(img);
            public void removeImage(Image anImage){
                tracker.removeImage(anImage);
    private class DetailDialog extends javax.swing.JFrame {
            private String personnr;
            private MyImageIcon icon;
            public DetailDialog(String personnr,MyImageIcon icon){
                this.personnr = personnr;
                this.icon = icon;
            public void dispose() {
                if(icon != null){
                    icon.removeImage(icon.getImage());
                    icon.getImage().flush();
                    icon = null;
                super.dispose();
    private class Person extends Object {
            private MyImageIcon icon;
            private String number;
            private DetailDialog detailDialog;
            protected void destroy() {
                if(icon!=null){
                    icon.removeImage(icon.getImage());
                    icon.getImage().flush();
                    icon = null;
                if(detailDialog!=null){
                    detailDialog.dispose();
    private Image LoadImageFromDB(String personnr){
            Image img = null;
            String filename = personnr + ".jpg";
            Connection con = getMysqlConnection();
            Statement stmt;
            ResultSet rs;
            try {
                stmt = con.createStatement();
                String query = "select * from personImage where image='"+filename+"'";
                rs=stmt.executeQuery(query);
                if(rs.next()){
                    int len=rs.getInt(2);
                    byte [] b=new byte[len];
                    InputStream in = rs.getBinaryStream(3);
                    try {
                        in.read(b);
                        in.close();
                        img =
                                java.awt.Toolkit.getDefaultToolkit().createImage(b);
                    } catch (IOException e) {
                        e.printStackTrace();
                rs.close();
                rs = null;
                stmt.close();
                stmt = null;
                con.close();
                con = null;
            } catch (SQLException e) {
                e.printStackTrace();
            return img;
    public void random(){
            java.sql.ResultSet rs = null;
            java.sql.Statement stmt=null;
            java.sql.Connection con = getSybaseConnection();
            try {
                try {
                    stmt = con.createStatement();
                    rs = stmt.executeQuery(randomquery);
                    while(rs.next()){
                        Person person = new Person();
                        person.number = rs.getString("PersonNr");
                        Image img = LoadImageFromDB(person.number);
                        if(img !=null){
                            MyImageIcon ico = new MyImageIcon(img);
                            person.icon = ico;
                        person.detailDialog = new
                                DetailDialog(person.number,person.icon);
                        personList.add(person);
                        System.out.println("Container size: " +
                                personList.size());
                        counter++;
                    if(counter%20 == 0){
                        for(Person p : personList){
                            p.destroy();
                        personList.clear();
                        System.gc();//no need, but I force for this example
                        System.out.println("Container cleared, size: " +
                                personList.size());
                } catch (SQLException ex) {
                    ex.printStackTrace();
                }finally{
                    if(rs != null){
                        rs.close();
                    }if(stmt != null){
                        stmt.close();
                    }if(con != null){
                        con.close();
            } catch (SQLException ex) {
                ex.printStackTrace();
        }

  • BackGround picture for a Swing application??

    hi,
    once I got a nice idea while watching some webpages. we can give a background picture for a webpage in <body> tag?
    I want to do same thing for any Swing application. Currently I am working on that issue. Any suggestions are welcome!!
    santhosh

    Hi everybody!
    Finally I got it. now Using this We can enable background for any swing application.
    the complete code is shown here. If you have any problems regarding this code, please mail to [email protected]
    /******************************[TexturedImageIcon.java]***********************/
    import java.net.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import java.awt.image.*;
    import javax.swing.*;
    /* this is used to generate a tiled image from a given image file.*/
    public class TexturedImageIcon extends ImageIcon
         private Dimension size = new Dimension(10, 10);
         BufferedImage bimg1,bimg;
         Graphics2D g2;
         ComponentListener cl = new ComponentAdapter(){
              public void componentResized(ComponentEvent ce){
                   Component c = (Component)ce.getSource();
                   size = c.getSize();
                   createImage();
         public void setImage(String filename){
              super.setImage(new ImageIcon(filename).getImage());
              bimg1=null;
              createImage();
         public TexturedImageIcon(Component comp, Image img){
              super(img);
              addListener(comp);
         public TexturedImageIcon(Component comp, String filename){
              super(filename);
              addListener(comp);
         public TexturedImageIcon(Component comp, URL url){
              super(url);
              addListener(comp);
         private void addListener(Component comp){
              comp.addComponentListener(cl);
         private void createImage(){
              bimg = new BufferedImage(size.width, size.height, BufferedImage.TYPE_INT_RGB);
              g2 = bimg.createGraphics();
              Rectangle2D rect = new Rectangle2D.Float(0,0,size.width-1, size.height-1);
              Rectangle2D tr = new Rectangle2D.Double(0,0,super.getIconWidth(), super.getIconHeight());
              if(bimg1==null){
                   bimg1 = new BufferedImage(super.getIconWidth(), super.getIconHeight(), BufferedImage.TYPE_INT_RGB);
                   Graphics2D g = bimg1.createGraphics();
                   g.drawImage(super.getImage(), null, null);
              TexturePaint tp = new TexturePaint(bimg1, tr);
              g2.setPaint(tp);
              g2.fill(rect);
         public int getIconWidth(){ return size.width; }
         public int getIconHeight(){ return size.height; }
         public Image getImage(){
              System.out.println("asked");
              return bimg;
         public void paintIcon(Component c, Graphics g, int x, int y){
              Graphics2D g2d =(Graphics2D)g;
              g2d.drawImage(bimg, null, null);
         public static void main(String[] args){
              JFrame f = new JFrame();
              f.setSize(300,300);
              JLabel label = new JLabel();
              label.setBackground(Color.white);
              label.setBorder(BorderFactory.createRaisedBevelBorder());
              label.setIcon(new TexturedImageIcon(label, "world2.gif"));
              f.getContentPane().setLayout(new BorderLayout());
              f.getContentPane().add(label, BorderLayout.CENTER);
              f.show();
    /*********************************[JFCUtils.java]************************/
    /*The main logic to enable background picture lies in this class*/
    public class JFCUtils{
         public static ContainerListener cl = new ContainerAdapter(){
              public void componentAdded(ContainerEvent ce){
                   JComponent child = (JComponent)ce.getChild();
                   child.setOpaque(false);
                   child.addContainerListener(this);
                   addlisteners(child);
         public static TexturedImageIcon enableBackGround(JFrame f, String filename){
              ((JPanel)f.getContentPane()).setOpaque(false);
              JLayeredPane lp = f.getLayeredPane();
              JLabel label = new JLabel();
              TexturedImageIcon icon = new TexturedImageIcon(label, filename);
              label.setIcon(icon);
              JPanel panel = new JPanel(new BorderLayout());
              panel.add(label, BorderLayout.CENTER);
              lp.add(panel, new Integer(Integer.MIN_VALUE));
              Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();
              panel.setBounds(0, 0, screen.width,screen.height);
              addlisteners((JComponent)f.getContentPane());
              return icon;
         private static void addlisteners(Component c){
              c.toString();
              if(c instanceof JComponent) ((JComponent)c).setOpaque(false);
              if(c instanceof Container){
                   Container ct = (Container)c;
                   ct.addContainerListener(cl);          
              for(int i=0; i<ct.getComponentCount(); i++){ //recursivly make all subcomponents transparent
                   Component child = (Component)ct.getComponent(i);
                   addlisteners(child);
         public static void main(String[] args){
              JFrame f = new JFrame();
              enableBackGround(f, "bg.jpg");
              JButton b = new JButton("fdfdfdfd");
              f.getContentPane().add(b, BorderLayout.NORTH);
              f.setSize(300,300);
              f.show();
    /*************************************[UserDialog.java]**************************/
    //to check how a swing application with background looks like
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class UserDialog extends JDialog
         JPanel contents = (JPanel)getContentPane();
         JTextField shortField = new JTextField(20);
         JTextField nameField = new JTextField(20);
         JTextField emailField = new JTextField(20);
         JTextField smtpServerField = new JTextField(20);
         JTextField pwdField = new JPasswordField(20);
         JTextField pwdField1 = new JPasswordField(20);
         boolean okay = false;
         public UserDialog(JFrame owner){
              super(owner, "New User Details", true);
              initComponents();
              pack();
              setResizable(false);
         public UserDialog(JDialog owner){
              super(owner, "New User Details", true);
              initComponents();
              pack();
              setResizable(false);
         private void initComponents(){
              JPanel west = new JPanel(new GridLayout(0, 1));
              west.add(new JLabel("Short Name"));
              west.add(new JLabel("Full Name"));
              west.add(new JLabel("Email"));
              west.add(new JLabel("SMTP Server"));
              west.add(new JLabel("Password"));
              west.add(new JLabel("Confirm Password"));
              JPanel east = new JPanel(new GridLayout(0, 1));
              east.add(shortField);
              east.add(nameField);
              east.add(emailField);
              east.add(smtpServerField);
              east.add(pwdField);
              east.add(pwdField1);
              JPanel south = new JPanel();
              JButton ok = new JButton("Ok");
              JButton cancel = new JButton("Cancel");
              south.add(ok);
              south.add(cancel);
              contents.setBorder(JFCUtils.border);
              contents.setLayout(new BorderLayout(10, 10));
              contents.add(west, BorderLayout.WEST);
              contents.add(east, BorderLayout.EAST);
              contents.add(south, BorderLayout.SOUTH);
              ActionListener al = new ActionListener(){
                   public void actionPerformed(ActionEvent ae){
                        okay = ae.getActionCommand().equals("Ok");
                        setVisible(false);
              ok.addActionListener(al);
              cancel.addActionListener(al);
         private void clearFields(){
              shortField.setText("");
              nameField.setText("");
              emailField.setText("");
              smtpServerField.setText("");
              pwdField.setText("");
              pwdField1.setText("");
         public User getUser(){
              clearFields();
              okay = false;
              show();
              if(okay) return new User(shortField.getText(), nameField.getText(), emailField.getText(), smtpServerField.getText(), pwdField.getText());
              else return null;
         public static void main(String[] args){
              Dialog dlg = new UserDialog();
              TexturedImageIcon ticon = JFCUtils.enableBackGround(f, "bg.jpg");.show();
              //we can change the background picture by calling ticon.setImage(...) at runtime.

  • PosgreSQL LAN-Based Swing Application

    is it possible to create a lan-based swing application with database connectivity?
    how?
    thanxx

    flor.jerico.m wrote:
    is it possible to create a lan-based swing application with database connectivity?
    how?
    thanxxYou mean swing application(s) on various hosts pointing to same database ?
    http://jdbc.postgresql.org/doc.html
    check out jdbc url
    jdbc:postgresql://host/database
    jdbc:postgresql://host:port/database

  • ?? Several applications with one JVM ??

    Hi,
    I need to run several swing application with a single JVM. (for performance reasons, especially with memory). This is ok.
    But swing applications uses only one AWT-Event-Thread that is shared by all applications (Frames).
    The consequence is, per example, that a modal dialog in one of the applications will block all other running applications.
    Actually, this problem is bug-id = 4080029.
    But there's no workaround.
    Is there anyone who knows how to deal with this ??
    I read an article about AppContext where I understand that it should be possible to assign a different context to each application, and also a different EventQueue to each application.
    But I cannot find any documentation about AppContext, and can't understand how to use it.
    Is there someone who can help with AppContext ??
    -Herbien (Switzerland)

    I've found the following in the src directory of JDK1.3.1 -- it's supposed to be part of javax.swing but I can't find it documented anywhere, so here goes (don't forget the Dukes if this helps):
    V.V.
    * @(#)AppContext.java     1.7 00/02/02
    * Copyright 1998-2000 Sun Microsystems, Inc. All Rights Reserved.
    * This software is the proprietary information of Sun Microsystems, Inc. 
    * Use is subject to license terms.
    package javax.swing;
    import java.util.Hashtable;
    import java.util.Enumeration;
    * The AppContext is a per-SecurityContext table which stores application
    * service instances.  (If you are not writing an application service, or
    * don't know what one is, please do not use this class.)  The AppContext
    * allows applet access to what would otherwise be potentially dangerous
    * services, such as the ability to peek at EventQueues or change the
    * look-and-feel of a Swing application.<p>
    * Most application services use a singleton object to provide their
    * services, either as a default (such as getSystemEventQueue or
    * getDefaultToolkit) or as static methods with class data (System).
    * The AppContext works with the former method by extending the concept
    * of "default" to be SecurityContext-specific.  Application services
    * lookup their singleton in the AppContext; if it hasn't been created,
    * the service creates the singleton and stores it in the AppContext.<p>
    * For example, here we have a Foo service, with its pre-AppContext
    * code:<p>
    * <code><pre>
    *    public class Foo {
    *        private static Foo defaultFoo = new Foo();
    *        public static Foo getDefaultFoo() {
    *            return defaultFoo;
    *    ... Foo service methods
    *    }</pre></code><p>
    * The problem with the above is that the Foo service is global in scope,
    * so that applets and other untrusted code can execute methods on the
    * single, shared Foo instance.  The Foo service therefore either needs
    * to block its use by untrusted code using a SecurityManager test, or
    * restrict its capabilities so that it doesn't matter if untrusted code
    * executes it.<p>
    * Here's the Foo class written to use the AppContext:<p>
    * <code><pre>
    *    public class Foo {
    *        public static Foo getDefaultFoo() {
    *            Foo foo = (Foo)AppContext.getAppContext().get(Foo.class);
    *            if (foo == null) {
    *                foo = new Foo();
    *                getAppContext().put(Foo.class, foo);
    *            return foo;
    *    ... Foo service methods
    *    }</pre></code><p>
    * Since a separate AppContext exists for each SecurityContext, trusted
    * and untrusted code have access to different Foo instances.  This allows
    * untrusted code access to "system-wide" services -- the service remains
    * within the security "sandbox".  For example, say a malicious applet
    * wants to peek all of the key events on the EventQueue to listen for
    * passwords; if separate EventQueues are used for each SecurityContext
    * using AppContexts, the only key events that applet will be able to
    * listen to are its own.  A more reasonable applet request would be to
    * change the Swing default look-and-feel; with that default stored in
    * an AppContext, the applet's look-and-feel will change without
    * disrupting other applets or potentially the browser itself.<p>
    * Because the AppContext is a facility for safely extending application
    * service support to applets, none of its methods may be blocked by a
    * a SecurityManager check in a valid Java implementation.  Applets may
    * therefore safely invoke any of its methods without worry of being
    * blocked.
    * @author  Thomas Ball
    * @version 1.7 02/02/00
    final class AppContext {
        /* Since the contents of an AppContext are unique to each Java
         * session, this class should never be serialized. */
        /* A map of AppContexts, referenced by SecurityContext.
         * If the map is null then only one context, the systemAppContext,
         * has been referenced so far.
        private static Hashtable security2appContexts = null;
        // A handle to be used when the SecurityContext is null.
        private static Object nullSecurityContext = new Object();
        private static AppContext systemAppContext =
            new AppContext(nullSecurityContext);
         * The hashtable associated with this AppContext.  A private delegate
         * is used instead of subclassing Hashtable so as to avoid all of
         * Hashtable's potentially risky methods, such as clear(), elements(),
         * putAll(), etc.  (It probably doesn't need to be final since the
         * class is, but I don't trust the compiler to be that smart.)
        private final Hashtable table;
        /* The last key-pair cache -- comparing to this before doing a
         * lookup in the table can save some time, at the small cost of
         * one additional pointer comparison.
        private static Object lastKey;
        private static Object lastValue;
        private AppContext(Object securityContext) {
            table = new Hashtable(2);
            if (securityContext != nullSecurityContext) {
                if (security2appContexts == null) {
                    security2appContexts = new Hashtable(2, 0.2f);
                security2appContexts.put(securityContext, this);
         * Returns the appropriate AppContext for the caller,
         * as determined by its SecurityContext. 
         * @returns the AppContext for the caller.
         * @see     java.lang.SecurityManager#getSecurityContext
         * @since   1.2
        public static AppContext getAppContext() {
            // Get security context, if any.
            Object securityContext = nullSecurityContext;
    Commenting out until we can reliably compute AppContexts
            SecurityManager sm = System.getSecurityManager();
            if (sm != null) {
                Object context = sm.getSecurityContext();
                if (context != null) {
                    securityContext = context;
            // Map security context to AppContext.
            if (securityContext == nullSecurityContext) {
                return systemAppContext;
            AppContext appContext =
                (AppContext)security2appContexts.get(securityContext);
            if (appContext == null) {
                appContext = new AppContext(securityContext);
                security2appContexts.put(securityContext, appContext);
            return appContext;
         * Returns the value to which the specified key is mapped in this context.
         * @param   key   a key in the AppContext.
         * @return  the value to which the key is mapped in this AppContext;
         *          <code>null</code> if the key is not mapped to any value.
         * @see     #put(Object, Object)
         * @since   1.2
        public synchronized Object get(Object key) {
            if (key != lastKey || lastValue == null) {
                lastValue = table.get(key);
                lastKey = key;
            return lastValue;
         * Maps the specified <code>key</code> to the specified
         * <code>value</code> in this AppContext.  Neither the key nor the
         * value can be <code>null</code>.
         * <p>
         * The value can be retrieved by calling the <code>get</code> method
         * with a key that is equal to the original key.
         * @param      key     the AppContext key.
         * @param      value   the value.
         * @return     the previous value of the specified key in this
         *             AppContext, or <code>null</code> if it did not have one.
         * @exception  NullPointerException  if the key or value is
         *               <code>null</code>.
         * @see     #get(Object)
         * @since   1.2
        public synchronized Object put(Object key, Object value) {
            return table.put(key, value);
         * Removes the key (and its corresponding value) from this
         * AppContext. This method does nothing if the key is not in the
         * AppContext.
         * @param   key   the key that needs to be removed.
         * @return  the value to which the key had been mapped in this AppContext,
         *          or <code>null</code> if the key did not have a mapping.
         * @since   1.2
        public synchronized Object remove(Object key) {
            return table.remove(key);
         * Returns a string representation of this AppContext.
         * @since   1.2
        public String toString() {
            Object securityContext = nullSecurityContext;
            SecurityManager sm = System.getSecurityManager();
            if (sm != null) {
                Object context =
                    System.getSecurityManager().getSecurityContext();
                if (context != null) {
                    securityContext = context;
            String contextName = (securityContext.equals(nullSecurityContext) ?
                "null" : securityContext.toString());
         return getClass().getName() + "[SecurityContext=" + contextName + "]";
    }

  • How to run applications with options in IDEs like Netbeans

    Hi, I'm new to the Netbeans IDE and I'm wondering how to run applications with options.
    Normally I'd enter the following in the command line:
    java -Djavax.net.ssl.keyStore=mykeystore -Djavax.net.ssl.keyStorePassword="..." TLSServer
    java  -Djavax.net.ssl.trustStore=mytruststore -Djavax.net.ssl.trustStorePassword="..." TLSClient localhostProblem is, I've no idea how to do the same thing in IDE's like Netbeans and I can't any settings to add options like "-Djavax.net.ssl.keyStore=mykeystore" before running the application. Any help will be appreciated.
    Message was edited by:
    Wolfgard

    Right-click the project, click properties, clicl run, and add parameters to VM Options.

  • JBoss Application server setup with netbeans IDE.

    Hi All,
    I need to configure the JBoss Application server with netbeans IDE. I have tried this scenario,
    1) Unzip the jboss-4.2.2.GA.zip into jboss dir.
    2) Selected the JBoss Application server 4.
    3) And i have set the Installation location like this j:/jboss/jboss-4.2.2.GA. In this i got some problem.
    The problem is: Next button did not selected.
    Error: provide valid installation dir path.
    How to resolve this problem? Can anyone give suggestions for resolving this error?
    Its very urgent!!

    A couple of things:
    1. if you are using SJSAS 9.0 it's Glassfish v1 (not v2 - that's probably for the 9.1 version? I don't know, I'm running 9.0 and installs fine with Gf v1 - thanks for the tip, btw!)
    2. as for the domain, just pick the default offered (unless you have some specific requirement) - in any event, it's under the domains/domain1 folder
    you can always create a new one and register (it will have its very own folder under /domains) but given that's probably a dev box, I can hardly see the point (and when I did it a long time ago, it was more pain that any human being should be subjected to :-)
    Finally, one cannot but wonder why on earth someone (at Sun) developed NB and put Sun Java Application Server (developed at Sun) as one of the options that won't work with SJAS 9.0+ (developed at Sun) but one has to instead choose Glassfish (developed at Sun) and that won't work if one chooses v2 instead of v1 if it's SJAS 9.0 instead of 9.1 (or vice versa)...
    Don't these guys test the thingy with THEIR own stuff?
    Don't get me wrong, I totally love Sun, and all the good stuff they come up with (NB, SJAS, etc. etc.) but done it properly it would help them to gain market share, now, wouldn't it?

  • Building AIR Applications with the NetBeans IDE

    Hello Everyone,
    Here's a link to screencast showing you how to Build AIR
    Applications with the NetBeans IDE.
    http://xwisdomhtml.com/netbeans-and-air.html

    Neat!

Maybe you are looking for