Threadgroup - nullpointer expcetion (help!)

Please can anybody explain why the following code throws a nullpointer exception in the //PROBLEM HERE line?
My JBuilder debugger shows that when i is 1, my threads array has 101 threads in it, but when I try to do a Thread t = threads[i] t ends up as null, so the System out dies with a nullpointer ...
Where am I going wrong? Is it my understanding of thread groups?
Many thanks for any help...
Ryan Harris
public class Threads {
    public Threads() {
    public static void main(String[] args) {
        Threads t = new Threads();
        t.showThreadGroup();
    void showThreadGroup(){
        ThreadGroup tg = Thread.currentThread().getThreadGroup();
        //Make some threads!
        for (int i = 0; i < 100; i++) {
            Thread t = new Thread(tg, "Thread-number-" + i);
            t.run();
        Thread[] threads = new Thread[ tg.activeCount() ];
        System.out.println("Thread group: " + tg.getName() );
        // Put all the active threads in an Array (and return the number of threads there)
        System.out.println(tg.enumerate(threads) + " threads enumerated");
        for (int i = 0; i < threads.length; i++) {
            Thread t = threads;
// PROBLEM HERE vvv
// ** When i = 1, the JBuilder debugger shows threads[] has 101 threads in it, but t = null! **
System.out.println(" " + (i+1) + " called " + t.getName() + " priority " + t.getPriority());

Interesting problem: If I call t.start() it all works
nicely if I run it in JBuiler. If I debug it, it
prints this:
Java HotSpot(TM) Client VM warning: Setting of
property "java.compiler" is ignored
Thread group: main
1 threads enumerated
1 called main priority 5
Hit uncaught exception java.lang.NullPointerException
Strange? anybody have any ideas?It's probably a timing issue - you've allocated as many threads as were active at the time you called activeCount(), but by the time you call enumerate(threads), some of the threads were probably finished running, so part of your array will have null values. For example, maybe 100 threads were active, but 2 finished, so it only filled in 98 elements of your array.

Similar Messages

  • Nullpointer exception... any help would be appreciated

    In advance, I apologize for any ignorance which I may obviously have... I'm in the process of learning Java, and am used to C/C++... In any case, I'm running into a nullpointer exception while 'compiling', which I'm having trouble figuring out... I'll list everything below, but this message will be rather long, as I will try to include everything I can. For this reason, I will ask my questions here, at the top:
    1) A null pointer exception, I believe, is generated when something is being referenced which is currently null, for example "a=null; a.b;" yields a null pointer exception. However, is there any other way that one is generated?
    2) Are there methods to figure out what/why something is null other than simply looking at it? As shown below, it seems that just looking at it runs you in a circle from line to line, file to file, which leads you back to the beginning where nothing is actually null... (I'm probably just not seeing it, but that seems to be what's happening to me)
    So now, on to the actual code:
    The following is a printout of the debugging info:
    ~/bin/jdk*/bin/java -classpath classes jamie.Main
    java.lang.NullPointerException
    at jamie.Main.Sys_Log(Main.java:110)
    at jamie.Main.Setup(Main.java:142)
    at jamie.Main.main(Main.java:54)
    Exception in thread "main" java.lang.NullPointerException
    at jamie.Main.Sys_Log(Main.java:110)
    at jamie.Main.Shutdown(Main.java:182)
    at jamie.Main.main(Main.java:92)And a short excerpt of each. (*) indicates line which error originates:
    20    )   private static Log                sys_log;
    108  )   static void Sys_Log(String msg)
    109  )   {
    110*)        sys_log.Log(msg);
    111  )   }
    142*)   Sys_Log("Server warming up...");
    182*)   Sys_Log("Server shutting down...");
    50  )     public static void main(String[] args)
    51  )     {
    52  )          try
    53  )          {
    54*)                Setup();
    85  )     catch(Exception e)
    86  )     {
    87  )          e.printStackTrace(System.out);
    88  )          err_log.Log(e.toString());
    89  )     }
    90  )     finally
    91  )     {
    92*)            Shutdown();
    93  )      }Now, various things that I have tried, and their result (you can probably skip this section, as these were mostly futile efforts):
    What seems odd to me is that the initial error is on line 110, which is the logging function Sys_Log. Since it's a null pointer exception, I would assume that sys_log is null? and thus in calling Log we're generating that error... I'm not entirely sure that that makes sense, though. Additionally, and what I find odd, is that if I change it to what I will list below, I get a slew of other seemingly unrelated problems:
    20    )   private static Log                sys_log;
    108  )   static void Sys_Log(String msg)
    109  )   {
    110#)        if (sys_log!=null)
    111  )        sys_log.Log(msg);
    112  )   }This results in a problem with function Err_Log, which I change the same way, resulting in the following:
    java.lang.NullPointerException
            at jamie.Area_LUL.Load(Area_LUL.java:23)
            at jamie.Main.Setup(Main.java:161)
            at jamie.Main.main(Main.java:55)
    Exception in thread "main" java.lang.NullPointerException
            at jamie.Main.Shutdown(Main.java:186)
            at jamie.Main.main(Main.java:93)In Main.java the following lines are generating the error:
    160  )   lul = new Area_LUL();
    161*)   lul.Load();And in Area_LUL.java I also have the following:
    14  )class Area_LUL implements LoaderUnloader
    15  ){
    16  )    public void Load()
    17  )    {
    18  )        try
    19  )        {
    20  )            areadir = new File("./areas/");
    21  )            SAXParser p = SAXParserFactory.newInstance().newSAXParser();
    22  )
    23*)            for(File curr : areadir.listFiles(new Area_Filter()))
    24  )            {
    25  )                p.parse(curr, new XMLParser());
    26  )            }
    27  )        }Where in the above, the for statement is generating the null pointer exception... which would tell me that areadir is null, however it is defined as new File("./areas/"); Also, lul (defined as new Area_LUL(); is generating the same error, though it is clearly defined in Area_LUL.java at the top of the last excerpt.
    Also, LoaderUnloader is defined in another file as follows:
    interface LoaderUnloader
        void Load();
        void Unload();
    }which are defined in Area_LUL in Area_LUL.java .
    A major theory which I currently have is that the compiler is beginning with my main.java file, and not seeing the class definition in another file, and thus attributing the class obj I create as null, which is causing the error, but I also am not sure if this is possible...
    My imports for Main.java are as follows:
    package jamie;
    import java.io.*;
    import java.util.*;I'm not entirely sure what the package is including, however I do have a jamie.jar file in another directory (../../dist) (could be referencing that?). Also, to compile the source I am using the following command:
    ~/bin/jdk*/bin/java -classpath classes jamie.MainHowever my classpath (I believe) isn't set to include all my files in the given directory. I wouldn't believe that this would be an issue, however if it could possibly be causing this, I can figure out how to set it properly. Also, this should mean I'm starting with Main.java, and perhaps I am right in concluding that it isn't referencing Area_LUL in another file properly, which is setting it as null?
    In any case... Any help would be greatly appreciated. This has been a bit of a struggle for about a month now, trying various resources, moving things around, etc... Thanks so much for your time in reading,
    -Jess

    I'm not able to follow the program flow from your post. Please create a small standalone program that exhibits the problem and post that back here.
    Your assumption re a NPE is correct, that's the only way they're generated.
    There are no "canned" methods to resolve NPEs. The best solution is to put System.out.println statements for all of the involved objects and variables immediately preceeding the error line (in this case, 110) and something will show null. Usually that's enough info to backtrace to the real cause.

  • Help with nullPointer exception

    Hi,
    I would like some help identifying and error in the code below. Im getting a nullPointer exception at the location specified in the code. Im adding elements to a tableModel. What puzzles me is that the strings I add to the model does contain values. And it does not complain about adding them. Perhaps this is just a simple error, and you more experinced programmars are probably loughing at me ;)
    void getTests() {
          String[] idNummer = getDirectory(); //gets filenames from a directory
          for (int i = 0; i < idNummer.length; i++) {
             idNummer[i] = idNummer.substring(idNummer[i].lastIndexOf(dataSeparetor) + 1, idNummer[i].length());
    // just sorts out specific parts of the filenames
    for (int i = 0; i < idNummer.length; i ++) {
    System.out.println(idNummer[i]); //I print the sorted filenames and they not null
    testModel.addElement(idNummer[i]); //I add them to the table model
    testNr.setModel(testModel); //and gets a nullPoint exception here??

    I'm sorry, you mean testNr. Don't pay any attention to the above post. it is also declared directly in the class:
    public class GUI extends JFrame implements EventListener  {
      JList testModel;
    }and creates an instance here:
    public GUI {
    testModel = new DefaultListModel();
    getTests();
    testNr = new JList(testModel);
          testNr.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);
          testNr.setLayoutOrientation(JList.VERTICAL);
          testNr.setPreferredSize(new Dimension(80, 80));
          testNr.addListSelectionListener(new ListSelectionListener() {
             public void valueChanged(ListSelectionEvent event) {
          leftPanel.add(testNr, BorderLayout.EAST);
    }

  • Help. ! nullpointer fun

    I am reading stuff from a database [rms on a mobile fone]. i am having difficulty understanding why i am getting a null
    pointer exception, having dynamically allocated the space necessary for storing the records in an array....
    Later in another function, while attempting to copy a byteArray from RMS to the teamArray it gives nullptr exception.
    Strangely if i just create a byteArray and put it in teamArray it is fine, [in the same for loop where space is allocated]
    but in a different function [the one that reads in data] it bombs with nullPointer Exception...
    public class RWstreams {
         private static RecordStore rs = null; // Record store
         static final String RECORD_STORE = "thers"; // Name of record store
    public static byte[][][] byteArrays;
    public static byte[][][] teamArray;
    public static byte[][][] managerArray;
    public static byte[][][] queueArray;
    public static byte[] numplayersPerTeam;
    private static long numbytes=0;
    public RWstreams()
    byteArrays = new byte[20][][]; //to store Player objects [ripped to byteArray]
    teamArray = new byte[20][1][]; //to store Team objects [ripped to byteArray]
    managerArray = new byte[20][1][];
    numplayersPerTeam= new byte[20];
    public static void InitRmsNoSave() {
         //pass in teams - each has 20 players
    //Rip out each player array from team, [now represented as a byte array as has been persisted]
    byte[] recData = new byte[ 200 ];
    byte[] teamrecData = new byte[ 200 ];
    byte[] managerrecData= new byte[200];
    byte[] queuerecData = new byte[200];
    // System.out.println("numteams:"+theTeams.length);
    try{
    rs.getRecord(1,numplayersPerTeam,0); //retrieve number of players per team...
    for(int j=0; j<20;j++)
    byteArrays[j]=new byte[numplayersPerTeam[j]][];
    teamArray[j]=new byte[1][];
    System.out.println("got value for team:"+j+" ->"+numplayersPerTeam[j]);
    } catch( Exception e ) {
    e.printStackTrace();
    //Snippet from other function where copying to array is done:
              for(int teams=0; teams <20; teams++)//for every team
    //retrieve no of players records to read into current team array
    int thecounter=(int)numplayersPerTeam[teams];
    for( int i = 1; i <= thecounter; i++ )
    // Get data into the byte array
    rs.getRecord( get, byteArrays[teams][i-1], 0 );<--------BOMBS here..:(
    get++;
    any help appreciated
    Niall

    ok sorry didnt read the bit about posting...
    i pointed to the wrong piece of code incedentally. the line i said bombed is fine and works ok...
    the bit that bombs is below....
      for( int i = 1; i <= thecounter; i++ )
                                     // Get data into the byte array
                                      //  System.out.println("length of array"+byteArrays[teams].length);
                                       rs.getRecord( get, byteArrays[teams][i-1], 0 );
                                       get++;
                                        System.out.println("team:"+teams+" Retrieved player:"+i);
                               rs.getRecord(get, teamArray[teams][0], 0);  <---- THIS IS THE BIT THAT BOMBS
                               get++;
                           any help appreciated
    Niall

  • Help!  problem with getElementById - nullpointer

    I keep getting a nullpointer exception when i use getElementById in attempt to get the text of the element which is contained by the element with a specific ID. help! im going nuts
    String firstAtt = document.getElementById("A100").getElementsByTagName("first_name").item(0).getFirstChild().getNodeValue();
    System.out.println("first_name for A1000 found " + firstAtt);             DTD:
    <!ELEMENT family_tree (family_member)*>
    <!ELEMENT family_member (first_name,last_name,comments,birth_date,birth_location,img_file_name,(spouse)*,(child)*)>
    <!ATTLIST family_member pid ID #REQUIRED>
    <!ELEMENT first_name (#PCDATA)>
    <!ELEMENT last_name (#PCDATA)>
    <!ELEMENT comments (#PCDATA)>
    <!ELEMENT birth_date (#PCDATA)>
    <!ELEMENT birth_location (#PCDATA)>
    <!ELEMENT img_file_name (#PCDATA)>
    <!ELEMENT spouse EMPTY>
    <!ATTLIST spouse pidref IDREF #REQUIRED>
    <!ELEMENT child EMPTY>
    <!ATTLIST child pidref IDREF #REQUIRED>xml:
    <!DOCTYPE family_tree SYSTEM "family.dtd">
    <family_tree>
    <family_member pid="A1000">
    <first_name>fred</first_name>
    <last_name>smith</last_name>
    <comments>here are some comments</comments>
    <birth_date>10-24-1974</birth_date>
    <birth_location>tulsa,ok</birth_location>
    <img_file_name>"fred_smith123.jpg"</img_file_name>
    <spouse pidref="A1004"/>
    <child pidref="A1005"/>
    </family_member>
    <family_member pid="A1005">
    <first_name>john</first_name>
    <last_name>smith</last_name>
    <comments>bla bla</comments>
    <birth_date>10-24-1996</birth_date>
    <birth_location>tulsa,ok</birth_location>
    <img_file_name>"john_smith123.jpg"</img_file_name>
    </family_member>
    <family_member pid="A1004">
    <first_name>suzy</first_name>
    <last_name>smith</last_name>
    <comments>bla bla</comments>
    <birth_date>10-24-1998</birth_date>
    <birth_location>tulsa,ok</birth_location>
    <img_file_name>"suzy_smith123.jpg"</img_file_name>
    </family_member>
    </family_tree>

    sorry for posting this so quick, its obvious now what my problem is...its A1000 not A100, silly mistake

  • Hi plZ help me to fix the error to my Blackberry 9300 Uncaught exception: java.lang.​NullPointe​rException

    ;   hi good plzz do help me to fix the error to my bb9300 i just update my bb9300 the the i see 
    error b    Uncaught exception: java.lang.NullPointerException    anyone here can help me to fix i appreciate

    I am guessing that you are not a Java developer, and it is not your application that is causing the Null Pointer Exception. 
    It sounds like you have updated the OS on your Blackberry device and one of the applications that you have installed is not coping with the upgrade.  
    If you press on an application icon and then that causes the error, then you know there is a problem with that application and so you need to report this to the developers of that application and get an updated version. 
    If this is happening when you restart your device, then it appears that one of the installed applications is failing at start up time and so it is not obvious which application.  So you need to see which of your applications doesn't appear to be providing all the functions it used to, and it would be a good guess that it is that application that is causing the problem.  Again you need to go back to the developer to get an update. 
    Let us know if that does not help.
    Also you have posted in the Java developer forum.  If this really is not your program causing the problem, then I suggest a better place to post a question relating to the 9300 is in the appropriate device forum here:
    http://supportforums.blackberry.com/t5/BlackBerry-​Curve/bd-p/Curve

  • Help, nullpointer exceptions...

    Heres my source code I cant figure it out!
    import java.awt.*;
    import java.applet.Applet;
    public class BubbleSort extends Applet{
    int[] sortArray;
    int m=0;
         public void init(){
              m=1;
              for (int i=0;i<100;i++){
                   sortArray=(int)(Math.random()*100);
         sort();
         public void paint(Graphics g){
              if (m==1){
                   //g.drawRect(1,i,sortArray[i],i+1);
                   g.drawString(""+sortArray[50],50,50);
                   sort();
         public void sort(){
              if(m==1){
                   for (int i=1;i<98;i++){
                        if (sortArray[i]>sortArray[i+1]){
                             int tempInt=sortArray[i];
                             sortArray[i]=sortArray[i+1];
                             sortArray[i+1]=tempInt;
              repaint();

    I am sorry i forgot the code brackets...
    import java.awt.*;
    import java.applet.Applet;
    public class BubbleSort extends Applet{
    int[] sortArray;
    int m=0;
         public void init(){
              m=1;
              for (int i=0;i<100;i++){
                   sortArray=(int)(Math.random()*100);
         sort();
         public void paint(Graphics g){
              if (m==1){
                   //g.drawRect(1,i,sortArray[i],i+1);
                   g.drawString(""+sortArray[50],50,50);
                   sort();
         public void sort(){
              if(m==1){
                   for (int i=1;i<98;i++){
                        if (sortArray[i]>sortArray[i+1]){
                             int tempInt=sortArray[i];
                             sortArray[i]=sortArray[i+1];
                             sortArray[i+1]=tempInt;
              repaint();

  • Nullpointer exception with oracle thin driver, please help

    Hi All
    I am getting a null pointer exception when i invoke getBinaryOutputStream on a
    OracleThinBlob. The code is given below
    java.sql.Blob b = rs.getBlob(1);
    OutputStream blobOS = ((weblogic.jdbc.vendor.oracle.OracleThinBlob)b).getBinaryOutputStream();
    blobOS.write(objectToByte(validator));
    blobOS.close();
    The exception is given below.
    BODY: java.sql.SQLException: java.lang.NullPointerException:
    Start server side stack trace:
    java.lang.NullPointerException
    at oracle.sql.LobPlsqlUtil.plsql_getChunkSize(LobPlsqlUtil.java:1215)
    at oracle.sql.LobPlsqlUtil.plsql_getChunkSize(LobPlsqlUtil.java:121)
    at oracle.jdbc.dbaccess.DBAccess.getLobChunkSize(DBAccess.java:955)
    at oracle.sql.LobDBAccessImpl.getChunkSize(LobDBAccessImpl.java:111)
    at oracle.sql.BLOB.getChunkSize(BLOB.java:228)
    at oracle.sql.BLOB.getBufferSize(BLOB.java:242)
    at oracle.sql.BLOB.getBinaryOutputStream(BLOB.java:202)
    at weblogic.jdbc.rmi.internal.OracleTBlobImpl.getBinaryOutputStream(Orac
    leTBlobImpl.java:127)
    at weblogic.jdbc.rmi.internal.OracleTBlobImpl_WLSkel.invoke(Unknown Sour
    ce)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:305)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
    a:274)
    at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
    .java:22)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    End server side stack trace

    Thanks for informing the group!!. What was the root cause of the error?

  • Error while adding a connector for SSL..help!!!

    i'm getting this error when i added a connector for SSL and restarted tomcat
    my connector tag is
    <Connector keystorePass="kalima" scheme="https" port="8443" sslProtocol="TLS" redirectPort="-1" enableLookups="true" keystoreFile="Mykeystore" protocol="TLS" keystore="C:\Documents and Settings\santhoshyma\Mykeystore" clientauth="false" algorithm="SunX509" keypass="changeit" secure="true" keytype="JKS">
          <Factory className="org.apache.coyote.tomcat5.CoyoteServerSocketFactory" keystorePass="kalima" keystoreFile="C:\SSLTest\Mykeystore"/>
        </Connector>
    LifecycleException:  Protocol handler instantiation failed: java.lang.NullPointe
    rException
            at org.apache.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnector.
    java:1368)
            at org.apache.catalina.core.StandardService.initialize(StandardService.j
    ava:609)
            at org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
    a:2384)
            at org.apache.catalina.startup.Catalina.load(Catalina.java:507)
            at org.apache.catalina.startup.Catalina.load(Catalina.java:528)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:250)
            at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:424)

    The question is answered in CRM 7.0 forum:
    Getting error while adding a custom field (with input help) through AET

  • Cry for HELP!! -- ArrayList NullPointerException Error

    All,
    I keep getting a NullPointerException error when I attempt to add an object to an ArrayList. I have debugged in every possible place. The transfer of data between servlets and classes is good, because I'm printing them out to System.out (for debug purposes)... but adding the instantiated object to the arraylist keeps throwing NullPointer Error. Please review codes to help me determine error. I just can't figure this out! And this is due yesterday. Pls help!!!!
    the class Code:
    ===================================================
    import java.util.ArrayList;
    import java.lang.Long;
    import java.lang.Double;
    public class CellieRator
    public CellieRator()
    (just attributes initializations here. didn't initialize arraylist to null)
    ArrayList myfactors;
    class FactorsList
    long div;
    double safeCred;
    double ccp;
    double incLimit;
    double deductibleCredit;
    double schedDebCred;
    double drugCred;
    double ppdiscount;
    double waiversubrogation;
    double expenseconstant;
    double tria;
    double dtec;
    FactorsList()
    public void addMyFactors(long divin, Double safeCredin, Double ccpin, Double incLimitin, Double deductibleCreditin, Double schedDebCredin, Double drugCredin, Double ppdiscountin, Double waiversubrogationin, Double expenseconstantin, Double triain, Double dtecin)
    FactorsList fl = new FactorsList();
    fl.div = divin;
    fl.safeCred = safeCredin != null ? safeCredin.doubleValue() : 0.0;
    fl.incLimit = incLimitin != null ? incLimitin.doubleValue() : 0.0;
    fl.deductibleCredit = deductibleCreditin != null ? deductibleCreditin.doubleValue() : 0.0;
    fl.schedDebCred = schedDebCredin != null ? schedDebCredin.doubleValue() : 0.0;
    fl.drugCred = drugCredin != null ? drugCredin.doubleValue() : 0.0;
    fl.ppdiscount = ppdiscountin != null ? ppdiscountin.doubleValue() : 0.0;
    fl.waiversubrogation = waiversubrogationin != null ? waiversubrogationin.doubleValue() : 0.0;
    fl.expenseconstant = expenseconstantin != null ? expenseconstantin.doubleValue() : 0.0;
    fl.tria = triain != null ? triain.doubleValue() : 0.0;
    fl.dtec = dtecin != null ? dtecin.doubleValue() : 0.0;
    fl.ccp = ccpin != null ? ccpin.doubleValue() : 0.0;
    if(fl == null)
         System.out.println("fl object is null BUDDY!");
    else
         System.out.println("fl.ppdiscount == "+fl.ppdiscount);
         System.out.println("fl.expenseconstant == "+fl.expenseconstant);
         System.out.println("fl.ccp == "+fl.ccp);
         myfactors.add(fl); <<<<<nullpointerexception here>>>>>>
    servlet code:
    ================================
    CellieRator rator = new CellieRator();
    long factordiv = bipoldiv.getDivision().getId();
    Double expenseconstant = new Double(0.0);
    Double safetyCredit = bipoldiv.getSafetyCredit();
    if(safetyCredit == null)
    throw new Exception("safetyCredit IS NULL.");
    Double ccpAp = bipoldiv.getCcpAp();
    if(ccpAp == null)
         throw new Exception("ccpAp IS NULL.");
    Double incLimit = bipoldiv.getLiabilityFactor();
    if(incLimit == null)
         throw new Exception("incLimit IS NULL.");
    Double deductibleCredit = bipoldiv.getDeductFactor();
    if(deductibleCredit == null)
         throw new Exception("deductibleCredit IS NULL.");
    Double schedDebCred = bipoldiv.getScheduledDebitCreditFactor();
    if(schedDebCred == null)
         throw new Exception("schedDebCred IS NULL.");
    Double ppdiscount = bipoldiv.getPromptPaymentDiscount();
    if(ppdiscount == null)
         throw new Exception("ppdiscount IS NULL.");
    Double drugCred = bipoldiv.getDrugFree();
    if(drugCred == null)
         throw new Exception("drugCred IS NULL.");
    Double waiversubrogation = bipoldiv.getWaiverSubro();
    if(waiversubrogation == null)
         throw new Exception("waiversubrogation IS NULL.");
    Double tria = bipoldiv.getLcm();
    if(tria == null)
         throw new Exception("tria IS NULL.");
    Double dtec = bipoldiv.getLcm();
    if(dtec == null)
         throw new Exception("dtec IS NULL.");
    System.out.print(factordiv+" "+safetyCredit+" "+ccpAp+" "+incLimit+" "+deductibleCredit+" "+schedDebCred+" "+drugCred+" "+ppdiscount+" "+waiversubrogation+" "+expenseconstant+" "+tria+" "+dtec);
    rator.addMyFactors(factordiv, safetyCredit, ccpAp, incLimit, deductibleCredit, schedDebCred, drugCred, ppdiscount, waiversubrogation, expenseconstant, tria, dtec);<<<<<<<<<and nullpointerexception here>>>>>>>>>>>>>>>>>>>>>

    dude... fresh eyes always work... thanks... I thought i had already done that... but thanks again for the heads up

  • Help needed with project

    Hello everyone. Some help would be appreciated. I have created a wildlife resort database with access.
    It has an animals table with 5 entries, a species table with 3 entries and a user table with 3 entries.
    I have set up a JDBC-ODBC bridge.
    The server side of this application when run gets stuck upon pressing connect the first time so I have to run the server again while the first server window is running in the background and press connect for it to start running. The server works just fine after that. I can add and remove from the tables using the server.
    When I run the client and try to connect it, it doesn't accept the hostname. I can't connect or log in.
    I think the problem is with the threads but I'm not sure what to do to fix it.
    Also I use java beans for coding.
    These are some errors I get when running the client:
    java.lang.IllegalThreadStateException
    at java.lang.ThreadGroup.add(ThreadGroup.java:856)
    at java.lang.Thread.start(Thread.java:573)
    at org.apache.tools.ant.taskdefs.ProcessDestroyer.removeShutdownHook(ProcessDestroyer.java:145)
    at org.apache.tools.ant.taskdefs.ProcessDestroyer.remove(ProcessDestroyer.java:198)
    at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:487)
    at org.apache.tools.ant.taskdefs.Java.fork(Java.java:746)
    at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:170)
    at org.apache.tools.ant.taskdefs.Java.execute(Java.java:83)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:377)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:341)
    at org.apache.tools.ant.Target.performTasks(Target.java:369)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
    at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:217)
    at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:236)
    at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:125)
    Exception in thread "Thread-7" java.lang.NullPointerException
    at Client.Connect.connecting(Connect.java:45)
    at Client.ClientGUI.run(ClientGUI.java:214)
    at java.lang.Thread.run(Thread.java:595)
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at Client.Connect.userPass(Connect.java:206)
    at Client.ClientGUI.actionPerformed(ClientGUI.java:164)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
    at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
    at java.awt.Component.processMouseEvent(Component.java:5488)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3093)
    at java.awt.Component.processEvent(Component.java:5253)
    at java.awt.Container.processEvent(Container.java:1966)
    at java.awt.Component.dispatchEventImpl(Component.java:3955)
    at java.awt.Container.dispatchEventImpl(Container.java:2024)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
    at java.awt.Container.dispatchEventImpl(Container.java:2010)
    at java.awt.Window.dispatchEventImpl(Window.java:1766)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    These are the classes I have created:
    On the client side:
    //imports needed for the GUI and I/O Operations
    import java.awt.event.*;
    import java.awt.*;
    import javax.swing.*;
    import java.io.*;
    public class ClientGUI extends JFrame implements ActionListener, Runnable {
    JPanel pane = new JPanel();
    //Create the Menubar Items
    JMenuBar bar = new JMenuBar();
    JMenu jMenu1 = new JMenu();
    JMenu jMenu2 = new JMenu();
    JMenu jMenu3 = new JMenu();
    JMenuItem Exit = new JMenuItem();
    JMenuItem Open = new JMenuItem();
    JMenuItem Close = new JMenuItem();
    JMenuItem Find = new JMenuItem();
    static JMenuItem Add = new JMenuItem();
    static JMenuItem Remove = new JMenuItem();
    static JMenuItem Connect1 = new JMenuItem();
    static JMenuItem Disconnect = new JMenuItem();
    static JMenuItem Login = new JMenuItem();
    static JMenuItem Logout = new JMenuItem();
    static boolean check = true;
    static JLabel running = new JLabel("You are not Connected");
    //Creates the animal JTable and adds it to a scrollpane
    public static String[] animalH = {"Id" , "Name" , "Description" , "Species Id"};
    public static Object rows1 [] [] = new Object[40][4];
    public static JTable animal = new JTable(rows1 , animalH);
    JScrollPane animalP;
    //Creates the species JTable and adds it to a scrollpane
    public static String[] speciesH = {"Species Id" , "Species Name"};
    public static Object rows2 [] [] = new Object[40][2];
    public static JTable species = new JTable(rows2 , speciesH);
    JScrollPane speciesP;
    public static Thread runner;
    //Declares Globale variables
    static int currentT;
    int respones;
    static String hostname;
    static boolean connected = false;
    /** Creates a new instance of ClientGUI */
    public ClientGUI() {
    super("SA Wildlife -- Client");
    setSize(800 , 600);
    setDefaultCloseOperation(EXIT_ON_CLOSE);
    getContentPane().add(running , BorderLayout.SOUTH);
    Add.setEnabled(false);
    Remove.setEnabled(false);
    Logout.setEnabled(false);
    Disconnect.setEnabled(false);
    try {
    jbInit();
    }catch(Exception e) {
    e.printStackTrace();
    addListener();
    setJMenuBar(bar);
    setVisible(true);
    //Add the actionListeners to the components
    public void addListener(){
    Open.addActionListener(this);
    Close.addActionListener(this);
    Exit.addActionListener(this);
    Connect1.addActionListener(this);
    Disconnect.addActionListener(this);
    Find.addActionListener(this);
    Login.addActionListener(this);
    Logout.addActionListener(this);
    Add.addActionListener(this);
    Remove.addActionListener(this);
    //Add the actions which the components must perform
    public void actionPerformed(ActionEvent evt){
    Object s = evt.getSource();
    if (s == Open){
    choice();
    Close();
    if (respones == 0){
    currentT = 1;
    clearTableAnimals();
    Connect.allAnimal();
    animal = new JTable(rows1, animalH);
    animalP = new JScrollPane(animal);
    getContentPane().add(animalP, BorderLayout.CENTER);
    setVisible(true);
    }else if (respones == 1 ){
    currentT = 2;
    clearTableSpecies();
    Connect.allSpecies();
    species = new JTable(rows2 , speciesH);
    speciesP = new JScrollPane(species);
    getContentPane().add(speciesP, BorderLayout.CENTER);
    setVisible(true);
    }else if (s == Close){
    Close();
    }else if (s == Exit){
    exit();
    }else if (s == Connect1){
    hostname = JOptionPane.showInputDialog(null , "Please enter Hostname");
    if (check = true){
    runner = new Thread(this);
    runner.start();
    Connect1.setEnabled(false);
    Disconnect.setEnabled(true);
    }else if (s == Disconnect){
    Connect.out.println("Bye");
    runner = null;
    try {
    Connect.out.close();
    Connect.in.close();
    Connect.clientSocket.close();
    } catch (IOException ioe) {
    JOptionPane.showMessageDialog(null,
    "Error " + ioe.toString(),
    "IO Exception",
    JOptionPane.ERROR_MESSAGE);
    System.exit(0);
    }else if (s == Find){
    choice();
    Close();
    if (respones == 0){
    currentT = 1;
    String Aname = JOptionPane.showInputDialog(null , "Enter Animal name to find ");
    clearTableAnimals();
    Connect.findAnimal(Aname);
    animal = new JTable(rows1, animalH);
    animalP = new JScrollPane(animal);
    getContentPane().add(animalP, BorderLayout.CENTER);
    setVisible(true);
    }else{
    currentT = 2;
    String Sname = JOptionPane.showInputDialog(null , "Enter Species name to find ");
    clearTableSpecies();
    Connect.findSpecies(Sname);
    species = new JTable(rows2 , speciesH);
    speciesP = new JScrollPane(species);
    getContentPane().add(speciesP, BorderLayout.CENTER);
    setVisible(true);
    }else if( s== Login){
    String name = JOptionPane.showInputDialog(null , "Please enter a UserName");
    String password = JOptionPane.showInputDialog(null , "Please enter a Password");
    Connect.userPass(name , password);
    }else if (s == Logout){
    Logout();
    }else if (s== Add){
    choice();
    Close();
    if(respones == 0){
    currentT = 1;
    String id = JOptionPane.showInputDialog(null , "Enter an Animal id");
    String name = JOptionPane.showInputDialog(null , "Enter an Animal Name");
    String desc = JOptionPane.showInputDialog(null , "Enter an Animal Description");
    String speciesid = JOptionPane.showInputDialog(null , "Enter an Animal species id");
    clearTableAnimals();
    Connect.toAddAnimal(id , name , desc , speciesid);
    Connect.allAnimal();
    animal = new JTable(rows1, animalH);
    animalP = new JScrollPane(animal);
    getContentPane().add(animalP, BorderLayout.CENTER);
    setVisible(true);
    }else{
    currentT = 2;
    String id = JOptionPane.showInputDialog(null , "Enter a Species id");
    String name = JOptionPane.showInputDialog(null , "Enter a Species name");
    clearTableSpecies();
    Connect.toAddSpecies(id , name);
    Connect.allSpecies();
    species = new JTable(rows2 , speciesH);
    speciesP = new JScrollPane(species);
    getContentPane().add(speciesP, BorderLayout.CENTER);
    setVisible(true);
    }else if (s == Remove){
    choice();
    Close();
    if(respones == 0){
    currentT = 1;
    String id = JOptionPane.showInputDialog(null , "Enter an Animal id to Remove");
    Connect.toRemoveAnimal(id);
    }else{
    currentT = 2;
    String id = JOptionPane.showInputDialog(null , "Enter a Species id to Remove");
    Connect.toRemoveSpecies(id);
    public void run() {
    Connect connect = new Connect();
    while (runner != null) {
    try {
    connect.connecting();
    catch (IOException ioe) {
    System.out.println("Error: " + ioe);
    ClientGUI.running.setText("You are now connected");
    //Method the creates the dialog box for the user to choose what he wants to do
    void exit(){
    String [] option = { "Exit" , "Minimize" , "Cancel" };
    int which = JOptionPane.showOptionDialog(null , "Sure you want to exit"
    , "Exiting" , 0 , JOptionPane.WARNING_MESSAGE ,
    null , option , option[2] );
    if (which == 0){
    System.exit(1);
    }else if (which == 1){
    setState(JFrame.ICONIFIED);
    }else{}
    //Closes the current table on the panel
    public void Close(){
    if(currentT == 1){
    animalP.setVisible(false);
    }else if (currentT == 2){
    speciesP.setVisible(false);
    }else{}
    //Method that give the user a choice on which table to perform actions on
    public void choice(){
    String[] choices = {"Animals" , "Species"};
    respones = JOptionPane.showOptionDialog(null ,
    "Please select Table" , "Table" , 0 , JOptionPane.INFORMATION_MESSAGE ,
    null , choices , choices[1] );
    //Clears the Species table
    public void clearTableSpecies(){
    for (int i = 0; i < 40; i++){
    rows2[0] = "";
    rows2[i][1] = "";
    //Clears the Animal table
    public void clearTableAnimals(){
    for (int i = 0; i < 40; i++){
    rows1[i][0] = "";
    rows1[i][1] = "";
    rows1[i][2] = "";
    rows1[i][3] = "";
    //Method for the Logout button
    public void Logout(){
    JOptionPane.showMessageDialog(null , "You are now logged out ");
    Login.setEnabled(true);
    Add.setEnabled(false);
    Remove.setEnabled(false);
    Logout.setEnabled(false);
    //Main Methof
    public static void main(String[] args) {
    ClientGUI GUI1 = new ClientGUI();
    // Adds all components to the panel
    private void jbInit() throws Exception {
    jMenu1.setText("File");
    Exit.setText("Exit");
    jMenu2.setText("Table Action");
    Open.setText("Open Table");
    Add.setText("Add to Table");
    Remove.setText("Remove from Table");
    Find.setText("Find In table");
    Close.setText("Close Current");
    jMenu3.setText("Client");
    Connect1.setText("Connect");
    Disconnect.setText("Disconnect");
    Login.setText("Login");
    Logout.setText("Logout");
    bar.add(jMenu1);
    bar.add(jMenu2);
    bar.add(jMenu3);
    jMenu1.add(Exit);
    jMenu2.add(Open);
    jMenu2.add(Add);
    jMenu2.add(Remove);
    jMenu2.add(Find);
    jMenu2.add(Close);
    jMenu3.add(Connect1);
    jMenu3.add(Disconnect);
    jMenu3.add(Login);
    jMenu3.add(Logout);
    package Client;
    import java.io.*;
    import java.net.*;
    import javax.swing.*;
    import java.util.*;
    public class Connect {
    static public Socket clientSocket = null;
    static public PrintWriter out = null;
    static public BufferedReader in = null;
    public void connecting() throws IOException {
    try{
    clientSocket = new Socket(ClientGUI.hostname , 1234);
    out = new PrintWriter(clientSocket.getOutputStream() , true);
    in = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));
    }catch (UnknownHostException e){
    JOptionPane.showMessageDialog(null , "Dont know about host");
    ClientGUI.check = false;
    ClientGUI.Connect1.setEnabled(true);
    ClientGUI.Disconnect.setEnabled(false);
    ClientGUI.runner = null;
    }catch(IOException i){
    ClientGUI.check = false;
    JOptionPane.showMessageDialog(null,"Couldnt get i/O for the connection to 127.0.0.0.1");
    ClientGUI.Connect1.setEnabled(true);
    ClientGUI.Disconnect.setEnabled(false);
    ClientGUI.runner = null;
    if (ClientGUI.check = true){
    String fromServer;
    StringTokenizer token1;
    String First;
    String Second;
    String Third;
    while ( (fromServer = in.readLine()) != null) {
    System.out.println("From SerVer ---------------> " + fromServer);
    token1 = new StringTokenizer(fromServer, "%");
    StringTokenizer token2;
    StringTokenizer token3;
    First = token1.nextToken();
    System.out.println("First ------- > " + First);
    if (First.equalsIgnoreCase("SelectedAnimal")) {
    System.out.println("IT's ON ");
    Second = token1.nextToken();
    System.out.println("Second ----> " + Second);
    int y = 0;
    int x = 0;
    System.out.println("In the 1while");
    token2 = new StringTokenizer(Second, "$");
    while (token2.hasMoreTokens()) {
    System.out.println("In the 2while");
    token3 = new StringTokenizer(token2.nextToken(), "@");
    x = 0;
    while (token3.hasMoreTokens()) {
    ClientGUI.rows1[y][x] = token3.nextToken();
    x++;
    y++;
    else if (First.equalsIgnoreCase("SelectedSpecies")) {
    System.out.println("IT's ON BITCH ");
    Second = token1.nextToken();
    System.out.println("Second ----> " + Second);
    int y = 0;
    int x = 0;
    System.out.println("In die 1while");
    token2 = new StringTokenizer(Second, "$");
    while (token2.hasMoreTokens()) {
    System.out.println("In die 2while");
    token3 = new StringTokenizer(token2.nextToken(), "@");
    x = 0;
    while (token3.hasMoreTokens()) {
    ClientGUI.rows2[y][x] = token3.nextToken();
    x++;
    y++;
    else if (First.equalsIgnoreCase("FoundAnimal")) {
    Second = token1.nextToken();
    if (! (Second.equalsIgnoreCase("NONE"))) {
    System.out.println("Second ----> " + Second);
    int y = 0;
    int x = 0;
    System.out.println("In the 1while");
    token2 = new StringTokenizer(Second, "$");
    while (token2.hasMoreTokens()) {
    System.out.println("In the 2while");
    token3 = new StringTokenizer(token2.nextToken(), "#@#");
    x = 0;
    while (token3.hasMoreTokens()) {
    ClientGUI.rows1[y][x] = token3.nextToken();
    x++;
    y++;
    else {
    JOptionPane.showMessageDialog(null,
    "Could not find Animal , Please try again");
    else if (First.equalsIgnoreCase("FoundSpecies")) {
    Second = token1.nextToken();
    if (! (Second.equalsIgnoreCase("NONE"))) {
    System.out.println("Second ----> " + Second);
    int y = 0;
    int x = 0;
    System.out.println("In die 1while");
    token2 = new StringTokenizer(Second, "$");
    while (token2.hasMoreTokens()) {
    System.out.println("In die 2while");
    token3 = new StringTokenizer(token2.nextToken(), "#@#");
    x = 0;
    while (token3.hasMoreTokens()) {
    ClientGUI.rows2[y][x] = token3.nextToken();
    x++;
    y++;
    else {
    JOptionPane.showMessageDialog(null,
    "Could not find Species , Please try again");
    else if (First.equalsIgnoreCase("FoundUser")) {
    System.out.println("From Server --- > " + First);
    String login = token1.nextToken();
    System.out.println("Find true or false ---- > " + login);
    if (login.equalsIgnoreCase("isUser")) {
    JOptionPane.showMessageDialog(null, "You are now logged in");
    ClientGUI.Add.setEnabled(true);
    ClientGUI.Remove.setEnabled(true);
    ClientGUI.Logout.setEnabled(true);
    ClientGUI.Login.setEnabled(false);
    else {
    JOptionPane.showMessageDialog(null,
    "Invalid Username or Password, Please try again");
    else if (First.equalsIgnoreCase("RecordAddedA")) {
    JOptionPane.showMessageDialog(null, "Record Added");
    else if (First.equalsIgnoreCase("RecordAddedS")) {
    JOptionPane.showMessageDialog(null, "Record Added");
    else if (First.equalsIgnoreCase("SQLE")) {
    System.out.println("ERROR SQL ERROR");
    else if (First.equalsIgnoreCase("Blah1")) {
    System.out.println("ERROR Ander ERROR");
    else if (First.equalsIgnoreCase("AnimalRemoved")) {
    JOptionPane.showMessageDialog(null, "Record Removed");
    else if (First.equalsIgnoreCase("SpeciesRemoved")) {
    JOptionPane.showMessageDialog(null, "Record Removed");
    }else{
    System.out.println("BLAAAAAAAAH");
    static public void Close() throws IOException{
    out.println("bye");
    ClientGUI.runner = null;
    ClientGUI.Disconnect.setEnabled(false);
    ClientGUI.Connect1.setEnabled(true);
    out.close();
    in.close();
    clientSocket.close();
    static public void allAnimal(){
    out.println("SELECTANIMALS");
    static public void allSpecies(){
    out.println("SELECTSPECIES");
    static public void findAnimal(String name){
    out.println("FINDANIMAL" + "@" + name);
    static public void findSpecies(String name){
    out.println("FINDSPECIES@" + name);
    static public void userPass(String name , String password){
    System.out.println("FINDUSER -----> " + name + " " + password);
    out.println("FINDUSER@" + name + "@" + password);
    static public void toAddAnimal(String id , String name , String desc , String species){
    out.println("toAddAnimal@" + id +"@" + name +"@" + desc +"@" + species );
    static public void toAddSpecies(String id , String name){
    out.println("toAddSpecies@" + id +"@" + name );
    static public void toRemoveAnimal(String id){
    out.println("toRemoveAnimal@" + id);
    static public void toRemoveSpecies(String id){
    out.println("toRemoveSpecies@" + id);
    On the server side:
    package Server;
    ////import everything necesary for the Database Connection
    import java.sql.*;
    import java.util.StringTokenizer;
    import javax.swing.*;
    import java.util.*;
    public class DatabaseConnect {
    //Declaration of Globale variables
    static int hoeveel = 0;
    static ResultSet rec ;
    static String bidData[] = new String[100];
    static String toSend[] = new String[100];
    //Connects the program to the database
    public DatabaseConnect() {
    try{
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    String source = "jdbc:odbc:Database";
    Connection dbconnect = DriverManager.getConnection(source);
    Statement st = dbconnect.createStatement();
    }catch(ClassNotFoundException cnf){
    System.out.println("classNotFound" + cnf);
    }catch(SQLException se) {
    System.out.println("SqlExeption" + se);
    //Selects the data from the databas and adds the data to the tables
    public void open(){
    try{
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    String source = "jdbc:odbc:Database";
    Connection dbconnect = DriverManager.getConnection(source);
    Statement st = dbconnect.createStatement();
    if (ServerGUI.currentT == 1){
    hoeveel = 0;
    rec = st.executeQuery("SELECT * FROM ANIMALS");
    while (rec.next()) {
    bidData[hoeveel++] = rec.getString(1) + "@#@" +
    rec.getString(2) + "@#@" +
    rec.getString(3) + "@#@" +
    rec.getString(4);
    readintoTable1();
    }else if (ServerGUI.currentT == 2){
    hoeveel = 0;
    rec = st.executeQuery("SELECT * FROM SPECIES");
    while (rec.next()) {
    bidData[hoeveel++] = rec.getString(1) + "@#@" + rec.getString(2);
    readintoTable2();
    }else if(ServerGUI.currentT == 3){
    hoeveel = 0;
    rec = st.executeQuery("SELECT * FROM USER");
    while (rec.next()) {
    bidData[hoeveel++] = rec.getString(1) + "@#@" + rec.getString(2)
    + "@#@" + rec.getString(3);
    readintoTable3();
    }catch(ClassNotFoundException cnf){
    System.out.println("classNotFound" + cnf);
    }catch(SQLException se) {
    System.out.println("SqlExeption" + se);
    //Clean the table and reads the data into the animal table
    public void readintoTable1(){
    for(int a = 0; a < 40; a++){
    ServerGUI.rows1[a][0] = "";
    ServerGUI.rows1[a][1] = "";
    ServerGUI.rows1[a][2] = "";
    ServerGUI.rows1[a][3] = "";
    for (int i = 0; i < hoeveel; i++) {
    StringTokenizer str = new StringTokenizer(bidData[i], "@#@");
    ServerGUI.rows1[i][0] = str.nextToken();
    ServerGUI.rows1[i][1] = str.nextToken();
    ServerGUI.rows1[i][2] = str.nextToken();
    ServerGUI.rows1[i][3] = str.nextToken();
    //Clean the table and reads the data into the Species table
    public void readintoTable2(){
    for(int a = 0; a < 40; a++){
    ServerGUI.rows2[a][0] = "";
    ServerGUI.rows2[a][1] = "";
    for (int i = 0; i < hoeveel; i++) {
    StringTokenizer str = new StringTokenizer(bidData[i], "@#@");
    ServerGUI.rows2[i][0] = str.nextToken();
    ServerGUI.rows2[i][1] = str.nextToken();
    //Clean the table and reads the data into the User table
    public void readintoTable3(){
    for(int a = 0; a < 40; a++){
    ServerGUI.rows3[a][0] = "";
    ServerGUI.rows3[a][1] = "";
    ServerGUI.rows3[a][2] = "";
    for (int b = 0; b < hoeveel; b++) {
    StringTokenizer str = new StringTokenizer(bidData, "@#@");
    ServerGUI.rows3[b][0] = str.nextToken();
    ServerGUI.rows3[b][1] = str.nextToken();
    ServerGUI.rows3[b][2] = str.nextToken();
    //add animal information to the Animal table in the database
    public void addAnimal(String id , String name , String desc , String species_id){
    try{
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    String source = "jdbc:odbc:Database";
    Connection dbconnect = DriverManager.getConnection(source);
    Statement st = dbconnect.createStatement();
    int toAdd;
    String sqlstm = "INSERT INTO animals" + "(animal_id, animal_Name , description , species_id)" +
    "VALUES (" + id + ", '" + name + "', '" + desc + "', " + species_id + ")";
    toAdd = st.executeUpdate(sqlstm);
    dbconnect.close();
    JOptionPane.showMessageDialog(null , "New Record Added");
    ServerGUI.refreshAnimal();
    ServerGUI.currentT = 1;
    open();
    }catch(ClassNotFoundException cnf){
    JOptionPane.showMessageDialog(null,
    "Class Not Found -> " + cnf.toString(),
    "Error!!",
    JOptionPane.ERROR_MESSAGE);
    System.out.println("classNotFound" + cnf);
    }catch(SQLException se) {
    JOptionPane.showMessageDialog(null,
    "SQL Exception -> " + se.toString()
    + "\n Please make sure all data is entered correctly ",
    "Error!!",
    JOptionPane.ERROR_MESSAGE);
    System.out.println("SqlExeption" + se);
    //add animal information to the Species table in the database
    public void addSpecies(String id1 , String name1){
    try{
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    String source = "jdbc:odbc:Database";
    Connection dbconnect = DriverManager.getConnection(source);
    Statement st = dbconnect.createStatement();
    int toAdd;
    String sqlstm = "INSERT INTO species" + "(species_id, species_name)" +
    "VALUES ( '" + id1 + "', '" + name1 + "')";
    toAdd = st.executeUpdate(sqlstm);
    dbconnect.close();
    JOptionPane.showMessageDialog(null , "New Record Added");
    ServerGUI.refreshSpecies();
    ServerGUI.currentT = 2;
    open();
    }catch(ClassNotFoundException cnf){
    JOptionPane.showMessageDialog(null,
    "Class Not Found -> " + cnf.toString(),
    "Error!!",
    JOptionPane.ERROR_MESSAGE);
    System.out.println("classNotFound" + cnf);
    }catch(SQLException se) {
    JOptionPane.showMessageDialog(null,
    "SQL Exception -> " + se.toString()
    + "\n Please make sure all data is entered correctly ",
    "Error!!",
    JOptionPane.ERROR_MESSAGE);
    System.out.println("SqlExeption" + se);
    //add animal information to the User table in the database
    public void addUser(String id2 , String user , String pass){
    try{
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    String source = "jdbc:odbc:Database";
    Connection dbconnect = DriverManager.getConnection(source);
    Statement st = dbconnect.createStatement();
    int toAdd;
    String sqlstm = "INSERT INTO user" + "(user_id, user_name ,user_password)" +
    "VALUES ( '" + id2 + "', '" + user + "', '"+ pass + "')";
    toAdd = st.executeUpdate(sqlstm);
    dbconnect.close();
    JOptionPane.showMessageDialog(null , "New Record Added");
    ServerGUI.refreshUser();
    ServerGUI.currentT = 3

    Your code is completely unreliable and it should be placed inside a code block when you add it. Also your question would be better off in the JDBC forum than the networking one.

  • Error upgrading identity manager from 6.0 to 7.1 - help!!!

    Hi all,
    When upgrading from 6.0 to 7.1, I get error below when i am trying to access the approval form by going to workitems->approval->click on one of the items in the inbox. Throws a nullpointer exception...see below....
    Alex and other experts pls help!!!
    Error
    An unrecoverable error has occurred processing the request. Contact your system administrator.
    Syslog ID = LG-0223-155056.
    java.lang.NullPointerException
         at com.waveset.ui.util.PageProcessor.generateHTML(Ljava/lang/Throwable;)Ljava/lang/String;(PageProcessor.java:669)
         at com.waveset.ui.util.PageProcessor.generateHTML()Ljava/lang/String;(PageProcessor.java:738)
         at jsp_servlet._user.__workitemedit._jspService(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V(__workitemedit.java:921)
         at weblogic.servlet.jsp.JspBase.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(JspBase.java:33)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava/lang/Object;(ServletStubImpl.java:1072)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Lweblogic/servlet/internal/FilterChainImpl;)V(ServletStubImpl.java:465)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(ServletStubImpl.java:348)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run()Ljava/lang/Object;(WebAppServletContext.java:6985)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic/security/subject/AbstractSubject;Ljava/security/PrivilegedAction;)Ljava/lang/Object;(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Lweblogic/security/acl/internal/AuthenticatedSubject;Lweblogic/security/acl/internal/AuthenticatedSubject;Ljava/security/PrivilegedAction;)Ljava/lang/Object;(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(Lweblogic/servlet/internal/ServletRequestImpl;Lweblogic/servlet/internal/ServletResponseImpl;)V(WebAppServletContext.java:3892)
         at weblogic.servlet.internal.ServletRequestImpl.execute(Lweblogic/kernel/ExecuteThread;)V(ServletRequestImpl.java:2766)
         at weblogic.kernel.ExecuteThread.execute(Lweblogic/kernel/ExecuteRequest;)V(ExecuteThread.java:224)
         at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:183)
         at java.lang.Thread.startThreadFromVM(Ljava/lang/Thread;)V(Unknown Source)
    thanks a lot!
    vik

    Alex,
    Thanks a lot for the quick reply. I did a whole lot of things. I cleaned up the work directory in weblogic. Also, I did upgrade using the supplied scripts (upgradeto71from60.oracle). When I turned on the trace, this is the exact stack trace from the logs ( see below). Will installing the 7.1 Update 1 help? Right now I am at 7.1 without any updates. Also, I cant access the link for Update 1 Patch 10. Can you please point me to the download area...thanks!
    20090220 13:15:28.154 ExecuteThread: '14' for queue: 'weblogic.kernel.Default'(0xbc6fa4b8) PageProcessor#generateHTML() Exit void
    20090220 13:15:31.740 ExecuteThread: '14' for queue: 'weblogic.kernel.Default'(0xbc6fa4b8) PageProcessor#generateHTML() Entry no args
    20090220 13:15:31.740 ExecuteThread: '14' for queue: 'weblogic.kernel.Default'(0xbc6fa4b8) PageProcessor#generateHTML(Component) Entry arg1=root=com.waveset.ui.util.html.HtmlPage@40fd3dd
    20090220 13:15:31.740 ExecuteThread: '14' for queue: 'weblogic.kernel.Default'(0xbc6fa4b8) WavesetProperties#getString() Entry arg1=name=ui.Renderer
    20090220 13:15:31.740 ExecuteThread: '14' for queue: 'weblogic.kernel.Default'(0xbc6fa4b8) WavesetProperties#getProperty() Entry arg1=name=ui.Renderer
    20090220 13:15:31.741 ExecuteThread: '14' for queue: 'weblogic.kernel.Default'(0xbc6fa4b8) WavesetProperties#getProperty() Exit returned= null
    20090220 13:15:31.741 ExecuteThread: '14' for queue: 'weblogic.kernel.Default'(0xbc6fa4b8) WavesetProperties#getString() Exit returned= null
    20090220 13:15:31.741 ExecuteThread: '14' for queue: 'weblogic.kernel.Default'(0xbc6fa4b8) HtmlPage#toHTML(Renderer) Entry arg1=b=
    20090220 13:15:31.741 ExecuteThread: '14' for queue: 'weblogic.kernel.Default'(0xbc6fa4b8) PageProcessor#generateHTML(Component) Catch java.lang.NullPointerException
    at com.waveset.ui.util.html.Component.getString(Lcom/waveset/ui/util/RequestState;Ljava/lang/Object;)Ljava/lang/String;(Component.java:744)
    at com.waveset.ui.util.html.HtmlPage.generateJavascript(Lcom/waveset/ui/util/RequestState;Lcom/waveset/ui/util/html/HtmlBuffer;)V(HtmlPage.java:466)
    at com.waveset.ui.util.html.HtmlPage.toHTML(Lcom/waveset/ui/util/html/Renderer;)V(HtmlPage.java:654)
    at com.waveset.ui.util.html.Renderer.renderHtmlPage(Lcom/waveset/ui/util/html/HtmlPage;)V(Renderer.java:786)
    at com.waveset.ui.util.html.HtmlPage.render(Lcom/waveset/ui/util/html/Renderer;)V(HtmlPage.java:548)
    at com.waveset.ui.util.PageProcessor.generateHTML(Lcom/waveset/ui/util/html/Component;)Ljava/lang/String;(PageProcessor.java:600)
    at com.waveset.ui.util.PageProcessor.generateHTML()Ljava/lang/String;(PageProcessor.java:726)
    at jsp_servlet._user.__workitemedit._jspService(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V(__workitemedit.java:921)
    20090220 13:15:31.741 ExecuteThread: '14' for queue: 'weblogic.kernel.Default'(0xbc6fa4b8) PageProcessor#generateHTML(Throwable) Entry arg1=t=java.lang.NullPointerException
    20090220 13:15:31.741 ExecuteThread: '14' for queue: 'weblogic.kernel.Default'(0xbc6fa4b8) PageProcessor#generateHTML(Throwable) Data msg== java.lang.NullPointerException
    20090220 13:15:31.741 ExecuteThread: '14' for queue: 'weblogic.kernel.Default'(0xbc6fa4b8) PageProcessor#generateHTML(Throwable) Entry arg1=t=java.lang.NullPointerException
    20090220 13:15:31.742 ExecuteThread: '14' for queue: 'weblogic.kernel.Default'(0xbc6fa4b8) PageProcessor#generateHTML(Throwable) Data msg== java.lang.NullPointerException

  • Java.lang.NullPointer Exception in File-RFC-File wtihout BPM scenario

    Hi All,
    I have implemented scenario File - RFC - File without BPM in PI7.1 according to below link by bhavesh
    [File - RFC - File without a BPM - Possible from SP 19.;
    but I am getting error java.lang.NullPointer Exception  in Audit log of sender communication channel when it enters in ResponseOnewayBean.
    I had implemented the same in PI 7.0 but there it was working fine.
    Is there any limitations on the use of the above beans in PI7.1 as I could see two more threads on the same unanswered yet.
    Please help me in resolving as it is priority task for me
    Thanks,
    Amit

    Sometime back I saved this SAP Note 1261159 for this error. Not sure if it is still valid. Try to get it implemented.
    Regards,
    Prateek

  • Strange (Nullpointer) Excep. during Eventdispatching (JFileChooser).

    Hi, sometimes I receive this (complete) stack trace (see below).
    It seems do appear at random, even if no JFilechooser is opened. During initialization of my program there are created some instances of JFilechooser, but I can't figure out what the problem is.
    Cause I taught the setFileSelected action would only take place if you open a Filechooser. But it has been raised, even if there had never been any Filechooser open.
    The first time I received this I thought, it would be an error of the jvm, but then the same error reappeared more than once.
    I'm using the 1.4.1_01 jre.
    It seems to be a problem with the event queue, but what is going wrong.
    Has anyone has ever faced such a problem and can give any clue or idea, how to fix it?
    Any help appreciated.
    Thanks a lot in advance.
    Greetings Michael
    java.lang.NullPointerException
         at javax.swing.plaf.metal.MetalFileChooserUI.setFileSelected(Unknown Source)
         at javax.swing.plaf.metal.MetalFileChooserUI$DelayedSelectionUpdater.run(Unknown Source)
         at java.awt.event.InvocationEvent.dispatch(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)

    Hi Leif,
    Hi Michael,
    It could be one of these bugs that are still open:
    http://developer.java.sun.com/developer/bugParade/bugs/4822786.html (no tripple-clicking)
    http://developer.java.sun.com/developer/bugParade/bugs/4759922.html (no file deletion)
    I've read them, but none of them matches my problem exactly.
    If neither of these matches your problem, could you post >a stack trace?The number is changing randomly.
    java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 9
        at java.util.Vector.get(Unknown Source)
        at javax.swing.plaf.basic.BasicDirectoryModel.getElementAt(Unknown Source)
        at javax.swing.plaf.basic.BasicListUI.updateLayoutState(Unknown Source)
        at javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(Unknown Source)
        at javax.swing.plaf.basic.BasicListUI.getCellBounds(Unknown Source)
        at javax.swing.JList.getCellBounds(Unknown Source)
        at javax.swing.JList.ensureIndexIsVisible(Unknown Source)
        at javax.swing.plaf.metal.MetalFileChooserUI.ensureIndexIsVisible(Unknown Source)
        at javax.swing.plaf.metal.MetalFileChooserUI.doDirectoryChanged(Unknown Source)
        at javax.swing.plaf.metal.MetalFileChooserUI.access$2600(Unknown Source)
        at javax.swing.plaf.metal.MetalFileChooserUI$12.propertyChange(Unknown Source)
        at javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(Unknown Source)
        at javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(Unknown Source)
        at javax.swing.JComponent.firePropertyChange(Unknown Source)
        at javax.swing.JFileChooser.setCurrentDirectory(Unknown Source)
        at de.gruenewald.michael.PartyJukebox.PlayList.initFileChoosers(PlayList.java:192)
        at de.gruenewald.michael.PartyJukebox.PlayList.<init>(PlayList.java:96)
        at de.gruenewald.michael.PartyJukebox.PlayList.getReference(PlayList.java:148)
        at de.gruenewald.michael.PartyJukebox.GUI.<init>(GUI.java:91)
        at de.gruenewald.michael.PartyJukebox.GUI.main(GUI.java:217)The Filechooser isn't visible and this exception is risen
    during the startup of the Gui (No clicking!). It occurs very seldom at the start of my app.
    Perhaps this may be caused, by the fileFilters. There may be less files visible than stored in the dir.
    So perhaps some additional code for checking this out could fix this problem.
    Do you mean that you are getting the exception even when >using
    invokeLater()?No, invokeLater uses a Thread and Exception raised their aren't displayed or logged normally, So I can't tell you , if this really solves the problem or if it is just hidden.
    By the way I'm catching the Event-Dispatching-thread, with:
    System.setProperty("sun.awt.exception.handler",HandleAllExceptionOfEventDispatching.class.getName());    I try to use a ThreadLoggingGrooup for the scheduled Thread and will tell you about the results here later (cause of the Exception is really seldom raised.)
    I will also use try to use it for the first problem (NullPointerExcep.).
    SwingUtilities.invokeLater(new Thread(RuntimeObjects.getReference().getLoggingThreadGroup() ,new Runnable(){
                ConfigData config = ConfigData.getReference();
                public void run(){
                    if ( config.getDefaultDirForPlayLists() != null){
                        File file = new File(config.getDefaultDirForPlayLists());
                        if( file.exists() && file.canRead() && file.isDirectory() ){
                            PlayList.this.load.setCurrentDirectory(file);
                            PlayList.this.save.setCurrentDirectory(file);
    public ThreadGroup getLoggingThreadGroup(){
            loggingThreadGroup = new ThreadGroup("LoggingForThreads"){
                PrintStream errLog = RuntimeObjects.getReference().getErrorLog();
                public void uncaughtException(Thread t, Throwable e){
                    if (!(e instanceof ThreadDeath) ){
                        if ( errLog == null){ 
                            errLog.println(e.getMessage());
                            e.printStackTrace(errLog);
                        e.printStackTrace();
            return loggingThreadGroup;
        } Cheers,
    /LeifI also post my initFileChoosers:
    private void initFileChoosers(){
            load = new JFileChooser();
            save = new JFileChooser();
            AllPlaylistsFilter all = new AllPlaylistsFilter();
            PlayListFilter playFilter = new PlayListFilter();
            PlsFilter plsFilter = new PlsFilter();
            M3uFilter m3u = new M3uFilter();
            //save.removeChoosableFileFilter(save.getFileFilter());
            //load.removeChoosableFileFilter(load.getFileFilter());
            save.setAcceptAllFileFilterUsed(false);
            load.setAcceptAllFileFilterUsed(false);
            load.addChoosableFileFilter(all);
            load.addChoosableFileFilter(playFilter);
            load.addChoosableFileFilter(plsFilter);
            load.addChoosableFileFilter(m3u);
            save.addChoosableFileFilter(all);
            save.addChoosableFileFilter(playFilter);
            save.addChoosableFileFilter(plsFilter);
            save.addChoosableFileFilter(m3u);
            JCheckBox relativePaths = new JCheckBox(rb.getString("CheckBox.RelativePaths"),false);
            save.setAccessory(relativePaths);
            load.setFileFilter(all);
            save.setFileFilter(all);
            //SwingUtilities.invokeLater(new Runnable(){
            //    ConfigData config = ConfigData.getReference();
            //    public void run(){
                    if ( config.getDefaultDirForPlayLists() != null){
                        File file = new File(config.getDefaultDirForPlayLists());
                        if( file.exists() && file.canRead() && file.isDirectory() ){
                            PlayList.this.load.setCurrentDirectory(file);
                            PlayList.this.save.setCurrentDirectory(file);
           }Example of a FileFilter:
    abstract class DefaultFileFilter extends javax.swing.filechooser.FileFilter{
        public String getExtension(){ return ".ppl"; }
    class AllPlaylistsFilter extends DefaultFileFilter{
         public boolean accept(File pathname) {
            if ( pathname.isDirectory() ) return true;
            String name = pathname.getPath();
            int pos = name.lastIndexOf('.');
            String extension = name.substring(pos+1);
            if ( extension.equalsIgnoreCase("m3u") || extension.equalsIgnoreCase("pls") || extension.equalsIgnoreCase("ppl") ) return true;
            return false;
         public String getDescription(){ return "All Playlists"; }
         public String getExtension(){ return ".m3u"; }
    }Cheers Michael

  • Nullpointer in 'weblogic.transaction.internal.CoordinatorImpl

              I am using Weblogic 6.1 SP4 on JDK 1.3.1 on AIX.
              My server has a transacted EJB which accesses Oracle and DB2 databases. I have
              been running my application for several months.
              Suddenly, yesterday it starting spitting out these exceptions a few times a minute.
              I cannot find the configuration change I made that would have caused this to
              suddenly start appearing. My code has not changed in 2 weeks.
              Has anyone seen this error before? Does anyone know what causes this, so that
              I can narrow my search?
              Thanks for your help,
              Tania
              ####<Mar 4, 2003 12:35:48 PM CST> <Warning> <Dispatcher> <ksp12025> <cuAS01> <ExecuteThread:
              '5' for queue: 'default'> <system> <> <000000> <RuntimeException thrown by rmi
              server: 'weblogic.rmi.internal.BasicServerRef@105 - jvmid: '-4285102758410085945S:10.1.21.21:[18120,18120,18121,18121,18120,18121,-1]:qdomain4:cuAS01',
              oid: '261', implementation: 'weblogic.transaction.internal.CoordinatorImpl@311671da''>
              java.lang.NullPointerException
              at weblogic.transaction.internal.ServerResourceInfo.isAccessibleAtAndAssignableTo(ServerResourceInfo.java(Compiled
              Code))
              at weblogic.transaction.internal.ServerTransactionImpl.assignResourcesToSelf(ServerTransactionImpl.java(Compiled
              Code))
              at weblogic.transaction.internal.ServerTransactionImpl.assignResourcesToSelf(ServerTransactionImpl.java(Compiled
              Code))
              at weblogic.transaction.internal.ServerTransactionImpl.localCommit(ServerTransactionImpl.java(Compiled
              Code))
              at weblogic.transaction.internal.SubCoordinatorImpl.startCommit(SubCoordinatorImpl.java(Compiled
              Code))
              at weblogic.transaction.internal.CoordinatorImpl_WLSkel.invoke(Unknown
              Source)
              at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java(Compiled
              Code))
              at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java(Compiled
              Code))
              at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java(Compiled
              Code))
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java(Compiled Code))
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              

              Thanks,
              The problem did clear up when the Unix server had to get bounced. I believe it
              was bounced for an unrelated issue.
              The one thing I noticed was that there were a couple of copies of my EJBs in the
              wlnotdelete directory that the server had been previously compliaining about.
              They went away after the Unix server was restarted and the NullPointer problem
              went away.
              We plan to upgrade to 7.1 soon, but will try to move to SP5 if we need to sooner.
              Thanks for your help.
              Tania Rhinehart
              Rajesh Mirchandani <[email protected]> wrote:
              >This is fixed in SP5. Open a case with [email protected] and reference
              >CR092301.
              >
              >Slava Imeshev wrote:
              >
              >> Hi Tania,
              >>
              >> I think you need to contact BEA support at [email protected]
              >>
              >> Regards,
              >>
              >> Slava Imeshev
              >>
              >> "Tania Rhinehart" <[email protected]> wrote in message
              >> news:[email protected]...
              >> >
              >> > I am using Weblogic 6.1 SP4 on JDK 1.3.1 on AIX.
              >> > My server has a transacted EJB which accesses Oracle and DB2 databases.
              > I
              >> have
              >> > been running my application for several months.
              >> > Suddenly, yesterday it starting spitting out these exceptions a few
              >times
              >> a minute.
              >> > I cannot find the configuration change I made that would have caused
              >this
              >> to
              >> > suddenly start appearing. My code has not changed in 2 weeks.
              >> >
              >> > Has anyone seen this error before? Does anyone know what causes
              >this, so
              >> that
              >> > I can narrow my search?
              >> >
              >> > Thanks for your help,
              >> > Tania
              >> >
              >> > ####<Mar 4, 2003 12:35:48 PM CST> <Warning> <Dispatcher> <ksp12025>
              >> <cuAS01> <ExecuteThread:
              >> > '5' for queue: 'default'> <system> <> <000000> <RuntimeException
              >thrown by
              >> rmi
              >> > server: 'weblogic.rmi.internal.BasicServerRef@105 - jvmid:
              >> '-4285102758410085945S:10.1.21.21:[18120,18120,18121,18121,18120,18121,-1]:q
              >> domain4:cuAS01',
              >> > oid: '261', implementation:
              >> 'weblogic.transaction.internal.CoordinatorImpl@311671da''>
              >> >
              >> > java.lang.NullPointerException
              >> > at
              >> weblogic.transaction.internal.ServerResourceInfo.isAccessibleAtAndAssignable
              >> To(ServerResourceInfo.java(Compiled
              >> > Code))
              >> > at
              >> weblogic.transaction.internal.ServerTransactionImpl.assignResourcesToSelf(Se
              >> rverTransactionImpl.java(Compiled
              >> > Code))
              >> > at
              >> weblogic.transaction.internal.ServerTransactionImpl.assignResourcesToSelf(Se
              >> rverTransactionImpl.java(Compiled
              >> > Code))
              >> > at
              >> weblogic.transaction.internal.ServerTransactionImpl.localCommit(ServerTransa
              >> ctionImpl.java(Compiled
              >> > Code))
              >> > at
              >> weblogic.transaction.internal.SubCoordinatorImpl.startCommit(SubCoordinatorI
              >> mpl.java(Compiled
              >> > Code))
              >> > at
              >> weblogic.transaction.internal.CoordinatorImpl_WLSkel.invoke(Unknown
              >> > Source)
              >> > at
              >> weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java(Compiled
              >> > Code))
              >> > at
              >> weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java(Compi
              >> led
              >> > Code))
              >> > at
              >> weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java(C
              >> ompiled
              >> > Code))
              >> > at
              >> weblogic.kernel.ExecuteThread.execute(ExecuteThread.java(Compiled Code))
              >> > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              >> >
              >
              >--
              >Rajesh Mirchandani
              >Developer Relations Engineer
              >BEA Support
              >
              >
              

Maybe you are looking for

  • S400 Webcam problem on Windows 8.1

    Hi everyone! Since I've installed Windows 8.1 on my Lenovo IdeaPad S400, my integrated camera doesn't work anymore. I have been searching on the internet the other time, but can't find a resolution. Some things I tried: - Update all the laptops drive

  • After Boot Camp partition, iMac no longer boots

    Hi, I have a 20" iMac Core Duo (the first Intel Mac off the line) running Snow Leopard 10.6.4. I ran the Boot Camp Assistant to partition my hard drive, and it successfully created the "BOOTCAMP" drive. When it asked for my installation CD, I tried l

  • Removing Leading Spaces in the field to be displayed

    Hi, Could you please tell me how to remove leading spaces in currency field in write statement? the length of the field cannot be changed by writing fieldname(length). is there any other method to do the same. the length should vary according to the

  • .key file extension

    Hi, a friend is visiting and needs to open a power point on my mac. I downloaded file and tried to open in microsoft office ppt, however the file format is .key and I've no idea what that is or what to do with it, all I know is I can't open it!! Help

  • I have lion.  where is the hard drive? stupid question.  i know.

    hi, i have snow leopard but have just purchased macbook pro with lion.  where can i find the hard drive?  with snow leopard you just go to a finder window but lion doesn't have it listed there?  i need to upload a color profile, etc.  the directions