aspose file tools*
The moose likes Struts and the fly likes nullpointerException  Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "nullpointerException  " Watch "nullpointerException  " New topic
Author

nullpointerException

shekhar john
Ranch Hand

Joined: Feb 02, 2011
Posts: 38
hi to all
i m using struts 2 but i m getting a nullpointerexception which is frustrating me my code is as
please help me to solve the problem .
thanks in advance.




stack trace is :-




Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8710
    
    6

I fixed your code tags for you.
Your code doesn't match your stack trace (line 40 is blank here). What's on line 40 in the code you are really using?


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
shekhar john
Ranch Hand

Joined: Feb 02, 2011
Posts: 38
the error is on this code line
<code>
String url = request.getRequestURL().toString();
</code>

I have pasted one line below from my editor thats why the stack trace shows the error on 40 line
in my code this line is on line 40
know can you please help me to solve it
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: nullpointerException
 
Similar Threads
Need help for Displaying in jsp
struts2-tiles-plugin-json
FreeMarker template error!
java.lang.ClassNotFoundException: javax.ejb.EJBHome
java.lang.NoClassDefFoundError: org/apache/log4j/Logger