Plz help in solving this servlet error...

Hi,
I've a webapplication in struts. As soon as i submit the login form i'm getting this error :-
WARN [RequestProcessor] Unhandled Exception thrown: class java.lang.NullPointerException
08:58:10,071 ERROR [[action]] Servlet.service() for servlet action threw exception
java.lang.NullPointerException
     at com.java.action.LoginAction.doLogin(LoginAction.java:44)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:274)
     at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:194)
     at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
     at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
     at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
     at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
     at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
     at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
     at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)
     at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
     at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
     at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
     at java.lang.Thread.run(Unknown Source)
AND,
the my code at line 44(at com.java.action.LoginAction.doLogin(LoginAction.java:44)) is :-
userVO.setStrUserId((String)frmLogin.get("userid"));
at this line, i'm just trying to set the userid entered frm the login page.m i missing some settings or any jar files. I'm using JBoss4.0.2(AS), MyEclipse6.0(IDE), and struts1.1

Thanks for the replies frnds. As ganesh pointed, the mistake was from my side and very very silly, in LoginAction.java inspite of creating an instance for UserVO, i made it null(UserVO userVO = null;). After changing, things started working fine. Thanx again for the reply :-)
Edited by: garv on Jun 29, 2008 11:26 PM

Similar Messages

  • I have problem with daq..when it is connected with laptop it asks for all the options like sampling rate etc..It displays building VI and it stops..it is not processing further..cau u plz help to solve this problem

    i hav problem with daq initialisation...plz help to solve the above mentioned issue

    Hi muthu,
    we also have a problem: to less information…
    - What is connected to your laptop?
    - What is "it" in "it displays building VI"? Do you use the DAQ Assistent ExpressVI?
    - What means "plz"?
    And could you please put less text in the title of your message and more text (with relevant information) into the message body?
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Plz help to solve this error in out.println statement

    Hi All,
    I am pretty new to weblogic8.1.I am Getting a error if i try to concatenate a object to the string in out.println
    statement.
    For your kind reference progam and error pattern is enclosed.
    public class Test extends HttpServlet
    PrintWriter out;
    public void doGet(HttpServletRequest req,HttpServletResponse res) throws ServletException,IOException
    out=res.getWriter();
    String aaa="Google";
    out.println("Hai"+aaa);
    ERROR IS:
    Error 500--Internal Server Error
    java.lang.NoClassDefFoundError: java/lang/StringBuilder
         at Test.doGet(Test.java:15)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
         at
    weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    If i use the statement like;
    out.println("Hai");
    out.println(aaa); ...It works fine
    Plz, help me out there.Thanks All.
    Prith

    My guess is this is a classpath issue. Read weblogic's documentation on how to install the software thoroghly, then re-install it. Double check that JAVA_HOME is set properly, and that you are using a fairly recent Sun Java VM, versus an old MS Java VM...

  • Plz help me on this very simple error

    hello everybody...i'm very new to java programming...i'm unable to execute my program though it has been compiled...my coding is something like this and is very easy>>
    class abc
    public static void main(String [] args)
    System.out.println("hello");
    and at the time of execution...this error is shown up>>
    C:\Documents and Settings\Ishan\Desktop>java abc
    Exception in thread "main" java.lang.NoClassDefFoundError: abc
    Caused by: java.lang.ClassNotFoundException: abc
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    Could not find the main class: abc. Program will exit.
    plz help me on this. thanks.

    Follow the instructions in this tutorial:
    http://java.sun.com/docs/books/tutorial/getStarted/cupojava/index.html
    See problem solutions here:
    http://java.sun.com/docs/books/tutorial/getStarted/problems/index.html

  • Error Message:"Cannot find or create the font 'WP-MathA'. Some characters may not display or print correctly."  Who can help me solve this problem?

    Some of the pdf files I work with (receive) come up with a comment: “Cannot find or create the font ‘WP-MathA’. Some characters may not display or print correctly.”  Who can help me solve this problem?
    Thank you in advance for  your time.
    Marlen

    Hello Anubha,
    I am having a similar problem on my machine.  I was using Word 2008 and I created a PDF inside Word.
    I am opening the file on the system itself and I am running Windows 8.1.  I am using Version 11 of Reader.
    When the PDF I created (my resume) attempts to open, it says:  cannot find or create the file Times, Bold.  Some characters may not display or print correctly. 
    However, the entire Reader keeps freezing and will not allow me to open or test print the document.  Also, it is not displaying any of the Bold Times New Roman Print.  Can you please help?  Thanks.

  • Plz help me solving following issues

    Hi SD experts,
    Plz help me solving following issues
    1) What do you mean by POD(proof of delivery) what is the use of pod? What are the con figuration you done in your project?
    2) When I am punching order after entering data like material No and quantity system should pop-up a screen of delivery date and status and invoice data and details, How can we configure this?
    3) Client requirement is he want horizon period in days format. but standard sap system It's in months format(gray mode). how can we change months to days?
    4) Quotation has been created for product-D, 10 quantities, sales order is created with reference to the quotation, system copies 10 quantities in sales order. How do you restrict in sales order end user should not change quantities, system should not allow for changes by en user?
    5)  when i creating the sales order the system show error "No customer master record exist for sold to party". How to rectify it?
    suitable solutions will be rewarded
    thansx & regards

    hi,
    Proof of delivery (POD) is an instrument involved in business processes in which an invoice is issued only after the customer has confirmed the delivery's arrival. In addition to the proof of delivery itself, you can also record the POD date, POD time, the actual quantity that arrived and the reason for possible differences in quantities. This is especially important for deliveries where the delivery quantity varies because of the nature of the goods or for which the exact delivery quantity is unknown from the start.
    You are now in a position to issue an accurate invoice based on the customer's confirmation of goods received. You no longer need to create credit memos. The reasons for deviation that occur most frequently in "real world" scenarios such as stock shrinkage, theft, certain characteristics of goods (volatility, for example), and transportation damage are recorded and analyzed in the system. This analysis is especially valuable when you are negotiating with forwarding agents, vendors, or customers, since all deviations can be reflected
    With regards
    Rajesh

  • Query on FBL3N................Urgent  plz help me on this.

    Hi Friends
         Here is my query,
    I am changing the tcode FBL3N to add one extra field into it and to display data in the name1 field for the spcific entries in the selection screen,
    After selecting the All item radio button and giving the range in the select-options when i am pressing F8 it is giving me the correct output,after that when i am trying to display the name1 field by selecting the ctrl+f8 button and pressing the apply button  it is giving me the error as
    "An internal error has arisen in the form routine ANALYZE_ACT_FIELDCAT
    for program RFITEM_INC.
    This is due to inconsistencies between table T021S (special fields) and
    structure RFPOSEXT."
    I changed everything to Y* but still it is giving the error.
    Plz help me in this if someone face the same prob or someone having idea on this.
    Thanks a lot in Advance
    Mrutyun^

    Hi Mrutyunjaya,
    Did you manage to resolve this error?
    Thanks and Regards
    Pras

  • I am not able to launch FF everytime i tr to open it, it says FF has to submit a crash report, i even tried doing that and the report was submitted too, but stiil FF did not start, and the problem still persists, please help me solve this issue in English

    Question
    I am not able to launch FF everytime i try to open it, it says FF has to submit a crash report,and restore yr tabs. I even tried doing that and the report was submitted too, but still FF did not start, and the problem still persists, please help me solve this issue
    '''(in English)'''

    Hi Danny,
    Per my understanding that you can't get the expect result by using the expression "=Count(Fields!TICKET_STATUS.Value=4) " to count the the TICKET_STATUS which value is 4, the result will returns the count of all the TICKET_STATUS values(206)
    but not 180, right?
    I have tested on my local environment and can reproduce the issue, the issue caused by you are using the count() function in the incorrect way, please modify the expression as below and have a test:
    =COUNT(IIF(Fields!TICKET_STATUS.Value=4 ,1,Nothing))
    or
    =SUM(IIF(Fields!TICKET_STATUS=4,1,0))
    If you still have any problem, please feel free to ask.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • My icloud activation lock is ON my iphone, which requires an activation login to access the homescreen, but when i log in with the apple ID on the phone, it says the apple ID is not meant to unclock this iphone 5 ios 8.0.2. please help me solve this.

    My icloud activation lock is on my iphone, which requires an activation login to access the homescreen, but when i log in with the apple ID on the phone, it says the apple ID is not meant to unclock this iphone 5 ios 8.0.2. please help me solve this.

    Yes the phone belongs to me. It was purchased from United Kingdom Vodafone to West Africa, i had to factory unlock to use any sim in it. so it belongs to me. I did the activation myself, now after updating my iphone to the latest update, it required a user id and password to activate the phone, but anytime i enter the details, it tells me the user Id is not correct but the password is correct..

  • Calendar and Time showing in arabic but my phone's language is English. I bought my phone from DU in UAE , Dubai. Please help me solve this issue while keeping the Region to United Arab Emirates

    Calendar and Time showing in arabic but my phone's language is English. I bought my phone from DU in UAE , Dubai. Please help me solve this issue while keeping the Region to United Arab Emirates

    Valentine350z wrote:
    while keeping the Region to United Arab Emirates
    Not possible, I think.  Tell Apple how you feel about this at
    http://www.apple.com/feedback/iphone.html

  • Capturing  through Sony HDV using firewire800 to 400 adaptor is not recognizing can any body help me solve this

    I am trying to capture using firewire 800 to 400 adaptor through a Sony HDV VTR. The VTR is not recognizing can some body help me solve this problem.
    I am using FCP7 and IMAC with 10.6.8 version os
    I dont have a 6 pin or 400 firewire port in the system

    Let's start with basics.
    Does your computer recognize that there is a VTR attached?
    • Open up system profiler>Hardware>FireWire.  Does your machine show up?
    If no, you need to figure out if the problem lies with the VTR, the cable, the adapter or your computer.
    My guess is with the adapter. A number of people have expressed frustration getting fw400 device to work through fw800 ports.
    If that's your problem, see if you can find an older Mac w/ fw400 ports or a dedicated fw800 to 400 cable.
    good luck,
    x
    ps - In "locking the barn after the paddle has been lost upstream" mode, this is why non-expandable computers like the iMac are so problematic. A MacBookPro with the expresscard 34 slot or a MacPro with 3 slots can work around these kind of issues. A closed box like the iMac is a dead end. Sorry.

  • I updated my Iphone 4s to IOS 7, now it reboots after every 2 minutes, I tried to restore, but the reboot gets it disconnected from PC, help me solve this reboot issue..

    I updated my Iphone 4s to IOS 7, now it reboots after every 2 minutes, I tried to restore, but the reboot gets it disconnected from PC, help me solve this reboot issue..

    See Here  >  http://support.apple.com/kb/HT1808
    You may need to try this More than Once...
    Be sure to Follow ALL the Steps...
    But... if the Device has been Modified... this will Not necessarily work.

  • My Numbers file sent to somebody is not able to open in Excel can anybody help to solve this problem?

    my Numbers file sent to somebody. He is not able to open in Excel can anybody help to solve this problem?

    Numbers files are not compatible with MS Excel.  To share a Numbers file with Excel you need to export you Numbers file in MS Excel format.  To do this:
    1) Open you Numbers document
    2) select the menu item "File > Export..."
    3) select "Excel" for the target output
    4) click next and select where to save the file.
    5) email the file you saved

  • TS1292 i have a spanish gift card that won't work with my canadian account. can someone help me solve this

    i found an old gift card that i got with my ipod from spain
    i have a canadian account. when i tried using the gift card it said i couldn't use the spanish gift card with my canadian account. can someone help me solve this problem
    the gift card is 15 euros

    Sorry, but you cannot use that card with a Canadian iTunes Store account. A gift card is valid only in the country of purchase. You'll need to give or sell that card to someone in Spain.
    Regards.

  • Used Migration Assistant to successfully transfer PC files to Mini. However file creation or modified date does not transfer. Date of creation is listed as day of transfer.  I would gratefully appreciate any help in solving this,

    Used Migration Assistant to successfully transfer PC files to Mini. However file creation or modified date does not transfer. Date of creation is listed as day of transfer.  I would gratefully appreciate any help in solving this?

    I have the same problem; used Migration Assistant to transfer all my pix from PC to MacbookPro, however dates of pix were not transferred. Date created as the date of transfer. Cannot sort my pix according to date.
    Anybody has an answer?

Maybe you are looking for

  • Deleting rows in Numbers without resorting?

    I have about ten thousand items in a Numbers spreadsheet. In one column, I have a formula that, in the third column, writes "Same" if the numbers being compared in the first two columns for a row are the same, and "Different" if they're different. I

  • Printing a tree in abap report

    Hello Experts! I want to make an ALV tree... but only show the part of the tree (not the columns of the table How can i do this? Thanks a lot! Edited by: Mariano Gallicchio on Jul 3, 2009 4:21 PM

  • Searching for SD-Card-Reader of M30x for Linux (Debian)

    Hi all, googeling I didn't find a way to get my sd-card working under linux. As far as I understood there are no drivers. Well, Microsoft not being an alternative in my case I really need a work around short of switching notebooks and external card r

  • Nokia 6303 Classic Displays CALL only instead of c...

    I've an orange sim card and this seems to be only happening with this network.  I do not know who is calling me. The display shows "call" even though the number of the person that is calling me is on my contact list. This happens with all numbers. St

  • Transport table and table entries

    Hi, I need to create a table and table entries, here I need to transport table and its entries to another system, what steps i need to follow for this? Please help me