IPlanet 6.0 jasper exception lost
Hi there
I am using iPlanet 6.0 on a win32 box (although the problem also surfaces on Solaris 2.8).
I have an web application that requires a servlet filter. I put the servlet filter in place in the web-app.xml as described by the docs, and everything works fine. That is, it works fine until one of my JSPs has a compile error. If my JSP fails to compile, I get no log message about why it failed to compile.
If I remove the servlet filter from the web-app then I get my JSP compile errors back in the error log.
I wrote the servlet filter code myself, and it does nothing much, and propogates any Exceptions upwards.
Any ideas on where this logging information goes to ?
Here is the code for a filter which hides the log for JSP compile errors.
public class SleepFilter implements Filter {
private static final long SLEEP_TIME = 5000;
private static final Logger LOG = Logger.getLogger(SleepFilter.class);
public void init(FilterConfig config) throws ServletException {
LOG.debug("Sleep filter initialised");
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
try {
LOG.debug("Going to sleep .... zzzzzzzzzzzzzzzz.");
Thread.sleep(SLEEP_TIME);
LOG.debug("Wakey wakey rise and shine.");
chain.doFilter(request, response);
} catch (InterruptedException e) {
// do nothing.
public void destroy() {
LOG.debug("Die, piggy, piggy, die.");
Thanks in advance for your help
Brian
This problem has been reported as bug 4813726. Unfortunately, the issue has not yet been fixed, and I'm not aware of any work arounds.
(It may be worth noting that the problem doesn't occur with the new Servlet/JSP container in Web Server 6.1.)
Similar Messages
-
Jasper exception? Class not found? But the resources are there!
Hi, thanks for reading. I am building a simple web application. Just servlets and jsp working together to either retrieve or add or edit or delete data in a mysql database.
The problem i have is, some servlets compile and run fine and properly, while others return me the 'jasper error' (see below) and class not found error. The code in these servlets (those that work, and those that don't) are almost identical. I've checked them a couple of times, does not seems like there is any problem with the programming at all.
Please advise. Thanks for reading. If there is any files that you think i should upload, please let me know. Though it says class not found, the resources are there! What could be wrong? From the advice of someone on another thread, i've looked into the web.xml. And it looks like its right.
If anyone is willing to look into the matter for me. I'll upload all the files. (But that feels really rude to just impose on someone like that). Irregardless, thanks, really.
And what about the Jasper Exception? I've googled that already. But nothing that i found has been useful (even the official ones from apache).
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Wrapper cannot find servlet class Maintenance.Support.AddProdLog or a class it depends on
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
java.lang.Thread.run(Thread.java:619)
root cause
java.lang.ClassNotFoundException: Maintenance.Support.AddProdLog
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
java.lang.Thread.run(Thread.java:619)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 55 in the jsp file: /support_editUAT.jsp
Generated servlet error:
C:\Documents and Settings\Administrator\.netbeans\5.5.1\apache-tomcat-5.5.17_base\work\Catalina\localhost\MaintenanceSite\org\apache\jsp\support_005feditUAT_jsp.java:110: cannot find symbol
symbol : variable branchname
location: class org.apache.jsp.support_005feditUAT_jsp
out.print( branchname);
^
An error occurred at line: 91 in the jsp file: /support_editUAT.jsp
Generated servlet error:
C:\Documents and Settings\Administrator\.netbeans\5.5.1\apache-tomcat-5.5.17_base\work\Catalina\localhost\MaintenanceSite\org\apache\jsp\support_005feditUAT_jsp.java:148: cannot find symbol
symbol : variable branchname
location: class org.apache.jsp.support_005feditUAT_jsp
out.print( branchname);
^
2 errors
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
root cause
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 55 in the jsp file: /support_editUAT.jsp
Generated servlet error:
C:\Documents and Settings\Administrator\.netbeans\5.5.1\apache-tomcat-5.5.17_base\work\Catalina\localhost\MaintenanceSite\org\apache\jsp\support_005feditUAT_jsp.java:110: cannot find symbol
symbol : variable branchname
location: class org.apache.jsp.support_005feditUAT_jsp
out.print( branchname);
^
An error occurred at line: 91 in the jsp file: /support_editUAT.jsp
Generated servlet error:
C:\Documents and Settings\Administrator\.netbeans\5.5.1\apache-tomcat-5.5.17_base\work\Catalina\localhost\MaintenanceSite\org\apache\jsp\support_005feditUAT_jsp.java:148: cannot find symbol
symbol : variable branchname
location: class org.apache.jsp.support_005feditUAT_jsp
out.print( branchname);
^
2 errors
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java:249)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)Thanks for the reply. I'm sorry for cross-posting. The other thread is here: http://forum.java.sun.com/post!reply.jspa?messageID=9920352#
sunish_jose suggested that:
The servlet classes u mentioned in web.xml should be in WEB-INF/classes. U can add in many ways, you can manually copy and paste(But u have to follow the package structure) or You can mention the class folderd in your editor to
WEB-INF/classes so that the editor will automaticall generate the class file into that folder with the folder structure. By looking at the error.txt what I can understand is Exceptions are thrown due to the above issue and more than that there are some compilation errors in support_getContact.jsp.
And i'm looking into that right now. -
Jsp 2.0 tagfile with name-from-attribute causes jasper exception
hello there, i'm messing around with jsp 2.0 tag files and can't get this simple example to work (tried it for hours in variations ...)
the tag file:
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ attribute name="v" required="true" %>
<%@ variable name-from-attribute="v" variable-class="java.lang.Long" alias="a" scope="AT_END" %>
<c:set var="a" value="${123}"/>
<p> TAG: ${v} = ${a} </p>the jsp file:
<%@ taglib prefix="demo" tagdir="/WEB-INF/tags/demo" %>
<demo:varAttr v="x"/>
<p> JSP: x = ${x} </p>exception :
org.apache.jasper.JasperException: Unable to compile class for JSP
root cause:
java.lang.RuntimeException: org.apache.jasper.JasperException: /WEB-INF/tags/demo/varAttr.tag(3,1) The attribute directive (declared in line 2 and whose name attribute is "v", the value of this name-from-attribute attribute) must be of type java.lang.String, is "required" and not a "rtexprvalue".
... and so on
everything else works fine (name-given attribute).
i use tomcat 5.9.
any ideas? maybe somebody could try my example on a different installation.
thank you in advance for any help, because i ran out of ideas.The attribute "v" is not allowed to take runtime expressions if you are using it with a name-from-attribute.
rtexprvalue defaults to true, so you must explicitly make it false.
<%@ attribute name="v" required="true" rtexprvalue="false" %>Cheers,
evnafets -
Hi ,
I am deploying an application in a test env which is working perfectly in our dev environment and which doesnt need any code changes.I am getting an exception while deploying.The same code is working in our dev environment.
Please help me in this.Thanks in advance.
Mar 8, 2009 3:45:32 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
at org.apache.jsp.index_jsp._jspInit(index_jsp.java:103)
at org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:52)
at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:159)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329)
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 com.core.test.test1.CachePreventionFilter.doFilter(CachePreventionFilter.java:42)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)What happens when i copy and paste the jar file in my application's lib directory?What happens is that you have the classes appearing twice in your class path.
It will normally use the first version of the class that it comes across.
For a web application, the Standard Tomcat resolution order is something like
WEB-INF/classes
jar files in WEB-INF/lib (alphabetical order of filename)
jar files in [TOMCAT]/shared/lib
jar files in [TOMCAT]/common/lib
If it finds it in one of the earlier spots, it won't go looking further.
For the server itself, the classpath is just the [TOMCAT]/common/lib and [TOMCAT]/server/lib directories.
Thus jsp-api is in two different places - and will be retrieved from the two different places depending upon who is doing the loading - the web app or the server.
As you have found, this can lead to issues.
Bottom line - don't have servlet-api.jar, jsp-api.jar (or any other of the servlet classes) in your WEB-INF/lib directory.
In fact if you can eliminate duplicate classes entirely from your classpath, you can prevent a lot of issues. -
org.apache.jasper.JasperException: The absolute uri: http://xmlns.oracle.com/bibeans/jsp cannot be resolved in either web.xml or the jar files deployed with this application
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:411)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:118)
org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibraryInfoImpl.java:316)
org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:147)
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)
org.apache.jasper.compiler.Parser.parse(Parser.java:126)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:220)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
com.qdecisions.qmortgage.AuthorizationFilter.doFilter(AuthorizationFilter.java:70)It's amazing, Mike.
-
Authentication: Import Role problem - Jasper Exception
Hi All,
I'm trying to import roles from SAP BW 7.0 to BO Enterprise XI 3.1, but when I click on "import roles" on CMC, I get the following error:
org.apache.jasper.JasperException
I've followed all the steps on "Business Integration Kit for SAP - Installation and Configuration" PDF. The file sapjco.jar is in tomcat/shared/lib, the Tomcat classpath is configured, and the librfc32.dll and sapjcorfc.dll are on Windowssystem32 directory. I also applied login/accept_sso2_ticket and login/create_sso2_ticket profiles on BW app server. I still get the same error.
For information: I'm using Windows server 2008 64bit.
Any suggestion?
Regards
AndréHi Everyone,
I am also getting the same error while importing roles from SAP BW 7.0 to BO Enterprise XI 3.1. The error text is "org.apache.jasper.JasperException".
I too followed all the steps mentioned in "BusinessObjects Integration Kit for SAP - Installation and Configuration" PDF.
The profile parameters login/create_sso2_ticket' and 'login/accept_sso2_ticket' on the SAP BW application server were already set to 2 & 1 resp.
As discussed in this thread, I copied the librfc32.dll and sapjcorfc.dll files into C:\Windows\SYSWOW64 from Windows\system32 directory.
I have used 32bit version of the sapjco.jar file and it is in tomcat/shared/lib.
The SAP-BO server is installed on Windows Server 2003 R2 Standard x64 Edition SP2
Can anyone help to resolve this issue?
Thanks & Regards,
Tushar -
Jasper report issue report row 65535 but can't generated correctly
Hi All ,
We are trying to create report with jasper report . The issue is sometime generated report can be open.
Below is test case and result .
1. when dummy all the returned field of procedure to 1 and 20000 rows are to printed in report. The file size is 7564K. The excel can be open after several minutes waiting.
2. When dummy the procedure only return 5000 rows with actual data, the field type may be char, number. The file size is 2010K. The excel can be open quickly.
3. When dummy the procedure only return10000 rows with actual data. The file size is 3999K. The excel cannot be open.
What the issue may be?
Below is our code.
* Generate the the report, currently generate excel report.
* @param results - data set return from procedure execution
* @param parameters - input parameters for Jasper Report design
* @param procName - Jasper file name
* @param outputFile - used as report file name
* @throws JRException - Jasper exception
private void ReportGenerator(List<ScriptParameterObject> results,HashMap<String, Object> parameters, String procName,String outputFile) throws JRException, Exception
logger.info("Creating report: " + outputFile + ".xls");
//URL en = ClassLoader.getSystemResource("jasper"+java.io.File.separator+procName + ".jasper");
URL en = ClassLoader.getSystemResource(procName + ".jasper");
if(en==null)
throw new Exception("Can't find jasper file: " + procName + ".jasper");
logger.debug("Loading jasper file: " + en.getPath());
//InputStream isJasper = ClassLoader.getSystemResourceAsStream("jasper"+java.io.File.separator+procName + ".jasper");
InputStream isJasper = ClassLoader.getSystemResourceAsStream(procName + ".jasper");
JasperReport relatorio = (JasperReport) JRLoader.loadObject(isJasper);
SapiData sapiData = new SapiData(results);
logger.debug("Filling report file ..." + results.size());
JasperPrint impressao=null;
try{
impressao = JasperFillManager.fillReport(relatorio,parameters, sapiData);
catch(Exception ex){
System.out.println(ex); ---never catch error. but not know why the .xls can't open
if (impressao == null) {
logger.debug("impressao == nul.");
logger.debug("Filled report file successfully.");
impressao.setLocaleCode(Locale.getDefault().getCountry());
JRAbstractExporter saida = null;
saida = new JRXlsExporter();
saida.setParameter(JRExporterParameter.JASPER_PRINT, impressao);
saida.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, outputFile + ".xls");
saida.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET,Boolean.FALSE);
saida.setParameter(JRXlsExporterParameter.IS_WHITE_PAGE_BACKGROUND,Boolean.TRUE);
saida.setParameter(JRXlsExporterParameter.IS_REMOVE_EMPTY_SPACE_BETWEEN_ROWS,Boolean.TRUE);
saida.setParameter(JRXlsExporterParameter.IS_COLLAPSE_ROW_SPAN,Boolean.TRUE);
saida.setParameter(JRXlsExporterParameter.MAXIMUM_ROWS_PER_SHEET, Integer.decode("5000"));
logger.debug("Exporting excel report file ...");
saida.exportReport();
logger.debug("Generated excel report file successfully: "+outputFile + ".xls");
/* - used for generate html report
JRAbstractExporter htmlExp = new JRHtmlExporter();
htmlExp.setParameter(JRExporterParameter.JASPER_PRINT, impressao);
htmlExp.setParameter(JRHtmlExporterParameter.OUTPUT_FILE_NAME,outputFile + ".html");
htmlExp.setParameter(JRHtmlExporterParameter.IS_REMOVE_EMPTY_SPACE_BETWEEN_ROWS,Boolean.TRUE);
htmlExp.setParameter(JRHtmlExporterParameter.IS_WRAP_BREAK_WORD,Boolean.TRUE);
htmlExp.exportReport();
}I hava the same problem.Hava you solved it?
-
Exception handling bug in EJB-s
Hi,
My collegue had problems with exceptions in iPlanet EJB-s.
Exceptions that were inherited from the class that is declared to be
thrown by a particular method made EJB-s to be destroyed due to an
unhadled exception. (Eg. NoSuchObjectException is found to be unhandled
even if FinderException is declared to be thrown.)
This is a serious malfunction of the container and against the basic
concept of EJB and also the Java itself.
The root cause that were found is highlighted in the code example, where
direct equality is used for testing class instead of the instanceof
operator. This code has been found in ejb_skel_CLASSNAME.java and has
been generatd by ejbc iAS6 SP3.
Regards,
Gy�rgy Szondy
Capital Systems Kft.
Gy�rgy Szondy, Development Team Manager
Gogol u. 16., 1133 Budapest, Hungary
Tel: +36 1 288 7036 mailto:[email protected]
Fax: +36 1 350 8159
-----Eredeti �zenet-----
Felad�: Geiszter Gy�rgy
Elk�ldve: 2001.okt�ber.8. 14:23
C�mzett: Szondy Gy�rgy
T�rgy: Exception handling in EJB-s
public void removePerson(int arg0) throws java.rmi.RemoteException,
hu.capsys.wwwsol.control.WwwsolException
Object delegate = super._ns_getDelegateForUpCall();
try
nsbeforeUpcall("removePerson", delegate);
try
delegate.getClass().getMethod("removePerson", new Class[]{
Integer.TYPE}).invoke(delegate, new Object[]{
new Integer(arg0 )});
} catch
(java.lang.reflect.InvocationTargetException ex) {
Throwable th = ex.getTargetException();
if (th.getClass() ==
hu.capsys.wwwsol.control.WwwsolException.class){ // HERE IS THE BUG
nsafterUpcall("removePerson", delegate, th);
throw (hu.capsys.wwwsol.control.WwwsolException)th ;
nsafterUpcall("removePerson", delegate, th);
java.rmi.RemoteException subex = nsinvalidateDelegate(delegate,
th);
delegate = null;
throw subex;
catch (java.lang.Throwable ex)
nsafterUpcall("removePerson", delegate, ex);
java.rmi.RemoteException subex = nsinvalidateDelegate(delegate,
ex);
delegate = null;
throw subex;
finally
if(delegate != null)
nsreleaseDelegateForUpCall(delegate);
nsafterUpcall("removePerson", delegate, null);
}Hi,
My collegue had problems with exceptions in iPlanet EJB-s.
Exceptions that were inherited from the class that is declared to be
thrown by a particular method made EJB-s to be destroyed due to an
unhadled exception. (Eg. NoSuchObjectException is found to be unhandled
even if FinderException is declared to be thrown.)
This is a serious malfunction of the container and against the basic
concept of EJB and also the Java itself.
The root cause that were found is highlighted in the code example, where
direct equality is used for testing class instead of the instanceof
operator. This code has been found in ejb_skel_CLASSNAME.java and has
been generatd by ejbc iAS6 SP3.
Regards,
Gy�rgy Szondy
Capital Systems Kft.
Gy�rgy Szondy, Development Team Manager
Gogol u. 16., 1133 Budapest, Hungary
Tel: +36 1 288 7036 mailto:[email protected]
Fax: +36 1 350 8159
-----Eredeti �zenet-----
Felad�: Geiszter Gy�rgy
Elk�ldve: 2001.okt�ber.8. 14:23
C�mzett: Szondy Gy�rgy
T�rgy: Exception handling in EJB-s
public void removePerson(int arg0) throws java.rmi.RemoteException,
hu.capsys.wwwsol.control.WwwsolException
Object delegate = super._ns_getDelegateForUpCall();
try
nsbeforeUpcall("removePerson", delegate);
try
delegate.getClass().getMethod("removePerson", new Class[]{
Integer.TYPE}).invoke(delegate, new Object[]{
new Integer(arg0 )});
} catch
(java.lang.reflect.InvocationTargetException ex) {
Throwable th = ex.getTargetException();
if (th.getClass() ==
hu.capsys.wwwsol.control.WwwsolException.class){ // HERE IS THE BUG
nsafterUpcall("removePerson", delegate, th);
throw (hu.capsys.wwwsol.control.WwwsolException)th ;
nsafterUpcall("removePerson", delegate, th);
java.rmi.RemoteException subex = nsinvalidateDelegate(delegate,
th);
delegate = null;
throw subex;
catch (java.lang.Throwable ex)
nsafterUpcall("removePerson", delegate, ex);
java.rmi.RemoteException subex = nsinvalidateDelegate(delegate,
ex);
delegate = null;
throw subex;
finally
if(delegate != null)
nsreleaseDelegateForUpCall(delegate);
nsafterUpcall("removePerson", delegate, null);
} -
Hey Guys,
I'm facing a problem. I'm using Tomcat 5 to view the JSP pages I create. When I'm trying to include tag libraries, I see something called "apache jasper exception" and due to this my page can't be viewed.
What can I do to get rid of this? :(
ManinderThis is a mine field of "correct programming style."
External jars, if very general, could be placed in the directory jre/lib/ext.
In some cases you can unzip the external jars and add them to your own jar.
The manifest.mf migth be looked into, and of course you need to communicate your patching!
As you remarked, it might be a problem of class path usage.
For that the jar tool documentation might explain it better than I. -
Request to have off-topic posts moved
There are a number of posts accumulated in the Server and Storage Systems group of forums that are just not on-topic for them.
Generally they've been posted by people that care to not read anything nor drill down to an appropriate forum and just dump a question.
I've done the "report abuse" routine on a number of them but that seems to have been ignored.
Thus this new post.
These are from the last 60 days:
(need to be moved to a Glassfish forum)
How to start Galssfish when computer start
Glassfish 3.0.1 updatetool
http://forums.oracle.com/forums/thread.jspa?threadID=2128052
war for modify domain.xml in glassfish 3
Glassfish 2.1 + JPA 2: need some Sun/Oracle expert advice
(topics for Sun Java System "whatever" applications, posted to server forums)
AMPostAuthProcessInterface redirect problem
http://forums.oracle.com/forums/thread.jspa?threadID=2127174
Weblogic Spring/Sample Application Help
Cannot add new LDAP Group Members in Sun Java Server 7.0
http://forums.oracle.com/forums/thread.jspa?threadID=2134347
Help with iPlanet
iText vs Jasper Java Application Source Code
OpenMQ Unack'ed messages causing Java Heap overflow in STOMP
(database product questions posted to System Administration and hardware forums)
how can i release lock record?
Oracle for Mac
Problem using TNS_ADMIN in registry (Ora. 11g R2 Instant client in Win. 7)
http://forums.oracle.com/forums/thread.jspa?threadID=2154755
/opt/SUNWwbsvr7/bin/wadm exited with error: 125
Performance Testing tool
ORA-00202 and Fractured block found during control file header read
Performance Monitoring
Reg : Weblogic Server Installation
how can export from 11g to 9i
What's wrong with oracle database11g? Is it a serious problem?
Client download link needed
http://forums.oracle.com/forums/thread.jspa?threadID=2149037
Oracle 10G on VMware Redhat Linux
http://forums.oracle.com/forums/thread.jspa?threadID=2138098
I Can't Connect to Oracle
what is the function of autoextensible field in dba_data_files?
http://forums.oracle.com/forums/thread.jspa?threadID=2139323
databse copy
Advice needed regarding Database design practice
enterprise manager
http://forums.oracle.com/forums/thread.jspa?threadID=2128320
Problem with granting privileges
Inatalling IDM 11g on WondowsXp machine
Any good resources for info on specifications for a new 11g install?
During installation EMCA trows an error: Error uploading configuration data
I received Validation error in the Backup Setting
RMAN RESTORE
Find the user(s) using more CPU in a database
Oracle 10g 64-bit database on Windows 2008 R2 (64-bit) error ?
http://forums.oracle.com/forums/thread.jspa?threadID=1554073
Temporary tablespace not cleared
TNS -12541 TNS: no listener
Installing Oracle 11g on a server without network access
RMAN Shows the following error... Please any one can help me....
http://forums.oracle.com/forums/thread.jspa?threadID=2137784
java.lang.Exception
http://forums.oracle.com/forums/thread.jspa?threadID=2138186
ORA-12543 When creating a new oracle instance, Oracle 11g
Problem with Uninstalling Oracle 11.2 on Windows Server 2008
problem installing mod_plsql oracle 11g linux
Best practice for install oracle 11g r2 on Windows Server 2008 r2
ORA-12535: TNS:operation timed out
http://forums.oracle.com/forums/thread.jspa?threadID=1982259
move datafile/tablespace in a partitioned table
Orace 11g CRS installation ( windows server 2008 64 bit ) Error
Datapump import from a map drive
http://forums.oracle.com/forums/thread.jspa?threadID=1982528
http://forums.oracle.com/forums/thread.jspa?threadID=2126409
http://forums.oracle.com/forums/thread.jspa?threadID=2126802
Oracle Startup/Shutdown with SQLPLUS and ORADIM in Windows...
http://forums.oracle.com/forums/thread.jspa?threadID=1574872
http://forums.oracle.com/forums/thread.jspa?threadID=2123572
http://forums.oracle.com/forums/thread.jspa?threadID=2041227
http://forums.oracle.com/forums/thread.jspa?threadID=2077085
http://forums.oracle.com/forums/thread.jspa?threadID=2069660If these last few are pruned out of the SysAdmin forums, that should finish the housekeeping task. They're the most recent entries of off-topic questions.
database postings to the SysAdmin forums
Backup database with RMAN
sql*NAT?
How can convert Oracle 10g trial to License
http://forums.oracle.com/forums/thread.jspa?threadID=2160796
Visual Web Developer 2010 Express and Oracle ODAC - Oracle data provider
http://forums.oracle.com/forums/thread.jspa?threadID=2160572
Huge amount of "db file sequential reads" while INSERT APPEND operation
http://forums.oracle.com/forums/thread.jspa?threadID=2160410
Oracle Universal Installer - Toad - Virtual Machine Windows 7 on Mac
What to check or can say from where to start?
Where and how does oracle store tables?
Oracle net configuration assitant failing while installing Oracle 11g.
Resolving Mview Complete Refresh Performance
Problem with silent install of 11gR1 on Windows 2008
http://forums.oracle.com/forums/thread.jspa?threadID=2157067
ORA-01991: invalid password file
Sequences incorrect after exporting and importing a scheme
http://forums.oracle.com/forums/thread.jspa?threadID=2153592
http://forums.oracle.com/forums/thread.jspa?threadID=2149027
http://forums.oracle.com/forums/thread.jspa?threadID=2128320
http://forums.oracle.com/forums/thread.jspa?threadID=2137784
http://forums.oracle.com/forums/thread.jspa?threadID=1982259
http://forums.oracle.com/forums/thread.jspa?threadID=1574872
http://forums.oracle.com/forums/thread.jspa?threadID=2123572
http://forums.oracle.com/forums/thread.jspa?threadID=2041227
http://forums.oracle.com/forums/thread.jspa?threadID=2077085
http://forums.oracle.com/forums/thread.jspa?threadID=2069660
http://forums.oracle.com/forums/thread.jspa?threadID=2113069
http://forums.oracle.com/forums/thread.jspa?threadID=1981627
http://forums.oracle.com/forums/thread.jspa?threadID=1981082
http://forums.oracle.com/forums/thread.jspa?threadID=1981287
http://forums.oracle.com/forums/thread.jspa?threadID=1979404
http://forums.oracle.com/forums/thread.jspa?threadID=1955376
http://forums.oracle.com/forums/thread.jspa?threadID=1844213
http://forums.oracle.com/forums/thread.jspa?threadID=1773975
http://forums.oracle.com/forums/thread.jspa?threadID=1773059
http://forums.oracle.com/forums/thread.jspa?threadID=1555844
http://forums.oracle.com/forums/thread.jspa?threadID=1555363
http://forums.oracle.com/forums/thread.jspa?threadID=1554035
http://forums.oracle.com/forums/thread.jspa?threadID=1518192
http://forums.oracle.com/forums/thread.jspa?threadID=1272113
http://forums.oracle.com/forums/thread.jspa?threadID=1134136
http://forums.oracle.com/forums/thread.jspa?threadID=1938192
Again, the community moderators don't have permissions to do that.
Thanks -
Java class bean can not access to DB in JSP file
Hi, I wrote a java class bean in order to access to MySql database ,and this bean is used in a JSP file,so that the bean can query from DB and then display the queried information on the JSP file,but it can not work correctly,the following is the source code and error message popup by the system,
does anybody has experience in solving thus question,Please reply ,Thank you for your help.
%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import = "java.sql.*" %>
<jsp:useBean id="conn" scope="page" class="news.conn"/>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>1</title>
<style>
<!--
A:link {
COLOR: #993399
.s {
FONT-SIZE: 13px; LINE-HEIGHT: 170%; FONT-FAMILY: "utf-8"
-->
</style>
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="100%">
<img border="0" src="images/ruanjian.jpg" width="770" height="154"></td>
</tr>
<tr>
<td width="100%">@</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber2">
<tr>
<td width="13%">@</td>
<td width="87%">
<img border="0" src="images/mid-rdxw2.gif" width="101" height="18"><p>
<%
ResultSet rs,rsNest;
String strSql=null;
strSql = "select * from news where TYPE=1";
rs = conn.executeQuery(strSql);
while (rs.next()){
%>
<span class="s"> <a href="newsContent.jsp?newsId=<%=rs.getInt(id")%">"><%=rs.getString("Title")%></a><br>
<%
%>
<p>
<img border="0" src="images/mid-hyxw2.gif" width="94" height="19"></p>
<%
strSql="select * from news where TYPE=2";
rs = conn.executeQuery(strSql);
while (rs.next()){
%>
<span class="s"> <a href="newsContent.jsp?newsId=<%=rs.getInt("id")%>"><%=rs.getString("Title")%></a><br>
<%
%>
<p>@</td>
</tr>
</table>
<p align="center">Study Online</p>
<p align="center">@</p>
</body>
</html>
Error message:
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Exception in JSP: /newsMain.jsp:47
44: strSql = "select * from news where TYPE=1";
45: rs = conn.executeQuery(strSql);
46:
47: while (rs.next()){
48:
49: %>
50:
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:451)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
root cause
java.lang.NullPointerException
org.apache.jsp.newsMain_jsp._jspService(newsMain_jsp.java:98)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.27 l</a>nogoodatcoding wrote:
Tolls wrote:
Is that Jasper Exception telling us where the problem is in the jsp, though?
If it is, then "rs" is null in the call rs.next()...which means conn.executeQuery() is returning null. Which means that whatever class conn is (news.conn?) has a problem maybe?That's possible. Though, it may just be the case that the 'conn' object itself is null! That line is the first place where it's being used and there are no checks that I can see...we'll have to wait for the OP to investigate and reply I guess.That's what I originally thought, then I noticed it was saying line 47, which is the rs.next() line. Assuming Jasper is correct in its choice of line, then it's the rs that's null. Which means the conn is doing strange things.
Edit: Now that I think about it, going by the previous thread the OP posted, I'm wondering whether news.conn class is their attempt to move the JDBC stuff out of the JSP page, and it's grabbing the "real" connection (java.sql.Connection) and getting the result set and returning it...or getting something wrong and returning null.
Edited by: Tolls on 11-Jun-2009 12:24 -
Problems when using javascript in jsp
hello, i am implementing a program to upload files.
a user can upload either a pdf or a latex file.
so for example if the user uploads a pdf file the form action should be
"uploadPDF.jsp" and if it is a latex file the action is "uploadlatex.jsp"
currently when the user uploads the pdf file IT WORKS and does the action correctly but it does not do it for the other file (latex file) gives
some long jasper exceptions pls help
*************here is the code*******************
<SCRIPT LANGUAGE="JavaScript">
var extArray = new Array(".pdf", ".tex", ".txt");
function LimitAttach(form, file) {
allowSubmit = false;
if (!file) return;
while (file.indexOf("\\") != -1)
file = file.slice(file.indexOf("\\") + 1);
ext = file.slice(file.indexOf(".")).toLowerCase();
for (var i = 0; i < extArray.length; i++) {
if (ext = "pdf"){
document.forms[0].action.value = "uploadPDF.jsp";
allowSubmit = true;
break;
if (allowSubmit) form.submit();
else
alert("Please only upload files that end in types: "
+ (extArray.join(" ")) + "\nPlease select a new "
+ "file to upload and submit again.");
</script>
</HEAD>
and below is the form
<form action="" name="upform"enctype="multipart/form-data">
<input type="file" name="PDFfilename" size="50"><br>
<input type="hidden" name="todo" value="upload">
<input type="submit" name="Submit" value="Upload" onclick="LimitAttach(this.form, this.form.PDFfilename.value)">
</form>
thanks,
mohwhen uploading this latex file in a different jsp file and form it works fine
however in the above form it does not...........here is the exception errors:
org.apache.jasper.JasperException: This file appears to be damaged and cannot be repaired. This may not actually be a PDF file.
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
root cause
javax.servlet.ServletException: This file appears to be damaged and cannot be repaired. This may not actually be a PDF file.
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
org.apache.jsp.uploadPDF_jsp._jspService(uploadPDF_jsp.java:209)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
root cause
com.adobe.acrobat.pdfobjstore.CantRebuildXRefException: This file appears to be damaged and cannot be repaired. This may not actually be a PDF file.
com.adobe.acrobat.pdfobjstore.XRefTableRebuilder.buildTrailerDict(XRefTableRebuilder.java:141)
com.adobe.acrobat.pdfobjstore.XRefTableRebuilder.rebuildXRefTable(XRefTableRebuilder.java:121)
com.adobe.acrobat.pdfobjstore.XRefTableRebuilder.<init>(XRefTableRebuilder.java:46)
com.adobe.acrobat.pdfobjstore.XRefTable.<init>(XRefTable.java:44)
com.adobe.acrobat.pdfobjstore.XRefTable.<init>(XRefTable.java:64)
com.adobe.acrobat.pdfobjstore.PDFObjMap.compute(PDFObjMap.java:122)
com.adobe.pe.notify.VValue.handleRequest(VValue.java:172)
com.adobe.acrobat.pdfobjstore.PDFObjMap.getTrailerDictRef(PDFObjMap.java:49)
com.adobe.acrobat.pdfobjstore.VTrailerDict.computeReference(PDFObjStore.java:552)
com.adobe.acrobat.pdfobjstore.VPDFReference.compute(VPDFReference.java:150)
com.adobe.pe.notify.VValue.handleRequest(VValue.java:172)
com.adobe.acrobat.pdfobjstore.VPDFReference.pdfReferenceValue(VPDFReference.java:161)
com.adobe.acrobat.pdfobjstore.security.VEncryptionMethod.computeString(SecurityHandler.java:208)
com.adobe.pe.vtypes.VString.compute(VString.java:55)
com.adobe.pe.notify.VValue.handleRequest(VValue.java:172)
com.adobe.pe.vtypes.VString.stringValue(VString.java:126)
com.adobe.acrobat.pdfobjstore.security.VPDFObjStorePerms.computePDFObjStorePerms(VPDFObjStorePerms.java:41)
com.adobe.acrobat.pdfobjstore.security.VPDFObjStorePerms.compute(VPDFObjStorePerms.java:54)
com.adobe.pe.notify.VValue.handleRequest(VValue.java:172)
com.adobe.acrobat.pdfobjstore.security.VPDFObjStorePerms.peObjStorePermsValue(VPDFObjStorePerms.java:32)
com.adobe.acrobat.gui.AcroViewContext.setByteArraySource(AcroViewContext.java:587)
com.adobe.acrobat.Viewer$3.buildChanges(Viewer.java:907)
com.adobe.pe.notify.Transactor.commit(Transactor.java:70)
com.adobe.acrobat.Viewer.setByteArraySource(Viewer.java:911)
com.adobe.acrobat.Viewer.setDocumentByteArray(Viewer.java:948)
com.adobe.acrobat.Viewer.setDocumentInputStream(Viewer.java:971)
org.apache.jsp.uploadPDF_jsp._jspService(uploadPDF_jsp.java:106)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
on the first line it says that the file may be corrupted but it is fine and works, thanks
moh -
Hi,
i am using tomcat 4.12 and jdk 1.4.
My login page contains 3 frames. after succesful login into ur application, 7 frames are getting called.
i have called a jsp page for each frame.
sometimes while accessing my application, i am getting jasper exception like cannot resolve symbol....
for example
D:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\sample\web\helpdesklogin_jsp.java:404: cannot resolve symbol
symbol : method --ite (java.lang.String)
location: class javax.servlet.jsp.JspWriter
out.write("<tr bgcolor=\"ffffff\">\r\n ");
i do not understand the what is the problem here....
likewise i am getting jasper exception. but it is not frequently occured in the frame.
is there any relation with autoflush page directive attribute...?
if it then should i increase default buffer size ?
Reply please
ThanksYour helpdesklogin.jsp file has a compilation error. It's hard to tell, but it looks like you mis-typed out.write() somewhere.
- Saish -
Weird problems with CSS being applied to JSF pages
I have this really weird problem with my CSS rules being applied to my JSF pages. My CSS rules don't get applied unless one of the following two things happen:
- A page is reloaded (by redirecting to itself, or if there were validation errors)
- The previous page in the history had the same relative reference to the same CSS file.
If a page is newly loaded, and the previous page did not have that same CSS reference, the CSS styles will not show up. Also, if the above is true, and the page is reloaded by JSF, the CSS styles show up.
Now, my problem could be solved if I put all JSP files in the same level, but the display of the first page would still be without the CSS style applied.
Is this known behaviour? And if it is, does it have anything to do do with the way JSF handles URLs (always one level back)? Help and input is kindly appreciated!Dude,
I tried the same
<link rel="stylesheet" href="<h:outputText value="#{facesContext.externalContext.requestContextPath}"/pages/css/default.css" />
and I got the following Jasper exception.... pointers plz ??
=============================================================
2005-08-24 14:18:55,937 [http-8080-Processor25] ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[mydemo].[FacesServlet] - Servlet.service() for servlet FacesServlet threw exception
org.apache.jasper.JasperException: /myproj/eventCrit.jsp(8,78) Unterminated <h:outputText tag
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:405)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:130)
at org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:1049)
at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1367)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1564)
at org.apache.jasper.compiler.Parser.parseBody(Parser.java:1793)
at org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:1060)
at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1367)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1564)
at org.apache.jasper.compiler.Parser.parse(Parser.java:126)
at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
at org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
========================================================= -
Hi Every one
I have to call one microssoft dll from the pl/sql using form .
How can I do it.
PrashantThat likely means that the DLL call failed.
Some basics.
A DLL exposes an interface where it lists the names of the proc/func exposed (together with a number/ordinal for each).
The Win32 LoadLibrary() call is used to load a DLL. This returns a handle that is then used by subsequent calls to the DLL.
In order to make the actual call, the caller needs to know the address of the procedure/function in the DLL. The GetProcAddress() is the Win32 call I remember using to get the address to call (but I think it has been deprecated since).
Anyway, for the caller to call that proc/func in the DLL, it needs these steps:
- load that library
- get the "address" of that proc/func in the DLL
- make the call
The DLL is then executed - in the address space of the caller. Yes, the DLL's code segment is loaded once and shared amongst how ever many executables are using that DLL. But the DLL has no data segment - the data segment of the DLL lives in the address space of the caller.
Should the DLL do something dirty/wrong, it can crash the caller by corrupting its address space. Or the DLL call could simply fail, throw an exception and terminate unexpectedly.
This is the basics of the a DLL call - and also why Oracle wants to run that DLL call externally using the EXTPROC interface, so as not to risk that DLL compromising the memory space of the Oracle server process.
This makes it a tad more complex now as the Oracle server process makes a call to EXTPROC (an IPC/RPC call) - and the EXTPROC process makes the DLL call (as described above).
If that EXTPROC process crashes, the call that the Oracle server process made also terminates unexpectedly.
Why can the EXTPROC process crash? Well, there are more meaningful errors returned when the DLL fails to load in my experience. So I expect that your DLL was found and that the EXTPROC process did a successful LoadLibrary() call - and even made a successful GetProcAdress() (or whatever call).
But when the actual call to the DLL func/proc was made, an error resulted (incorrect parameter passing, invalid data types being passed, invalid memory being referenced, etc).
This error caused a fatal error and terminated the EXTPROC process. No meaningful error was therefore returned to the Oracle server process - so it throws the exception "lost RPC connection to external process".
Hope this was not too technical and you got the gist of it.
Maybe you are looking for
-
Embedded hotspots on animated gif
Hi Guys, I'm wondering if it is possible to create multiple hotspots on an animated gif that are embedded in the gif file itself, instead of adding additional HTML to my page. Thanks
-
hi does some one implementd sort field use in img of maint plan and does dead line monitoring in ip3o whar are the benifits or scope
-
I have a table with 2 columns: code, description and I view the descriptions in the data drop-down list (4 lines). it works. I want that if I type a new string in the drop-list (it works) - so it should be added to the table as a new record, so the n
-
Hi Industry gurus I am confused.suppose there is question"How can I extend all material to a new plant? This question belong to technical side or function side and why? I will appreciate the response for the same.
-
Extracting data from Relational tables in 11.1.2.1
I want to extract the following data sets from relational tables 1. Attribute and its associated base member 2. Smartlist value of an account Does any one have a code to extract this kind of data? Even pointing to the correct table names will be help