Problem accessing /home. Reason: Server Error

945 views
Skip to first unread message

Chanh Le

unread,
May 6, 2016, 12:16:00 AM5/6/16
to Alluxio Users
  768  tar xf alluxio-1.0.0-bin.tar.gz
  769  cd alluxio-1.0.0
  770  ./bin/alluxio format
  771  cp conf/alluxio-env.sh.template conf/alluxio-env.sh
  772  ./bin/alluxio format
  773  bin/alluxio-start.sh local




HTTP ERROR 500

Problem accessing /home. Reason: Server Error



Caused by:org.apache.jasper.JasperException: PWC6033: Error in Javac compilation for JSP

PWC6199
: Generated servlet error:
The type java.io.ObjectInputStream cannot be resolved. It is indirectly referenced from required .class files


 at org
.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:126)
 at org
.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:296)
 at org
.apache.jasper.compiler.Compiler.generateClass(Compiler.java:372)
 at org
.apache.jasper.compiler.Compiler.compile(Compiler.java:433)
 at org
.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:608)
 at org
.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
 at org
.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:476)
 at org
.apache.jasper.servlet.JspServlet.service(JspServlet.java:366)
 at javax
.servlet.http.HttpServlet.service(HttpServlet.java:820)
 at org
.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:652)
 at org
.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:445)
 at org
.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
 at org
.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:574)
 at org
.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)
 at org
.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1044)
 at org
.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:372)
 at org
.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:189)
 at org
.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:978)
 at org
.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
 at org
.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:293)
 at org
.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:120)
 at alluxio
.web.WebInterfaceGeneralServlet.doGet(WebInterfaceGeneralServlet.java:129)
 at javax
.servlet.http.HttpServlet.service(HttpServlet.java:707)
 at javax
.servlet.http.HttpServlet.service(HttpServlet.java:820)
 at org
.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:652)
 at org
.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:445)
 at org
.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
 at org
.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:556)
 at org
.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)
 at org
.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1044)
 at org
.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:372)
 at org
.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:189)
 at org
.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:978)
 at org
.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
 at org
.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:52)
 at org
.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:52)
 at org
.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
 at org
.eclipse.jetty.server.Server.handle(Server.java:369)
 at org
.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:486)
 at org
.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:933)
 at org
.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:995)
 at org
.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)
 at org
.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
 at org
.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
 at org
.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:667)
 at org
.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
 at org
.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
 at org
.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
 at java
.lang.Thread.run(Thread.java:745)

Powered by Jetty://



java -version
openjdk version
"1.8.0_91"
OpenJDK Runtime Environment (build 1.8.0_91-b14)
OpenJDK 64-Bit Server VM (build 25.91-b14, mixed mode)

lsb_release -a
LSB
Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 6.7 (Final)
Release: 6.7
Codename: Final


uname -a
Linux spark-dev-01 2.6.32-573.el6.x86_64 #1 SMP Thu Jul 23 15:44:03 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux




This problem happen in 1.0.0 and 1.0.1 too already tried both.
How to fix that?








Yupeng Fu

unread,
May 6, 2016, 12:47:56 AM5/6/16
to Chanh Le, Alluxio Users
Hi Chanh,

This issue is due to some dependency conflicts with openJDK. It's fixed in this PR https://github.com/Alluxio/alluxio/pull/2695
In the meanwhile, have you tried other JDK?

Cheers,

--
You received this message because you are subscribed to the Google Groups "Alluxio Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alluxio-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Chanh Le

unread,
May 6, 2016, 12:52:02 AM5/6/16
to Yupeng Fu, Alluxio Users
Hi Yupeng,
I've tried Oracle JDK and it's working fine now.
http://tecadmin.net/install-java-8-on-centos-rhel-and-fedora/
For confirming this version is working both MacOS and CentOS 
java -version
java version "1.8.0_77"
Java(TM) SE Runtime Environment (build 1.8.0_77-b03)
Java HotSpot(TM) 64-Bit Server VM (build 25.77-b03, mixed mode)

Thanks.
Chanh

Yupeng Fu

unread,
May 6, 2016, 12:55:17 AM5/6/16
to Chanh Le, Alluxio Users
Glad to hear you solved the problem!

vincent.g...@gmail.com

unread,
Jun 16, 2016, 12:31:04 PM6/16/16
to Alluxio Users, giao...@gmail.com
Hi all,
I have the same issue with 1.1.0 binaries. Should I build from source to get this PR or is it already in the 1.1.0 build ?

Jiří Šimša

unread,
Jun 16, 2016, 1:08:22 PM6/16/16
to vincent.g...@gmail.com, Alluxio Users, giao...@gmail.com
Hi Vincent,

What OS and version of Java are you experiencing this problem with? (I cannot reproduce this for 1.1 binaries with OS X and

java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)

Best,
--
Jiří Šimša

Bin Fan

unread,
Jun 16, 2016, 1:36:19 PM6/16/16
to vincent.g...@gmail.com, Alluxio Users, giao...@gmail.com
Hi Vicent,

could you copy your error message here?
The original fix has been in 1.1. You may hit some other jsp issues and the error message will help.

Thanks
- Bin

On Thu, Jun 16, 2016 at 9:31 AM, <vincent.g...@gmail.com> wrote:

vincent.g...@gmail.com

unread,
Jun 16, 2016, 3:28:52 PM6/16/16
to Alluxio Users, vincent.g...@gmail.com, giao...@gmail.com
I get 2 different errors

Here is the first one running alluxio in non root user

2016-06-16 18:44:12,325 WARN  webapp.WebAppContext (WebAppContext.java:doStart) - Failed startup of context o.e.j.w.WebAppContext{/,file:/opt/alluxio-1.1.0/core/server/src/main/webapp/},/opt/alluxio-1.1.0/core/server/src/main/webapp
java.io.IOException: Stream closed
at java.util.zip.InflaterInputStream.ensureOpen(InflaterInputStream.java:67)
at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:121)
at java.io.FilterInputStream.read(FilterInputStream.java:83)
at java.io.FilterInputStream.read(FilterInputStream.java:83)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager$RewindableInputStream.read(XMLEntityManager.java:2899)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager$RewindableInputStream.read(XMLEntityManager.java:2931)
at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(UTF8Reader.java:302)
at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntityScanner.java:1793)
at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.scanLiteral(XMLEntityScanner.java:1106)
at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanPseudoAttribute(XMLScanner.java:622)
at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanXMLDeclOrTextDecl(XMLScanner.java:435)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanXMLDeclOrTextDecl(XMLDocumentFragmentScannerImpl.java:953)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$XMLDeclDriver.next(XMLDocumentScannerImpl.java:774)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:118)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:452)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:327)
at org.eclipse.jetty.xml.XmlParser.parse(XmlParser.java:246)
at org.eclipse.jetty.webapp.Descriptor.parse(Descriptor.java:65)
at org.eclipse.jetty.webapp.WebDescriptor.parse(WebDescriptor.java:148)
at org.eclipse.jetty.webapp.MetaData.setDefaults(MetaData.java:147)
at org.eclipse.jetty.webapp.WebXmlConfiguration.preConfigure(WebXmlConfiguration.java:54)
at org.eclipse.jetty.webapp.WebAppContext.preConfigure(WebAppContext.java:445)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:481)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:229)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:229)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
at org.eclipse.jetty.server.Server.doStart(Server.java:281)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at alluxio.web.UIWebServer.startWebServer(UIWebServer.java:159)
at alluxio.master.AlluxioMaster.startServingWebServer(AlluxioMaster.java:471)
at alluxio.master.AlluxioMaster.startServing(AlluxioMaster.java:455)
at alluxio.master.AlluxioMaster.startServing(AlluxioMaster.java:450)
at alluxio.master.AlluxioMaster.start(AlluxioMaster.java:392)
at alluxio.master.AlluxioMaster.main(AlluxioMaster.java:87)


And the second one when running alluxio in root

2016-06-16 21:27:27,801 WARN  servlet.ServletHandler (ServletHandler.java:doHandle) - 

vincent.g...@gmail.com

unread,
Jun 16, 2016, 3:29:50 PM6/16/16
to Alluxio Users, vincent.g...@gmail.com, giao...@gmail.com
Centos 7.1

java version "1.8.0_91"
Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)
Hi all,

 at org
.eclipse.jetty.servlet.ServletHolder.handle(<span

Pengfei Xuan

unread,
Jun 16, 2016, 4:16:16 PM6/16/16
to Alluxio Users, vincent.g...@gmail.com, giao...@gmail.com
This issue only happens when using jdk1.8.0_91 and jdk1.8.0_92. The latest working version is jdk1.8.0_77

Bin Fan

unread,
Jun 16, 2016, 5:10:43 PM6/16/16
to Pengfei Xuan, Alluxio Users, vincent.g...@gmail.com, giao...@gmail.com
See the discussion in this JIRA https://alluxio.atlassian.net/browse/ALLUXIO-1956
Basically there seems JDK regression for  jdk1.8.0_91 and jdk1.8.0_92 for the jetty library Alluxio 1.0 and 1.1 is using

two workaround at this point:
(1) Use earlier JDK versions as pointed by Pengfei
or 
(2) Try patch your code with this PR submitted recently from the community:



--

vincent gromakowski

unread,
Jun 16, 2016, 5:44:16 PM6/16/16
to Bin Fan, giao...@gmail.com, Pengfei Xuan, Alluxio Users

Thanks I will downgrade...

Reply all
Reply to author
Forward
0 new messages