Caucho Forums  

This forum is permanently closed because of spam. For free community support, please visit Google Groups:


Go Back   Caucho Forums > Quercus

Reply
 
Thread Tools Display Modes
  #1  
Old 03-01-2013, 03:43 AM
suryakencana suryakencana is offline
Junior Member
 
Join Date: Mar 2013
Posts: 3
Post 'static' is an unexpected token

Why when using Quercus 4.0.25 + Jetty7 + laravel I got this issue ...
please help me , i like laravel but i like java so much ...

HTTP ERROR 500

Problem accessing /public/. Reason:
com.caucho.quercus.parser.QuercusParseException: /run/media/surya/DataSurya/IdeaProjects/miniServerPhp/web/laravel/vendor/Symfony/Component/HttpFoundation/laravelrequest.php:14: 'static' is an unexpected token, expected an expression. in
laravelrequest.php:12: static public function createFromGlobals()
laravelrequest.php:13: {
laravelrequest.php:14: $request = new static($_GET, $_POST, array(), $_COOKIE, $_FILES, $_SERVER);
laravelrequest.php:15:
laravelrequest.php:16: if ((0 === strpos($request->server->get('CONTENT_TYPE'), 'application/x-www-form-urlencoded')

Best regrade
Reply With Quote
  #2  
Old 03-01-2013, 08:46 PM
nam nam is offline
Administrator
 
Join Date: Aug 2009
Posts: 337
Default

Hi,

Please download the latest version at:

http://caucho.com/download/quercus-4.0.35.war
Reply With Quote
  #3  
Old 03-03-2013, 05:18 AM
suryakencana suryakencana is offline
Junior Member
 
Join Date: Mar 2013
Posts: 3
Post

Hi Nam thank you but it still got error ....

what file jar is it ???
i can't figure it ... it's fine and work if i use codeigniter ...
HTTP ERROR 500

Problem accessing /public/. Reason:

java.io.FileNotFoundException: jar:
Caused by:

com.caucho.quercus.QuercusException: java.io.FileNotFoundException: jar:
at com.caucho.quercus.env.Env.executePage(Env.java:58 21)
at com.caucho.quercus.env.InternalAutoloadCallback.lo adClass(InternalAutoloadCallback.java:68)
at com.caucho.quercus.env.Env.findClassExt(Env.java:5 231)
at com.caucho.quercus.env.Env.findClass(Env.java:5149 )
at com.caucho.quercus.env.Env.findClass(Env.java:5126 )
at com.caucho.quercus.env.Env.findClassExt(Env.java:5 181)
at com.caucho.quercus.env.Env.findClass(Env.java:5149 )
at com.caucho.quercus.env.Env.findClass(Env.java:5126 )
at com.caucho.quercus.env.Env.findAbstractClass(Env.j ava:5504)
at com.caucho.quercus.expr.ObjectNewExpr.eval(ObjectN ewExpr.java:91)
at com.caucho.quercus.expr.Expr.evalCopy(Expr.java:51 4)
at com.caucho.quercus.expr.Expr.evalAssignValue(Expr. java:585)
at com.caucho.quercus.expr.BinaryAssignExpr.eval(Bina ryAssignExpr.java:88)
at com.caucho.quercus.expr.Expr.evalTop(Expr.java:540 )
at com.caucho.quercus.statement.ExprStatement.execute (ExprStatement.java:67)
at com.caucho.quercus.statement.BlockStatement.execut e(BlockStatement.java:105)
at com.caucho.quercus.program.Function.callImpl(Funct ion.java:432)
at com.caucho.quercus.program.Function.callMethod(Fun ction.java:468)
at com.caucho.quercus.env.QuercusClass.callMethod(Que rcusClass.java:1556)
at com.caucho.quercus.expr.ClassMethodExpr.eval(Class MethodExpr.java:122)
at com.caucho.quercus.expr.Expr.evalTop(Expr.java:540 )
at com.caucho.quercus.statement.ExprStatement.execute (ExprStatement.java:67)
at com.caucho.quercus.statement.BlockStatement.execut e(BlockStatement.java:105)
at com.caucho.quercus.program.Function.callImpl(Funct ion.java:432)
at com.caucho.quercus.env.InterpretedClosure.call(Int erpretedClosure.java:74)
at com.caucho.quercus.env.Value.call(Value.java:1545)
at com.caucho.quercus.env.Env.error(Env.java:6825)
at com.caucho.quercus.env.Env.error(Env.java:6766)
at com.caucho.quercus.env.Env.error(Env.java:6400)
at com.caucho.quercus.expr.CallExpr.evalImpl(CallExpr .java:198)
at com.caucho.quercus.expr.CallExpr.eval(CallExpr.jav a:151)
at com.caucho.quercus.expr.Expr.evalValue(Expr.java:4 86)
at com.caucho.quercus.statement.ReturnStatement.execu te(ReturnStatement.java:69)
at com.caucho.quercus.statement.IfStatement.execute(I fStatement.java:84)
at com.caucho.quercus.statement.BlockStatement.execut e(BlockStatement.java:105)
at com.caucho.quercus.program.Function.callImpl(Funct ion.java:432)
at com.caucho.quercus.program.Function.callMethod(Fun ction.java:468)
at com.caucho.quercus.function.AbstractFunction.callM ethod(AbstractFunction.java:664)
at com.caucho.quercus.env.QuercusClass.callMethod(Que rcusClass.java:1599)
at com.caucho.quercus.env.QuercusClass.callMethod(Que rcusClass.java:1915)
at com.caucho.quercus.env.CallbackObjectMethod.call(C allbackObjectMethod.java:78)
at com.caucho.quercus.env.Env.findClassExt(Env.java:5 178)
at com.caucho.quercus.env.Env.findClass(Env.java:5149 )
at com.caucho.quercus.env.Env.findClass(Env.java:5126 )
at com.caucho.quercus.env.Env.findClass(Env.java:5110 )
at com.caucho.quercus.expr.ClassMethodExpr.eval(Class MethodExpr.java:93)
at com.caucho.quercus.expr.Expr.evalTop(Expr.java:540 )
at com.caucho.quercus.statement.ExprStatement.execute (ExprStatement.java:67)
at com.caucho.quercus.statement.BlockStatement.execut e(BlockStatement.java:105)
at com.caucho.quercus.program.QuercusProgram.execute( QuercusProgram.java:414)
at com.caucho.quercus.page.InterpretedPage.execute(In terpretedPage.java:90)
at com.caucho.quercus.env.Env.executePage(Env.java:42 82)
at com.caucho.quercus.env.Env.include(Env.java:5802)
at com.caucho.quercus.expr.FunIncludeExpr.eval(FunInc ludeExpr.java:90)
at com.caucho.quercus.expr.Expr.evalTop(Expr.java:540 )
at com.caucho.quercus.statement.ExprStatement.execute (ExprStatement.java:67)
at com.caucho.quercus.statement.IfStatement.execute(I fStatement.java:84)
at com.caucho.quercus.statement.IfStatement.execute(I fStatement.java:87)
at com.caucho.quercus.statement.BlockStatement.execut e(BlockStatement.java:105)
at com.caucho.quercus.program.Function.callImpl(Funct ion.java:432)
at com.caucho.quercus.program.Function.callMethod(Fun ction.java:468)
at com.caucho.quercus.env.QuercusClass.callMethod(Que rcusClass.java:1556)
at com.caucho.quercus.expr.ClassMethodExpr.eval(Class MethodExpr.java:122)
at com.caucho.quercus.expr.Expr.evalTop(Expr.java:540 )
at com.caucho.quercus.statement.ExprStatement.execute (ExprStatement.java:67)
at com.caucho.quercus.statement.BlockStatement.execut e(BlockStatement.java:105)
at com.caucho.quercus.program.QuercusProgram.execute( QuercusProgram.java:414)
at com.caucho.quercus.page.InterpretedPage.execute(In terpretedPage.java:90)
at com.caucho.quercus.env.Env.executePage(Env.java:42 82)
at com.caucho.quercus.env.Env.include(Env.java:5802)
at com.caucho.quercus.expr.FunIncludeExpr.eval(FunInc ludeExpr.java:90)
at com.caucho.quercus.expr.Expr.evalTop(Expr.java:540 )
at com.caucho.quercus.statement.ExprStatement.execute (ExprStatement.java:67)
at com.caucho.quercus.statement.BlockStatement.execut e(BlockStatement.java:105)
at com.caucho.quercus.program.QuercusProgram.execute( QuercusProgram.java:414)
at com.caucho.quercus.page.InterpretedPage.execute(In terpretedPage.java:90)
at com.caucho.quercus.env.Env.executePageTop(Env.java :4293)
at com.caucho.quercus.env.Env.executeTop(Env.java:423 6)
at com.caucho.quercus.servlet.QuercusServletImpl.serv ice(QuercusServletImpl.java:202)
at com.caucho.quercus.servlet.QuercusServlet.service( QuercusServlet.java:568)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:97)
at org.eclipse.jetty.servlet.ServletHolder.handle(Ser vletHolder.java:652)
at org.eclipse.jetty.servlet.ServletHandler.doHandle( ServletHandler.java:445)
at org.eclipse.jetty.server.handler.ScopedHandler.han dle(ScopedHandler.java:137)
at org.eclipse.jetty.security.SecurityHandler.handle( SecurityHandler.java:574)
at org.eclipse.jetty.server.session.SessionHandler.do Handle(SessionHandler.java:227)
at org.eclipse.jetty.server.handler.ContextHandler.do Handle(ContextHandler.java:1044)
at org.eclipse.jetty.servlet.ServletHandler.doScope(S ervletHandler.java:372)
at org.eclipse.jetty.server.session.SessionHandler.do Scope(SessionHandler.java:189)
at org.eclipse.jetty.server.handler.ContextHandler.do Scope(ContextHandler.java:978)
at org.eclipse.jetty.server.handler.ScopedHandler.han dle(ScopedHandler.java:135)
at org.eclipse.jetty.server.Dispatcher.forward(Dispat cher.java:293)
at org.eclipse.jetty.server.Dispatcher.forward(Dispat cher.java:120)
at org.eclipse.jetty.servlet.DefaultServlet.doGet(Def aultServlet.java:566)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:120)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:97)
at org.eclipse.jetty.servlet.ServletHolder.handle(Ser vletHolder.java:652)
at org.eclipse.jetty.servlet.ServletHandler.doHandle( ServletHandler.java:445)
at org.eclipse.jetty.server.handler.ScopedHandler.han dle(ScopedHandler.java:137)
at org.eclipse.jetty.security.SecurityHandler.handle( SecurityHandler.java:556)
at org.eclipse.jetty.server.session.SessionHandler.do Handle(SessionHandler.java:227)
at org.eclipse.jetty.server.handler.ContextHandler.do Handle(ContextHandler.java:1044)
at org.eclipse.jetty.servlet.ServletHandler.doScope(S ervletHandler.java:372)
at org.eclipse.jetty.server.session.SessionHandler.do Scope(SessionHandler.java:189)
at org.eclipse.jetty.server.handler.ContextHandler.do Scope(ContextHandler.java:978)
at org.eclipse.jetty.server.handler.ScopedHandler.han dle(ScopedHandler.java:135)
at org.eclipse.jetty.server.handler.HandlerWrapper.ha ndle(HandlerWrapper.java:116)
at org.eclipse.jetty.server.Server.handle(Server.java :367)
at org.eclipse.jetty.server.AbstractHttpConnection.ha ndleRequest(AbstractHttpConnection.java:486)
at org.eclipse.jetty.server.AbstractHttpConnection.he aderComplete(AbstractHttpConnection.java:926)
at org.eclipse.jetty.server.AbstractHttpConnection$Re questHandler.headerComplete(AbstractHttpConnection .java:988)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpPa rser.java:640)
at org.eclipse.jetty.http.HttpParser.parseAvailable(H ttpParser.java:235)
at org.eclipse.jetty.server.AsyncHttpConnection.handl e(AsyncHttpConnection.java:82)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.han dle(SelectChannelEndPoint.java:628)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.r un(SelectChannelEndPoint.java:52)
at org.eclipse.jetty.util.thread.QueuedThreadPool.run Job(QueuedThreadPool.java:608)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.r un(QueuedThreadPool.java:543)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.io.FileNotFoundException: jar:
at com.caucho.vfs.NotFoundPath.openReadImpl(NotFoundP ath.java:92)
at com.caucho.vfs.Path.openRead(Path.java:1149)
at com.caucho.quercus.parser.QuercusParser.parse(Quer cusParser.java:357)
at com.caucho.quercus.page.PageManager.parseImpl(Page Manager.java:287)
at com.caucho.quercus.page.PageManager.parse(PageMana ger.java:246)
at com.caucho.quercus.page.PageManager.parse(PageMana ger.java:218)
at com.caucho.quercus.QuercusContext.parse(QuercusCon text.java:1228)
at com.caucho.quercus.env.Env.executePage(Env.java:58 15)
... 118 more
Reply With Quote
  #4  
Old 03-04-2013, 06:19 PM
nam nam is offline
Administrator
 
Join Date: Aug 2009
Posts: 337
Default

Thanks, I just filed a bug report for Laravel at:

http://bugs.caucho.com/view.php?id=5386
Reply With Quote
Reply

Tags
java 6, jetty, laravel, php5.3.2+, quercus

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:53 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.