Can someone help me decode this error message.

Error: 500
Location: /MonteCarlo/jsp/monte.jsp
Internal Servlet Error:
javax.servlet.ServletException
     at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:386)
     at jsp._0002fjsp_0002fmonte_0002ejspmonte_jsp_1._jspService(_0002fjsp_0002fmonte_0002ejspmonte_jsp_1.java:121)
     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:174)
     at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
     at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
     at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
     at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
     at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
     at java.lang.Thread.run(Thread.java:484)
Root cause:
java.lang.NullPointerException
     at MonteCarlo.createBuckets(MonteCarlo.java:64)
     at jsp._0002fjsp_0002fmonte_0002ejspmonte_jsp_1._jspService(_0002fjsp_0002fmonte_0002ejspmonte_jsp_1.java:90)
     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:174)
     at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
     at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
     at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
     at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
     at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
     at java.lang.Thread.run(Thread.java:484)

You have something like the following line (obviously since I don't have your code I made something up.)
xxx.getStuff(other.myMethod(myString));
You need to modify it to look like this
if (myString == null) System.out.println("MyString is null");
if (other == null) System.out.println("other is null");
if (xxx == null) System.out.println("xxx is null");
xxx.getStuff(other.myMethod(myString));
Keep adding if/thens and println() until you figure what object is null.

Similar Messages

  • Can someone help me with this error message?

    I am very new to java and I am trying to write a memory game but, when I try to compile I get this message
    incompatible types
    java.awt.Image
    required int
    my code is below:
    import java.applet.*;
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import javax.swing.JOptionPane;
    public class mem1 extends JApplet
    int CardPlace[];
    int CardFace[];
    Image img1;
    Image img2;
    Image img3;
    Image CardBack;
    private int mX = 0;
    private int mY = 0;
    boolean turned;
    int flip = 0;
    int pos;
    int Position;
    public void init()
    int choice;
    int cd1=0;
    int cd2=0;
    int cd3=0;
    int counter=0;
    CardPlace=new int[6];
    CardFace=new int[6];
    cd1 = getImage(getDocumentBase(),"Heart.gif");
    cd2 = getImage(getDocumentBase(),"Happy.gif");
    cd3 = getImage(getDocumentBase(),"Phone.gif");
    CardBack = getImage(getDocumentBase(),"safari.gif");
    while (counter<6)
    choice = 1 + (int)(Math.random() * 3);
         switch(choice)
         case 1:
              if(cd1<2)
              { CardPlace[counter] = 1;
              counter++;
              cd1++;
              break;
              case 2:
              if(cd2<2)
              { CardPlace[counter] = 2;
              counter++;
              cd2++;
              break;
              case 3:
              if(cd3<2)
              { CardPlace[counter] = 3;
              counter++;
              cd3++;
              break;
    addMouseListener(new MouseHandler());
    public void paint(Graphics g)
    int xposition = 0;
    int yposition = 0;
    int i = 0;
    turned = false;
    if ((mX>=0 && mX < 150) && (mY >=0 && mY<150))
    Position = 0;
    else if((mX >150 && mX < 300) && (mY>=0 && mY < 150))
              Position = 1;
         else if((mX >=300 && mX < 450) && (mY>=0 && mY < 150))
              Position = 2;
         else if((mX >=0 && mX < 150) && (mY>=150 && mY < 300))
              Position = 3;
         else if((mX >150 && mX < 300) && (mY>=150 && mY < 300))
              Position = 4;
         else if((mX >300 && mX < 450) && (mY>=150 && mY < 300))
              Position = 5;
    CardFace[Position]=CardPlace[Position];
    if (flip == 0)
         flip = Position;
    else if(flip != Position)
         if(CardFace[flip] != CardFace[Position])
         CardFace[flip]=0;
         CardFace[Position]=0;
         flip = 0;
    while (i<6)
    if (xposition==450)
    yposition=150;
    xposition = 0;
    switch(CardFace){
    case 0:
    g.drawImage(CardBack, xposition, yposition, this);
    break;
    case 1:
    g.drawImage(img1,xposition,yposition,this);
    break;
    case 2:
    g.drawImage(img2,xposition,yposition, this);
    break;
    case 3:
    g.drawImage(img3,xposition,yposition,this);
    break;
    xposition = xposition + 150;
    i++;
    private class MouseHandler extends MouseAdapter
    public void mousePressed(MouseEvent evt)
    mX = evt.getX();
    mY = evt.getY();
    turned = true;
    repaint();

    Hi,
    Can u indicate the exact lines in which the
    error message is thrown.
    Raja

  • Can anyone help me with this error message?

    I managed to succesfully transfer files from my old iMac G3 to my new iMac G5 using a crossover ethernet cable. I connected from the G5 to the G3.
    BUT, when I start my G5 I now get the following message
    Connection failed. The server may not exist or is not operational at this time.
    It's not causing any problems just annoying. Is the G5 looking for itself perhaps? Can someone help me?

    Take a look at System Preferences, Accounts, Startup Items to see if the G3 got added to the list.

  • Can anybody help me with this error message I keep getting

    When I try to export my document as a pdf I keep getting this error message...  "The document “Client Invoice_TMC copy” could not be exported as...."

    What version of Numbers?What version of Mac OS X?
    Have you tried restarting Numbers?
    Have you tried restarting your computer?
    Can you export other documents to pdf?
    Have you tried printing the docmment to pdf using the built-in print dialog?  To do this select the menu item "File > Print", then click the print button, then select the "Open in Preview" select from the PDF button in the bottom left corner:

  • Can anyone help me with this error message? I have run a permissions repair but it didn't solve the problem.

    No permissions to write to /System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/Home/lib/ext
    This is the error message I get when trying to update a 3D viewer plugin for the IMAGE J (FIJI) software. This is a brand new system running Mountain Lion 10.8.2. has anyone else gotten this error message, and could you give me any advice?
    Thanks
    Leah

    You need root privileges to modify that system folder. Actually, it shouldn't be modified at all, except by Apple. Whatever installer you're using is defective.

  • Can someone help me with this error i keep geting?

    hello, ive been using photoshop for a while and then today i try to open it ad get this error:
    can anyone help me?

    Is there any chance you've copied plug-ins or any other components from an older version of Photoshop into your current installation?
    Do you have 3rd party plug-ins installed, and have you made a change in plug-ins recently?
    It might be helpful if you'd go into Help - System Info, copy that data, and paste it in a post here.
    -Noel

  • HT201210 Can someone help me with an error message I get when updating to itunes version 6?

    I get the error message 'itunes could not back up the iphone because the back up was corrupt or not compatible with the iphone' when trying to update my iphone 4 to itunes v6.0.
    What do I do?
    HELP!
    Thank you

    Read http://www.justanswer.com/cell-phones/6izkg-restore-corrupted-iphone-backup-file .html

  • Can someone help me with this Error ?

    When I start up my Thinkpad 600E it shows 301 on the first screen and then it goes to the diagnostic/Test screen.
    I run a test on the system board and it comes up with this :
    FRU 0086
                 22
             0010
    I know that there is some issue with the Harddisk. The trackpoint is broke so I have disabled and use an external mouse.
    When I do the keyboard test, the key for F8 keeps blinking (even without pressing it). Could this be an issue ? Is there a work around like disabling the keyboard and using an external one ?
    Or could it be because of the hard disk ?
    Pls help
    Thanks
    Alex

    Is your datacontrol being called? I'd pad it with logs and see if maybe that's throwing an exception and causing a jsf error stack to be generated.

  • Can someone help me with this error 2001 problem ?

    i have a problem with my iphone 4s that my doesnt work at all unless i plug it to  the charger cable, and then once i plug it, it shows on the screen that the battery is 100%  and i cant turn on the wifi. Once i unplug the cable the iphone turns off immedately! so i tried to restore my iphone, and then when i try to restore it, it says that there is an error called "2001".. so what should i do ?? thanks.

    Hi Randomkilla,
    If you are getting a 2001 error when trying to restore you iPhone, you may find the troubleshooting in the following article helpful:
    Apple Support: Resolve specific iTunes update and restore errors
    http://support.apple.com/kb/TS3694
    Regards,
    - Brenden

  • My ipod touch 1st gen has gone into recovery and wont restore because of a error 1 or something like that can someone help me quick this ipod is my little cousins and i dont want her mum to find out what happend

    my ipod touch 1st gen has gone into recovery and wont restore because of a error 1 or something like that can someone help me quick this ipod is my little cousins and i dont want her mum to find out what happend

    I have not seen a solution for error (1)
    make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar

  • I'm trying to clean up my mailbox and when I delete an item(s) I get a message that say's "operation could not be completed- file exists. Further, when I do this one message is copied (not deleted) to the trash folder. Can someone help me through this?

    I'm trying to clean my mailbox and when I click on delete or highlight and move to trash I get a message that says "operation could not be completed - file exists. Further, when I select a message or group of messages, one of them is copied (not deleted) to the trash folder. Can someone help me through this?
    Thanks.

    It's a POP account. I decided to clean up my mailbox today after noticing the computer was real slow after USA Today started sending their daily top stories with new graphics. Also before I noticed the problem with mail deletion - two things happened. 1) I updated security sofware as prompted by Apple and 2) downloaded Mackeeper and went throught some preliminary scans but did not buy their package. Thanks forn nstaying with me.

  • Can someone tell me where this error is generated. I have no backup set of any kind thru time machine. I get this error message in console every Friday.EBEngine[4611:b07] ditto: /System/V2: Permission denied

    Can someone tell me where this error is generated. I have no backup set of any kind thru time machine. I get this error message in console every Friday.   EBEngine[4611:b07] ditto: /System/V2: Permission denied

    Can someone tell me where this error is generated. I have no backup set of any kind thru time machine. I get this error message in console every Friday.   EBEngine[4611:b07] ditto: /System/V2: Permission denied

  • I am unable to update devices with Apple Configurator because of this message - unable to send ClearPasscode command to device - I am running Configurator 1.5 and ios 7.1.1.  I am unable to rename/number devices. How can I get rid of this error message.

    I am unable to update devices with Apple Configurator because of this message - unable to send ClearPasscode command to device - I am running Configurator 1.5 and ios 7.1.1.  I am unable to rename/number devices. How can I get rid of this error message.

    I've just seen this message for the first time and it's showing on 10 devices.
    What I really love about Apple Configurator is the copious amount of context driven help offered to you.
    "Unable to send ClearPasscode command to device.
    The device was disconnected.
    Check the USB connection to the device."

  • Some of my photos in iphoto turn blank (white) when I tried to edit the size like zoon in and out.Can someone help me on this?

    Some of my photos in Iphoto turn blank (white) when I tried to edit the size like zoon in and out.Can someone help me on this?

    As a Test:
    Hold down the option (or alt) key and launch iPhoto. From the resulting menu select 'Create Library'
    Import a few pics into this new, blank library. Is the Problem repeated there?

  • So i have an apple ipod touch 1st generation and it is not charging! It shows the charging sign but its taking a really long time to charge. Ive had it charging for at least 3 hours and it still says under 20% so can someone help me figure this out??

    So i have an apple ipod touch 1st generation and it is not charging! It shows the charging sign but its taking a really long time to charge. Ive had it charging for at least 3 hours and it still says under 20% so can someone help me figure this out??

    Not Charge
    - See:      
    iPod touch: Hardware troubleshooting
    iPhone and iPod touch: Charging the battery
    - Try another cable.
    - Try another charging source
    - Inspect the dock connector on the iPod for bent or missing contacts, foreign material, corroded contacts, broken, missing or cracked plastic.
    - Make an appointment at the Genius Bar of an Apple store.
      Apple Retail Store - Genius Bar 

Maybe you are looking for

  • How to include a new Subject area?

    Hi, 1. In my Physical Layer I have ORCL Database and SH physical schema, how do I move it to the Business model and then to Presentation Layer. 2. Once it is moved to Presentation Layer will it appear in the Subject Area of the "Answers". 3. This is

  • Opening qries (BEX7.0) through web browser

    Dear Experts I have created a query using Query Designer (BEX 7.0) and now I want to open or execute it in WEB Browser . Pl. mention all the steps............ Thanks in advance Dinesh Sharma

  • Problem of retrieving data using JComboBox

    I built 6 JComboBoxes for retrieving starting day and end day. They are all in the same panel. I could get correct indexes for 6 JComboBoxes, however, I couldn't get the correct object of the month of the end day. Sometimes, I could n't get the corre

  • Purchase Order new condition query

    Hello Experts, I am adding a new condition (FRB1) type to a purchase order smartform. I have changed the print flag in T683S to display this at item level which it does ok. However the value from this condition was not added to the total. I'm assumin

  • Compilations show up as lots of albums

    Hope this isn't a faq. Not sure if it was an issue in iTunes 6.X. I (like many) have a few albums that are compilations. In both of the the "cover browser" views, these albums aren't consolodated. So when I flip through the album covers, I see dozens