[appengine-java] Servlet Filter is receiving a null chain parameter from time to time

2011-05-12 Thread Stream18
Hi,

I wonder if somebody else has seen this error before. My application has a 
Servlet Filter (that sets Namespace) for all urls, and, from time to time, 
the Filter receives a null as value for "chain" parameter from the platform, 
so I get a NullPointerException as I try to follow the chain with 
chain.doFilter(req, resp).
I have seen this specially when accessing an RPC method.

Thanks,

Eduardo G.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: 1.4 eclipse plugin

2010-12-05 Thread Stream18
Hi Sudhir,

I finally managed to solve this (at least ir worked for me). Just edit
the ".classpath" file in your eclipse project and review the order of
this two entries:



I had GWT_CONTAINER before GAE_CONTAINER, after reordering it started
compiling JSPs again.
Hope this helps,

Eduardo.


On Dec 5, 2:28 pm, Sudhir  wrote:
> Same issue here... does anyone have a fix that doesn't involve re-
> installing eclipse and recreating the entire project step by step?
>
> Sudhir
>
> On Dec 4, 4:37 pm, GoSharp Lite  wrote:
>
> > I solve my jsp compilation issue by using below steps.
>
> > 1) Download and install "eclipse-java-helios-SR1-win32.zip".
> > 2) Install plugins from "http://dl.google.com/eclipse/plugin/3.6";.
> > 3) Download and install "java_ee_sdk-6u1-jdk-windows.exe".
> > 4) Create a new and empty app using same project name and package as
> > my old app.
> > 5) Carefully copy all files in src and war from my old app into the
> > new app.
> > 6) Import all external libs from my old app into the new app.
> > 7) Set Properties-Google-App Engine-ORM to server files which need
> > enhancement.
> > 8) Debug and no more "Unable to compile class for JSP".
>
> > On Dec 4, 11:47 am, Jerome  wrote:
>
> > > Sorry, no solution but a very similar issue with Eclipse Helios SR 1:
>
> > > org.apache.jasper.JasperException: Unable to compile class for JSP:
>
> > > An error occurred at line: 9 in the generated java file
> > > org.apache.jasper.runtime.HttpJspBase cannot be resolved to a type
>
> > > An error occurred at line: 10 in the generated java file
> > > org.apache.jasper.runtime.JspSourceDependent cannot be resolved to a
> > > type
>
> > > An error occurred at line: 12 in the generated java file
> > > JspFactory cannot be resolved to a type
>
> > > An error occurred at line: 12 in the generated java file
> > > JspFactory cannot be resolved
>
> > > An error occurred at line: 23 in the generated java file
> > > javax.el.ExpressionFactory cannot be resolved to a type
>
> > > An error occurred at line: 24 in the generated java file
> > > org.apache.AnnotationProcessor cannot be resolved to a type
>
> > > An error occurred at line: 31 in the generated java file
> > > _el_expressionfactory cannot be resolved
>
> > > An error occurred at line: 31 in the generated java file
> > > _jspxFactory cannot be resolved
>
> > > An error occurred at line: 31 in the generated java file
> > > The method getServletConfig() is undefined for the type plans_jsp
>
> > > An error occurred at line: 32 in the generated java file
> > > _jsp_annotationprocessor cannot be resolved
>
> > > An error occurred at line: 32 in the generated java file
> > > org.apache.AnnotationProcessor cannot be resolved to a type
>
> > > An error occurred at line: 32 in the generated java file
> > > The method getServletConfig() is undefined for the type plans_jsp
>
> > > An error occurred at line: 32 in the generated java file
> > > org.apache.AnnotationProcessor cannot be resolved to a type
>
> > > An error occurred at line: 38 in the generated java file
> > > HttpServletRequest cannot be resolved to a type
>
> > > An error occurred at line: 38 in the generated java file
> > > HttpServletResponse cannot be resolved to a type
>
> > > An error occurred at line: 39 in the generated java file
> > > ServletException cannot be resolved to a type
>
> > > An error occurred at line: 41 in the generated java file
> > > PageContext cannot be resolved to a type
>
> > > An error occurred at line: 42 in the generated java file
> > > HttpSession cannot be resolved to a type
>
> > > An error occurred at line: 43 in the generated java file
> > > ServletContext cannot be resolved to a type
>
> > > An error occurred at line: 44 in the generated java file
> > > ServletConfig cannot be resolved to a type
>
> > > An error occurred at line: 45 in the generated java file
> > > JspWriter cannot be resolved to a type
>
> > > An error occurred at line: 47 in the generated java file
> > > JspWriter cannot be resolved to a type
>
> > > An error occurred at line: 48 in the generated java file
> > > PageContext cannot be resolved to a type
>
> > > An error occurred at line: 53 in the generated java file
> > > _jspxFactory cannot be resolved
>
> > > An error occurred at line: 1,315 in the generated java file
> > > SkipPageException cannot be resolved to a type
>
> > > An error occurred at line: 1,322 in the generated java file
> > > _jspxFactory cannot be resolved
>
> > > Stacktrace:
> > >         at
> > > org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandl
> > >  er.java:
> > > 92)
> > >         at
> > > org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:
> > > 330)
> > >         at
> > > org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:
> > > 439)
> > >         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:349)
> > >         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:327)