Java Inheritance and Types

Hello,
I have some super/sub classes, listed as follows:
UnitMgr
SpecialUnitMgr (child of UnitMgr)
Unit
SpecialUnit (child of Unit)
I'm designing a lot inventory system where my SpecialUnitMgr applet will have many instances of Unit. Right now I have the system set up so that UnitMgr contains an instance var declared as "Unit aUnit;". UnitMgr as a parent class, takes care of common code between the many different UnitMgr child classes.
Right now I have SpecialUnitMgr setup to use the inherited parent/super variable aUnit, and I have extended the functionality of Unit with SpecialUnit (added more instance vars, etc). I wish to use extended features of SpecialUnit within my SpecialUnitMgr class, but I am unable to do so because of type conflicts (i.e. i cant access SpecialUnit vars or methods from the instance aUnit because it is declared as Unit in UnitMgr).
I want to keep a single instance of Unit or SpecialUnit going, but I'm not sure how to do so.
I am wondering how to get around this problem, do I use Reflection? Is my design bad? I am trying to maintain the super classes as a core package.
Jeff

If I understand the problem correctly, you want generics. public class UnitMgr<U extends Unit>
    protected U aUnit;
public class SpecialUnitMgr extends UnitMgr<SpecialUnit>
}See http://java.sun.com/j2se/1.5.0/docs/guide/language/generics.html for more on generics.

Similar Messages

  • Java inheritance and interface code help required

    please help me I need your 30 mins only,,, working on assignment and I am trying to understand interface and inheritance might not need even 30 mins, please add me on skype *[deleted by moderator]*
    Or add me on
    yahoo msgr *[deleted by moderator]*
    waiting for your help.
    I have no single person friend or I can ask help from who knows java or programming. pretty much want to learn need a friend who can guide me in java.
    unfortunately have to submit assignment tomorrow.
    Thank you in advance for your time and consideration.
    Akee
    *Edited by moderator: EJP on 10/11/2012 10:38: removed your private contact details. This is a public forum, not a personal help desk. Ask your questions here or not at all.*

    Hi,
    there are lot of thread alredy posted please serach
    check following link
    http://help.sap.com/saphelp_nw04/helpdata/en/ce/1d753cab14a909e10000000a11405a/frameset.htm
    XSLT Mapping:
    http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/content.htm
    Java Mapping:
    http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/content.htm
    Links of blogs on java mapping...
    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i
    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii
    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-iii
    blog
    /people/sap.user72/blog/2005/03/15/using-xslt-mapping-in-a-ccbpm-scenario
    /people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping(file to xslt mapping)
    /people/pooja.pandey/blog/2005/06/27/xslt-mapping-with-java-enhancement-for-beginners(xslt with java enhancement function)
    Regards,
    Amit

  • Java inheritance

    Hi Guys,
    I just wanted to get your opinion on the following issue. In our
    hypothetical scenario, we would have:
    class A {
    int id;
    class B extends A {
    String name;
    Only class B is supposed to be persistent, so there would be a single JDO
    metadata file that would have 2 fields: id and name.
    Right now, it looks like when Kodo is trying to match field (from JDO
    metadata) against attributes in Java class, it does not take into
    consideration Java inheritance and as a result it complains about missing
    attribute id.
    I figure that Kodo may be parsing the java source code instead of using
    Java reflection to get the attributes.
    Any thought? I mean, we can obvuiously work around it, it is just
    something that came up recently and I wanted to see what you think about
    it.
    Thank you,
    Petr

    BTW, the reason is the enhancer can't access and wrap A's id field
    accesses...
    for example, one might have toString () { return "ID:" + id;} but since
    A has not been enhanced as PersistenceCapable, the app can access id in
    a variety of invalid states. Nor will Kodo have access to the proper
    field accessors/mutators/wrappers (esp. if id were declared private).
    Also, Kodo does -no- source examination for non-IDE based usage, either
    at enhancement time or at runtime. (the JBuilder and SunONE integration
    components use the respective IDE's code parsers to assist in metadata
    generation for uncompiled classes).
    Steve Kim wrote:
    JDO can only provide persistence for fields defined at the highest
    persistence-capable class.
    To bypass this problem a simpler solution would be:
    abstract class A {
    public abstract int getId ();
    public abstract void setId (int id);
    class B extends A
    int id;
    String name;
    // getters and setters
    And futher, if one needs concrete As (though usually that doesn't make
    sense), one can provide implementation of the abstract methods and
    override them with B's methods. Note that methods in A which access id,
    should use the accessor methods and not directly manipulate id.
    Petr wrote:
    Hi Guys,
    I just wanted to get your opinion on the following issue. In our
    hypothetical scenario, we would have:
    class A {
    int id;
    class B extends A {
    String name;
    Only class B is supposed to be persistent, so there would be a single JDO
    metadata file that would have 2 fields: id and name.
    Right now, it looks like when Kodo is trying to match field (from JDO
    metadata) against attributes in Java class, it does not take into
    consideration Java inheritance and as a result it complains about missing
    attribute id.
    I figure that Kodo may be parsing the java source code instead of using
    Java reflection to get the attributes.
    Any thought? I mean, we can obvuiously work around it, it is just
    something that came up recently and I wanted to see what you think about
    it.
    Thank you,
    Petr
    Stephen Kim
    [email protected]
    SolarMetric, Inc.
    http://www.solarmetric.com

  • How to read XI Data type in Java code and populate as array list, using UDF

    Hi,
    How to read XI Data type in Java code and populate as array list, using UDF?
    Is there any API using which  the XI data types can be read?
    Kindly reply.
    Richa

    Input Structure:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:CustomerCreateResp xmlns:ns0="urn:bp:xi:up:re:cust_mdm:cmdm:pr5:100">
       <CUSTOMER>
          <item>
             <CUSTOMERNO/>
             <MDMCUSTOMER/>
             <CREATE_DATE/>
             <RETURN>
                <TYPE/>
                <MESSAGE/>
             </RETURN>
             <PT_CONTPART_RETURN>
                <item>
                   <MDM_CONTACT/>
                   <CONTACT/>
                </item>
             </PT_CONTPART_RETURN>
             <PARTNERS>
                <item>
                   <CUSTOMERNO/>
                   <PARTNER_FUNCTION/>
                   <PARTNER_NUMBER/>
                   <DEFAULT_PARTNER/>
                </item>
             </PARTNERS>
          </item>
       </CUSTOMER>
    </ns0:CustomerCreateResp>
    Output structure
    (Sample output structure.This actually needs to be mapped and generated using UDF)
    <?xml version="1.0" encoding="UTF-8"?>
    <ns1:updateCustomer xmlns:ns1="urn:xiSericeVi"><ns1:customer><ns2:ArrayList xmlns:ns2="java:sap/standard">[]</ns2:ArrayList></ns1:customer><ns1:name>2344566</ns1:name></ns1:updateCustomer>

  • [svn] 4112: Further work for FXG to SWF transcoding - checking in some work resulting from collaborating with Kaushal to correct FXG transforms and gradient transforms as well as cater for differences between Java AffineTransform and the SWF Matrix type .

    Revision: 4112
    Author: [email protected]
    Date: 2008-11-14 10:05:42 -0800 (Fri, 14 Nov 2008)
    Log Message:
    Further work for FXG to SWF transcoding - checking in some work resulting from collaborating with Kaushal to correct FXG transforms and gradient transforms as well as cater for differences between Java AffineTransform and the SWF Matrix type.
    QE: Not yet.
    Doc: No
    Checkintests: Pass
    Reviewer: Kaushal
    Modified Paths:
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/dom/GraphicContentNode.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/dom/fills/LinearGradientFillNode.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/dom/fills/RadialGradientFillNode.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/dom/strokes/LinearGradientStrokeNode.j ava
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/dom/strokes/RadialGradientStrokeNode.j ava
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/swf/AbstractFXGGraphics.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/swf/TypeHelper.java
    Added Paths:
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/dom/ScalableGradientNode.java

  • What is single inheritance, multiple inheritance, and describe Java's notio

    What is single inheritance, multiple inheritance, and describe Java's notion of an interface?
    Can you give me example or reference link? thx

    Single inheritance is getting features like data and methods (functions) from a so called parent class. multiple inheritance is the same but you derive features from multiple parent classes (not supported by java). Interfaces are a way around this because you can inherit multiple interfaces. Inheriting from interfaces is like a promise to implement certain methods that these interfaces define but doesn't implement themselves.
    check around java.sun.com in the tutorials section, you can probably find a text that describes object oriented program and how it is implemented in java.

  • When to use inheritance and When to use Composition

    java support both inheratiance and composition .I also know "is a" and
    "has a realitionship" but there is always a problem with me to understanding whethere i have to use extends or having a object of a class has a member of othere class.
    and also "A pure OOP must support polimorphisim,inheretiance,encapluction,Abstraction and Composition" correct me if i am wrong
    thank you and have a nice day.

    Bruce Eckel, author of Thinking In Java, has this to say about composition vs. inheritance:
    When deciding between inheritance and composition, ask if you need to upcast to the base type. If not, prefer composition (member objects) to inheritance. This can eliminate the perceived need for multiple base types. If you inherit, users will think they are supposed to upcast.
    Choose composition first when creating new classes from existing classes. You should only used inheritance if it is required by your design. If you use inheritance where composition will work, your designs will become needlessly complicated.
    Bill Venners: Composition versus Inheritance
    Use inheritance (of implementation) only when the class satisfies the following criteria:
    1) "Is a special kind of," not "is a role played by a";
    2) Never needs to transmute to be an object in some other class;
    3) Extends rather than overrides or nullifies superclass;
    4) Does not subclass what is merely a utility class (useful functionality you'd like to reuse); and
    5) Within PD: expresses special kinds of roles, transactions, or things.
    -- from Java Design: Building Better Apps and Applets (2nd Edition), by Peter Coad and Mark Mayfield

  • A question about inheritance and overwriting

    Hello,
    My question is a bit complicated, so let's first explain the situation with a little pseudo code:
    class A {...}
    class B extends A{...}
    class C extends B {...}
    class D extends C {...}
    class E extends B {...}
    class F {
      ArrayList objects; // contains only objects of classes A to E
      void updateObjects() {
        for(int i = 0; i < objects.size(); i++)
          A object = (A) objects.get(i); // A as superclass
         update(A);
      void update(A object) { ... }
      void update(B object) { ... }
      void update(D object) { ... }
    }My question now:
    For all objects in the objects list the update(? object) method is called. Is it now called with parameter class A each time because the object was casted to A before, or is Java looking for the best fitting routine depending on the objects real class?
    Regards,
    Kai

    Why extends is evil
    Improve your code by replacing concrete base classes with interfaces
    Summary
    Most good designers avoid implementation inheritance (the extends relationship) like the plague. As much as 80 percent of your code should be written entirely in terms of interfaces, not concrete base classes. The Gang of Four Design Patterns book, in fact, is largely about how to replace implementation inheritance with interface inheritance. This article describes why designers have such odd beliefs. (2,300 words; August 1, 2003)
    By Allen Holub
    http://www.javaworld.com/javaworld/jw-08-2003/jw-0801-toolbox.html
    Reveal the magic behind subtype polymorphism
    Behold polymorphism from a type-oriented point of view
    http://www.javaworld.com/javaworld/jw-04-2001/jw-0413-polymorph_p.html
    Summary
    Java developers all too often associate the term polymorphism with an object's ability to magically execute correct method behavior at appropriate points in a program. That behavior is usually associated with overriding inherited class method implementations. However, a careful examination of polymorphism demystifies the magic and reveals that polymorphic behavior is best understood in terms of type, rather than as dependent on overriding implementation inheritance. That understanding allows developers to fully take advantage of polymorphism. (3,600 words) By Wm. Paul Rogers
    multiple inheritance and interfaces
    http://www.javaworld.com/javaqa/2002-07/02-qa-0719-multinheritance.html
    http://java.sun.com/docs/books/tutorial/java/interpack/interfaceDef.html
    http://www.artima.com/intv/abcs.html
    http://www.artima.com/designtechniques/interfaces.html
    http://www.javaworld.com/javaqa/2001-03/02-qa-0323-diamond_p.html
    http://csis.pace.edu/~bergin/patterns/multipleinheritance.html
    http://www.cs.rice.edu/~cork/teachjava/2002/notes/current/node48.html
    http://www.cyberdyne-object-sys.com/oofaq2/DynInh.htm
    http://www.gotw.ca/gotw/037.htm
    http://www.javajunkies.org/index.pl?lastnode_id=2826&node_id=2842
    http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=1&t=001588
    http://pbl.cc.gatech.edu/cs170/75
    Downcasting and run-time
    http://www.codeguru.com/java/tij/tij0083.shtml
    type identification
    Since you lose the specific type information via an upcast (moving up the inheritance hierarchy), it makes sense that to retrieve the type information ? that is, to move back down the inheritance hierarchy ? you use a downcast. However, you know an upcast is always safe; the base class cannot have a bigger interface than the derived class, therefore every message you send through the base class interface is guaranteed to be accepted. But with a downcast, you don?t really know that a shape (for example) is actually a circle. It could instead be a triangle or square or some other type.
    To solve this problem there must be some way to guarantee that a downcast is correct, so you won?t accidentally cast to the wrong type and then send a message that the object can?t accept. This would be quite unsafe.
    In some languages (like C++) you must perform a special operation in order to get a type-safe downcast, but in Java every cast is checked! So even though it looks like you?re just performing an ordinary parenthesized cast, at run time this cast is checked to ensure that it is in fact the type you think it is. If it isn?t, you get a ClassCastException. This act of checking types at run time is called run-time type identification (RTTI). The following example demonstrates the behavior of RTTI:
    //: RTTI.java
    // Downcasting & Run-Time Type
    // Identification (RTTI)
    import java.util.*;
    class Useful {
    public void f() {}
    public void g() {}
    class MoreUseful extends Useful {
    public void f() {}
    public void g() {}
    public void u() {}
    public void v() {}
    public void w() {}
    public class RTTI {
    public static void main(String[] args) {
    Useful[] x = {
    new Useful(),
    new MoreUseful()
    x[0].f();
    x[1].g();
    // Compile-time: method not found in Useful:
    //! x[1].u();
    ((MoreUseful)x[1]).u(); // Downcast/RTTI
    ((MoreUseful)x[0]).u(); // Exception thrown
    } ///:~
    As in the diagram, MoreUseful extends the interface of Useful. But since it?s inherited, it can also be upcast to a Useful. You can see this happening in the initialization of the array x in main( ). Since both objects in the array are of class Useful, you can send the f( ) and g( ) methods to both, and if you try to call u( ) (which exists only in MoreUseful) you?ll get a compile-time error message.
    If you want to access the extended interface of a MoreUseful object, you can try to downcast. If it?s the correct type, it will be successful. Otherwise, you?ll get a ClassCastException. You don?t need to write any special code for this exception, since it indicates a programmer error that could happen anywhere in a program.
    There?s more to RTTI than a simple cast. For example, there?s a way to see what type you?re dealing with before you try to downcast it. All of Chapter 11 is devoted to the study of different aspects of Java run-time type identification.
    One common principle used to determine when inheritence is being applied correctly is the Liskov Substitution Principle (LSP). This states that an instance of a subclass should be substitutible for an instance of the base class in all circumstances. If not, then it is generally inappropriate to use inheritence - or at least not without properly re-distributing responsibilities across your classes.
    Another common mistake with inheritence are definitions like Employee and Customer as subclasses of People (or whatever). In these cases, it is generally better to employ the Party-Roll pattern where a Person and an Organization or types of Party and a party can be associated with other entities via separate Role classes of which Employee and Customer are two examples.

  • Inheriting and the "super" keyword

    I found a case where "super" is not working as I understand it should...
    Can someone explain me the underlying theory that makes JAVA behave this way??
    public class Base {
         public void method1() {
              System.out.println("method1 from \"Base\" class. About to call method2.");
              method2();
         public void method2() {
              System.out.println("method2 from \"Base\" class. About to call method3.");
              method3();
         public void method3() {
              System.out.println("method3 from \"Base\" class.");
    public class Extension extends Base {
         @Override
         public void method1(){
              System.out.println("method1 from \"Extension\" class. About to call super.method2.");
              super.method2();          
         @Override
         public void method2(){
              System.out.println("method2 from \"Extension\" class. About to call method3.");
              method3();          
         @Override
         public void method3(){
              System.out.println("method3 from \"Extension\" class.");                    
    public class Main {
         public static void main(String args[]) {
              System.out.println("In \"The Java Programming Language,\n" +
                        "Fourth Edition By Ken Arnold, James Gosling, David Holmes\"\n"+
                        "chapter: 3.3: \"Inheriting and Redefining Members\""+
                        " says:");
              System.out.println("Using super is the only case in which the type of\n" +
                        "the reference governs selection of the method implementation\n" +
                        "to be used. An invocation of super.method always uses the\n" +
                        "implementation of method the superclass defines (or\n" +
                        "inherits). It does not use any overriding implementation of\n" +
                        "that method further down the class hierarchy.\n");
              System.out.println("But by running this code, i get:");
              System.out.println("------------------------------------------");          
              Extension ext = new Extension();
              ext.method1();          
              System.out.println("------------------------------------------");
              System.out.println("\nWHY??? I was expecting:\n"+
                        "method1 from \"Extension\" class. About to call super.method2.\n" +
                        "method2 from \"Base\" class. About to call method3.\n" +
                        "method3 from \"Base\" class.");          
    THANKS!!

    IgnacioKriche wrote:
    But I used "super", so this means to use the methods of the super class and I understand that a method called within another, is part of this last one. this is:
    if inside method 'x', method 'y' is called, then 'y' is part of 'x' . Agree? And therefore since I am using super I'm saying use 'x' method from super class since 'y' is part of 'x' then super applies for 'y' as well so what is method from the extended class doing here? It's like we have a mix between the 'x' from super and 'y' from the extended. Something like super only applies for the first level not at a deeper level (a method called from another)No. Just because the base class method2() invokes method3() does NOT mean it will always invoke base's version of method3. If it did that, then polymorphism would definitely be broken.
    You explicitly invoked super.method2(), so that told the compiler to explicitly use the base class version of that method. But then method2 in the base class invokes method3(). That ends up invoking the overridden version in the subclass, by design, because afterall the actual object whose methods are being executed is a subclass instance. If it didn't do that, then polymorphism would be broken for everyone else.
    If you think you need the behavior you are looking for, you are just designing it wrong in the first place.

  • Parameterized inheritance and implementation

    I'm learning generics, and I'm having a problem getting the following to work
    I have a base class with some data/behavior
    public abstract Base<E> {
    //...Then there is a concrete class that extends Base and implements Map
    public Concrete<E extends Object & Map<K,V>> extends Base<E extends Object & Map<K,V>> implements Map<K, V>{
    //...I cannot seem to specify that the type for Base must be a Map<K, V>.
    I've thought about containing and delegating, but really Concrete IS-A Base and Concrete IS-A Map.
    Am I missing something about inheritance and generics?
    Any suggestions?

    James,
    Based on your previous posts I think you understand generics as well as I do, and in some aspects, probably better.
    I was trying to capture my thought processes (and that is quite hard since mostly this happens sub-consciously - its quite hard to drag it up into consciousness then document it, but the effort was worthwhile for me and hopefully for others as well).
    In this particular case, E is Map<K,V>, but there could be all sorts of relationships between the type variables, the idea is to identify these and back substitute them, slowly getting rid of type variables until you can't get rid of any more. The ones you are left with are the ones that need to be type parameters.
    take the other post from yesterday
    http://forum.java.sun.com/thread.jsp?thread=554360&forum=316&message=2719355
    as another worked example...
    from
    "And I'm trying to create a special generic container (List) which would only take elements that
    implement the Keyable interface above. For example:
    public class ListOfKeyables <E extends Keyable> extends AbstractList<E>{..."
    and
    "Now, besides standard List methods that use type varable 'E' in their definitions, I would also
    like to have a special method like this:
       public E getByKey(Object key)   {   ... "
    I would start with (ignoring their "E extends Keyable" suggestion, its too premature for that).
    public class ListOfKeyables < ???? > extends AbstractList<E> {
        public E getByKey(Object key) { ... }
    } but "only take elements that
    implement the Keyable interface" suggests replacing E with Keyable<K> thus
    public class ListOfKeyables < ???? > extends AbstractList<Keyable<K>> {
        public Keyable<K> getByKey(Object key) { ... }
    Note In this case the substitution getting rid of E introduced another type variable (K), thats OK, its still a step toward a solution.
    Then the original poster said "But I would like to constrain the 'key' argument in this method to be of type that is specified as a type parameter to the Keyable interface"
    So after implementing this requirement we have
    public class ListOfKeyables < ???? > extends AbstractList<Keyable<K>> {
        public Keyable<K> getByKey(K key) { ... }
    }At this point there is no more substitutions or requirements to fulfill.
    So we look through and see what type variables are still unresolved. These (in this case there is only one K), are then the type parameters of the class, and thus we have what I suggested in that post
    public class ListOfKeyables <K> extends AbstractList<Keyable<K>> {
        public Keyable<K> getByKey(K key) { ... }
    }As a final step, we need to look at the type parameters and decide if they need any constraints (K extends something), These might come from some use of the type parameter ( such as if Keyable constrained its K parameter, we would need to do the same), or from the application requirements. But in this case, there are not any.
    At a certain level of abstraction, this process is not a whole lot different to the process you use when working out what parameters a method or constructor needs (and that process also tends to happen below the consciusness threshold).
    In really simplistic terms, the answer to both "what parameters do I need" questions is "all the ones you can't get from somewhere else or derive from the ones you already have".
    Bruce

  • Difference between inheritance and abstract class

    difference between inheritance and abstract class

    See this thread:
    http://forum.java.sun.com/thread.jspa?forumID=24&threadID=663657
    And before Post New Topic, just search in this forums. All most will get answers.

  • Open java app and insert text

    Hello All!
    I'm looking for a little help on an exact problem that seems to have been solved here before (but doesn't work for me).
    Here's the original archived thread:
    https://discussions.apple.com/thread/2631967?start=0&tstart=0
    The question asked is exactly the same....
    I have a java app for a Speco Technologies DVR. After opening the app, you must type in a rather long url and then click connect. If you enter the url, then quit the app, when you relaunch it, it does not remember the url that had been entered the previous time.
    I would like to create a script that will launch the Java app and then input the url (text string). I cannot get this to work.
    I've gotten as far as this:
    on run
    tell application "Finder" to activate open document file "DVRVIEWER(DO_NOT_DELETE).jar" of folder "Applications" of startup disk
    delay 5
    set myString to "192.168.0.118"
    repeat with currentCharacter in every character of myString
    tell application "system events"
    keystroke currentCharacter
    end tell
    delay 0.25
    end repeat
    tell application "system events"
    keystroke return
    end run
    AppleScript has a Syntax Error of "Expected end of line, etc. but found command name."
    Does anyone ( taylor.henderson where are you! ) have a fix, or even a better way to do this? Can I edit the existing .jar to have the info directly in there?
    I would actually love to add another section in there that fills in the username and password after entering in the IP address!
    Just for clarification on how this goes:
    Launch .jar.
    Window Launches and prompts for IP address
    Enter in IP address
    Press RETURN
    Windows disappears and new window appears and prompts for username and password
    Enter Username
    Press TAB
    Enter Password
    Press RETURN
    Thank you guys, I'm sure it's easy, but hey, for me Photoshop and Illustrator are a breeze :-0
    -AndyTheFiredog

    Hi
    andythefiredog wrote:
    Is it possible to use similar commands to maximize the java window?
    Yes.
    You must enable the checkbox labeled "Enable access for assistive devices" in the Universal Access System Preference pane
    Add these lines after the last line wich contains "keystroke return"
      delay 2
      tell (first process whose frontmost is true) to click button 2 of window 1 -- zoom
    Here's my test script ( the Speco camera demo), that works without problems here, I use the application "DVRJavaView4.1.jar", this script checks the existence of ui element (more reliable) rather than any delay.
    on run
         do shell script "/usr/bin/open '/Applications/DVRJavaView4.1.jar'"
         tell application "System Events" to tell (first process whose frontmost is true)
              repeat until exists window "Please Input DVR address"
                   delay 1
              end repeat
              keystroke "millapt.ddns.specoddns.net"
              keystroke return
              repeat until exists button "OK" of window 1
                   delay 1 -- wait until the login window is frontmost
              end repeat
              keystroke "user"
              keystroke tab
              delay 0.1
              keystroke "4321"
              delay 0.1
              keystroke return
              repeat until name of window 1 starts with "DVRJavaView"
                   delay 1 --wait while the login window is frontmost
              end repeat
              click button 2 of window 1 -- zoom
         end tell
    end run

  • Using java class and variables declared in java file in jsp

    hi everyone
    i m trying to seperate business logic form web layer. i don't know i am doing in a right way or not.
    i wanted to access my own java class and its variables in jsp.
    for this i created java file like this
    package ris;
    import java.sql.*;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    public class  NewClass{
        public static void main(String args[]){
            Connection con = null;
            ResultSet rs=null;
            Statement smt=null;
            try{
                Class.forName("com.mysql.jdbc.Driver").newInstance();
                con=DriverManager.getConnection("jdbc:mysql:///net","root", "anthony111");
                smt=con.createStatement();
               rs= smt.executeQuery("SELECT * FROM emp");
               while(rs.next()){
                String  str = rs.getString("Name");
                }catch( Exception e){
                    String msg="Exception:"+e.getMessage();
                }finally {
          try {
            if(con != null)
              con.close();
          } catch(SQLException e) {}
    }next i created a jsp where i want to access String str defined in java class above.
    <%--
        Document   : fisrt
        Created on : Jul 25, 2009, 3:00:38 PM
        Author     : REiSHI
    --%>
    <%@page import="ris.NewClass"%>
    <%@page contentType="text/html" pageEncoding="UTF-8"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
       "http://www.w3.org/TR/html4/loose.dtd">
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>JSP Page</title>
        </head>
        <body>
            <h1><%=str%></h1>
        </body>
    </html>I wanted to print the name field extracted from database by ResultSet.
    but it gives error cannot find symbol str.
    please help me to find right way to do this.
    i am using netbeans ide.

    Very bad approach
    1) Think if your table contains more than one NAMEs then you will get only the last one with your code.
    2) Your String is declared as local variable in the method.
    3) You have not created any object of NewClass nor called the method in JSP page. Then who will call the method to run sql?
    4) Your NewClass contains main method which will not work in web application, it's not standalone desktop application so remove main.
    Better create an ArrayList and then call the method of NewClass and then store the data into ArrayList and return the ArrayList.
    It should look like
    {code:java}
    package ris;
    import java.sql.*;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    public class  NewClass{
        public static ArrayList getNames(){
            Connection con = null;
            ResultSet rs=null;
            Statement smt=null;
            ArrayList nameList = new ArrayList();
            try{
                Class.forName("com.mysql.jdbc.Driver").newInstance();
                con=DriverManager.getConnection("jdbc:mysql:///net","root", "anthony111");
                smt=con.createStatement();
               rs= smt.executeQuery("SELECT * FROM emp");
               while(rs.next()){
                nameList.add(rs.getString("Name"));
               return nameList;
                }catch( Exception e){
                    String msg="Exception:"+e.getMessage();
                   </code><code class="jive-code jive-java"><font>return nameList;</code><code class="jive-code jive-java">
                }finally {
          try {
            if(con != null)
              con.close();
          } catch(SQLException e) {}
          </code><code>return nameList;</code>
    <code class="jive-code jive-java">    }

  • Crashes when running Java Applets and trying to open Security System Preferences

    Browser crashes when trying to run Java Applets, I've tried 4 different browsers. This is the crash report.
    Process:         java [90472]
    Path:            /usr/bin/java
    Identifier:      com.apple.javajdk16.cmd
    Version:         1.0 (1.0)
    Code Type:       X86-64 (Native)
    Parent Process:  Google Chrome Helper EH [90460]
    Date/Time:       2012-02-17 15:04:44.693 -0500
    OS Version:      Mac OS X 10.6.8 (10K549)
    Report Version:  6
    Interval Since Last Report:          9110 sec
    Crashes Since Last Report:           8
    Per-App Interval Since Last Report:  43908 sec
    Per-App Crashes Since Last Report:   8
    Anonymous UUID:                      DFA20D26-FD7E-4507-AAA9-EBF29199EC56
    Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
    Crashed Thread:  31  Java: Thread-11
    Application Specific Information:
    Java information:
    Exception type: Bus Error (0xa) at pc=00000000
    Java VM: Java HotSpot(TM) 64-Bit Server VM (20.4-b02-402 mixed mode macosx-amd64)
    Current thread (102a13000):  JavaThread "Thread-11" daemon [_thread_in_Java, id=607662080, stack(124283000,124383000)]
    Stack: [124283000,124383000]
    Java Threads: ( => current thread )
      126525000 JavaThread "Thread-26" daemon [_thread_blocked, id=878407680, stack(1344b7000,1345b7000)]
      126524000 JavaThread "Thread-25" daemon [_thread_in_native, id=877346816, stack(1343b4000,1344b4000)]
      102f20800 JavaThread "Thread-21" daemon [_thread_blocked, id=636690432, stack(125e32000,125f32000)]
      102b96000 JavaThread "Thread-20" daemon [_thread_in_native, id=550666240, stack(120ca8000,120d28000)]
      102b95000 JavaThread "Thread-19" daemon [_thread_blocked, id=632483840, stack(125a2f000,125b2f000)]
      1261e6000 JavaThread "Java Sound Event Dispatcher" daemon [_thread_blocked, id=591368192, stack(1232f9000,1233f9000)]
      10191b800 JavaThread "Thread-15" daemon [_thread_blocked, id=611905536, stack(12468f000,12478f000)]
      1029c7800 JavaThread "Thread-14" daemon [_thread_blocked, id=610844672, stack(12458c000,12468c000)]
      102b11000 JavaThread "Thread-13" daemon [_thread_blocked, id=609783808, stack(124489000,124589000)]
      101929000 JavaThread "Thread-12" daemon [_thread_blocked, id=608722944, stack(124386000,124486000)]
    =>102a13000 JavaThread "Thread-11" daemon [_thread_in_Java, id=607662080, stack(124283000,124383000)]
      1029d2000 JavaThread "Poller SunPKCS11-Darwin" daemon [_thread_blocked, id=541855744, stack(1203c1000,1204c1000)]
      101a43800 JavaThread "thread applet-Rs2Applet.class-1" [_thread_blocked, id=534294528, stack(11fc8b000,11fd8b000)]
      102a07800 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=527765504, stack(11f651000,11f751000)]
      102878000 JavaThread "JVM[id=0]-Heartbeat" daemon [_thread_blocked, id=490639360, stack(11d2e9000,11d3e9000)]
      101943000 JavaThread "AWT-EventQueue-2" [_thread_blocked, id=494882816, stack(11d6f5000,11d7f5000)]
      102933000 JavaThread "Applet 1 LiveConnect Worker Thread" [_thread_blocked, id=466014208, stack(11bb6d000,11bc6d000)]
      101933800 JavaThread "Browser Side Object Cleanup Thread" [_thread_blocked, id=191471616, stack(10b59a000,10b69a000)]
      101944000 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=493821952, stack(11d5f2000,11d6f2000)]
      1029ae800 JavaThread "CacheCleanUpThread" daemon [_thread_blocked, id=492761088, stack(11d4ef000,11d5ef000)]
      102a04800 JavaThread "CacheMemoryCleanUpThread" daemon [_thread_blocked, id=491700224, stack(11d3ec000,11d4ec000)]
      102b2e000 JavaThread "SysExecutionTheadCreator" daemon [_thread_blocked, id=489578496, stack(11d1e6000,11d2e6000)]
      1018e6800 JavaThread "Java Plug-In Pipe Worker Thread (Client-Side)" daemon [_thread_in_native, id=464945152, stack(11ba68000,11bb68000)]
      101a46800 JavaThread "AWT-Shutdown" [_thread_blocked, id=463884288, stack(11b965000,11ba65000)]
      101934800 JavaThread "AWT-AppKit" daemon [_thread_in_native, id=1896107200, stack(7fff5f400000,7fff5fc00000)]
      101933000 JavaThread "Timer-0" [_thread_blocked, id=190410752, stack(10b497000,10b597000)]
      1018cd000 JavaThread "traceMsgQueueThread" daemon [_thread_blocked, id=188145664, stack(10b26e000,10b36e000)]
      102853000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=172019712, stack(10a30d000,10a40d000)]
      102852800 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=170958848, stack(10a20a000,10a30a000)]
      102851800 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=169897984, stack(10a107000,10a207000)]
      102851000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=168837120, stack(10a004000,10a104000)]
      102850000 JavaThread "Surrogate Locker Thread (Concurrent GC)" daemon [_thread_blocked, id=167776256, stack(109f01000,10a001000)]
      102842800 JavaThread "Finalizer" daemon [_thread_blocked, id=162287616, stack(1099c5000,109ac5000)]
      102841800 JavaThread "Reference Handler" daemon [_thread_blocked, id=161226752, stack(1098c2000,1099c2000)]
      101801000 JavaThread "main" [_thread_blocked, id=5246976, stack(100401000,100501000)]
    Other Threads:
      10283d000 VMThread [stack: 1097bf000,1098bf000] [id=160165888]
      10285d000 WatcherThread [stack: 10a410000,10a510000] [id=173080576]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    par new generation   total 19136K, used 9943K [7eae00000, 7ec2c0000, 7ece00000)
      eden space 17024K,  46% used [7eae00000, 7eb5a5ec8, 7ebea0000)
      from space 2112K, 100% used [7ec0b0000, 7ec2c0000, 7ec2c0000)
      to   space 2112K,   0% used [7ebea0000, 7ebea0000, 7ec0b0000)
    concurrent mark-sweep generation total 144152K, used 110056K [7ece00000, 7f5ac6000, 7fae00000)
    concurrent-mark-sweep perm gen total 62268K, used 37524K [7fae00000, 7feacf000, 800000000)
    Code Cache  [103801000, 104192000, 106801000)
    total_blobs=2217 nmethods=1445 adapters=734 free_code_cache=40529280 largest_free_block=47360
    Virtual Machine Arguments:
    JVM Args: -D__jvm_launched=1329508711033330 -Xbootclasspath/a:/System/Library/Frameworks/JavaVM.framework/Resources/Deploy. bundle/Contents/Resources/Java/deploy.jar:/System/Library/Frameworks/JavaVM.fram ework/Resources/Deploy.bundle/Contents/Resources/Java/javaws.jar:/System/Library /Frameworks/JavaVM.framework/Resources/Deploy.bundle/Contents/Resources/Java/plu gin.jar -Djava.applet.host=world8.runescape.com -Dapple.awt.UIElement=true -Dsun.awt.warmup=true -Xmx256m -Xss1m -Xincgc -XX:+UseConcMarkSweepGC -Dsun.java2d.noddraw=true
    Java Command: sun.plugin2.main.client.PluginMain write_pipe_name=/var/folders/Aa/Aa4dzX7xHJmbzy55DpvyiE+++TI/-Tmp-/.java.deploy. 90460.994108354874315847
    Launcher Type: SUN_STANDARD
    Physical Memory: Page Size = 4k, Total = 3840M, Free = 774M
    Thread 0:  Dispatch queue: com.apple.main-thread
    0   libSystem.B.dylib                       0x00007fff885cdd7a mach_msg_trap + 10
    1   libSystem.B.dylib                       0x00007fff885ce3ed mach_msg + 59
    2   com.apple.CoreFoundation                0x00007fff864f2902 __CFRunLoopRun + 1698
    3   com.apple.CoreFoundation                0x00007fff864f1d8f CFRunLoopRunSpecific + 575
    4   com.apple.HIToolbox                     0x00007fff857827ee RunCurrentEventLoopInMode + 333
    5   com.apple.HIToolbox                     0x00007fff857825f3 ReceiveNextEventCommon + 310
    6   com.apple.HIToolbox                     0x00007fff857824ac BlockUntilNextEventMatchingListInMode + 59
    7   com.apple.AppKit                        0x00007fff85ae6eb2 _DPSNextEvent + 708
    8   com.apple.AppKit                        0x00007fff85ae6801 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 155
    9   libawt.jnilib                           0x000000010b6f1f0d -[NSApplicationAWT nextEventMatchingMask:untilDate:inMode:dequeue:] + 124
    10  com.apple.AppKit                        0x00007fff85aac68f -[NSApplication run] + 395
    11  libawt.jnilib                           0x000000010b69e19c +[AWTStarter startAWT:] + 1495
    12  libawt.jnilib                           0x000000010b69db16 -[CPerformer perform] + 93
    13  com.apple.Foundation                    0x00007fff8357745f __NSThreadPerformPerform + 219
    14  com.apple.CoreFoundation                0x00007fff864f43d1 __CFRunLoopDoSources0 + 1361
    15  com.apple.CoreFoundation                0x00007fff864f25c9 __CFRunLoopRun + 873
    16  com.apple.CoreFoundation                0x00007fff864f1d8f CFRunLoopRunSpecific + 575
    17  java                                    0x000000010000483f 0x100000000 + 18495
    18  java                                    0x0000000100004296 0x100000000 + 17046
    19  java                                    0x0000000100001a94 0x100000000 + 6804
    Thread 1:
    0   libSystem.B.dylib                       0x00007fff885cdd7a mach_msg_trap + 10
    1   libSystem.B.dylib                       0x00007fff885ce3ed mach_msg + 59
    2   libclient64.dylib                       0x000000010100d903 jio_snprintf + 37641
    3   libclient64.dylib                       0x000000010100d7c3 jio_snprintf + 37321
    4   libclient64.dylib                       0x00000001010b2597 JVM_MonitorWait + 4001
    5   libclient64.dylib                       0x00000001010b1a24 JVM_MonitorWait + 1070
    6   libclient64.dylib                       0x00000001010b1690 JVM_MonitorWait + 154
    7   libjvmlinkage.dylib                     0x0000000100093b9b JVM_MonitorWait + 59
    8   ???                                     0x0000000103811d6e 0 + 4353760622
    9   ???                                     0x000000010380685a 0 + 4353714266
    10  ???                                     0x00000001038069b3 0 + 4353714611
    11  ???                                     0x00000001038069b3 0 + 4353714611
    12  ???                                     0x000000010380685a 0 + 4353714266
    13  ???                                     0x000000010380685a 0 + 4353714266
    14  ???                                     0x0000000103801438 0 + 4353692728
    15  libclient64.dylib                       0x00000001010a5152 JVM_Lseek + 193185
    16  libclient64.dylib                       0x00000001010a4f16 JVM_Lseek + 192613
    17  libclient64.dylib                       0x00000001010c8e0e JVM_FindLoadedClass + 3186
    18  libclient64.dylib                       0x00000001010c8cb6 JVM_FindLoadedClass + 2842
    19  java                                    0x0000000100002cef 0x100000000 + 11503
    20  java                                    0x000000010000323c 0x100000000 + 12860
    21  libSystem.B.dylib                       0x00007fff88606fd6 _pthread_start + 331
    22  libSystem.B.dylib                       0x00007fff88606e89 thread_start + 13
    Thread 2:  Java: Exception Handler Thread
    0   libSystem.B.dylib                       0x00007fff885cdd7a mach_msg_trap + 10
    1   libSystem.B.dylib                       0x00007fff885ce3ed mach_msg + 59
    2   libSystem.B.dylib                       0x00007fff8864aa17 mach_msg_server + 468
    3   libclient64.dylib                       0x000000010100e7cb jio_snprintf + 41425
    4   libclient64.dylib                       0x000000010100e683 jio_snprintf + 41097
    5   libclient64.dylib                       0x000000010100d264 jio_snprintf + 35946
    6   libSystem.B.dylib                       0x00007fff88606fd6 _pthread_start + 331
    7   libSystem.B.dylib                       0x00007fff88606e89 thread_start + 13
    Thread 3:  Java: Gang worker#0 (Parallel GC Threads)
    0   libSystem.B.dylib                       0x00007fff885cdd7a mach_msg_trap + 10
    1   libSystem.B.dylib                       0x00007fff885ce3ed mach_msg + 59
    2   libclient64.dylib                       0x000000010100d903 jio_snprintf + 37641
    3   libclient64.dylib                       0x000000010100d7c3 jio_snprintf + 37321
    4   libclient64.dylib                       0x000000010100d722 jio_snprintf + 37160
    5   libclient64.dylib                       0x000000010100d2fd jio_snprintf + 36099
    6   libclient64.dylib                       0x000000010100d1a3 jio_snprintf + 35753
    7   libclient64.dylib                       0x0000000101025fa4 jio_vsnprintf + 312
    8   libclient64.dylib                       0x000000010100d264 jio_snprintf + 35946
    9   libSystem.B.dylib                       0x00007fff88606fd6 _pthread_start + 331
    10  libSystem.B.dylib                       0x00007fff88606e89 thread_start + 13
    Thread 4:  Java: Gang worker#1 (Parallel GC Threads)
    0   libSystem.B.dylib                       0x00007fff885cdd7a mach_msg_trap + 10
    1   libSystem.B.dylib                       0x00007fff885ce3ed mach_msg + 59
    2   libclient64.dylib                       0x000000010100d903 jio_snprintf + 37641
    3   libclient64.dylib                       0x000000010100d7c3 jio_snprintf + 37321
    4   libclient64.dylib                       0x000000010100d722 jio_snprintf + 37160
    5   libclient64.dylib                       0x000000010100d2fd jio_snprintf + 36099
    6   libclient64.dylib                       0x000000010100d1a3 jio_snprintf + 35753
    7   libclient64.dylib                       0x0000000101025fa4 jio_vsnprintf + 312
    8   libclient64.dylib                       0x000000010100d264 jio_snprintf + 35946
    9   libSystem.B.dylib                       0x00007fff88606fd6 _pthread_start + 331
    10  libSystem.B.dylib                       0x00007fff88606e89 thread_start + 13
    Thread 5:  Java: Concurrent Mark-Sweep GC Thread
    0   libSystem.B.dylib                       0x00007fff885cdd7a mach_msg_trap + 10
    1   libSystem.B.dylib                       0x00007fff885ce3ed mach_msg + 59
    2   libclient64.dylib                       0x000000010100d903 jio_snprintf + 37641
    3   libclient64.dylib                       0x000000010100d7c3 jio_snprintf + 37321
    4   libclient64.dylib                       0x000000010100d722 jio_snprintf + 37160
    5   libclient64.dylib                       0x000000010100d2fd jio_snprintf + 36099
    6   libclient64.dylib                       0x000000010100d1a3 jio_snprintf + 35753
    7   libclient64.dylib                       0x0000000101302097 JVM_Timeout + 883428
    8   libclient64.dylib                       0x000000010122803c JVM_Yield + 40397
    9   libclient64.dylib                       0x000000010122783d JVM_Yield + 38350
    10  libclient64.dylib                       0x00000001012277af JVM_Yield + 38208
    11  libclient64.dylib                       0x000000010122764e JVM_Yield + 37855
    12  libclient64.dylib                       0x00000001012273eb JVM_Yield + 37244
    13  libclient64.dylib                       0x000000010121edca JVM_Yield + 2907
    14  libclient64.dylib                       0x000000010102c3dc jio_vsnprintf + 25968
    15  libclient64.dylib                       0x000000010100d264 jio_snprintf + 35946
    16  libSystem.B.dylib                       0x00007fff88606fd6 _pthread_start + 331
    17  libSystem.B.dylib                       0x00007fff88606e89 thread_start + 13
    Thread 6:  Java: VM Thread
    0   libSystem.B.dylib                       0x00007fff885cdd7a mach_msg_trap + 10
    1   libSystem.B.dylib                       0x00007fff885ce3ed mach_msg + 59
    2   libclient64.dylib                       0x000000010100d995 jio_snprintf + 37787
    3   libclient64.dylib                       0x000000010102c54a jio_vsnprintf + 26334
    4   libclient64.dylib                       0x000000010100d2fd jio_snprintf + 36099
    5   libclient64.dylib                       0x000000010100d1a3 jio_snprintf + 35753
    6   libclient64.dylib                       0x00000001010a3f8f JVM_Lseek + 188638
    7   libclient64.dylib                       0x00000001010a3cdf JVM_Lseek + 187950
    8   libclient64.dylib                       0x000000010100d264 jio_snprintf + 35946
    9   libSystem.B.dylib                       0x00007fff88606fd6 _pthread_start + 331
    10  libSystem.B.dylib                       0x00007fff88606e89 thread_start + 13
    Thread 7:  Java: Reference Handler
    0   libSystem.B.dylib                       0x00007fff885cdd7a mach_msg_trap + 10
    1   libSystem.B.dylib                       0x00007fff885ce3ed mach_msg + 59
    2   libclient64.dylib                       0x000000010100d903 jio_snprintf + 37641
    3   libclient64.dylib                       0x000000010100d7c3 jio_snprintf + 37321
    4   libclient64.dylib                       0x00000001010b2597 JVM_MonitorWait + 4001
    5   libclient64.dylib                       0x00000001010b1a24 JVM_MonitorWait + 1070
    6   libclient64.dylib                       0x00000001010b1690 JVM_MonitorWait + 154
    7   libjvmlinkage.dylib                     0x0000000100093b9b JVM_MonitorWait + 59
    8   ???                                     0x0000000103a3d848 0 + 4356036680
    9   ???                                     0x00000001039622d4 0 + 4355138260
    10  ???                                     0x0000000103801438 0 + 4353692728
    11  libclient64.dylib                       0x00000001010a5152 JVM_Lseek + 193185
    12  libclient64.dylib                       0x00000001010b11dc JVM_StartThread + 2565
    13  libclient64.dylib                       0x00000001010b10d2 JVM_StartThread + 2299
    14  libclient64.dylib                       0x00000001010b1072 JVM_StartThread + 2203
    15  libclient64.dylib                       0x00000001010b0f14 JVM_StartThread + 1853
    16  libclient64.dylib                       0x00000001010b0d29 JVM_StartThread + 1362
    17  libclient64.dylib                       0x000000010100d264 jio_snprintf + 35946
    18  libSystem.B.dylib                       0x00007fff88606fd6 _pthread_start + 331
    19  libSystem.B.dylib                       0x00007fff88606e89 thread_start + 13
    Thread 8:  Java: Finalizer
    0   libSystem.B.dylib                       0x00007fff885cdd7a mach_msg_trap + 10
    1   libSystem.B.dylib                       0x00007fff885ce3ed mach_msg + 59
    2   libclient64.dylib                       0x000000010100d903 jio_snprintf + 37641
    3   libclient64.dylib                       0x000000010100d7c3 jio_snprintf + 37321
    4   libclient64.dylib                       0x00000001010b2597 JVM_MonitorWait + 4001
    5   libclient64.dylib                       0x00000001010b1a24 JVM_MonitorWait + 1070
    6   libclient64.dylib                       0x00000001010b1690 JVM_MonitorWait + 154
    7   libjvmlinkage.dylib                     0x0000000100093b9b JVM_MonitorWait + 59
    8   ???                                     0x0000000103a3d848 0 + 4356036680
    9   ???                                     0x000000010380685a 0 + 4353714266
    10  ???                                     0x00000001038069b3 0 + 4353714611
    11  ???                                     0x00000001038069b3 0 + 4353714611
    12  ???                                     0x0000000103801438 0 + 4353692728
    13  libclient64.dylib                       0x00000001010a5152 JVM_Lseek + 193185
    14  libclient64.dylib                       0x00000001010b11dc JVM_StartThread + 2565
    15  libclient64.dylib                       0x00000001010b10d2 JVM_StartThread + 2299
    16  libclient64.dylib                       0x00000001010b1072 JVM_StartThread + 2203
    17  libclient64.dylib                       0x00000001010b0f14 JVM_StartThread + 1853
    18  libclient64.dylib                       0x00000001010b0d29 JVM_StartThread + 1362
    19  libclient64.dylib                       0x000000010100d264 jio_snprintf + 35946
    20  libSystem.B.dylib                       0x00007fff88606fd6 _pthread_start + 331
    21  libSystem.B.dylib                       0x00007fff88606e89 thread_start + 13
    Thread 9:  Dispatch queue: com.apple.libdispatch-manager
    0   libSystem.B.dylib                       0x00007fff885e6c0a kevent + 10
    1   libSystem.B.dylib                       0x00007fff885e8add _dispatch_mgr_invoke + 154
    2   libSystem.B.dylib                       0x00007fff885e87b4 _dispatch_queue_invoke + 185
    3   libSystem.B.dylib                       0x00007fff885e82de _dispatch_worker_thread2 + 252
    4   libSystem.B.dylib                       0x00007fff885e7c08 _pthread_wqthread + 353
    5   libSystem.B.dylib                       0x00007fff885e7aa5 start_wqthread + 13
    Thread 10:  Java: Surrogate Locker Thread (Concurrent GC)
    0   libSystem.B.dylib                       0x00007fff885cdd7a mach_msg_trap + 10
    1   libSystem.B.dylib                       0x00007fff885ce3ed mach_msg + 59
    2   libclient64.dylib                       0x000000010100d903 jio_snprintf + 37641
    3   libclient64.dylib                       0x000000010100d7c3 jio_snprintf + 37321
    4   libclient64.dylib                       0x000000010100d722 jio_snprintf + 37160
    5   libclient64.dylib                       0x000000010100d2fd jio_snprintf + 36099
    6   libclient64.dylib                       0x000000010100d10a jio_snprintf + 35600
    7   libclient64.dylib                       0x00000001010c2261 JVM_IsPrimitiveClass + 6521
    8   libclient64.dylib                       0x00000001010b0f14 JVM_StartThread + 1853
    9   libclient64.dylib                       0x00000001010b0d29 JVM_StartThread + 1362
    10  libclient64.dylib                       0x000000010100d264 jio_snprintf + 35946
    11  libSystem.B.dylib                       0x00007fff88606fd6 _pthread_start + 331
    12  libSystem.B.dylib                       0x00007fff88606e89 thread_start + 13
    Thread 11:  Java: Signal Dispatcher
    0   libSystem.B.dylib                       0x00007fff885cddb6 semaphore_wait_trap + 10
    1   libclient64.dylib                       0x00000001010c2aa3 JVM_IsPrimitiveClass + 8635
    2   libclient64.dylib                       0x00000001010c252a JVM_IsPrimitiveClass + 7234
    3   libclient64.dylib                       0x00000001010b0f14 JVM_StartThread + 1853
    4   libclient64.dylib                       0x00000001010b0d29 JVM_StartThread + 1362
    5   libclient64.dylib                       0x000000010100d264 jio_snprintf + 35946
    6   libSystem.B.dylib                       0x00007fff88606fd6 _pthread_start + 331
    7   libSystem.B.dylib                       0x00007fff88606e89 thread_start + 13
    Thread 12:  Java: C2 CompilerThread0
    0   libSystem.B.dylib                       0x00007fff885cdd7a mach_msg_trap + 10
    1   libSystem.B.dylib                       0x00007fff885ce3ed mach_msg + 59
    2   libclient64.dylib                       0x000000010100d903 jio_snprintf + 37641
    3   libclient64.dylib                       0x000000010100d7c3 jio_snprintf + 37321
    4   libclient64.dylib                       0x000000010100d722 jio_snprintf + 37160
    5   libclient64.dylib                       0x000000010100d2fd jio_snprintf + 36099
    6   libclient64.dylib                       0x000000010100d10a jio_snprintf + 35600
    7   libclient64.dylib                       0x00000001010c9319 JVM_Write + 346
    8   libclient64.dylib                       0x00000001010c3913 JVM_IsPrimitiveClass + 12331
    9   libclient64.dylib                       0x00000001010b0f14 JVM_StartThread + 1853
    10  libclient64.dylib                       0x00000001010b0d29 JVM_StartThread + 1362
    11  libclient64.dylib                       0x000000010100d264 jio_snprintf + 35946
    12  libSystem.B.dylib                       0x00007fff88606fd6 _pthread_start + 331
    13  libSystem.B.dylib                       0x00007fff88606e89 thread_start + 13
    Thread 13:  Java: C2 CompilerThread1
    0   libSystem.B.dylib                       0x00007fff885cdd7a mach_msg_trap + 10
    1   libSystem.B.dylib                       0x00007fff885ce3ed mach_msg + 59
    2   libclient64.dylib                       0x000000010100d903 jio_snprintf + 37641
    3   libclient64.dylib                       0x000000010100d7c3 jio_snprintf + 37321
    4   libclient64.dylib                       0x000000010100d722 jio_snprintf + 37160
    5   libclient64.dylib                       0x000000010100d2fd jio_snprintf + 36099
    6   libclient64.dylib                       0x000000010100d10a jio_snprintf + 35600
    7   libclient64.dylib                       0x00000001010c9319 JVM_Write + 346
    8   libclient64.dylib                       0x00000001010c3913 JVM_IsPrimitiveClass + 12331
    9   libclient64.dylib                       0x00000001010b0f14 JVM_StartThread + 1853
    10  libclient64.dylib                       0x00000001010b0d29 JVM_StartThread + 1362
    11  libclient64.dylib                       0x000000010100d264 jio_snprintf + 35946
    12  libSystem.B.dylib                       0x00007fff88606fd6 _pthread_start + 331
    13  libSystem.B.dylib                       0x00007fff88606e89 thread_start + 13
    Thread 14:  Java: Low Memory Detector
    0   libSystem.B.dylib                       0x00007fff885cdd7a mach_msg_trap + 10
    1   libSystem.B.dylib                       0x00007fff885ce3ed mach_msg + 59
    2   libclient64.dylib                       0x000000010100d903 jio_snprintf + 37641
    3   libclient64.dylib                       0x000000010100d7c3 jio_snprintf + 37321
    4   libclient64.dylib                       0x000000010100d722 jio_snprintf + 37160
    5   libclient64.dylib                       0x000000010100d2fd jio_snprintf + 36099
    6   libclient64.dylib                       0x000000010100d1a3 jio_snprintf + 35753
    7   libclient64.dylib                       0x00000001010c5318 JVM_IsPrimitiveClass + 18992
    8   libclient64.dylib                       0x00000001010b0f14 JVM_StartThread + 1853
    9   libclient64.dylib                       0x00000001010b0d29 JVM_StartThread + 1362
    10  libclient64.dylib                       0x000000010100d264 jio_snprintf + 35946
    11  libSystem.B.dylib                       0x00007fff88606fd6 _pthread_start + 331
    12  libSystem.B.dylib                       0x00007fff88606e89 thread_start + 13
    Thread 15:  Java: VM Periodic Task Thread
    0   libSystem.B.dylib                       0x00007fff885cdd7a mach_msg_trap + 10
    1   libSystem.B.dylib                       0x00007fff885ce3ed mach_msg + 59
    2   libclient64.dylib                       0x000000010100d995 jio_snprintf + 37787
    3   libclient64.dylib                       0x00000001011afc26 JVM_GetClassInterfaces + 11348
    4   libclient64.dylib                       0x00000001010c73a7 JVM_IsPrimitiveClass + 27327
    5   libclient64.dylib                       0x000000010100d264 jio_snprintf + 35946
    6   libSystem.B.dylib                       0x00007fff88606fd6 _pthread_start + 331
    7   libSystem.B.dylib                       0x00007fff88606e89 thread_start + 13
    Thread 16:  Java: traceMsgQueueThread
    0   libSystem.B.dylib                       0x00007fff885cdd7a mach_msg_trap + 10
    1   libSystem.B.dylib                       0x00007fff885ce3ed mach_msg + 59
    2   libclient64.dylib                       0x000000010100d903 jio_snprintf + 37641
    3   libclient64.dylib                       0x000000010100d7c3 jio_snprintf + 37321
    4   libclient64.dylib                       0x00000001010b2597 JVM_MonitorWait + 4001
    5   libclient64.dylib                       0x00000001010b1a24 JVM_MonitorWait + 1070
    6   libclient64.dylib                       0x00000001010b1690 JVM_MonitorWait + 154
    7   libjvmlinkage.dylib                     0x0000000100093b9b JVM_MonitorWait + 59
    8   ???                                     0x0000000103811d6e 0 + 4353760622
    9   ???                                     0x000000010380685a 0 + 4353714266
    10  ???                                     0x000000010380685a 0 + 4353714266
    11  ???                                     0x0000000103806d34 0 + 4353715508
    12  ???                                     0x0000000103801438 0 + 4353692728
    13  libclient64.dylib                       0x00000001010a5152 JVM_Lseek + 193185
    14  libclient64.dylib                       0x00000001010b11dc JVM_StartThread + 2565
    15  libclient64.dylib                       0x00000001010b10d2 JVM_StartThread + 2299
    16  libclient64.dylib                       0x00000001010b1072 JVM_StartThread + 2203
    17  libclient64.dylib                       0x00000001010b0f14 JVM_StartThread + 1853
    18  libclient64.dylib                       0x00000001010b0d29 JVM_StartThread + 1362
    19  libclient64.dylib                       0x000000010100d264 jio_snprintf + 35946
    20  libSystem.B.dylib                       0x00007fff88606fd6 _pthread_start + 331
    21  libSystem.B.dylib                       0x00007fff88606e89 thread_start + 13
    Thread 17:  Java: Timer-0
    0   libSystem.B.dylib                       0x00007fff885cdd7a mach_msg_trap + 10
    1   libSystem.B.dylib                       0x00007fff885ce3ed mach_msg + 59
    2   libclient64.dylib                       0x000000010100d903 jio_snprintf + 37641
    3   libclient64.dylib                       0x000000010100d7c3 jio_snprintf + 37321
    4   libclient64.dylib                       0x00000001010b2597 JVM_MonitorWait + 4001
    5   libclient64.dylib                       0x00000001010b1a24 JVM_MonitorWait + 1070
    6   libclient64.dylib                       0x00000001010b1690 JVM_MonitorWait + 154
    7   libjvmlinkage.dylib                     0x0000000100093b9b JVM_MonitorWait + 59
    8   ???                                     0x0000000103811d6e 0 + 4353760622
    9   ???                                     0x000000010380685a 0 + 4353714266
    10  ???                                     0x000000010380685a 0 + 4353714266
    11  ???                                     0x000000010380685a 0 + 4353714266
    12  ???                                     0x0000000103801438 0 + 4353692728
    13  libclient64.dylib                       0x00000001010a5152 JVM_Lseek + 193185
    14  libclient64.dylib                       0x00000001010b11dc JVM_StartThread + 2565
    15  libclient64.dylib                       0x00000001010b10d2 JVM_StartThread + 2299
    16  libclient64.dylib                       0x00000001010b1072 JVM_StartThread + 2203
    17  libclient64.dylib                       0x00000001010b0f14 JVM_StartThread + 1853
    18  libclient64.dylib                       0x00000001010b0d29 JVM_StartThread + 1362
    19  libclient64.dylib                       0x000000010100d264 jio_snprintf + 35946
    20  libSystem.B.dylib                       0x00007fff88606fd6 _pthread_start + 331
    21  libSystem.B.dylib                       0x00007fff88606e89 thread_start + 13
    Thread 18:  Java: AWT-Shutdown
    0   libSystem.B.dylib                       0x00007fff885cdd7a mach_msg_trap + 10
    1   libSystem.B.dylib                       0x00007fff885ce3ed mach_msg + 59
    2   libclient64.dylib                       0x000000010100d903 jio_snprintf + 37641
    3   libclient64.dylib                       0x000000010100d7c3 jio_snprintf + 37321
    4   libclient64.dylib                       0x00000001010b2597 JVM_MonitorWait + 4001
    5   libclient64.dylib                       0x00000001010b1a24 JVM_MonitorWait + 1070
    6   libclient64.dylib                       0x00000001010b1690 JVM_MonitorWait + 154
    7   libjvmlinkage.dylib                     0x0000000100093b9b JVM_MonitorWait + 59
    8   ???                                     0x0000000103811d6e 0 + 4353760622
    9   ???                                     0x000000010380685a 0 + 4353714266
    10  ???                                     0x000000010380685a 0 + 4353714266
    11  ???                                     0x0000000103806d34 0 + 4353715508
    12  ???                                     0x0000000103801438 0 + 4353692728
    13  libclient64.dylib                       0x00000001010a5152 JVM_Lseek + 193185
    14  libclient64.dylib                       0x00000001010b11dc JVM_StartThread + 2565
    15  libclient64.dylib                       0x00000001010b10d2 JVM_StartThread + 2299
    16  libclient64.dylib                       0x00000001010b1072 JVM_StartThread + 2203
    17  libclient64.dylib                       0x00000001010b0f14 JVM_StartThread + 1853
    18  libclient64.dylib                       0x00000001010b0d29 JVM_StartThread + 1362
    19  libclient64.dylib                       0x000000010100d264 jio_snprintf + 35946
    20  libSystem.B.dylib                       0x00007fff88606fd6 _pthread_start + 331
    21  libSystem.B.dylib                       0x00007fff88606e89 thread_start + 13
    Thread 19:  Java: Java Plug-In Pipe Worker Thread (Client-Side)
    0   libSystem.B.dylib                       0x00007fff885d8466 read + 10
    1   libdeploy.jnilib                        0x0000000109d4d5d9 Java_com_sun_deploy_net_socket_UnixSocketImpl_unStreamSocketRead + 140
    2   ???                                     0x0000000103811d6e 0 + 4353760622
    3   ???                                     0x000000010380696e 0 + 4353714542
    4   ???                                     0x000000010380696e 0 + 4353714542
    5   ???                                     0x000000010380696e 0 + 4353714542
    6   ???                                     0x000000010380696e 0 + 4353714542
    7   ???                                     0x000000010386d2b4 0 + 4354134708
    8   ???                                     0xfda21644ff67b8d7 0 + 18276194723421468887
    Thread 20:  Java: SysExecutionTheadCreator
    0   libSystem.B.dylib                       0x00007fff885cdd7a mach_msg_trap + 10
    1   libSystem.B.dylib                       0x00007fff885ce3ed mach_msg + 59
    2   libclient64.dylib                       0x000000010100d903 jio_snprintf + 37641
    3   libclient64.dylib                       0x000000010100d7c3 jio_snprintf + 37321
    4   libclient64.dylib                       0x00000001010b2597 JVM_MonitorWait + 4001
    5   libclient64.dylib                       0x00000001010b1a24 JVM_MonitorWait + 1070
    6   libclient64.dylib                       0x00000001010b1690 JVM_MonitorWait + 154
    7   libjvmlinkage.dylib                     0x0000000100093b9b JVM_MonitorWait + 59
    8   ???                                     0x0000000103811d6e 0 + 4353760622
    9   ???                                     0x000000010380685a 0 + 4353714266
    10  ???                                     0x000000010380685a 0 + 4353714266
    11  ???                                     0x0000000103801438 0 + 4353692728
    12  libclient64.dylib                       0x00000001010a5152 JVM_Lseek + 193185
    13  libclient64.dylib                       0x00000001010b11dc JVM_StartThread + 2565
    14  libclient64.dylib                       0x00000001010b10d2 JVM_StartThread + 2299
    15  libclient64.dylib                       0x00000001010b1072 JVM_StartThread + 2203
    16  libclient64.dylib                       0x00000001010b0f14 JVM_StartThread + 1853
    17  libclient64.dylib                       0x00000001010b0d29 JVM_StartThread + 1362
    18  libclient64.dylib                       0x000000010100d264 jio_snprintf + 35946
    19  libSystem.B.dylib                       0x00007fff88606fd6 _pthread_start + 331
    20  libSystem.B.dylib                       0x00007fff88606e89 thread_start + 13
    Thread 21:  Java: CacheMemoryCleanUpThread
    0   libSystem.B.dylib                       0x00007fff885cdd7a mach_msg_trap + 10
    1   libSystem.B.dylib                       0x00007fff885ce3ed mach_msg + 59
    2   libclient64.dylib                       0x000000010100d903 jio_snprintf + 37641
    3   libclient64.dylib                       0x000000010100d7c3 jio_snprintf + 37321
    4   libclient64.dylib                       0x00000001010b2597 JVM_MonitorWait + 4001
    5   libclient64.dylib                       0x00000001010b1a24 JVM_MonitorWait + 1070
    6   libclient64.dylib                       0x00000001010b1690 JVM_MonitorWait + 154
    7   libjvmlinkage.dylib                     0x0000000100093b9b JVM_MonitorWait + 59
    8   ???                                     0x0000000103811d6e 0 + 4353760622
    9   ???                                     0x000000010380685a 0 + 4353714266
    10  ???                                     0x00000001038069b3 0 + 4353714611
    11  ???                                     0x00000001038069b3 0 + 4353714611
    12  ???                                     0x0000000103801438 0 + 4353692728
    13  libclient64.dylib                       0x00000001010a5152 JVM_Lseek + 193185
    14  libclient64.dylib                       0x00000001010b11dc JVM_StartThread + 2565
    15  libclient64.dylib                       0x00000001010b10d2 JVM_StartThread + 2299
    16  libclient64.dylib                       0x00000001010b1072 JVM_StartThread + 2203
    17  libclient64.dylib                       0x00000001010b0f14 JVM_StartThread + 1853
    18  libclient64.dylib                       0x00000001010b0d29 JVM_StartThread + 1362
    19  libclient64.dylib                       0x000000010100d264 jio_snprintf + 35946
    20  libSystem.B.dylib                       0x00007fff88606fd6 _pthread_start + 331
    21  libSystem.B.dylib                       0x00007fff88606e89 thread_start + 13
    Thread 22:  Java: CacheCleanUpThread
    0   libSystem.B.dylib                       0x00007fff885cdd7a mach_msg_trap + 10
    1   libSystem.B.dylib                       0x00007fff885ce3ed mach_msg + 59
    2   libclient64.dylib                       0x000000010100d903 jio_snprintf + 37641
    3   libclient64.dylib                       0x000000010100d7c3 jio_snprintf + 37321
    4   libclient64.dylib                       0x00000001010b2597 JVM_MonitorWait + 4001
    5   libclient64.dylib                       0x00000001010b1a24 JVM_MonitorWait + 1070
    6   libclient64.dylib                       0x00000001010b1690 JVM_MonitorWait + 154
    7   libjvmlinkage.dylib                     0x0000000100093b9b JVM_MonitorWait + 59
    8   ???                                     0x0000000103811d6e 0 + 4353760622
    9   ???                                     0x000000010380685a 0 + 4353714266
    10  ???                                     0x000000010380685a 0 + 4353714266
    11  ???                                     0x0000000103801438 0 + 4353692728
    12  libclient64.dylib                       0x00000001010a5152 JVM_Lseek + 193185
    13  libclient64.dylib                       0x00000001010b11dc JVM_StartThread + 2565
    14  libclient64.dylib                       0x00000001010b10d2 JVM_StartThread + 2299
    15  libclient64.dylib                       0x00000001010b1072 JVM_StartThread + 2203
    16  libclient64.dylib                       0x00000001010b0f14 JVM_StartThread + 1853
    17  libclient64.dylib                       0x00000001010b0d29 JVM_StartThread + 1362
    18  libclient64.dylib                       0x000000010100d264 jio_snprintf + 35946
    19  libSystem.B.dylib                       0x00007fff88606fd6 _pthread_start + 331
    20  libSystem.B.dylib                       0x00007fff88606e89 thread_start + 13
    Thread 23:  Java: AWT-EventQueue-0
    0   libSystem.B.dylib                       0x00007fff885cdd7a mach_msg_trap + 10
    1   libSystem.B.dylib                       0x00007fff885ce3ed mach_msg + 59
    2   libclient64.dylib                       0x000000010100d903 jio_snprintf + 37641
    3   libclient64.dylib                       0x000000010100d7c3 jio_snprintf + 37321
    4   libclient64.dylib                       0x00000001010b2597 JVM_MonitorWait + 4001
    5   libclient64.dylib                       0x00000001010b1a24 JVM_MonitorWait + 1070
    6   libclient64.dylib                       0x00000001010b1690 JVM_MonitorWait + 154
    7   libjvmlinkage.dylib                     0x0000000100093b9b JVM_MonitorWait + 59
    8   ???                                     0x0000000103a3d848 0 + 4356036680
    9   ???                                     0x0000000103aaac60 0 + 4356484192
    Thread 24:  Java: Browser Side Object Cleanup Thread
    0   libSystem.B.dylib                       0x00007fff885cdd7a mach_msg_trap + 10
    1   libSystem.B.dylib                       0x00007fff885ce3ed mach_msg + 59
    2   libclient64.dylib                       0x000000010100d903 jio_snprintf + 37641
    3   libclient64.dylib                       0x000000010100d7c3 jio_snprintf + 37321
    4   libclient64.dylib                       0x00000001010b2597 JVM_MonitorWait + 4001
    5   libclient64.dylib                       0x00000001010b1a24 JVM_MonitorWait + 1070
    6   libclient64.dylib                       0x00000001010b1690 JVM_MonitorWait + 154
    7   libjvmlinkage.dylib                     0x0000000100093b9b JVM_MonitorWait + 59
    8   ???                                     0x0000000103811d6e 0 + 4353760622
    9   ???                                     0x000000010380685a 0 + 4353714266
    10  ???                                     0x00000001038069b3 0 + 4353714611
    11  ???                                     0x00000001038069b3 0 + 4353714611
    12  ???                                     0x0000000103801438 0 + 4353692728
    13  libclient64.dylib                       0x00000001010a5152 JVM_Lseek + 193185
    14  libclient64.dylib                       0x00000001010b11dc JVM_StartThread + 2565
    15  libclient64.dylib                       0x00000001010b10d2 JVM_StartThread + 2299
    16  libclient64.dylib                       0x00000001010b1072 JVM_StartThread + 2203
    17  libclient64.dylib                       0x00000001010b0f14 JVM_StartThread + 1853
    18  libclient64.dylib                       0x00000001010b0d29 JVM_StartThread + 1362
    19  libclient64.dylib                       0x000000010100d264 jio_snprintf + 35946
    20  libSystem.B.dylib                       0x00007fff88606fd6 _pthread_start + 331
    21  libSystem.B.dylib                       0x00007fff88606e89 thread_start + 13
    Thread 25:  Java: Applet 1 LiveConnect Worker Thread
    0   libSystem.B.dylib                       0x00007fff885cdd7a mach_msg_trap + 10
    1   libSystem.B.dylib                       0x00007fff885ce3ed mach_msg + 59
    2   libclient64.dylib                       0x000000010100d903 jio_snprintf + 37641
    3   libclient64.dylib                       0x000000010100d7c3 jio_snprintf + 37321
    4   libclient64.dylib                       0x00000001010b2597 JVM_MonitorWait + 4001
    5   libclient64.dylib                       0x00000001010b1a24 JVM_MonitorWait + 1070
    6   libclient64.dylib                       0x00000001010b1690 JVM_MonitorWait + 154
    7   libjvmlinkage.dylib                     0x0000000100093b9b JVM_MonitorWait + 59
    8   ???                                     0x0000000103811d6e 0 + 4353760622
    9   ???                                     0x000000010380685a 0 + 4353714266
    10  ???                                     0x000000010380685a 0 + 4353714266
    11  ???                                     0x0000000103806d34 0 + 4353715508
    12  ???                                     0x0000000103801438 0 + 4353692728
    13  libclient64.dylib                       0x00000001010a5152 JVM_Lseek + 193185
    14  libclient64.dylib                       0x00000001010b11dc JVM_StartThread + 2565
    15  libclient64.dylib                       0x00000001010b10d2 JVM_StartThread + 2299
    16  libclient64.dylib                       0x00000001010b1072 JVM_StartThread + 2203
    17  libclient64.dylib                       0x00000001010b0f14 JVM_StartThread + 1853
    18  libclient64.dylib                       0x00000001010b0d29 JVM_StartThread + 1362
    19  libclient64.dylib                       0x000000010100d264 jio_snprintf + 35946
    20  libSystem.B.dylib                       0x00007fff88606fd6 _pthread_start + 331
    21  libSystem.B.dylib                       0x00007fff88606e89 thread_start + 13
    Thread 26:  Java: AWT-EventQueue-2
    0   libSystem.B.dylib                       0x00007fff885cdd7a mach_msg_trap + 10
    1   libSystem.B.dylib                       0x00007fff885ce3ed mach_msg + 59
    2   libclient64.dylib                       0x000000010100d903 jio_snprintf + 37641
    3   libclient64.dylib                       0x000000010100d7c3 jio_snprintf + 37321
    4   libclient64.dylib                       0x00000001010b2597 JVM_MonitorWait + 4001
    5   libclient64.dylib                       0x00000001010b1a24 JVM_MonitorWait + 1070
    6   libclient64.dylib                       0x00000001010b1690 JVM_MonitorWait + 154
    7   libjvmlinkage.dylib                     0x0000000100093b9b JVM_MonitorWait + 59
    8   ???                                     0x0000000103a3d848 0 + 4356036680
    9   ???                                     0x0000000103aaac60 0 + 4356484192
    Thread 27:  Java: JVM[id=0]-Heartbeat
    0   libSystem.B.dylib                       0x00007fff885cdd7a mach_msg_trap + 10
    1   libSystem.B.dylib                       0x00007fff885ce3ed mach_msg + 59
    2   libclient64.dylib                       0x000000010100d995 jio_snprintf + 37787
    3   libclient64.dylib                       0x000000010102c54a jio_vsnprintf + 26334
    4   libclient64.dylib                       0x00000001010b25a1 JVM_MonitorWait + 4011
    5   libclient64.dylib                       0x00000001010b1a24 JVM_MonitorWait + 1070
    6   libclient64.dylib                       0x00000001010b1690 JVM_MonitorWait + 154
    7   libjvmlinkage.dylib                     0x0000000100093b9b JVM_MonitorWait + 59
    8   ???                                     0x0000000103a3d848 0 + 4356036680
    9   ???                                     0x000000010380685a 0 + 4353714266
    10  ???                                     0x00000001038069b3 0 + 4353714611
    11  ???                                     0x00000001038069b3 0 + 4353714611
    12  ???                                     0x0000000103801438 0 + 4353692728
    13  libclient64.dylib                       0x00000001010a5152 JVM_Lseek + 193185
    14  libclient64.dylib                       0x00000001010b11dc JVM_StartThread + 2565
    15  libclient64.dylib                       0x00000001010b10d2 JVM_StartThread + 2299
    16  libclient64.dylib                       0x00000001010b1072 JVM_StartThread + 2203
    17  libclient64.dylib                       0x00000001010b0f14 JVM_StartThread + 1853
    18  libclient64.dylib                       0x00000001010b0d29 JVM_StartThread + 1362
    19  libclient64.dylib                       0x000000010100d264 jio_snprintf + 35946
    20  libSystem.B.dylib                       0x00007fff88606fd6 _pthread_start + 331
    21  libSystem.B.dylib                       0x00007fff88606e89 thread_start + 13
    Thread 28:  Java: Java2D Disposer
    0   libSystem.B.dylib                       0x00007fff885cdd7a mach_msg_trap + 10
    1   libSystem.B.dylib                       0x00007fff885ce3ed mach_m

    Did you get this fixed? I have had this error everytime I try to access my bank, inventory, and ither things. Please help.

  • How is it posible to get the File name, size and type from a File out the H

    How is it posible to get the File name, size and type from a File out the HttpServletRequest. I want to upload a File from a client and save it on a server with the client name. I want to conrole before saving the name, type and size of the file.How is it posible to get the File name, size and type from a File out the HttpServletRequest.
    form JSP
    <form name="form" method="post" action="procesuploading.jsp" ENCTYPE="multipart/form-data">
    File: <input type="file" name="filename"/
    Path: <input type="text" readonly="" name="path" value="c:"/
    Saveas: <input type="text" name="saveas"/>
    <input name="submit" type="submit" value="Upload" />
    </form>
    proces JSP
    <%@ page language="java" %>
    <%@ page import="java.util.*" %>
    <%@ page import="FileUploadBean" %>
    <jsp:useBean id="TheBean" scope="page" class="FileUploadBean" />
    <%
    TheBean.doUpload(request);
    %>
    BEAN
    import java.io.*;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.ServletInputStream;
    public class FileUploadBean {
    public void doUpload(HttpServletRequest request) throws IOException
              String melding = "";
              String filename = request.getParameter("saveas");
              String path = request.getParameter("path");
              PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter("test.java")));
              ServletInputStream in = request.getInputStream();
              int i = in.read();
              System.out.println("filename:"+filename);
              System.out.println("path:"+path);
              while (i != -1)
                   pw.print((char) i);
                   i = in.read();
              pw.close();
    }

    Thanks it works great.
    Here an excample from my code
    import org.apache.commons.fileupload.*;
    public class FileUploadBean extends Object implements java.io.Serializable{
    String foutmelding = "geen";
    String path;
    String filename;
    public boolean doUpload(HttpServletRequest request) throws IOException
         try
         // Create a new file upload handler
         FileUpload upload = new FileUpload();
         // Set upload parameters
         upload.setSizeMax(100000);
         upload.setSizeThreshold(100000000);
         upload.setRepositoryPath("/");
         // Parse the request
         List items = upload.parseRequest(request);
         // Process the uploaded fields
         Iterator iter = items.iterator();
         while (iter.hasNext())
         FileItem item = (FileItem) iter.next();
              if (item.isFormField())
                   String stringitem = item.getString();
         else
              String filename = "";
                   int temp = item.getName().lastIndexOf("\\");
                   filename = item.getName().substring(temp,item.getName().length());
                   File bestand = new File(path+filename);
                   if(item.getSize() > SizeMax && SizeMax != -1){foutmelding = "bestand is te groot.";return false;}
                   if(bestand.exists()){foutmelding ="bestand bestaat al";return false;}
                   FileOutputStream fOut = new FileOutputStream(bestand);     
                   BufferedOutputStream bOut = new BufferedOutputStream(fOut);
                   int bytesRead =0;
                   byte[] data = item.get();
                   bOut.write(data, 0 , data.length);     
                   bOut.close();
         catch(Exception e)
              System.out.println("er is een foutontstaan bij het opslaan de een bestand "+e);
              foutmelding = "Bestand opsturen is fout gegaan";
         return true;
         }

Maybe you are looking for

  • How to enter a returnable packaging material during inbound delivery?

    Hi, How do you add a returnable packaging material from vendor as a line item in the inbound delivery? When I try to add a LEIH type material as a line item in the inbound delivery (VL32N), the following error is displayed: "No item category exists (

  • Cannot install GRUB.

    "parted" shows my partition table as follows: Number Start End Size Type File system Flags 1 1049kB 106MB 105MB primary ntfs boot 2 106MB 64.9GB 64.8GB primary ntfs 4 64.9GB 456GB 391GB extended lba 8 64.9GB 96.3GB 31.4GB logical ext4 9 96.3GB 101GB

  • Creation of BP with default role

    Hi ,    I have a requiement where in I want a Business Partner to be created with a default role ,i.e CRM006. I can do this in GUI with the help of authorizations. But the same does not work in PCUI. My requirement is whenever a user creates a Busine

  • Bugs in the installer

    I have run into a problem reinstalling SOA Suite 11.1.1.4 on a Windows XP laptop. In the confirmation page of the installer I can see that all SOA apps and libraries have target as AdminServer. I can modify it manually but I am not sure how it happen

  • Urgent help needed : Error while creating r-tree index

    Hi All: When i try to create an rtree index on a multipolygon layer am getting the following error . Am using the following statement: CREATE INDEX SYSTEM.TEST_IDX ON SYSTEM.TEST("GEOMETRY) INDEXTYPE IS MDSYS.SPATIAL_INDEX PARAMETERS ('SDO_INDX_DIMS=