Service() method of JSP.
Hi,
Can the service method of a JSP (after it gets converted to Servlet) be overriden? that is can we change the service method of a JSP page.
thnx
No all code goes to service method. If You use a declaration syntax <%! %>, the code between this tags isn't compiled into the service method but separately. Docs. AFAIK java doesn't support inline functions.
Similar Messages
-
pls tell me. that why we cann't override service() method in Jsp ?
I didn't even know you couldn't. But then, I never tried, because I wouldn't know why I'd want to. What happens?
-
Could not invoke the service() method when the JSP page is loaded
I am new to servlets/jsp so excuse if I am doing something silly here:
I have a JSP page the suppose to be loading a session attrbute from a simple servlet. When I go to load the jsp page, I get Could not invoke the service() method.
Any help is much appreciated:
Here is my JSP:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ page session="true" import="insurance.PolicyObj,java.util.*"%>
<% Vector VTable = (Vector) session.getAttribute("policyTable"); %>
<HTML>
<BODY>
<Form name=listTable action="InsSer" method="post">
<TABLE border="1">
<TBODY>
<TR>
<TD width="258" align="center"><B>Policy Id</B></TD>
<TD width="187" align="center"><B>Customer Name</B></TD>
<TD width="160" align="center"><B>Agent Name</B></TD>
<TD width="134" align="center"><B>Status</B></TD>
</TR>
<TR>
<%
for (int index=0; index < VTable.size();index++) {
PolicyObj TableL = (PolicyObj) VTable.elementAt(index);
%>
<TR bgcolor="#99CCFF">
<TD width="258" align="center"> <%= TableL.getPolicyId()%> </TD>
<TD width="187" align="center"> <%= TableL.getCustomerName()%> </TD>
<TD width="187" align="center"> <%= TableL.getAgentName() %> </TD>
<TD width="187" align="center"> <%= TableL.getPolicyStatus() %></TD>
</TR>
<% } %>
</TBODY>
</TABLE>
<P><INPUT type="submit" name="Submit" value="Refresh Active Policies"></P>
</BODY>
</HTML>
Here is my servlet:
package insurance;
import java.io.IOException;
import java.util.Vector;
import javax.servlet.RequestDispatcher;
import javax.servlet.Servlet;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
public class InsSer extends HttpServlet implements Servlet {
/* (non-Java-doc)
* @see javax.servlet.http.HttpServlet#HttpServlet()
public InsSer() {
super();
/* (non-Java-doc)
* @see javax.servlet.http.HttpServlet#doGet(HttpServletRequest arg0, HttpServletResponse resp)
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
doPost(req,resp);
// TODO Auto-generated method stub
/* (non-Java-doc)
* @see javax.servlet.http.HttpServlet#doPost(HttpServletRequest arg0, HttpServletResponse resp)
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
//PolicyObj[] policyTable = new PolicyObj[3];
HttpSession session = req.getSession(false);
//if (session == null) {
//resp.sendRedirect("http://localhost:9080/Insurance/error.html");
//Vector buylist = (Vector) session.getAttribute("PolicyList");
Vector policyList = null;
policyList.addElement(new PolicyObj());
((PolicyObj) policyList.get(0)).setPolicyId("0009800002");
((PolicyObj) policyList.get(0)).setCustomerName("Salim Zeitouni");
((PolicyObj) policyList.get(0)).setAgentName("Jack Smith");
((PolicyObj) policyList.get(0)).setPolicyStatus("Pending");
session.setAttribute("policyTable",policyList);
ServletContext sc = getServletContext();
RequestDispatcher rd = sc.getRequestDispatcher("InsSev1.jsp");
rd.forward(req,resp);
Message was edited by:
sfz1
Message was edited by:
sfz1I am new to servlets/jsp so excuse if I am doing something silly here:
I have a JSP page the suppose to be loading a session attrbute from a simple servlet. When I go to load the jsp page, I get Could not invoke the service() method.
Any help is much appreciated:
Here is my JSP:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ page session="true" import="insurance.PolicyObj,java.util.*"%>
<% Vector VTable = (Vector) session.getAttribute("policyTable"); %>
<HTML>
<BODY>
<Form name=listTable action="InsSer" method="post">
<TABLE border="1">
<TBODY>
<TR>
<TD width="258" align="center"><B>Policy Id</B></TD>
<TD width="187" align="center"><B>Customer Name</B></TD>
<TD width="160" align="center"><B>Agent Name</B></TD>
<TD width="134" align="center"><B>Status</B></TD>
</TR>
<TR>
<%
for (int index=0; index < VTable.size();index++) {
PolicyObj TableL = (PolicyObj) VTable.elementAt(index);
%>
<TR bgcolor="#99CCFF">
<TD width="258" align="center"> <%= TableL.getPolicyId()%> </TD>
<TD width="187" align="center"> <%= TableL.getCustomerName()%> </TD>
<TD width="187" align="center"> <%= TableL.getAgentName() %> </TD>
<TD width="187" align="center"> <%= TableL.getPolicyStatus() %></TD>
</TR>
<% } %>
</TBODY>
</TABLE>
<P><INPUT type="submit" name="Submit" value="Refresh Active Policies"></P>
</BODY>
</HTML>
Here is my servlet:
package insurance;
import java.io.IOException;
import java.util.Vector;
import javax.servlet.RequestDispatcher;
import javax.servlet.Servlet;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
public class InsSer extends HttpServlet implements Servlet {
/* (non-Java-doc)
* @see javax.servlet.http.HttpServlet#HttpServlet()
public InsSer() {
super();
/* (non-Java-doc)
* @see javax.servlet.http.HttpServlet#doGet(HttpServletRequest arg0, HttpServletResponse resp)
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
doPost(req,resp);
// TODO Auto-generated method stub
/* (non-Java-doc)
* @see javax.servlet.http.HttpServlet#doPost(HttpServletRequest arg0, HttpServletResponse resp)
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
//PolicyObj[] policyTable = new PolicyObj[3];
HttpSession session = req.getSession(false);
//if (session == null) {
//resp.sendRedirect("http://localhost:9080/Insurance/error.html");
//Vector buylist = (Vector) session.getAttribute("PolicyList");
Vector policyList = null;
policyList.addElement(new PolicyObj());
((PolicyObj) policyList.get(0)).setPolicyId("0009800002");
((PolicyObj) policyList.get(0)).setCustomerName("Salim Zeitouni");
((PolicyObj) policyList.get(0)).setAgentName("Jack Smith");
((PolicyObj) policyList.get(0)).setPolicyStatus("Pending");
session.setAttribute("policyTable",policyList);
ServletContext sc = getServletContext();
RequestDispatcher rd = sc.getRequestDispatcher("InsSev1.jsp");
rd.forward(req,resp);
Message was edited by:
sfz1
Message was edited by:
sfz1 -
ORACLE ADF 11g /JSF TO serviet (Service method) not invoking
Hi,
ORACLE ADF 11g /JSF TO serviet (Service method) not invoking
My project name is : ComplProject
inside the project im having 1 jsp say x.jsp
work environment : (oracleADF 11g) jdev11 and weblogic server 10.3
in x.jsp im displaying 1 go link -> when ever we click on GO link it should go to ComplServlet.java
i tried like,
FacesContext.getCurrentInstance().getExternalContext().redirect("/servlet/ComplServlet");
the "ComplServlet" is an URL pattern in web.xml which points to servlet.
but not working
i pointed to faces-config.xml also , not working
i tried to forward like
FacesContext context = FacesContext.getCurrentInstance();
ServletContext sContext = (ServletContext)context.getExternalContext().getContext();
ServletRequest request = (ServletRequest)context.getExternalContext().getRequest();
System.out.println("third line...............");
HttpServletResponse response = (HttpServletResponse)context.getExternalContext().getResponse();
response.sendRedirect("/servlet/ViewDocument");
sContext.getRequestDispatcher("/servlet/ViewDocument").include(request, response);
brief
(from jsf page) after clicking on GO LINK i need to redirect or control should go to servlet ->service method
thanks in advance
regards,
sandeepHi,
i tried like,
FacesContext.getCurrentInstance().getExternalContext().redirect("/servlet/ComplServlet");
the "ComplServlet" is an URL pattern in web.xml which points to servlet.
but not workingUse like following.
public HttpServletRequest getServletRequest() {
return (HttpServletRequest)facesContext.getExternalContext().getRequest();
public redirect(String url){
getServletRequest().sendRedirect(getServletRequest().getContextPath() + "/servlet/ComplServlet");
}If you are using golink as frank suggested then use it like this.
<af:goLink text="ComplServlet" destination="/servlet/ComplServlet"/>no need of using context when using goLink,
Regards,
Santosh. -
Can we have more than one service method in a single servlet
can we have more than one service method in a single servlet?explain with example
No, you can only have one service method. However, you can have it process two different requests as follows.
Lets say you have two JSP pages. Put a hidden text value in one called jsp1 and a hiddent text value in the other called jsp2 (example: <input type="hidden" name="jspPage" value="jsp1"> and <input type="hidden" name="jspPage" value="jsp2">.
Then in your service method, read in request.getParameter("jspPage") to determine if its jsp1 or jsp2 and call up the appropriate logic to process them separately. -
Desperate, help please Servlet.service() for servlet jsp threw exception
Hi,
I have completed 99.99% of project development, when I am about to deploy JSC throws "Servlet.service() for servlet jsp threw exception javax.faces.el.EvaluationException: java.lang.NullPointerException" I can't understand why.
My application was working absolutely fine, I can't understand why its throwing exception now.
I tried debuging, but i can't understand where exactly its throwing exception and whats the error.
I would really appreciate your help, I have spent almost a day trying to figure out but din't get anywhere.
here is my server.log
Starting Sun Java System Application Server Platform Edition 8.0.0_01 (build b08-fcs) ...
[#|2005-08-23T11:44:39.221+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.core|_ThreadID=10;|CORE5076: Using [Java HotSpot(TM) Client VM, Version 1.4.2_06] from [Sun Microsystems Inc.]|#]
[#|2005-08-23T11:44:42.025+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.tools.admin|_ThreadID=10;|ADM0020:Following is the information about the JMX MBeanServer used:|#]
[#|2005-08-23T11:44:42.327+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.tools.admin|_ThreadID=10;|ADM0001:MBeanServer initialized successfully|#]
[#|2005-08-23T11:44:44.572+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=10;|Creating virtual server server|#]
[#|2005-08-23T11:44:44.598+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.core|_ThreadID=10;|S1AS AVK Instrumentation disabled|#]
[#|2005-08-23T11:44:44.616+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.core.security|_ThreadID=10;|SEC1143: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.|#]
[#|2005-08-23T11:44:51.061+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.core.transaction|_ThreadID=10;|JTS5014: Recoverable JTS instance, serverId = [100]|#]
[#|2005-08-23T11:44:53.917+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.core|_ThreadID=10;|Satisfying Optional Packages dependencies...|#]
[#|2005-08-23T11:44:54.400+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.resource.resourceadapter|_ThreadID=10;|RAR7008 : Initialized monitoring registry and listeners|#]
[#|2005-08-23T11:44:56.346+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.core|_ThreadID=10;|CORE5100:Loading system apps|#]
[#|2005-08-23T11:44:58.494+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.ejb|_ThreadID=10;|EJB5109:EJB Timer Service started successfully for datasource [jdbc/__TimerPool]|#]
[#|2005-08-23T11:44:58.494+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.core.classloading|_ThreadID=10;|LDR5010: All ejb(s) of [__ejb_container_timer_app] loaded successfully!|#]
[#|2005-08-23T11:44:59.954+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.core.classloading|_ThreadID=10;|LDR5010: All ejb(s) of [MEjbApp] loaded successfully!|#]
[#|2005-08-23T11:45:01.401+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.core.classloading|_ThreadID=10;|LDR5010: All ejb(s) of [ConverterApp] loaded successfully!|#]
[#|2005-08-23T11:45:01.407+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=10;|WEB0100: Loading web module [ConverterApp:war-ic.war] in virtual server [server] at [converter]|#]
[#|2005-08-23T11:45:02.500+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.core.classloading|_ThreadID=10;|LDR5010: All ejb(s) of [travelApp] loaded successfully!|#]
[#|2005-08-23T11:45:02.792+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.core.classloading|_ThreadID=10;|LDR5010: All ejb(s) of [HelloWorldApp] loaded successfully!|#]
[#|2005-08-23T11:45:02.798+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=10;|WEB0302: Starting Tomcat.|#]
[#|2005-08-23T11:45:03.281+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=10;|WEB0100: Loading web module [adminapp] in virtual server [server] at [web1]|#]
[#|2005-08-23T11:45:03.335+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=10;|WEB0100: Loading web module [admingui] in virtual server [server] at [asadmin]|#]
[#|2005-08-23T11:45:03.338+0100|WARNING|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=10;|WEB0500: default-locale attribute of locale-charset-info element has been deprecated and is being ignored. Use default-charset attribute of parameter-encoding element instead|#]
[#|2005-08-23T11:45:03.351+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=10;|WEB0100: Loading web module [com_sun_web_ui] in virtual server [server] at [com_sun_web_ui]|#]
[#|2005-08-23T11:45:03.371+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=10;|WEB0100: Loading web module [jTravellerService] in virtual server [server] at [jTravellerService]|#]
[#|2005-08-23T11:45:03.399+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=10;|WEB0100: Loading web module [hello-jaxrpc] in virtual server [server] at [hello-jaxrpc]|#]
[#|2005-08-23T11:45:03.427+0100|INFO|sun-appserver-pe8.0.0_01|org.apache.catalina.startup.Embedded|_ThreadID=10;|Starting tomcat server|#]
[#|2005-08-23T11:45:03.428+0100|INFO|sun-appserver-pe8.0.0_01|org.apache.catalina.startup.Embedded|_ThreadID=10;|Catalina naming disabled|#]
[#|2005-08-23T11:45:03.637+0100|INFO|sun-appserver-pe8.0.0_01|org.apache.catalina.core.StandardEngine|_ThreadID=10;|Starting Servlet Engine: Sun-Java-System/Application-Server-PE-8.0|#]
[#|2005-08-23T11:45:13.214+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.resource.webservices.rpc.server.http|_ThreadID=10;|JAXRPC.JAXRPCSERVLET.12: JAX-RPC context listener initializing|#]
[#|2005-08-23T11:45:14.087+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.resource.webservices.rpc.server.http|_ThreadID=10;|JAXRPC.JAXRPCSERVLET.14: JAX-RPC servlet initializing|#]
[#|2005-08-23T11:45:14.268+0100|INFO|sun-appserver-pe8.0.0_01|org.apache.catalina.startup.ContextConfig|_ThreadID=10;|Missing application web.xml, using defaults only StandardEngine[server].StandardHost[server].StandardContext[]|#]
[#|2005-08-23T11:45:18.600+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.resource.webservices.rpc.server.http|_ThreadID=10;|JAXRPC.JAXRPCSERVLET.12: JAX-RPC context listener initializing|#]
[#|2005-08-23T11:45:18.657+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.resource.webservices.rpc.server.http|_ThreadID=10;|JAXRPC.JAXRPCSERVLET.14: JAX-RPC servlet initializing|#]
[#|2005-08-23T11:45:20.710+0100|INFO|sun-appserver-pe8.0.0_01|org.apache.coyote.http11.Http11Protocol|_ThreadID=10;|Initializing Coyote HTTP/1.1 on port 18080|#]
[#|2005-08-23T11:45:20.790+0100|INFO|sun-appserver-pe8.0.0_01|org.apache.coyote.http11.Http11Protocol|_ThreadID=10;|Starting Coyote HTTP/1.1 on port 18080|#]
[#|2005-08-23T11:45:21.125+0100|INFO|sun-appserver-pe8.0.0_01|org.apache.coyote.http11.Http11Protocol|_ThreadID=10;|Initializing Coyote HTTP/1.1 on port 11043|#]
[#|2005-08-23T11:45:21.144+0100|INFO|sun-appserver-pe8.0.0_01|org.apache.coyote.http11.Http11Protocol|_ThreadID=10;|Starting Coyote HTTP/1.1 on port 11043|#]
[#|2005-08-23T11:45:21.503+0100|INFO|sun-appserver-pe8.0.0_01|org.apache.coyote.http11.Http11Protocol|_ThreadID=10;|Initializing Coyote HTTP/1.1 on port 14848|#]
[#|2005-08-23T11:45:21.537+0100|INFO|sun-appserver-pe8.0.0_01|org.apache.coyote.http11.Http11Protocol|_ThreadID=10;|Starting Coyote HTTP/1.1 on port 14848|#]
[#|2005-08-23T11:45:21.989+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.resource.jms|_ThreadID=10;|JMS5023: JMS service successfully started. Instance Name = imqbroker, Home = [/opt/Creator/SunAppServer8/imq/bin].|#]
[#|2005-08-23T11:45:22.003+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.tools.admin|_ThreadID=10;|[AutoDeploy] Enabling AutoDeployment service at :1124793922003|#]
[#|2005-08-23T11:45:22.009+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.core|_ThreadID=10;|CORE5053: Application onReady complete.|#]
[#|2005-08-23T11:45:22.012+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.core|_ThreadID=10;|Application server startup complete.|#]
[#|2005-08-23T11:45:27.303+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.tools.admin|_ThreadID=11;|ADM1041:Sent the event to instance:[ResourceDeployEvent -- deploy jcp/RaveGenerated_1124793926_NFDBPool]|#]
[#|2005-08-23T11:45:28.918+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.core|_ThreadID=11;|CORE5004: Resource Deployed: [jcp:RaveGenerated_1124793926_NFDBPool].|#]
[#|2005-08-23T11:45:29.169+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.tools.admin|_ThreadID=11;|ADM1041:Sent the event to instance:[ResourceDeployEvent -- deploy jdbc/jdbc/NFDB]|#]
[#|2005-08-23T11:45:29.365+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.core|_ThreadID=11;|CORE5004: Resource Deployed: [jdbc:jdbc/NFDB].|#]
[#|2005-08-23T11:45:31.996+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.tools.deployment|_ThreadID=11;|DPL5109: EJBC - START of EJBC for [_linnfdb]|#]
[#|2005-08-23T11:45:31.999+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.tools.deployment|_ThreadID=11;|Processing beans ...|#]
[#|2005-08-23T11:45:32.032+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.tools.deployment|_ThreadID=11;|DPL5110: EJBC - END of EJBC for [_linnfdb]|#]
[#|2005-08-23T11:45:32.915+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.tools.deployment|_ThreadID=11;|Total Deployment Time: 2082 msec, Total EJB Compiler Module Time: 37 msec, Portion spent EJB Compiling: 1%
Breakdown of EJBC Module Time: Total Time for EJBC: 37 msec, CMP Generation: 0 msec (0%), Java Compilation: 0 msec (0%), RMI Compilation: 0 msec (0%), JAX-RPC Generation: 19 msec (51%),
|#]
[#|2005-08-23T11:45:32.928+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.tools.deployment|_ThreadID=11;|deployed with moduleid = _linnfdb|#]
[#|2005-08-23T11:45:32.990+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.tools.admin|_ThreadID=11;|ADM1041:Sent the event to instance:[ModuleDeployEvent -- deploy web/_linnfdb]|#]
[#|2005-08-23T11:45:33.275+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.tools.admin|_ThreadID=11;|ADM1041:Sent the event to instance:[ModuleDeployEvent -- enable web/_linnfdb]|#]
[#|2005-08-23T11:45:33.352+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=11;|WEB0100: Loading web module [_linnfdb] in virtual server [server] at [linnfdb]|#]
[#|2005-08-23T11:45:34.837+0100|WARNING|sun-appserver-pe8.0.0_01|org.apache.commons.beanutils.MethodUtils|_ThreadID=11;|Cannot use JVM pre-1.4 access bug workaround die to restrictive security manager.|#]
[#|2005-08-23T11:45:35.346+0100|WARNING|sun-appserver-pe8.0.0_01|org.apache.commons.digester.Digester|_ThreadID=11;|[ConverterRule]{faces-config/converter} Merge(null,java.math.BigDecimal)|#]
[#|2005-08-23T11:45:35.364+0100|WARNING|sun-appserver-pe8.0.0_01|org.apache.commons.digester.Digester|_ThreadID=11;|[ConverterRule]{faces-config/converter} Merge(null,java.math.BigInteger)|#]
[#|2005-08-23T11:45:37.265+0100|INFO|sun-appserver-pe8.0.0_01|com.sun.faces.config.ConfigureListener|_ThreadID=11;|Application object verification completed successfully|#]
[#|2005-08-23T11:45:37.396+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.tools.admin|_ThreadID=11;|ADM1042:Status of dynamic reconfiguration event processing:[success]|#]
[#|2005-08-23T11:46:28.167+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.stream.out|_ThreadID=12;|login successfull145|#]
[#|2005-08-23T11:46:28.961+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.stream.out|_ThreadID=12;|
assigned to user query|#]
[#|2005-08-23T11:46:34.715+0100|SEVERE|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=12;|ApplicationDispatcher[/linnfdb] Servlet.service() for servlet jsp threw exception
javax.faces.el.EvaluationException: java.lang.NullPointerException
at
com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:206)
at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:154)
at javax.faces.component.UISelectItems.getValue(UISelectItems.java:110)
at com.sun.faces.util.Util.getSelectItems(Util.java:602)
at com.sun.faces.renderkit.html_basic.MenuRenderer.getOptionNumber(MenuRenderer.java:488)
at com.sun.faces.renderkit.html_basic.MenuRenderer.renderSelect(MenuRenderer.java:465)
at com.sun.faces.renderkit.html_basic.MenuRenderer.encodeEnd(MenuRenderer.java:430)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:720)
at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:443)
at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:130)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:435)
at com.sun.faces.renderkit.html_basic.TableRenderer.encodeBegin(TableRenderer.java:113)
at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:683)
at javax.faces.component.UIData.encodeBegin(UIData.java:681)
at javax.faces.webapp.UIComponentTag.encodeBegin(UIComponentTag.java:591)
at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:543)
at com.sun.faces.taglib.html_basic.DataTableTag.doEndTag(DataTableTag.java:491)
at org.apache.jsp.NationalFaultsDataBase_jsp._jspx_meth_h_dataTable_0(NationalFaultsDataBase_jsp.java:581)
at org.apache.jsp.NationalFaultsDataBase_jsp._jspx_meth_h_form_0(NationalFaultsDataBase_jsp.java:331)
at org.apache.jsp.NationalFaultsDataBase_jsp._jspx_meth_f_view_0(NationalFaultsDataBase_jsp.java:291)
at org.apache.jsp.NationalFaultsDataBase_jsp._jspService(NationalFaultsDataBase_jsp.java:182)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:102)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:282)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:263)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:210)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
at sun.reflect.GeneratedMethodAccessor84.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:246)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:236)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:145)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:141)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:718)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:478)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:413)
at org.apache.catalina.core.ApplicationDispatcher.access$000(ApplicationDispatcher.java:77)
at org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(ApplicationDispatcher.java:92)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:319)
at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
at com.sun.jsfcl.app.ViewHandlerImpl.renderView(ViewHandlerImpl.java:181)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:246)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:236)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:145)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:141)
at linnfdb.data.SecurityCheckFilter.doFilter(SecurityCheckFilter.java:102)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:246)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:218)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:145)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:141)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:214)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:168)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:144)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:133)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:539)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
at com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:134)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
at com.sun.enterprise.security.web.SingleSignOn.invoke(SingleSignOn.java:254)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
at com.sun.enterprise.web.VirtualServerValve.invoke(VirtualServerValve.java:209)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:114)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
at com.sun.enterprise.web.VirtualServerMappingValve.invoke(VirtualServerMappingValve.java:166)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:936)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:165)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:683)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:604)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:542)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:647)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.lang.NullPointerException
at com.sun.jsfcl.data.ResultSetPropertyResolver$ColumnData.getSelectItems(ResultSetPropertyResolver.java:303)
at com.sun.jsfcl.data.ResultSetPropertyResolver.getValue(ResultSetPropertyResolver.java:61)
at com.sun.faces.el.impl.ArraySuffix.evaluate(ArraySuffix.java:167)
at com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:151)
at com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:243)
at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:173)
... 115 more
|#]
any help will be greatly appreciated. Pleaseeeeeeeeeeeeee can some get back to me.
Cheers
kumarhi,
I just found that this exception is thrown from function
public UIViewRoot createView(FacesContext context, String viewId) {
UIViewRoot viewRoot = handler.createView(context, viewId);
context.getExternalContext().getRequestMap().put(CREATED_VIEW, viewId);
setupPageBean(context, viewRoot);
return viewRoot;
in viewHandlerImpl.java.
Has anyone got ideas about this???
Any help will be greatly appreciated.
cheers
kush -
Can we overide jspService() method in jsp?
can we overide jspService() method in jsp? Pls reply
uh, what exactly do you know about the internals of JSP compilation?
Apparently not enough to even think about doing anything like that or you'd know what your question makes no sense at all!
The service method is generated at compile/generation time from the content of your JSP, which should give you a pretty good idea about why you can NOT override it inside the JSP...
And seeing as you should never use scriptlets there's no place you should ever use where you could even define the overridden method.
Nor is there any name you could give it as the name isn't predefined. -
ADF FACES (10.1.3)---How to create custom service methods?
Hi,
I need to put some custom service method in my ADF Faces App. Tried the ways for 9.0.5 but in 10.1.3, there is no Data Action (Servlet, I believe). I was able to expose the method to the client interface, which means I can see the method in the Data Control Palette. When I try to add it to a JSP, it appeas to be either a link or a button.
Can I bind service methods to a submit button? How to do it? Thank you so much for the help.
Anniehi,
first of all thank you vry much.its nice to see yours replies.Actually,that was my first post. Well, i got your steps.But still m having a some doubts.
i'l tell u the scenario.
i'm using one java class object called CD as complex datatype.i have created ths in separete class from my main class whc i m gng to expose as web service.
Ths CD complex type has three elements(Basic datatypes)
label(string),artist(string),price(int)
i have created xsd file for ths CD data type as u told.
Now While creating Web Service from java class,in third step of custom mapping
it asks for three things.
First is Java class
(Whc one i should specify...My main java class whc contains methods
or whc contains jst defination for CD type)
Second thing is XML qualified name - here i'l specify my schema whc i created
and Wht is tht third thing
Serializer Class ????
Thank you vry much.
-mishit -
Servlets service method....
Hello friends can anyone guide me about servlets service method.
I know it is called internally by container but how ? How container works to call service
method.
thanks ..thanks for the above two replies. Yes I am aware of these facts. But what i want to know is for my knowledge, Does jsp container or servlet container implement any class that in turn calls the service method of our class passing them request and response object. As request and response are the interfaces, they only define certain methods leaving implementation of these methods for the container. My question is how they might be implementing those methods and then calling the service method passing them those objects. I will print one example that i created so that you guys will have some idea of my query.
// Take this as the HttpServletRequest interface. Reference of this interface should be passed
//to the user-defined class's method.
interface ServletRequestInterface
public String getName();
// The class implementing the above interface
class Test implements ServletRequestInterface
ServletRequestInterface a=null;
public String getName(){
return "Hi";
Test(){setServletRequestInterface();}
public void setServletRequestInterface()
a= this;
public ServletRequestInterface getServletRequestInterface()
return a;
//the class actually making use of the above interface but still it is not ready to pass it to some user
//defined method. How can we do it or is probably handled in container.
public class ServletContainer
public static void main(String args[])
Test t = new Test();
System.out.println(t.getServletRequestInterface().getName());
This will print hi. Now if i want to pass this ServletRequestInterface to user-defined methods, how will i pass it automatically. -
How to add a new filter in an existing web service method (BIWS - WEBI document)
Hello Experts, we have 7 web service query's connected to a dashboard. Basically it is one WSDL URL and 7 Get Methods...Web service queries are BIWS (via WEBI document instance). There are filters setup for each of these web service methods.
Recently there was a request to add 2 new fields to the webi document and also the 2 fields need to be included as filters in the 7 methods. I know there is an option to edit the method, but when i edit the method, i cannot find the 2 new fields in list to set as filters.Can anybody help me understand how to add filters to an existiing web service method? I do not want to delete the method and republish the block as web service.
Any help will be great and points rewarded.
Thank you
AnnHi Ann,
The reason you are not able to see any of the new columns as a option to select in your web service block is because when you have published that block, they were not present. Add these two new objects in your block and publish it again. You will be prompted for duplication content. Select the highlighted block for duplicate and now you can see the new added objects in the filter option. Update and this will overwrite your published block. Please note, web services do appear to behave weirdly when used with dashboards so I request you to please try it in a separate test report first.
Hope that helps.
Regards,
Tanisha -
Error while executing the service - The service method not defined error
Hi,
I am using Oracle UCM Content server 11g. I have created a custom service using component wizard. I have provided class name and method correct in the service declarations. The method should return manipulated Revision Label value. I am executing the service as a direct service and not subservice from a resource file using the following command.
<$executeService("servicename")$>
The serice is getting called but I am getting the following error log
Event generated by user 'weblogic' at host 'localhost:16200'. Unable to execute service Edit_Revision_Label and function generateRevLabelInfo.
The service method 'generateRevLabelInfo' is not defined. [ Details ]
An error has occurred. The stack trace below shows more information.
!csUserEventMessage,weblogic,localhost:16200!$!csServiceDataException,Edit_Revision_Label,generateRevLabelInfo!$!csMethodNotDefined,generateRevLabelInfo
intradoc.common.ServiceException: !csServiceDataException,Edit_Revision_Label,generateRevLabelInfo!$
*ScriptStack Edit_Revision_Label
Edit_Revision_Label,dDocName=3:generateRevLabelInfo,dDocName=
at intradoc.server.ServiceRequestImplementor.buildServiceException(ServiceRequestImplementor.java:2115)
at intradoc.server.Service.buildServiceException(Service.java:2260)
at intradoc.server.Service.createServiceExceptionEx(Service.java:2254)
at intradoc.server.Service.createServiceException(Service.java:2249)
at intradoc.server.ServiceRequestImplementor.handleActionException(ServiceRequestImplementor.java:1766)
at intradoc.server.ServiceRequestImplementor.doAction(ServiceRequestImplementor.java:1716)
at intradoc.server.Service.doAction(Service.java:477)
at intradoc.server.ServiceRequestImplementor.doActions(ServiceRequestImplementor.java:1458)
at intradoc.server.Service.doActions(Service.java:472)
at intradoc.server.ServiceRequestImplementor.executeSubServiceCode(ServiceRequestImplementor.java:1322)
at intradoc.server.Service.executeSubServiceCode(Service.java:3866)
at intradoc.server.ServiceRequestImplementor.executeServiceEx(ServiceRequestImplementor.java:1200)
at intradoc.server.Service.executeServiceEx(Service.java:3861)
at intradoc.server.ServiceRequestImplementor.executeSafeServiceInNewContext(ServiceRequestImplementor.java:1231)
at intradoc.server.Service.executeSafeServiceInNewContext(Service.java:3856)
at intradoc.server.script.ServiceScriptExtensions.evaluateFunction(ServiceScriptExtensions.java:269)
at intradoc.common.DynamicHtmlMerger.computeFunction(DynamicHtmlMerger.java:1430)
at intradoc.common.DynamicHtmlMerger.evaluateGrammarElement(DynamicHtmlMerger.java:908)
at intradoc.common.DynamicHtmlMerger.substituteVariable(DynamicHtmlMerger.java:623)
at intradoc.common.DynamicHtml.substituteVariable(DynamicHtml.java:1394)
at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1110)
at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1227)
at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1227)
at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1227)
at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1227)
at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1227)
at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1227)
at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1227)
at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1227)
at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
at intradoc.common.DynamicHtml.outputHtml(DynamicHtml.java:991)
at intradoc.common.DynamicHtmlMerger.outputDynamicHtmlPage(DynamicHtmlMerger.java:2007)
at intradoc.server.Service.buildResponsePage(Service.java:1267)
at intradoc.server.Service.doResponse(Service.java:2076)
at intradoc.server.ServiceRequestImplementor.doRequest(ServiceRequestImplementor.java:802)
at intradoc.server.Service.doRequest(Service.java:1890)
at intradoc.server.ServiceManager.processCommand(ServiceManager.java:435)
at intradoc.server.IdcServerThread.processRequest(IdcServerThread.java:265)
at intradoc.idcwls.IdcServletRequestUtils.doRequest(IdcServletRequestUtils.java:1343)
at intradoc.idcwls.IdcServletRequestUtils.processFilterEvent(IdcServletRequestUtils.java:1715)
at intradoc.idcwls.IdcIntegrateWrapper.processFilterEvent(IdcIntegrateWrapper.java:222)
at sun.reflect.GeneratedMethodAccessor1173.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at idcservlet.common.IdcMethodHolder.invokeMethod(IdcMethodHolder.java:87)
at idcservlet.common.ClassHelperUtils.executeMethodEx(ClassHelperUtils.java:305)
at idcservlet.common.ClassHelperUtils.executeMethodWithArgs(ClassHelperUtils.java:278)
at idcservlet.ServletUtils.executeContentServerIntegrateMethodOnConfig(ServletUtils.java:1600)
at idcservlet.IdcFilter.doFilter(IdcFilter.java:352)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Caused by: intradoc.data.DataException: !csMethodNotDefined,generateRevLabelInfo
at intradoc.server.Service.doCodeEx(Service.java:561)
at intradoc.server.Service.doCode(Service.java:505)
at intradoc.server.ServiceRequestImplementor.doAction(ServiceRequestImplementor.java:1643)
at intradoc.server.Service.doAction(Service.java:477)
at intradoc.server.ServiceRequestImplementor.doActions(ServiceRequestImplementor.java:1458)
at intradoc.server.Service.doActions(Service.java:473)
at intradoc.server.ServiceRequestImplementor.executeSubServiceCode(ServiceRequestImplementor.java:1323)
at intradoc.server.Service.executeSubServiceCode(Service.java:3867)
at intradoc.server.ServiceRequestImplementor.executeServiceEx(ServiceRequestImplementor.java:1200)
at intradoc.server.Service.executeServiceEx(Service.java:3862)
at intradoc.server.ServiceRequestImplementor.executeSafeServiceInNewContext(ServiceRequestImplementor.java:1231)
at intradoc.server.Service.executeSafeServiceInNewContext(Service.java:3857)
at intradoc.server.script.ServiceScriptExtensions.evaluateFunction(ServiceScriptExtensions.java:269)
at intradoc.common.DynamicHtmlMerger.computeFunction(DynamicHtmlMerger.java:1430)
at intradoc.common.DynamicHtmlMerger.evaluateGrammarElement(DynamicHtmlMerger.java:908)
at intradoc.common.DynamicHtmlMerger.substituteVariable(DynamicHtmlMerger.java:623)
at intradoc.common.DynamicHtml.substituteVariable(DynamicHtml.java:1394)
at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1110)
at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1227)
at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1227)
at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1227)
at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1227)
at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1227)
at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1227)
at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1227)
at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1227)
at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
at intradoc.common.DynamicHtml.outputHtml(DynamicHtml.java:991)
at intradoc.common.DynamicHtmlMerger.outputDynamicHtmlPage(DynamicHtmlMerger.java:2007)
at intradoc.server.Service.buildResponsePage(Service.java:1267)
at intradoc.server.Service.doResponse(Service.java:2076)
at intradoc.server.ServiceRequestImplementor.doRequest(ServiceRequestImplementor.java:802)
at intradoc.server.Service.doRequest(Service.java:1890)
at intradoc.server.ServiceManager.processCommand(ServiceManager.java:435)
at intradoc.server.IdcServerThread.processRequest(IdcServerThread.java:265)
at intradoc.idcwls.IdcServletRequestUtils.doRequest(IdcServletRequestUtils.java:1346)
at intradoc.idcwls.IdcServletRequestUtils.processFilterEvent(IdcServletRequestUtils.java:1715)
at intradoc.idcwls.IdcIntegrateWrapper.processFilterEvent(IdcIntegrateWrapper.java:222)
at sun.reflect.GeneratedMethodAccessor1173.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at idcservlet.common.IdcMethodHolder.invokeMethod(IdcMethodHolder.java:88)
at idcservlet.common.ClassHelperUtils.executeMethodEx(ClassHelperUtils.java:305)
at idcservlet.common.ClassHelperUtils.executeMethodWithArgs(ClassHelperUtils.java:278)
at idcservlet.ServletUtils.executeContentServerIntegrateMethodOnConfig(ServletUtils.java:1600)
at idcservlet.IdcFilter.doFilter(IdcFilter.java:352)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Please let me know the suggestions and the resolution on the above issue
Thanks in advance,
SarangHirva wrote:
Trying to get access to the sun convergence we get this error
"Error while executing the service request : : Login to Mail Service failed " after a look around we found out that the problem was that some one had deleted the msg-admin-server user from the ldap.What else was "accidentally" deleted? Do you have audit logging enabled for Directory Server?
but still doesnt work? where else should we look?Messaging Server also creates a msg-admin group ("cn=Messaging End User Administrators Group") which is used for Directory Server ACI purposes. You can see the entries that Messaging Server added during initial configuration by reviewing the *.ldif files under the following directory (MS7.0 32bit):
/var/opt/sun/comms/messaging/install/Regards,
Shane. -
How to access java method in JSP
Hi all,
I need to access java class (abstract portal component) method doContent() in a JSP which is under PORTAL-INF/jsp folder.
I did
<%@ page import = "com.mycompany.Aclass" %>
<%com.mycompany.Aclass a = new com.mycompany.Aclass (); %>
Aclass is coming as autofill/prepopulated with cntrl+space
Till this time, it is working. no errors. But when I do
a.
a. (a dot) no methods are populating (autofill..cntrl+space) or If I forcebly add method a.doContent(req,res)... at runtime its giving error.
It's not only with doContent method... Its with any simple methods in that class or any other class.
(Other than doContent method in the APC java class are prepopulating/autofilling but giving error in runtime)
Can anyone help me... how to access java method in JSP.
I already gone through many SDN forum post... and implemented too---but no use I refered below forum thread
Retrieve values from Java class to JSP
URGENT! How to call a java class from JSP.
Calling a java method from jsp file -
this thread is same as my issue
Thanks,
PradeeP1st. The classes must be in packages. 2nd, the package that they are in must be under the WEB-INF/classes directory. 3rd Look on google and/or this site for web application deployment
-
How to use protected method in jsp code
Could anyone tell me how to use protected method in jsp code ...
I declare a Calendar class , and I want to use the isTimeSet method ,
But if I write the code as follows ..
========================================================
<%
Calendar create_date = Calendar.getInstance();
if (create_date.isTimeSet) System.out.println("true");
%>
============================================================
when I run this jsp , it appears the error wirtten "isTimeSet has protected access in java.util.Calendar"The only way to access a protected variable is to subclass.
MyCalendar extends Calendar
but I doubt you need to do this. If you only want to tell if a Calendar object has a time associated with it, try using
cal.isSet( Calendar.HOUR ); -
Handling deletions from vo via service method - how?
If you create a hyperlink to delete a row (from a grid), i.e.
<a href="MyPage.do?event=RemoveNew&Arg0=<c:out value='${Row.rowKeyStr}' />">Remove</a>
What do you do with this Row Key String? I'm reluctant to use a value (such as a PK ID#) as I like the transparency of the key string, and wouldn't really want the user issuing a URL and just changing the pk value and removing something else.
So, do I:
a) pass this rowKeyString to the service method, which I can't see how I can even look up anything in an appmodule based on a rowkeystring, I really need a oracle.jbo.Key, but creating a Key from a string is deprecated
public void onRemoveNew( DataActionContext ctx )
log.info(userName(ctx) + "onRemoveNew **** - START");
try
// grab rowKeyStr from from end hyperlink (Arg0)
String strRowKey = ctx.getHttpServletRequest().getParameter("Arg0");
AppModule am = getAppModule(ctx);
am.removeRowbyRowKeyStr( strRowKey );
catch ( JboException jex )
au.logException( jex, log );
throw jex;
log.info(userName(ctx) + "onRemoveNew **** - END");
} // onRemoveNewthe backend service method "stub" for now:
public void removeRowbyRowKeyStr( String rowKeyStr )
log.info(userName(ctx) + "removeRowbyRowKeyStr**** - START");
// Since no navigation took place on front end, first let's find this row
// what do I do with this rowKeyString
// deprecated: Key k = new Key( rowKeyStr );
ViewObject vo = findMyViewObject();
try
Key k = new Key ( rowKeyStr, vo.getKeyAttributeDefs() );
// proceed from here...
catch ( Exception ex )
au.logException( ex, log );
log.info(userName(ctx) + "removeRowbyRowKeyStr**** - END");
} // removeRowbyRowKeyStrb) issue the setcurrentrow in the front-end to get to the correct grid row, grab the pk column# of this row, then call the service method
c) something altogether different than these ideas that escapes me right now, but is the preferred/best practice
Thanks!You can use JboUtil.getRowFromKey(RowSetIterator rsi, String skey) to do the job.
You can pass any ViewObject, RowSet, or RowSetIterator to the first argument, and your string key to the second argument.
Out of curiosity, it's source code looks like this:
static public Row getRowFromKey(RowSetIterator rsi, String sKey)
Key key;
try
key = new Key(sKey, rsi.getRowSet().getViewObject().getKeyAttributeDefs());
catch (Exception ex)
ex.printStackTrace();
return null;
Row rows[] = rsi.findByKey(key,1);
if (rows.length <= 0)
return null;
return rows[0];
} -
Calling Web Service Methods in Web Dynpro
1. Created a Bean with get & set methods..Created a portal Service around it
2. Created a Web Service and checked the same using EP Web Checker
3. Created a Web Dynpro app having two screens (First one for setting String value and second for getting string value)
4. Configured the Web Service in the model...I can see the Request and Response in the Context...Mapped the request to first view and Response to Second View
How do I call the Web Service method to Set the Paramter and how do I extract the value from the response?
RgdsHello Gulshan,
Did you check this:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/tutorial on accessing an email web service - 6_0_.htm
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/tutorial on accessing the car rental web service - 7.htm
Best regards, Maksim Rashchynski.
Maybe you are looking for
-
DVD encoded video and audio progressively get out of sync
Hi Compressor professionados, I've been trying to finalise a DVD I’m creating but keep having the same show-stopping problem where I just can't get the timing of the audio and video right after encoding it to MPEG-2/ac3 for DVD Studio Pro. When I lay
-
How do i get a radio station number from itunes it only plays on the computer i can not down load the station number as it does not show one to my ipod
-
3.2; BC4J, GridControl; Select row programatically?
Hi, I need to programatically Highlighted a desired row (which i know the primary key) from a grid and scroll the grid to show this selected row in the view port area. Any property/way for this ? note that: define a WHERE clause for rowSetInfo and .e
-
Can no one figure this out?
I'm an infant learning to crawl with java. When I try to compile this it contains errors I haven't been able to eliminate. The instructions from the Prof. follow. public class CyberPet{ public static void main(String args[]){ private boolean isEating
-
Exporting from PPro CS3 to Encore
When I export directly from Premiere Pro CS3 to Encore using the Blu-ray MPEG2 option the project that opens in Encore has Authoring Mode DVD. The mpeg 2 file that is exported and that appears as an asset in Encore is indeed 1440x1080, and the timeli