PDA

View Full Version : ArrayIndexOutOfBoundsException


markom
10-09-2010, 08:11 PM
I finally got my setup for eclipse, new resin and google app engine working. I'm also using url-rewrite module and when I'm trying to access url like: /a%C3%A4sdf.html (a??sdf.html) or any scandic letter on it, I get next error:

com.caucho.quercus.servlet.GoogleQuercusServletImp l service: java.lang.ArrayIndexOutOfBoundsException: 228
java.lang.ArrayIndexOutOfBoundsException: 228
at com.caucho.quercus.lib.string.StringUtility.parseS tr(StringUtility.java:96)
at com.caucho.quercus.env.Env.fillGet(Env.java:484)
at com.caucho.quercus.env.Env.getSuperGlobalRef(Env.j ava:2461)
at com.caucho.quercus.env.Env.getSuperGlobalRef(Env.j ava:2349)
at com.caucho.quercus.env.Env.getGlobalEnvVar(Env.jav a:2064)
at com.caucho.quercus.env.Env.getEnvVar(Env.java:2015 )
at com.caucho.quercus.env.Env.getValue(Env.java:1856)
at com.caucho.quercus.expr.VarExpr.eval(VarExpr.java: 142)
at com.caucho.quercus.expr.ArrayGetExpr.evalIsset(Arr ayGetExpr.java:219)
at com.caucho.quercus.expr.FunIssetExpr.eval(FunIsset Expr.java:68)
at com.caucho.quercus.expr.Expr.evalBoolean(Expr.java :665)
at com.caucho.quercus.expr.BinaryAndExpr.evalBoolean( BinaryAndExpr.java:83)
at com.caucho.quercus.statement.IfStatement.execute(I fStatement.java:83)
at com.caucho.quercus.statement.BlockStatement.execut e(BlockStatement.java:105)
at com.caucho.quercus.program.QuercusProgram.execute( QuercusProgram.java:412)
at com.caucho.quercus.page.InterpretedPage.execute(In terpretedPage.java:89)
at com.caucho.quercus.env.Env.executePageTop(Env.java :3907)
at com.caucho.quercus.env.Env.executeTop(Env.java:384 8)
at com.caucho.quercus.servlet.GoogleQuercusServletImp l.service(GoogleQuercusServletImpl.java:197)
at com.caucho.quercus.servlet.QuercusServlet.service( QuercusServlet.java:592)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:806)
at org.mortbay.jetty.servlet.ServletHolder.handle(Ser vletHolder.java:511)
at org.mortbay.jetty.servlet.ServletHandler.handle(Se rvletHandler.java:390)
at org.mortbay.jetty.security.SecurityHandler.handle( SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(Se ssionHandler.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(Co ntextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebA ppContext.java:418)
at org.mortbay.jetty.servlet.Dispatcher.forward(Dispa tcher.java:327)
at org.mortbay.jetty.servlet.Dispatcher.forward(Dispa tcher.java:126)
at org.tuckey.web.filters.urlrewrite.NormalRewrittenU rl.doRewrite(NormalRewrittenUrl.java:213)
at org.tuckey.web.filters.urlrewrite.RuleChain.handle Rewrite(RuleChain.java:171)
at org.tuckey.web.filters.urlrewrite.RuleChain.doRule s(RuleChain.java:145)
at org.tuckey.web.filters.urlrewrite.UrlRewriter.proc essRequest(UrlRewriter.java:92)
at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter .doFilter(UrlRewriteFilter.java:381)
at org.mortbay.jetty.servlet.ServletHandler$CachedCha in.doFilter(ServletHandler.java:1157)
at com.google.apphosting.utils.servlet.ParseBlobUploa dFilter.doFilter(ParseBlobUploadFilter.java:97)
at org.mortbay.jetty.servlet.ServletHandler$CachedCha in.doFilter(ServletHandler.java:1157)
at com.google.apphosting.runtime.jetty.SaveSessionFil ter.doFilter(SaveSessionFilter.java:35)
at org.mortbay.jetty.servlet.ServletHandler$CachedCha in.doFilter(ServletHandler.java:1157)
at com.google.apphosting.utils.servlet.TransactionCle anupFilter.doFilter(TransactionCleanupFilter.java: 43)
at org.mortbay.jetty.servlet.ServletHandler$CachedCha in.doFilter(ServletHandler.java:1157)
at org.mortbay.jetty.servlet.ServletHandler.handle(Se rvletHandler.java:388)
at org.mortbay.jetty.security.SecurityHandler.handle( SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(Se ssionHandler.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(Co ntextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebA ppContext.java:418)
at com.google.apphosting.runtime.jetty.AppVersionHand lerMap.handle(AppVersionHandlerMap.java:238)
at org.mortbay.jetty.handler.HandlerWrapper.handle(Ha ndlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(Htt pConnection.java:542)
at org.mortbay.jetty.HttpConnection$RequestHandler.he aderComplete(HttpConnection.java:923)
at com.google.apphosting.runtime.jetty.RpcRequestPars er.parseAvailable(RpcRequestParser.java:76)
at org.mortbay.jetty.HttpConnection.handle(HttpConnec tion.java:404)
at com.google.apphosting.runtime.jetty.JettyServletEn gineAdapter.serviceRequest(JettyServletEngineAdapt er.java:135)
at com.google.apphosting.runtime.JavaRuntime.handleRe quest(JavaRuntime.java:251)
at com.google.apphosting.base.RuntimePb$EvaluationRun time$6.handleBlockingRequest(RuntimePb.java:6784)
at com.google.apphosting.base.RuntimePb$EvaluationRun time$6.handleBlockingRequest(RuntimePb.java:6782)
at com.google.net.rpc.impl.BlockingApplicationHandler .handleRequest(BlockingApplicationHandler.java:24)
at com.google.net.rpc.impl.RpcUtil.runRpcInApplicatio n(RpcUtil.java:398)
at com.google.net.rpc.impl.Server$2.run(Server.java:8 52)
at com.google.tracing.LocalTraceSpanRunnable.run(Loca lTraceSpanRunnable.java:56)
at com.google.tracing.LocalTraceSpanBuilder.internalC ontinueSpan(LocalTraceSpanBuilder.java:576)
at com.google.net.rpc.impl.Server.startRpc(Server.jav a:807)
at com.google.net.rpc.impl.Server.processRequest(Serv er.java:369)
at com.google.net.rpc.impl.ServerConnection.messageRe ceived(ServerConnection.java:442)
at com.google.net.rpc.impl.RpcConnection.parseMessage s(RpcConnection.java:319)
at com.google.net.rpc.impl.RpcConnection.dataReceived (RpcConnection.java:290)
at com.google.net.async.Connection.handleReadEvent(Co nnection.java:474)
at com.google.net.async.EventDispatcher.processNetwor kEvents(EventDispatcher.java:831)
at com.google.net.async.EventDispatcher.internalLoop( EventDispatcher.java:207)
at com.google.net.async.EventDispatcher.loop(EventDis patcher.java:103)
at com.google.net.rpc.RpcService.runUntilServerShutdo wn(RpcService.java:251)
at com.google.apphosting.runtime.JavaRuntime$RpcRunna ble.run(JavaRuntime.java:418)
at java.lang.Thread.run(Thread.java:636)

My rewrite rules are not accepting scandic letters yet, but application shouldnt halt in a situation like this. Is there something I'm doing wrong or is this a bug?

Btw. its been exciting time to learn mix php and java.