cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Error by LocalTriggerManager getQuery method in JSP page

Zeiad-Alkassem
12-Amethyst

Error by LocalTriggerManager getQuery method in JSP page

I tried to use the "mks.ci.server.engine.LocalTriggerManager.ScriptQueryBean" class in a test JSP page runnig on the Server Public_Html folder (Integrity 10.8).

 

ScriptServerBean ssb = new ScriptServerBean(defaultUserID, conn, sig);
String[] projects = ssb.getProjects();
// getting Error with This
ScriptQueryBean sqb = ssb.getQuery("Query01");

 

Ther are no error happend if i used a method that returned a " java.lang.String[] " (ex. getDynamicGroups(), getProjects(), getNotifierAddress(), ..), but if i use onther method (ex. getQuery("QUERY_NAME") ) i got the following Error:

 

ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/].[jsp]] Servlet.service() for servlet jsp threw exception
mks.frame.triggers.TriggerException
at mks.ci.server.engine.LocalTriggerManager$ScriptServerBean.getQuery(LocalTriggerManager.java:3759)
at org.apache.jsp.reports.test11_jsp._jspService(test11_jsp.java:76)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:387)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
at org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:903)
at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:701)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2031)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

 

Tow question for that:
1- Are there any risks or consequences of using the Trigger in a JPS page by this way?
2- How to fix the error?

 

Thanks in advance

0 REPLIES 0
Announcements