ActiveMq could not access queue web page - queue

My english is not good. But I meet a problem when I visit activemq queue page.
When I visit the http://MY-IP:8161/admin/queues.jsp And web Page return me :
Error!
Exception occurred while processing this request, check the log for more information!
And After I look the log backend, And it shows :
2017-11-02 08:26:05,892 | WARN | | org.eclipse.jetty.servlet.ServletHandler | qtp801028830-289
org.apache.jasper.JasperException: PWC6033: Unable to compile class for JSP
PWC6197: An error occurred at line: 59 in the jsp file: /queues.jsp
PWC6199: Generated servlet error:
org.apache.jsp.tag.web.form.tooltip_tag cannot be resolved to a type
PWC6197: An error occurred at line: 59 in the jsp file: /queues.jsp
PWC6199: Generated servlet error:
org.apache.jsp.tag.web.form.tooltip_tag cannot be resolved to a type
PWC6197: An error occurred at line: 71 in the jsp file: /queues.jsp
PWC6199: Generated servlet error:
org.apache.jsp.tag.web.form.escape_tag cannot be resolved to a type
PWC6197: An error occurred at line: 71 in the jsp file: /queues.jsp
PWC6199: Generated servlet error:
org.apache.jsp.tag.web.form.escape_tag cannot be resolved to a type
PWC6197: An error occurred at line: 72 in the jsp file: /queues.jsp
PWC6199: Generated servlet error:
org.apache.jsp.tag.web.form.escape_tag cannot be resolved to a type
PWC6197: An error occurred at line: 72 in the jsp file: /queues.jsp
PWC6199: Generated servlet error:
org.apache.jsp.tag.web.form.escape_tag cannot be resolved to a type
at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:123)[jsp-2.1-glassfish-2.1.v20100127.jar:]
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:296)[jsp-2.1-glassfish-2.1.v20100127.jar:]
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:376)[jsp-2.1-glassfish-2.1.v20100127.jar:]
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:437)[jsp-2.1-glassfish-2.1.v20100127.jar:]
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:608)[jsp-2.1-glassfish-2.1.v20100127.jar:]
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:360)[jsp-2.1-glassfish-2.1.v20100127.jar:]
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:486)[jsp-2.1-glassfish-2.1.v20100127.jar:]
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380)[jsp-2.1-glassfish-2.1.v20100127.jar:]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)[geronimo-servlet_3.0_spec-1.0.jar:1.0]
at org.eclipse.jetty.servlet.JspPropertyGroupServlet.service(JspPropertyGroupServlet.java:132)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1496)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)[spring-web-3.2.11.RELEASE.jar:3.2.11.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:106)[spring-web-3.2.11.RELEASE.jar:3.2.11.RELEASE]
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1484)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.apache.activemq.web.SessionFilter.doFilter(SessionFilter.java:45)[activemq-web-5.11.1.jar:5.11.1]
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1484)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.apache.activemq.web.filter.ApplicationContextFilter.doFilter(ApplicationContextFilter.java:102)[file:/opt/apache-activemq-5.11.1/webapps/admin/WEB-INF/classes/:]
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1476)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:522)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:522)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.eclipse.jetty.server.Server.handle(Server.java:370)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:971)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1033)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at java.lang.Thread.run(Thread.java:745)[:1.8.0_25]
2017-11-02 08:26:05,898 | WARN | /admin/queues.jsp | org.eclipse.jetty.servlet.ServletHandler | qtp801028830-289
org.apache.jasper.JasperException: PWC6033: Unable to compile class for JSP
PWC6197: An error occurred at line: 59 in the jsp file: /queues.jsp
PWC6199: Generated servlet error:
org.apache.jsp.tag.web.form.tooltip_tag cannot be resolved to a type
PWC6197: An error occurred at line: 59 in the jsp file: /queues.jsp
PWC6199: Generated servlet error:
org.apache.jsp.tag.web.form.tooltip_tag cannot be resolved to a type
PWC6197: An error occurred at line: 71 in the jsp file: /queues.jsp
PWC6199: Generated servlet error:
org.apache.jsp.tag.web.form.escape_tag cannot be resolved to a type
PWC6197: An error occurred at line: 71 in the jsp file: /queues.jsp
PWC6199: Generated servlet error:
org.apache.jsp.tag.web.form.escape_tag cannot be resolved to a type
PWC6197: An error occurred at line: 72 in the jsp file: /queues.jsp
PWC6199: Generated servlet error:
org.apache.jsp.tag.web.form.escape_tag cannot be resolved to a type
PWC6197: An error occurred at line: 72 in the jsp file: /queues.jsp
PWC6199: Generated servlet error:
org.apache.jsp.tag.web.form.escape_tag cannot be resolved to a type
at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:123)[jsp-2.1-glassfish-2.1.v20100127.jar:]
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:296)[jsp-2.1-glassfish-2.1.v20100127.jar:]
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:376)[jsp-2.1-glassfish-2.1.v20100127.jar:]
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:437)[jsp-2.1-glassfish-2.1.v20100127.jar:]
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:608)[jsp-2.1-glassfish-2.1.v20100127.jar:]
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:360)[jsp-2.1-glassfish-2.1.v20100127.jar:]
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:486)[jsp-2.1-glassfish-2.1.v20100127.jar:]
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380)[jsp-2.1-glassfish-2.1.v20100127.jar:]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)[geronimo-servlet_3.0_spec-1.0.jar:1.0]
at org.eclipse.jetty.servlet.JspPropertyGroupServlet.service(JspPropertyGroupServlet.java:132)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1496)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)[spring-web-3.2.11.RELEASE.jar:3.2.11.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:106)[spring-web-3.2.11.RELEASE.jar:3.2.11.RELEASE]
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1484)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.apache.activemq.web.SessionFilter.doFilter(SessionFilter.java:45)[activemq-web-5.11.1.jar:5.11.1]
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1484)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.apache.activemq.web.filter.ApplicationContextFilter.doFilter(ApplicationContextFilter.java:102)[file:/opt/apache-activemq-5.11.1/webapps/admin/WEB-INF/classes/:]
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1476)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:522)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:522)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.eclipse.jetty.server.Server.handle(Server.java:370)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:971)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1033)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)[jetty-all-8.1.16.v20140903.jar:8.1.16.v20140903]
at java.lang.Thread.run(Thread.java:745)[:1.8.0_25]
And The queues.jsp code like below:
<%--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
--%>
<html>
<head>
<c:set var="pageTitle" value="Queues"/>
<%#include file="decorators/head.jsp" %>
</head>
<body>
<%#include file="decorators/header.jsp" %>
<div>
<form action="createDestination.action" method="post">
<input type="hidden" name="JMSDestinationType" value="queue"/>
<input type="hidden" name="secret" value="<c:out value='${sessionScope["secret"]}'/>"/>
<label name="destination">Queue Name</label>
<input type="text" name="JMSDestination" value=""/>
<input type="submit" value="Create"/>
</form>
</div>
<h2>Queues</h2>
<table id="queues" class="sortable autostripe">
<thead>
<tr>
<th>Name</th>
<th>Number Of Pending Messages</th>
<th>Number Of Consumers</th>
<th>Messages Enqueued</th>
<th>Messages Dequeued</th>
<th>Views</th>
<th>Operations</th>
</tr>
</thead>
<tbody>
<c:forEach items="${requestContext.brokerQuery.queues}" var="row">
<tr>
<td><a href="<c:url value="browse.jsp">
<c:param name="JMSDestination" value="${row.name}" /></c:url>"><form:tooltip text="${row.name}" length="50"/></a></td>
<td><c:out value="${row.queueSize}" /></td>
<td><c:out value="${row.consumerCount}" /></td>
<td><c:out value="${row.enqueueCount}" /></td>
<td><c:out value="${row.dequeueCount}" /></td>
<td>
<a href="<c:url value="browse.jsp">
<c:param name="JMSDestination" value="${row.name}" /></c:url>">Browse</a>
<a href="<c:url value="queueConsumers.jsp">
<c:param name="JMSDestination" value="${row.name}" /></c:url>">Active Consumers</a><br/>
<a href="<c:url value="queueProducers.jsp">
<c:param name="JMSDestination" value="${row.name}" /></c:url>">Active Producers</a><br/>
<img src="images/feed_atom.png"/>
<img src="images/feed_rss.png"/>
</td>
<td>
<a href="<c:url value="send.jsp">
<c:param name="JMSDestination" value="${row.name}" />
<c:param name="JMSDestinationType" value="queue"/></c:url>">Send To</a>
<a href="<c:url value="purgeDestination.action">
<c:param name="JMSDestination" value="${row.name}" />
<c:param name="JMSDestinationType" value="queue" />
<c:param name="secret" value='${sessionScope["secret"]}'/></c:url>">Purge</a>
<a href="<c:url value="deleteDestination.action">
<c:param name="JMSDestination" value="${row.name}" />
<c:param name="JMSDestinationType" value="queue" />
<c:param name="secret" value='${sessionScope["secret"]}'/></c:url>">Delete</a>
</td>
</tr>
</c:forEach>
</tbody>
</table>
<%#include file="decorators/footer.jsp" %>
</body>
</html>
Environment:
activemq 5.11.1
jdk 1.8.0_25
linux
Thanks very much for your help.

I believe the issue here is that you are using an ActiveMQ version that was not built for and did not support running on JDK 8. If you update to 5.15.2 or run on JDK 7 then this should work. This error is commonly seen from those web console dependencies when running on newer JDKs.

This is because of different JDK version.
I added that path to the activemq.bat file in the activemq-versionxxx\bin directory, so it uses that version instead of the JAVA_HOME version.
This the location in .bat file:
if "%JAVA_HOME%" == "" goto noJavaHome
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
if "%_JAVACMD%" == "" set _JAVACMD=C:\Program Files\Java\jdk1.7.0_45\jre\bin\java.exe

You may click on Atom to view the messages in the queue, if you do not want to restart ActiveMQ:

I met the same problem for activemq 5.10 on windows machine.
Use java 1.6 to start the app solved my problem.

Related

Script timeout for getText() on Ionic Title

The following code results in a script timeout
return element(by.css(`${this.tag} ion-title`)).getText();
the html I am trying to read/test is the following
<ion-title _ngcontent-mrq-c137="" class="md title-default hydrated"> Welcome theeisbaer </ion-title>
The exact error is:
Failed: script timeout
(Session info: chrome=80.0.3987.116)
(Driver info: chromedriver=80.0.3987.106 (f68069574609230cf9b635cd784cfb1bf81bb53a-refs/branch-heads/3987#{#882}),platform=Windows NT 10.0.18363 x86_64)#
What is causing this issue and how can I fix it?

Scala Play `#routes.Assets.versioned` causing a non descriptive error

I have a problem with browser caching, so I decided to change
<script type="text/javascript" src="#routes.Assets.at("/accounts/dist/inline.bundle.js")"></script>
to
<script type="text/javascript" src="#routes.Assets.versioned("/public/accounts/dist","inline.bundle.js")"></script>
as we already do in other projects, but I am getting this totally unhelpful error:
C:\work\FrontServices\Spike2>sbt -jvm-debug 9999 run
"C:\Users\xavier\.sbt\preloaded\org.scala-sbt\sbt\"1.0.2"\jars\sbt.jar"
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
Listening for transport dt_socket at address: 58387
[warn] Executing in batch mode.
[warn] For better performance, hit [ENTER] to switch to interactive mode, or
[warn] consider launching sbt without any commands, or explicitly passing 'shell'
[info] Loading project definition from C:\Users\xavier\.sbt\0.13\staging\560eb781744c869bfbb7\sbt-coveralls\project
[info] Loading project definition from C:\work\FrontServices\Spike2\project
[info] Set current project to Spike2 (in build file:/C:/work/FrontServices/Spike2/)
[info] Compiling 1 Scala source to C:\work\FrontServices\Spike2\modules\accounts\target\scala-2.11\classes...
[error] C:\work\FrontServices\Spike2\modules\accounts\app\com\newswhip\accounts\views\accounts.scala.html:20: too many arguments for method versioned: (file: controllers.Assets.Asset)play.api.mvc.Call
[error] <script type="text/javascript" src="#routes.Assets.versioned("/public/accounts/dist","inline.bundle.js")"></script>
[error] ^
[error] C:\work\FrontServices\Spike2\modules\accounts\app\com\newswhip\accounts\views\accounts.scala.html:21: too many arguments for method versioned: (file: controllers.Assets.Asset)play.api.mvc.Call
[error] <script type="text/javascript" src="#routes.Assets.versioned("/public/accounts/dist","polyfills.bundle.js")"></script>
[error] ^
[error] C:\work\FrontServices\Spike2\modules\accounts\app\com\newswhip\accounts\views\accounts.scala.html:22: too many arguments for method versioned: (file: controllers.Assets.Asset)play.api.mvc.Call
[error] <script type="text/javascript" src="#routes.Assets.versioned("/public/accounts/dist","styles.bundle.js")"></script>
[error] ^
[error] C:\work\FrontServices\Spike2\modules\accounts\app\com\newswhip\accounts\views\accounts.scala.html:23: too many arguments for method versioned: (file: controllers.Assets.Asset)play.api.mvc.Call
[error] <script type="text/javascript" src="#routes.Assets.versioned("/public/accounts/dist","vendor.bundle.js")"></script>
[error] ^
[error] C:\work\FrontServices\Spike2\modules\accounts\app\com\newswhip\accounts\views\accounts.scala.html:24: too many arguments for method versioned: (file: controllers.Assets.Asset)play.api.mvc.Call
[error] <script type="text/javascript" src="#routes.Assets.versioned("/public/accounts/dist","main.bundle.js")"></script>
[error] ^
[error] 5 errors found
[error] (accounts/compile:compileIncremental) Compilation failed
[error] Total time: 4 s, completed 20-Oct-2017 10:27:09
C:\work\FrontServices\Spike2>
This is the code fragment from the routes file
# Map static resources from the /public folder to the /assets URL path
GET /assets/*file controllers.Assets.versioned(path = "/public/accounts/dist", file: Asset)
# Map static resources from the /public folder to the /assets URL path
GET /assets/*file controllers.Assets.at(path = "/public", file)
Any ideas?
In src="#routes.Assets.versioned("/public/accounts/dist","inline.bundle.js")"
why are you separating the two string with comma inside versioned().
That means that you are giving versioned() two parameters because of which it is throwing an error because it only expects one.
Instead you should give it like this -
src="#routes.Assets.versioned("/public/accounts/dist/inline.bundle.js")"
assuming inline.bundle.js is at the path /public/accounts/dist/
Try this out and let me know if it works. I hope it does!
In your routes definition you are doing:
GET /assets/*file controllers.Assets.versioned(path = "/public/accounts/dist", file: Asset)
That means the first parameter for method Assets.versioned is already defined (path = "/public/accounts/dist"). So, you have room for one more parameter only (the asset file). But in your views you have:
<script type="text/javascript" src="#routes.Assets.versioned("/public/accounts/dist","inline.bundle.js")"></script>
In other words, you are trying to define the path again, but this is the generated reverse router now (#routes.Assets) and not the "original" Assets.versioned, then you get the error.
The solution is to change the code to pass only the file parameter:
<script type="text/javascript" src="#routes.Assets.versioned("inline.bundle.js")"></script>

Unable to open localhost for AEM in browser

Am trying to install AEM. I can open the quick start where it loads up first. However, when it comes to opening the same in browser(https://localhost:8080) it gives me an error "Unable to compile class for JSP". Please find the complete error:
Unable to compile class for JSP: An error occurred at line: 95 in the jsp
file: /libs/granite/core/components/login/login.jsp
The type java.lang.CharSequence cannot be resolved.
It is indirectly referenced from required .class files
92: ?request.getParameter(PARAM_NAME_REASON)
93: : "";
94:
95: if (!StringUtils.isEmpty(reason)) {
96: if (validReasons.containsKey(reason)) {
97: reason = validReasons.get(reason);
98: } else {
An error occurred at line: 95 in the jsp file:
/libs/granite/core/components/login/login.jsp
The method isEmpty(CharSequence) in the type StringUtils is not applicable for the arguments (String)
92: ? request.getParameter(PARAM_NAME_REASON)
93: : "";
94:
95: if (!StringUtils.isEmpty(reason)) {
96: if (validReasons.containsKey(reason)) {
97: reason = validReasons.get(reason);
98: } else {
Cannot serve request to /libs/granite/core/content/login.html in /libs/granite/core/components/login/login.jsp
Please assist me on the same.
This error usually occurs when you try to run AEM with a higher version of JDK than what it supports (most commonly running your vanilla AEM 6.0 with Java 8).
If that is the case, either revert to JDK7 or install Service Pack 2 for AEM 6.0 which supports JDK 8.
For steps on installing the service pack to fix this issue refer this thread in Adobe Forums.

Page not found... yet! with Mojolicious

I am using Mojilicious Lite.
#!/usr/bin/perl -T
use strict;
use Mojolicious::Lite;
get '/' => 'index';
# Run the Mojolicious script in CGI mode.
app->start;
#template
__DATA__
## index.html.ep
<!DOCTYPE html>
<html>
<head>
<title>My title</title>
</head>
<body>
pass 15
</body>
</html>
All is working fine but I have an intermittent issue,some times I get error page which says:
"Page not found... yet!
None of these routes could generate a response for your GET request for /, maybe you need to add a new one?"
This happen very rarely (1 out of 20 hit).
Can anyone please let me know what is the issue and how can I overcome of it?
Thanks in advance..
My Error Log is:
[Tue May 26 18:12:42 2015] [debug] GET "/".
[Tue May 26 18:12:42 2015] [debug] Routing to a callback.
[Tue May 26 18:12:42 2015] [debug] Template "index.html.ep" not found.
[Tue May 26 18:12:42 2015] [debug] Template "not_found.development.html.ep" not found.
[Tue May 26 18:12:42 2015] [debug] Template "not_found.html.ep" not found.
[Tue May 26 18:12:42 2015] [debug] Rendering inline template "3e3201ab0667c1fc7f39089209f0435c".
[Tue May 26 18:12:42 2015] [debug] Rendering inline template "b2d451b47e2053ce583cbfdf7bcc6006".
Finally I find that this is a bug with mojilicious light(while rendering inline templetes).
bug report 1
bug report 2
I resolved my problem by using external templates
Example:
My application file:
#!/usr/bin/perl -T
use strict;
use Mojolicious::Lite;
get '/' => 'index';
# Run the Mojolicious script in CGI mode.
app->start;
and my template file with name index.html.ep
<!DOCTYPE html>
<html>
<head>
<title>My title</title>
</head>
<body>
pass 15
</body>
</html>
Note: We have to define this file in templates directory .

php_network_getaddresses: getaddrinfo failed error while trying to create a facebook app

I am trying to create a small facebook application. In my php file, I have written code to just display my name and to get my friend's list. This is my code:
<?php
echo "<p>Hello, <fb:name uid=\"$user_id\" useyou=\"false\"></fb:name>!</p>";
echo "<p>Friends:";
$friends = $facebook->api_client->friends_get();
$friends = array_slice($friends, 0, 25);
foreach ($friends as $friend) {
echo "<br>$friend";
}
echo "</p>";
?>
This is the output I get:
Hello, Angeline Aarthi!
Friends:
Warning: fopen() [function.fopen]: php_network_getaddresses: getaddrinfo failed:
No such host is known. in C:\Documents and Settings\256148\My Documents\ide\xampplite\htdocs\facebookApp\facebookapi_php5_restlib.php on line 1755
Warning: fopen(http://api.facebook.com/restserver.php) [function.fopen]:
failed to open stream: php_network_getaddresses: getaddrinfo failed:
No such host is known. in C:\Documents and Settings\256148\My Documents\ide\xampplite\htdocs\facebookApp\facebookapi_php5_restlib.php on line 1755
Warning: array_slice() expects parameter 1 to be array, string given in C:\Documents and Settings\256148\My Documents\ide\xampplite\htdocs\facebookApp\index.php on line 29
Warning: Invalid argument supplied for foreach() in C:\Documents and Settings\256148\My Documents\ide\xampplite\htdocs\facebookApp\index.php on line 30
Please someone help me resolve my errors.
You have to set allow_url_fopen flag to 1 in your php.ini file
In your C-Panel there is an option to use Hotlink protection, i think currently it's in enable, you need to disable this to work external link access via.,fopen() and file_get_contents() etc.
I think this may help you to resolve your problem.