0

Jcrop Servlet Problem since ZK6.5

asked 2013-05-03 09:58:57 +0800

mock gravatar image mock
34 2

I've integrated Jcrop into my ZK project and everything worked fine with ZK5.0

Since I've updated to ZK6.5 following problem occurs.

Stacktrace from browser:

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

java.lang.NullPointerException servlet.ImageCrop.doGet(ImageCrop.java:37) javax.servlet.http.HttpServlet.service(HttpServlet.java:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) note The full stack trace of the root cause is available in the Apache Tomcat/6.0.35 logs.

my code:

-> .jsp file

<form action="/CM/ImageServlet" method="get" target="_self" onsubmit="return checkCoords();"> <input type="hidden" id="x" name="l"/> <input type="hidden" id="y" name="t"/> <input type="hidden" id="w" name="w"/> <input type="hidden" id="h" name="h"/> <input type="submit" value="Bildausschnitt übernehmen"/> </form>

-> web.xml

<servlet>
    <servlet-name>ImageCrop</servlet-name>
    <servlet-class>servlet.ImageCrop</servlet-class>
</servlet>

<servlet-mapping>
    <servlet-name>ImageCrop</servlet-name>
    <url-pattern>/ImageServlet</url-pattern>
</servlet-mapping>

-> java

public synchronized void doGet(HttpServletRequest req,
        HttpServletResponse res) throws IOException, ServletException {

    HttpSession session = req.getSession(true);

            //DO Something
delete flag offensive retag edit
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2013-05-03 09:58:57 +0800

Seen: 6 times

Last updated: May 03 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More