Automatic created Java file error when compile JSP file
I got the following error message when i try to load the JSP file given below (FlightSearch.jsp). Given also below the JAVA files (flightsearch$jsp.java) created by the compiler.
Thanks for your help
Susan
Error message
org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
C:\jakarta-tomcat\work\client\localhost\client\client\flightsearch$jsp.java:320: 'catch' without 'try'.
} catch (Throwable t) {
^
C:\jakarta-tomcat\work\client\localhost\client\client\flightsearch$jsp.java:328: 'try' without 'catch' or 'finally'.
^
C:\jakarta-tomcat\work\client\localhost\client\client\flightsearch$jsp.java:328: '}' expected.
^
3 errors, 1 warning
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:285)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:536)
FlightSearch.jsp
<%@page import="java.util.*" errorPage="ErrorHandler.jsp"%>
<%@page import="com.client.entity.Flight"%>
<%@page import="com.client.wsclient.FlightServiceClient"%>
<H3>Available Flight List</H3>
<br>We have found the following Available flight(s) : </br>
<table border="0" cellpadding="0" cellspacing="0" width="100">
<tr>
<td width="10%" bgcolor="#808080"><b><font color="#FFFFFF">Flight Company</font></b></td>
<td width="10%" bgcolor="#808080"><b><font color="#FFFFFF">Flight Number</font></b></td>
<td width="10%" bgcolor="#808080"><b><font color="#FFFFFF">Depart From<font></b></td>
<td width="10%" bgcolor="#808080"><b><font color="#FFFFFF">Arrive</font></b></td>
<td width="10%" bgcolor="#808080"><b><font color="#FFFFFF">Departure Date</font></b></td>
<td width="10%" bgcolor="#808080"><b><font color="#FFFFFF">Departure Time</font></b></td>
<td width="10%" bgcolor="#808080"><b><font color="#FFFFFF">Arrival Date</font></b></td>
<td width="10%" bgcolor="#808080"><b><font color="#FFFFFF">Arrival Time</font></b></td>
<td width="10%" bgcolor="#808080"><b><font color="#FFFFFF">Adult Fare</font></b></td>
<td width="10%" bgcolor="#808080"><b><font color="#FFFFFF">Child Fare</font></b></td>
</tr>
<%
//Get the search information
String des = request.getParameter("DFrom");
String arr = request.getParameter("DTo");
String fy = request.getParameter(FYear.value);
String fm = request.getParameter(FMonth.value);
String fd = request.getParameter(FDay.value);
String f1 = fy + "-" + fm;
String FDat = f1 + "-" + fd;
String ty = request.getParameter(TYear.value);
String tm = request.getParameter(TMonth.value);
String td = request.getParameter(TDay.value);
String t1 = ty + "-" + tm;
String TDat = t1 + "-" + td;
String type;
if( request.getParameter(type[0].checked))
type = "Return";
else
{ type = "OneWay";
String clas;
if(request.getParameter(clas[0].checked))
{clas = "ECO";
else
{clas = "BUSS";}
String adult = request.getParameter(Adult.value);
String child = request.getParameter(Child.value);
//Get the server Flight Search Service URL
// ServerFlightSearchBO SFSBO = new ServerFlightSearchBO();
// ServerFlightSearch FlightSearch = SFSBO.getFlightSearchURL();
// FlightSearchServiceClient FSearchServiceClient = new FlightSearchServiceClient
String ServerFlightServiceURL = "http://localhost:7080/AServer/services/FlightService";
//Find available Flight
FlightServiceClient client = new FlightServiceClient(ServerFlightServiceURL);
ArrayList list = client.getFlight(des, arr, FDat, TDat, type, clas, adult, child);
Iterator it = list.iterator();
while (it.hasNext()){
Flight flt = (Flight)it.next();
%>
<tr>
<td width= "10%"><%=flt.getFlightComp()%></td>
<td width= "10%"><%=flt.getFlightNum()%></td>
<td width= "10%"><%=flt.getDestination()%></td>
<td width= "10%"><%=flt.getArrive()%></td>
<td width= "10%"><%=flt.getFrDate()%></td>
<td width= "10%"><%=flt.getFlightDptTm()%></td>
<td width= "10%"><%=flt.getToDate()%></td>
<td width= "10%"><%=flt.getFlightArrTm()%></td>
<%
int adt, chld;
int far_A, tot_A, far_C, tot_C;
adt = Integer.parseInt(adult);
far_A = flt.getAdultFr();
tot_A = adt * far_A;
chld = Integer.parseInt(child);
far_C = flt.getChildFr();
tot_C = chld * far_C;
%>
<td width= "10%"><%=tot_A%></td>
<td width= "10%"><%=tot_C%></td>
</tr>
<%
if(type = "Return")
FlightServiceClient client = new FlightServiceClient(ServerFlightServiceURL);
ArrayList list = client.getFlight(arr, des, FDat, TDat, type, clas, adult, child);
Iterator it = list.iterator();
while (it.hasNext()){
Flight flt = (Flight)it.next();
%>
<tr>
<td width= "10%"><%=flt.getFlightComp()%></td>
<td width= "10%"><%=flt.getFlightNum()%></td>
<td width= "10%"><%=flt.getFlightDpt()%></td>
<td width= "10%"><%=flt.getFlightArr()%></td>
<td width= "10%"><%=flt.getFlightDptDt()%></td>
<td width= "10%"><%=flt.getFlightDptTm()%></td>
<td width= "10%"><%=flt.getFlightArrDt()%></td>
<td width= "10%"><%=flt.getFlightArrTm()%></td>
<%
int adlt, chd;
int fare_A, totA, fare_C, totC;
adlt = Integer.parseInt(adult);
fare_A = flt.getAdultFr();
totA = adlt * fare_A;
chd = Integer.parseInt(child);
fare_C = flt.getChildFr();
totC = chd * fare_C;
%>
<td width= "10%"><%=totA%></td>
<td width= "10%"><%=totC%></td>
</tr>
<%
%>
</table>
flightsearch$jsp.java
package org.apache.jsp;
import java.util.*;
import com.client.entity.Flight;
import com.client.wsclient.FlightServiceClient;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
public class flightsearch$jsp extends HttpJspBase {
static {
public flightsearch$jsp( ) {
private static boolean jspxinited = false;
public final void jspxinit() throws org.apache.jasper.runtime.JspException {
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
JspFactory _jspxFactory = null;
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
String _value = null;
try {
if (_jspx_inited == false) {
synchronized (this) {
if (_jspx_inited == false) {
jspxinit();
jspxinited = true;
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html;ISO-8859-1");
pageContext = _jspxFactory.getPageContext(this, request, response,
"ErrorHandler.jsp", true, 8192, true);
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
// HTML // begin [file="/client/flightsearch.jsp";from=(0,59);to=(1,0)]
out.write("\r\n");
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(1,43);to=(2,0)]
out.write("\r\n");
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(2,58);to=(19,0)]
out.write("\r\n\r\n<H3>Available Flight List</H3>\r\n<br>We have found the following Available flight(s) : </br>\r\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100\">\r\n <tr>\r\n <td width=\"10%\" bgcolor=\"#808080\"><b><font color=\"#FFFFFF\">Flight Company</font></b></td>\r\n <td width=\"10%\" bgcolor=\"#808080\"><b><font color=\"#FFFFFF\">Flight Number</font></b></td>\r\n <td width=\"10%\" bgcolor=\"#808080\"><b><font color=\"#FFFFFF\">Depart From<font></b></td>\r\n <td width=\"10%\" bgcolor=\"#808080\"><b><font color=\"#FFFFFF\">Arrive</font></b></td>\r\n <td width=\"10%\" bgcolor=\"#808080\"><b><font color=\"#FFFFFF\">Departure Date</font></b></td>\r\n <td width=\"10%\" bgcolor=\"#808080\"><b><font color=\"#FFFFFF\">Departure Time</font></b></td>\r\n <td width=\"10%\" bgcolor=\"#808080\"><b><font color=\"#FFFFFF\">Arrival Date</font></b></td>\r\n <td width=\"10%\" bgcolor=\"#808080\"><b><font color=\"#FFFFFF\">Arrival Time</font></b></td>\r\n <td width=\"10%\" bgcolor=\"#808080\"><b><font color=\"#FFFFFF\">Adult Fare</font></b></td>\r\n <td width=\"10%\" bgcolor=\"#808080\"><b><font color=\"#FFFFFF\">Child Fare</font></b></td>\r\n </tr>\r\n");
// end
// begin [file="/client/flightsearch.jsp";from=(19,2);to=(66,0)]
//Get the search information
String des = request.getParameter("DFrom");
String arr = request.getParameter("DTo");
String fy = request.getParameter(FYear.value);
String fm = request.getParameter(FMonth.value);
String fd = request.getParameter(FDay.value);
String f1 = fy + "-" + fm;
String FDat = f1 + "-" + fd;
String ty = request.getParameter(TYear.value);
String tm = request.getParameter(TMonth.value);
String td = request.getParameter(TDay.value);
String t1 = ty + "-" + tm;
String TDat = t1 + "-" + td;
String type;
if( request.getParameter(type[0].checked))
type = "Return";
else
{ type = "OneWay";
String clas;
if(request.getParameter(clas[0].checked))
{clas = "ECO";
else
{clas = "BUSS";}
String adult = request.getParameter(Adult.value);
String child = request.getParameter(Child.value);
//Get the server Flight Search Service URL
// ServerFlightSearchBO SFSBO = new ServerFlightSearchBO();
// ServerFlightSearch FlightSearch = SFSBO.getFlightSearchURL();
// FlightSearchServiceClient FSearchServiceClient = new FlightSearchServiceClient
String ServerFlightServiceURL = "http://localhost:7080/AServer/services/FlightService";
//Find available Flight
FlightServiceClient client = new FlightServiceClient(ServerFlightServiceURL);
ArrayList list = client.getFlight(des, arr, FDat, TDat, type, clas, adult, child);
Iterator it = list.iterator();
while (it.hasNext()){
Flight flt = (Flight)it.next();
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(66,2);to=(68,18)]
out.write("\r\n<tr>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(68,21);to=(68,40)]
out.print(flt.getFlightComp());
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(68,42);to=(69,18)]
out.write("</td>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(69,21);to=(69,39)]
out.print(flt.getFlightNum());
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(69,41);to=(70,18)]
out.write("</td>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(70,21);to=(70,41)]
out.print(flt.getDestination());
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(70,43);to=(71,18)]
out.write("</td>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(71,21);to=(71,36)]
out.print(flt.getArrive());
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(71,38);to=(72,18)]
out.write("</td>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(72,21);to=(72,36)]
out.print(flt.getFrDate());
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(72,38);to=(73,18)]
out.write("</td>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(73,21);to=(73,41)]
out.print(flt.getFlightDptTm());
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(73,43);to=(74,18)]
out.write("</td>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(74,21);to=(74,36)]
out.print(flt.getToDate());
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(74,38);to=(75,18)]
out.write("</td>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(75,21);to=(75,41)]
out.print(flt.getFlightArrTm());
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(75,43);to=(76,1)]
out.write("</td>\r\n ");
// end
// begin [file="/client/flightsearch.jsp";from=(76,3);to=(87,1)]
int adt, chld;
int far_A, tot_A, far_C, tot_C;
adt = Integer.parseInt(adult);
far_A = flt.getAdultFr();
tot_A = adt * far_A;
chld = Integer.parseInt(child);
far_C = flt.getChildFr();
tot_C = chld * far_C;
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(87,3);to=(88,18)]
out.write("\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(88,21);to=(88,26)]
out.print(tot_A);
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(88,28);to=(89,18)]
out.write("</td>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(89,21);to=(89,26)]
out.print(tot_C);
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(89,28);to=(91,0)]
out.write("</td>\r\n</tr>\r\n");
// end
// begin [file="/client/flightsearch.jsp";from=(91,2);to=(100,0)]
if(type = "Return")
FlightServiceClient client = new FlightServiceClient(ServerFlightServiceURL);
ArrayList list = client.getFlight(arr, des, FDat, TDat, type, clas, adult, child);
Iterator it = list.iterator();
while (it.hasNext()){
Flight flt = (Flight)it.next();
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(100,2);to=(102,18)]
out.write("\r\n<tr>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(102,21);to=(102,40)]
out.print(flt.getFlightComp());
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(102,42);to=(103,18)]
out.write("</td>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(103,21);to=(103,39)]
out.print(flt.getFlightNum());
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(103,41);to=(104,18)]
out.write("</td>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(104,21);to=(104,39)]
out.print(flt.getFlightDpt());
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(104,41);to=(105,18)]
out.write("</td>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(105,21);to=(105,39)]
out.print(flt.getFlightArr());
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(105,41);to=(106,18)]
out.write("</td>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(106,21);to=(106,41)]
out.print(flt.getFlightDptDt());
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(106,43);to=(107,18)]
out.write("</td>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(107,21);to=(107,41)]
out.print(flt.getFlightDptTm());
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(107,43);to=(108,18)]
out.write("</td>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(108,21);to=(108,41)]
out.print(flt.getFlightArrDt());
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(108,43);to=(109,18)]
out.write("</td>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(109,21);to=(109,41)]
out.print(flt.getFlightArrTm());
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(109,43);to=(110,1)]
out.write("</td>\r\n ");
// end
// begin [file="/client/flightsearch.jsp";from=(110,3);to=(120,1)]
int adlt, chd;
int fare_A, totA, fare_C, totC;
adlt = Integer.parseInt(adult);
fare_A = flt.getAdultFr();
totA = adlt * fare_A;
chd = Integer.parseInt(child);
fare_C = flt.getChildFr();
totC = chd * fare_C;
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(120,3);to=(121,18)]
out.write("\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(121,21);to=(121,25)]
out.print(totA);
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(121,27);to=(122,18)]
out.write("</td>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(122,21);to=(122,25)]
out.print(totC);
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(122,27);to=(124,0)]
out.write("</td>\r\n</tr>\r\n");
// end
// begin [file="/client/flightsearch.jsp";from=(124,2);to=(126,0)]
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(126,2);to=(127,8)]
out.write("\r\n</table>");
// end
} catch (Throwable t) {
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (pageContext != null) pageContext.handlePageException(t);
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
i am very glad and appreciate for your help, but i would like to know how to get the value of a radio button.
like in another JSP file i have :
<input type="radio" name="type" value="Return" checked>
Return
<input type="radio" name="type" value="OneWay">
One Way
and when i try to get the value which is checked, i put
String type = request.getParameter(type.checked);
but this doesn't work,
i would be very appreciate for your help. Thank you
Similar Messages
-
Urgent,java Error when compiling class file for jsp
Hi!
Reference to statement is ambbiguous,both class java.sql.statement in java.sql and class.java.beans.statement in java beans match.
this is my file . When i comment the java.import.bean headre it does compile but my server is not able to recognize the class file.,Cud someone help me.
THis is my source file
package dbmg;
//import java.beans.*;
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class DbBean
Connection con;
ResultSet rs;
String sql;
boolean queryType;
int edited;
public DbBean() throws Exception
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con = DriverManager.getConnection("jdbc:odbc:Forums");
public void setQueryType(String s)
queryType=s.equalsIgnoreCase("select");
public void setSql(String s)
sql = s;
synchronized public void processRequest(HttpServletRequest req) throws
Exception
if (queryType)
Statement stmt=con.createStatement();
rs=stmt.executeQuery(sql);
else
PreparedStatement ps=null;
ps=con.prepareStatement(sql);
int count=0;
String sqlParam,paramValue;
boolean set=true;
while (set)
count++;
sqlParam="param"+String.valueOf(count);
if (sqlParam==null)
set=false;
continue;
paramValue=req.getParameter(sqlParam);
if (paramValue==null)
set=false;
continue;
else
paramValue=paramValue.trim();
try
ps.setString(count,paramValue);
catch(Exception ex)
set=false;
continue;
try
edited=ps.executeUpdate();
catch(SQLException e)
edited=0;
public Connection getConnection()
return con;
public ResultSet getResultSet()
return rs;
public int stored()
return edited;
public void closeCon() throws Exception
con.close();
rs = null;No need of commenting your import statement. Whenever there is ambiguity, you can use full class name (with package).
Like,
java.sql.Statement stmt=con.createStatement();
Now there is no ambiguity.
Sudha -
Exception-Error when excecuting JSP-File in Crystal reports for Eclipse
Hi,
I have created a jsp-File from an rpt-File in Crystal report for Eclipse. When I start the jsp-File on Apache Tomact 5.5 then only errors occurs.
Coud anyone help me?
HTTP Status 500 -
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: 6 in the generated java file
Only a type can be imported. com.crystaldecisions.report.web.viewer.CrystalReportViewer resolves to a package
An error occurred at line: 7 in the generated java file
Only a type can be imported. com.crystaldecisions.reports.sdk.ReportClientDocument resolves to a package
An error occurred at line: 8 in the generated java file
Only a type can be imported. com.crystaldecisions.sdk.occa.report.application.OpenReportOptions resolves to a package
An error occurred at line: 9 in the generated java file
Only a type can be imported. com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase resolves to a package
An error occurred at line: 10 in the generated java file
Only a type can be imported. com.crystaldecisions.sdk.occa.report.reportsource.IReportSource resolves to a package
An error occurred at line: 13 in the jsp file: /Bericht1-viewer.jsp
ReportClientDocument cannot be resolved to a type
10: try catch (ReportSDKExceptionBase e)
60:
An error occurred at line: 58 in the jsp file: /Bericht1-viewer.jsp
e cannot be resolved
55:
56:
57: } catch (ReportSDKExceptionBase e)
60:
61: %>
Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:93)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)
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:803)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.26 logs.
Apache Tomcat/5.5.26
Bericht1.jsp:
<%@page import="com.crystaldecisions.report.web.viewer.CrystalReportViewer,
com.crystaldecisions.reports.sdk.ReportClientDocument,
com.crystaldecisions.sdk.occa.report.application.OpenReportOptions,
com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase,
com.crystaldecisions.sdk.occa.report.reportsource.IReportSource"%><%
// This sample code calls methods from the JRCHelperSample class, which
// contains examples of how to use the BusinessObjects APIs. You are free to
// modify and distribute the source code contained in the JRCHelperSample class.
try {
String reportName = "Bericht1.rpt";
ReportClientDocument clientDoc = (ReportClientDocument) session.getAttribute(reportName);
if (clientDoc == null) {
// Report can be opened from the relative location specified in the CRConfig.xml, or the report location
// tag can be removed to open the reports as Java resources or using an absolute path
// (absolute path not recommended for Web applications).
clientDoc = new ReportClientDocument();
// Open report
clientDoc.open(reportName, OpenReportOptions._openAsReadOnly);
// Store the report document in session
session.setAttribute(reportName, clientDoc);
// ****** BEGIN CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET ****************
// Create the CrystalReportViewer object
CrystalReportViewer crystalReportPageViewer = new CrystalReportViewer();
// set the reportsource property of the viewer
IReportSource reportSource = clientDoc.getReportSource();
crystalReportPageViewer.setReportSource(reportSource);
// set viewer attributes
crystalReportPageViewer.setOwnPage(true);
crystalReportPageViewer.setOwnForm(true);
// Apply the viewer preference attributes
// Process the report
crystalReportPageViewer.processHttpRequest(request, response, application, null);
// ****** END CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET ****************
} catch (ReportSDKExceptionBase e) {
out.println(e);
%>
Thanks
ArnoldAccording to the release notes, for the JRCHelperSample to compile, you must set the target runtime for the project.
To do this, either create a project from scratch that uses the Tomcat 5.5 target runtime, or go to the properties menu and ensure that the target runtime is set to the application server you will be using. -
Getting error when placing jsp file in tomcat root folder
hello experts,
i have developed an application on netbeans 6.1 for mail.
It is working perfect when i run it from netbeans, but when we copy those jsp files to ROOT folder of tomcat5.5 server, it is showing me following error.
rg.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 14 in the jsp file: /Mailer1.jsp
Session cannot be resolved to a type
11: <%!
12: String nam = null, email = null, suggestion = null;
13: RequestDispatcher disp = null;
14: public static Session sess = null;
15:
16: %>
17: <%
An error occurred at line: 38 in the jsp file: /Mailer1.jsp
sess cannot be resolved
35:
36: //SecurityManager security = System.getSecurityManager();
37:
38: sess= Session.getInstance(props,new javax.mail.Authenticator() //if u uses getDefaultInstance it will raise Security Exception
39: {
40: protected PasswordAuthentication getPasswordAuthentication()
41: {
An error occurred at line: 38 in the jsp file: /Mailer1.jsp
Session cannot be resolved
35:
36: //SecurityManager security = System.getSecurityManager();
37:
38: sess= Session.getInstance(props,new javax.mail.Authenticator() //if u uses getDefaultInstance it will raise Security Exception
39: {
40: protected PasswordAuthentication getPasswordAuthentication()
41: {
An error occurred at line: 38 in the jsp file: /Mailer1.jsp
javax.mail.Authenticator cannot be resolved to a type
35:
36: //SecurityManager security = System.getSecurityManager();
37:
38: sess= Session.getInstance(props,new javax.mail.Authenticator() //if u uses getDefaultInstance it will raise Security Exception
39: {
40: protected PasswordAuthentication getPasswordAuthentication()
41: {
An error occurred at line: 45 in the jsp file: /Mailer1.jsp
sess cannot be resolved
42: return new PasswordAuthentication("[email protected]","ratatouille");
43: }
44: });
45: sess.setDebug(true);
46:
47:
48: //sess = Session.getDefaultInstance(props);
An error occurred at line: 50 in the jsp file: /Mailer1.jsp
Transport cannot be resolved to a type
47:
48: //sess = Session.getDefaultInstance(props);
49: //sess.setDebug(true);
50: Transport trans = sess.getTransport();
51: Message msg = new MimeMessage(sess);
52: msg.setRecipient(Message.RecipientType.TO, new InternetAddress("[email protected]"));
53: msg.setFrom(new InternetAddress(this.email));
An error occurred at line: 50 in the jsp file: /Mailer1.jsp
sess cannot be resolved
47:
48: //sess = Session.getDefaultInstance(props);
49: //sess.setDebug(true);
50: Transport trans = sess.getTransport();
51: Message msg = new MimeMessage(sess);
52: msg.setRecipient(Message.RecipientType.TO, new InternetAddress("[email protected]"));
53: msg.setFrom(new InternetAddress(this.email));
An error occurred at line: 51 in the jsp file: /Mailer1.jsp
Message cannot be resolved to a type
48: //sess = Session.getDefaultInstance(props);
49: //sess.setDebug(true);
50: Transport trans = sess.getTransport();
51: Message msg = new MimeMessage(sess);
52: msg.setRecipient(Message.RecipientType.TO, new InternetAddress("[email protected]"));
53: msg.setFrom(new InternetAddress(this.email));
54: msg.setSubject(this.nam);
An error occurred at line: 51 in the jsp file: /Mailer1.jsp
MimeMessage cannot be resolved to a type
48: //sess = Session.getDefaultInstance(props);
49: //sess.setDebug(true);
50: Transport trans = sess.getTransport();
51: Message msg = new MimeMessage(sess);
52: msg.setRecipient(Message.RecipientType.TO, new InternetAddress("[email protected]"));
53: msg.setFrom(new InternetAddress(this.email));
54: msg.setSubject(this.nam);
An error occurred at line: 51 in the jsp file: /Mailer1.jsp
sess cannot be resolved
48: //sess = Session.getDefaultInstance(props);
49: //sess.setDebug(true);
50: Transport trans = sess.getTransport();
51: Message msg = new MimeMessage(sess);
52: msg.setRecipient(Message.RecipientType.TO, new InternetAddress("[email protected]"));
53: msg.setFrom(new InternetAddress(this.email));
54: msg.setSubject(this.nam);
An error occurred at line: 52 in the jsp file: /Mailer1.jsp
Message.RecipientType.TO cannot be resolved to a type
49: //sess.setDebug(true);
50: Transport trans = sess.getTransport();
51: Message msg = new MimeMessage(sess);
52: msg.setRecipient(Message.RecipientType.TO, new InternetAddress("[email protected]"));
53: msg.setFrom(new InternetAddress(this.email));
54: msg.setSubject(this.nam);
55: msg.setContent(suggestion, "text/plain");
An error occurred at line: 52 in the jsp file: /Mailer1.jsp
InternetAddress cannot be resolved to a type
49: //sess.setDebug(true);
50: Transport trans = sess.getTransport();
51: Message msg = new MimeMessage(sess);
52: msg.setRecipient(Message.RecipientType.TO, new InternetAddress("[email protected]"));
53: msg.setFrom(new InternetAddress(this.email));
54: msg.setSubject(this.nam);
55: msg.setContent(suggestion, "text/plain");
An error occurred at line: 53 in the jsp file: /Mailer1.jsp
InternetAddress cannot be resolved to a type
50: Transport trans = sess.getTransport();
51: Message msg = new MimeMessage(sess);
52: msg.setRecipient(Message.RecipientType.TO, new InternetAddress("[email protected]"));
53: msg.setFrom(new InternetAddress(this.email));
54: msg.setSubject(this.nam);
55: msg.setContent(suggestion, "text/plain");
56: trans.connect();
Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:93)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)
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)
i m unable to find out the solution,
please help me to resolve it.
thnaks.Hi shams.hq,
I don't understand how you bother to copy an application in your server directories. It's really piece of cake to deploy with Tomcat.
All you have to do :
- with Netbeans, you build the project : a WAR file will be created in the dist directory of your project;
- launch the server, if it's not running;
- with your web browser, connect to the Tomcat Manager;
- from there, you may upload and deploy the WAR file of your project.
Et voilà ! Tomcat will unzip the WAR and install your classes and libraries at the right place. -
Rep-1247 error when starting jsp file on linux
I have a rather frustrating problem on our production servers...
We are trying to start jsp files on a linux report server (10Gr2).
The command is displayed below
[2007/10/8 10:57:59:853] Info 50132 (EngineImpl:setCommandLine): Get command line: baseUrl=http://xxxxx:7777/reports/rwservlet/getfile/ userid=reporting@SHARED_BE USER_AGENT=Java/1.5.0_07 SERVER_NAME=xxxxxxxxx jobname="/opt/ogreports/catalog/SMC/BE-Shared/xxxx.jsp" destpath="/var/data/og/dashboard/van/sgs/001/reports/xx" getFilestr=/no> imagekey=reports9i par_end_date="01-10-2007" desname=xxxxxxxxxxx.pdf REMOTE_ADDR=127.0.0.1 SERVER_PROTOCOL=HTTP/1.1 authid=RWUser par_start_date="01-09-2007" destype=rcpfile REMOTE_HOST=127.0.0.1 SERVER_PORT=7777 CONTENT_TYPE=application/x-www-form-urlencoded report="/opt/ogreports/catalog/SMC/BE-Shared/xxx.jsp" expiredays=0 baseimageurl=http://xxxxx:7777/reports/rwservlet/getfile/HW/YX+JkD0HSAcVLzaSGilrWNAn36ufghgStsvQqfNFC7w== schedule="00:00 Oct 08, 2007" scphost="lion" desformat=pdf SCRIPT_NAME=/rwservlet par_id_project="1750"
The after paramform does some major data manipulations, writing to temporary tables (on commit preserve rows), that are used in queries from the reports.
This seems to go allright. The setup of all queries, program units etc passes as well. But when the report has to start formatting, I get a "1247 Program Unit not compiled" error message. This is an excerpt from the engine trace
[2007/10/8 11:40:40:243] Debug 50103 (EngineImpl:getCacheData): Start
[2007/10/8 11:40:40:243] Debug 50103 (EngineImpl:getCacheData): m_jobId = 9182
[2007/10/8 11:40:40:244] Debug 50103 (EngineImpl:getCacheData): Quit
[2007/10/8 11:40:40:534] Error 50103 (C Engine): 10:40:40 ERR REP-1247: Report contains uncompiled PL/SQL.
[2007/10/8 11:40:40:535] Error 50103 (rwfdt:rwfdtprint): 10:40:40 ERR Error occurred sending Job output to cache
[2007/10/8 11:40:40:536] Error 50103 (rwfdt:rwfdtfl_FreeDistList): running
[2007/10/8 11:40:40:536] Error 50103 (rwfdt:rwfdtfl_FreeDistList): quit
[2007/10/8 11:40:40:580] Debug 50103 (EngineImpl:run): CRunReport returns: 1247
[2007/10/8 11:40:40:608] Debug 50103 (EngineImpl:run): Quit
[2007/10/8 11:40:40:699] Exception 1247 (): Report contains uncompiled PL/SQL.
oracle.reports.RWException: IDL:oracle/reports/RWException:1.0
at oracle.reports.engine.EngineImpl.run(EngineImpl.java:447)
at oracle.reports.engine._EngineClassImplBase._invoke(_EngineClassImplBase.java:90)
at com.sun.corba.se.internal.corba.ServerDelegate.dispatch(ServerDelegate.java:353)
at com.sun.corba.se.internal.iiop.ORB.process(ORB.java:280)
at com.sun.corba.se.internal.iiop.RequestProcessor.process(RequestProcessor.java:81)
at com.sun.corba.se.internal.orbutil.ThreadPool$PooledThread.run(ThreadPool.java:106)
I know that 1247 normally covers up another error, but I don't seem to get it....
Funny thing is, when copying the jsp's to another reports server, they do run (on the same DB).
Message was edited by:
user599601I have a rather frustrating problem on our production servers...
We are trying to start jsp files on a linux report server (10Gr2).
The command is displayed below
[2007/10/8 10:57:59:853] Info 50132 (EngineImpl:setCommandLine): Get command line: baseUrl=http://xxxxx:7777/reports/rwservlet/getfile/ userid=reporting@SHARED_BE USER_AGENT=Java/1.5.0_07 SERVER_NAME=xxxxxxxxx jobname="/opt/ogreports/catalog/SMC/BE-Shared/xxxx.jsp" destpath="/var/data/og/dashboard/van/sgs/001/reports/xx" getFilestr=/no> imagekey=reports9i par_end_date="01-10-2007" desname=xxxxxxxxxxx.pdf REMOTE_ADDR=127.0.0.1 SERVER_PROTOCOL=HTTP/1.1 authid=RWUser par_start_date="01-09-2007" destype=rcpfile REMOTE_HOST=127.0.0.1 SERVER_PORT=7777 CONTENT_TYPE=application/x-www-form-urlencoded report="/opt/ogreports/catalog/SMC/BE-Shared/xxx.jsp" expiredays=0 baseimageurl=http://xxxxx:7777/reports/rwservlet/getfile/HW/YX+JkD0HSAcVLzaSGilrWNAn36ufghgStsvQqfNFC7w== schedule="00:00 Oct 08, 2007" scphost="lion" desformat=pdf SCRIPT_NAME=/rwservlet par_id_project="1750"
The after paramform does some major data manipulations, writing to temporary tables (on commit preserve rows), that are used in queries from the reports.
This seems to go allright. The setup of all queries, program units etc passes as well. But when the report has to start formatting, I get a "1247 Program Unit not compiled" error message. This is an excerpt from the engine trace
[2007/10/8 11:40:40:243] Debug 50103 (EngineImpl:getCacheData): Start
[2007/10/8 11:40:40:243] Debug 50103 (EngineImpl:getCacheData): m_jobId = 9182
[2007/10/8 11:40:40:244] Debug 50103 (EngineImpl:getCacheData): Quit
[2007/10/8 11:40:40:534] Error 50103 (C Engine): 10:40:40 ERR REP-1247: Report contains uncompiled PL/SQL.
[2007/10/8 11:40:40:535] Error 50103 (rwfdt:rwfdtprint): 10:40:40 ERR Error occurred sending Job output to cache
[2007/10/8 11:40:40:536] Error 50103 (rwfdt:rwfdtfl_FreeDistList): running
[2007/10/8 11:40:40:536] Error 50103 (rwfdt:rwfdtfl_FreeDistList): quit
[2007/10/8 11:40:40:580] Debug 50103 (EngineImpl:run): CRunReport returns: 1247
[2007/10/8 11:40:40:608] Debug 50103 (EngineImpl:run): Quit
[2007/10/8 11:40:40:699] Exception 1247 (): Report contains uncompiled PL/SQL.
oracle.reports.RWException: IDL:oracle/reports/RWException:1.0
at oracle.reports.engine.EngineImpl.run(EngineImpl.java:447)
at oracle.reports.engine._EngineClassImplBase._invoke(_EngineClassImplBase.java:90)
at com.sun.corba.se.internal.corba.ServerDelegate.dispatch(ServerDelegate.java:353)
at com.sun.corba.se.internal.iiop.ORB.process(ORB.java:280)
at com.sun.corba.se.internal.iiop.RequestProcessor.process(RequestProcessor.java:81)
at com.sun.corba.se.internal.orbutil.ThreadPool$PooledThread.run(ThreadPool.java:106)
I know that 1247 normally covers up another error, but I don't seem to get it....
Funny thing is, when copying the jsp's to another reports server, they do run (on the same DB).
Message was edited by:
user599601 -
I install the Cumulative packages of PeopleSoft Enterprise Human Resources Management System and Campus Solutions 9.0 - Maintenance Pack 6 - Multi-Language for my HRCS system. After I deploy the COBOL files, I try to compile them. Most of the files can be compiled. However, when I compile of all 2007-2008 INAS COBOL programs using the file named inasbl07.mak, the error happed.
./inasbl07.mak : Convert INAS files for Unicode ....
INAS 2007-2008 Unicode conversion routine beginning on Wed Oct 21 16:04:20 CST 2009...
> Creating Work Area #1 folder...
> Creating Work Area #2 folder...
> Copying INAS 2007-2008 COBOL files to Work Area #1...
> Renaming INAS COBOL files in Work Area #1 to PS Standard...
> Executing COBOL Unicode Conversion on all INAS 2007-2008 COBOL files in Work Area #1...
Conversion Summary for Source Codes in :
Source: /opt/pt/inaswk07/
Target: /opt/pt/inaswk2/
Number of Copy Libraries Read: 15
Modified: 15
Not Modified: 0
Number of Programs Read: 17
Modified: 17
Not Modified: 0
> All INAS COBOL files converted for Unicode successfully and written
> to Work Area #2...
> Renaming INAS COBOL files back to original file names...
> Copying Converted INAS 2007-2008 COBOL files to COBOL Unicode Source area...
> All INAS 2007-2008 COBOL files successfully converted and staged.
INAS Unicode conversion routine ending on Wed Oct 21 16:04:21 CST 2009...
./inasbl07.mak : INAS Unicode Conversion step done...
.cbl not found : Error: File FMCALC07
I find one answer from metalink, it says: When transferring the INASBL07.cbl file, make sure it is transferred as binary. If you open the file on unix and there is an ^M at the end of the file, the compile will error. However, I copy the file using the command scp from another machine that can compile successfully and I don’t open the file, the error still happed.
My entironment :
RedHat4
weblogic 9.2
oracle database 10.2.0.1
peopletools 8.49
hrms and campus solution 9.0i am very glad and appreciate for your help, but i would like to know how to get the value of a radio button.
like in another JSP file i have :
<input type="radio" name="type" value="Return" checked>
Return
<input type="radio" name="type" value="OneWay">
One Way
and when i try to get the value which is checked, i put
String type = request.getParameter(type.checked);
but this doesn't work,
i would be very appreciate for your help. Thank you -
Error when precompile jsp files
I tried to precompile my jsp files by adding precompile functionality in my xml
file and I received this error during startup. Can anyone help?
java.lang.NullPointerException
at weblogic.servlet.jsp.Jsp2Java.makeReader(Jsp2Java.java:232)
at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:112)
at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:253
at weblogic.servlet.jsp.Precompiler.compileOne(Precompiler.java:124)
at weblogic.servlet.jsp.Precompiler.compile(Precompiler.java:44)
at weblogic.servlet.internal.WebAppServletContext.precompileJSPs(WebAppS
ervletContext.java:2003)
at weblogic.servlet.internal.dd.DescriptorLoader.initFromWebApp(Descript
orLoader.java:742)
at weblogic.servlet.internal.dd.DescriptorLoader.createServletContext(De
scriptorLoader.java:359)
at weblogic.servlet.internal.HttpServer.loadWARContext(HttpServer.java:4
67)
at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:404)
at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
at weblogic.j2ee.Application.addComponent(Application.java:133)
at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
oymentTarget.java:327)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
oymentTarget.java:143)
at weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServe
r.java:76)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
eanImpl.java:562)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
.java:548)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:285)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
55)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
at $Proxy29.addWebDeployment(Unknown Source)
at weblogic.management.configuration.WebServerMBean_CachingStub.addWebDe
ployment(WebServerMBean_CachingStub.java:1012)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
oymentTarget.java:313)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
oymentTarget.java:143)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
eanImpl.java:562)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
.java:548)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:285)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
55)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBean
s(ConfigurationMBeanImpl.java:409)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:287)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
55)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
at weblogic.management.internal.DynamicMBeanImpl.addDeployment(DynamicMB
eanImpl.java:866)
at weblogic.management.internal.DynamicMBeanImpl.addDeployment(DynamicMB
eanImpl.java:853)
at weblogic.management.internal.DynamicMBeanImpl.add(DynamicMBeanImpl.ja
va:838)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
eanImpl.java:566)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
.java:548)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:285)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
55)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
at $Proxy14.addTarget(Unknown Source)
at weblogic.management.mbeans.custom.ApplicationManager.autoDeploy(Appli
cationManager.java:486)
at weblogic.management.mbeans.custom.ApplicationManager.addApplication(A
pplicationManager.java:557)
at weblogic.management.mbeans.custom.ApplicationManager.addApplication(A
pplicationManager.java:504)
at weblogic.management.mbeans.custom.ApplicationManager.poll(Application
Manager.java:428)
at weblogic.management.mbeans.custom.ApplicationManager.poll(Application
Manager.java:380)
at weblogic.management.mbeans.custom.ApplicationManager.update(Applicati
onManager.java:152)
at weblogic.management.mbeans.custom.ApplicationManager.startAdminManage
r(ApplicationManager.java:205)
at weblogic.management.mbeans.custom.ApplicationManager.start(Applicatio
nManager.java:120)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
eanImpl.java:562)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
.java:548)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:285)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
55)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
at $Proxy3.start(Unknown Source)
at weblogic.management.Admin.startApplicationManager(Admin.java:1037)
at weblogic.management.Admin.finish(Admin.java:493)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:429)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)
at weblogic.Server.main(Server.java:35)is your webapp deployed as .war or as exploded format?
If it's war, there's a patch available that you can get it by contacting support
Kumar
buatapa wrote:
I tried to precompile my jsp files by adding precompile functionality in my xml
file and I received this error during startup. Can anyone help?
java.lang.NullPointerException
at weblogic.servlet.jsp.Jsp2Java.makeReader(Jsp2Java.java:232)
at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:112)
at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:253
at weblogic.servlet.jsp.Precompiler.compileOne(Precompiler.java:124)
at weblogic.servlet.jsp.Precompiler.compile(Precompiler.java:44)
at weblogic.servlet.internal.WebAppServletContext.precompileJSPs(WebAppS
ervletContext.java:2003)
at weblogic.servlet.internal.dd.DescriptorLoader.initFromWebApp(Descript
orLoader.java:742)
at weblogic.servlet.internal.dd.DescriptorLoader.createServletContext(De
scriptorLoader.java:359)
at weblogic.servlet.internal.HttpServer.loadWARContext(HttpServer.java:4
67)
at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:404)
at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
at weblogic.j2ee.Application.addComponent(Application.java:133)
at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
oymentTarget.java:327)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
oymentTarget.java:143)
at weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServe
r.java:76)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
eanImpl.java:562)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
java:548)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:285)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
55)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
at $Proxy29.addWebDeployment(Unknown Source)
at weblogic.management.configuration.WebServerMBean_CachingStub.addWebDe
ployment(WebServerMBean_CachingStub.java:1012)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
oymentTarget.java:313)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
oymentTarget.java:143)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
eanImpl.java:562)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
java:548)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:285)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
55)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBean
s(ConfigurationMBeanImpl.java:409)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:287)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
55)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
at weblogic.management.internal.DynamicMBeanImpl.addDeployment(DynamicMB
eanImpl.java:866)
at weblogic.management.internal.DynamicMBeanImpl.addDeployment(DynamicMB
eanImpl.java:853)
at weblogic.management.internal.DynamicMBeanImpl.add(DynamicMBeanImpl.ja
va:838)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
eanImpl.java:566)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
java:548)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:285)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
55)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
at $Proxy14.addTarget(Unknown Source)
at weblogic.management.mbeans.custom.ApplicationManager.autoDeploy(Appli
cationManager.java:486)
at weblogic.management.mbeans.custom.ApplicationManager.addApplication(A
pplicationManager.java:557)
at weblogic.management.mbeans.custom.ApplicationManager.addApplication(A
pplicationManager.java:504)
at weblogic.management.mbeans.custom.ApplicationManager.poll(Application
Manager.java:428)
at weblogic.management.mbeans.custom.ApplicationManager.poll(Application
Manager.java:380)
at weblogic.management.mbeans.custom.ApplicationManager.update(Applicati
onManager.java:152)
at weblogic.management.mbeans.custom.ApplicationManager.startAdminManage
r(ApplicationManager.java:205)
at weblogic.management.mbeans.custom.ApplicationManager.start(Applicatio
nManager.java:120)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
eanImpl.java:562)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
java:548)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:285)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
55)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
at $Proxy3.start(Unknown Source)
at weblogic.management.Admin.startApplicationManager(Admin.java:1037)
at weblogic.management.Admin.finish(Admin.java:493)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:429)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)
at weblogic.Server.main(Server.java:35) -
Error when compiling logic file
Hi there folks,
I have a strange problem when compiling a logic file that I haven't seen before, and I can't seem to find an answer for it anywhere so I'm hoping you can help.
I have a simply piece of script logic that begins with the normal *XDIM_MEMBERSET section, specifically one line:
*XDIM_MEMBERSET DATASRC = INPUT
I have a dimension called DATASRC, and a member in that dimension called INPUT, so there is nothing strange here.
However, when I try to validate the script I get the following error message:
"Error: Unlimited recursion using a user defined function in line : *XDIM_MEMBERSET DATASRC=INPUT"
There is nothing wrong with this line, and it certainly isn't a user-defined function!
I can't find anything about this in the SAP Notes, and have never seen this error before - any ideas that could help?
Thanks very much in advance.
JasonFirst, always define your version, so we can isolate our test or idea in a similar version.
Next, If you modify the statement for any other combination of both DataSrc=[someothermember] and otherDIm=[othermember] and run the validation, does it fail? If you were to run say Account=Input, would that fail? If you rename INPUT to INPUTS, does it then V&P?
Is there any statement in a constants file that use INPUT?
My idea is to try to isolate if the issue is with the member, or dimension or both, or neither and related to BPC code. Then if the problem doesn't resolve, you have tests for teh BPC Support team.
Hope that helps. -
Unsupported file error when uploading video file to iTunes U
I downloaded one of my video file and remove the track afterwards. However, when I trying to reload the video files back to the site again, I got "Unsupported File" error for some of them. My files are withing 50MB ~ 500 MB range, codec of H.264 and AAC.
Any suggestions/Could someone please give some suggestions? I've been stuck with these "Unsupported File" for a week...
-
File error when importing .mp4 files
Hi there,
I have a problem concerning importing files.
I had some .mkv files, which I converted to .mp4 files with just 1 audio track and no subtitles using Handbrake.
Problem is, I can't import these files into Final Cut Pro 7.
It gives the following error:
"File error: 1 file(s) recognized, 0 access denied, 1 unknown."
I have no problem importing .avi files, or .mp4 files that haven't been converted.
Does anyone know what I should do? I don't know any other program to convert .mkv files, so basically, I'm bound to using Handbrake.
Thanks in advance!!I didn't know Handbrake was such a bad tool.
I never did much video-editing before, so I usually used iMovie, and the Handbrake-converted files worked fine with that.
And I did what you said, I converted the video to .mov with MPEG Streamclip, using the mentioned presets, but now I have another problem.
A 22 minute file, which was 360MB before converting, turned into a 6.2GB file after converting.
Since I use videoclips from a TV Serie, which has over 60 episodes, this is going to cost a lot of space. Is there any way to reduce the filesize without destroying the video quality, or is there any, ANY, way to make FCP accept .mp4 files?
I don't care if it slows down my Mac or anything, it's just that I know it's possible, with the 700MB file from one of my posts above. -
Error while compiling JSP file from glassfish server
Hello, I have created a single page with only one text box using Netbeans and Visual Web Pack and deployed it on to Glassfish Build44 server. Deployed okay. But when I try to open the page I get the following error. But the same project when I create on studio creator and deploy to Sun java App Server that comes with creator, it works fine. Any help would be really useful.
Error:
ApplicationDispatcher[MAReports] PWC1231: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: /Page1.jsp(5,60) PWC6341: According to the TLD, deferred-value is specified for the attribute id of the tag handler com.sun.webui.jsf.component.PageTag, but the argument for the setter method is not a javax.el.ValueExpression.
I have tried 2 diff version of jdk1.5.0_06 and jdk1.5.0_12. No use. It is all running under win env. I saw couple google hits on this error. But no real solution that I could see.
Thanks in Advance.Hi,
I had the same problem i think:
PWC1406: Servlet.service() for servlet Faces Servlet threw exception com.sun.rave.web.ui.appbase.ApplicationException: org.apache.jasper.JasperException: /login.jsp(5,60) PWC6341: According to the TLD, deferred-value is specified for the attribute id of the tag handler com.sun.webui.jsf.component.PageTag, but the argument for the setter method is not a javax.el.ValueExpression at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.cleanup(ViewHandlerImpl.java:559) at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:290) at .............
I work on GlassFish v2 running on ubuntu server, I develop from netbeans 5.5.1 on windows xp.
I resolved the problems in the war file of my application, the lib directory as some library missing, and some seem do not work correctely. I dont know precicely the problemes. but i resolve it copynig and past lib directory from another working project.
The problemes seem to be in the war lib this what i can tell.
sorry for my english
Regards, and good job!!! -
""." expected" error when compiling jsp page
Hi all,
I moved to develop all my applications from IBM WASD to JDeveloper but when I compile the projects in JDev, there's error ""." expected" for nearly all jsp pages. But these jsp pages for sure are working very well since almost of them are in production.
Could you help me to get rid of this.
Thanks in advance.<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@page language = "java"
contentType = "text/html"
session = "true"
autoFlush = "true"
import = "java.util.*,java.sql.*,C_DBHandler"
buffer = "4kb"
isThreadSafe = "true"
info = "Common File"
%>
<jsp:useBean id="hndQuery" scope="page" class="C_DBHandler" />
<%
// these are the application settings included in the pages where needed
String txtQuery = ""; // SQL statement
String ipaddress = "";
String ipport = "";
String virtualdir = "";
String rowdisplay = "";
hndQuery.doConnect((String)request.getAttribute("DB_DRIVER"),
(String)request.getAttribute("URL_CONNECTION"),
(String)request.getAttribute("CMN.USER_ID"),
(String)request.getAttribute("CMN.USER_PASS"));
txtQuery = "select ip_address, ip_port, virtual_dir, row_display from xserver_config where environment='Live' and application='M13000'";
hndQuery.doSelect (txtQuery, 1);
if (hndQuery.getRowCount() > 0)
hndQuery.moveFirst ();
ipaddress = hndQuery.getColumn("IP_ADDRESS");
ipport = hndQuery.getColumn("IP_PORT");
virtualdir = hndQuery.getColumn("VIRTUAL_DIR");
rowdisplay = hndQuery.getColumn("ROW_DISPLAY");
request.setAttribute("CE_SERVER", ipaddress+":"+ipport+"/"+virtualdir);
request.setAttribute("ROW_DISPLAY", rowdisplay);
hndQuery.doDisConnect();
hndQuery.finalize();
%><HTML>
<HEAD>
<META name="GENERATOR" content="IBM WebSphere Studio">
</HEAD>
</HTML>
The jsp page is as above. And the error line is line 1. It 's always line 1 no matter what content of that line. -
" ')' expected " Error when compile jsp that use useBean tag
I'm using JDeveloper 10.1.3 and I have a page with a next jsp tag
<jsp:useBean id="objectid" type="package.MyClass" scope="application"/>
When I compile this JSP page, I got the error:
')' expected
If the application is deployed in the J2EE container like Tomcat or OC4J, the page works fine.
Is this a JDeveloper bug?? What Can I do?The JSP page works fine in OC4J 10.1.2, but in the OC4J 10.1.3 it throws the same error.
The soruce code that the container generates is this:
if ((objectid= (package.MyClass) pageContext.getAttribute( "objectid", PageContext.APPLICATION_SCOPE)) == null) {
throw new InstantiationException("No se ha encontrado el bean "objectid" en el ámbito "application"");
The bug consist in the generation of the servlet source code. The double quotation is the problem, for that, the compiler generates the error ')' expected... -
Error message when compiling book "file is corrupt" referring to a photo. Or "cannot find original photo". Can you use photos that have been "edited" out of "Book Mode"?
I did copy it to my desktop, but it still won't let me open it. I think the file on the disc might be corrupt or something like that though the cd itself checks out fine as far as viruses go. I was able to verify the disc, but that's about it. My husband tried it on his iMac and we have the same issue. It's unzipping the folder, but won't let us open the folder on both the Mac Book Pro or the iMac by double clicking, going to file/open or right clicking. It just keeps saying the same message as I posted above. I think I'm just going to have the client put the pictures on either a memory card or a USB memory stick so she won't have to compress the files for zipping purposes. It's been too frustrating trying to open this folder on this cd she gave me. She said she created/zipped the cd on her Mac Book Pro but it sure won't open on mine.
-
Errors in log when compiling .CHM files (RH10)
Hello,
For some of our projects, some writers are seeing the following errors when compiling HTML help.
The errors refer to .htm files that do not belong to the project (and they never have). The .htm files are not listed in the root.fpj file, in the project folder, or in source control (Visual SourceSafe). Other writers can open the project and compile without errors, so it suggests that the writer encountering the error has some phantom files on their machine that the compiler is referencing.
We are seeing this with multiple projects, so I thought it was time to ask if anyone else has seen it or knows what might be causing it. It does not seem to have any effect on the .CHM file...everything looks like it is working. But it makes me uncomfortable to publish files knowing there were errors when compiling them.
Thanks,
AmyHi Amy
As you state others have no issues, it would seem to be related to the setup on those writers' machines.
I think I'd approach it like this. Since you are referencing source control, this would mean the real content exists in the source control server. So you should be safe in totally clearing out the Working Folders of the affected PCs. So start there. Delete all files from the working folders of one of the affected PCs. Then open one of the projects that was issuing the warnings (your image listed simple warnings, not errors). This action should cause only the needed files to be copied down from the server.
Then compile and my guess is that the issue will have resolved itself.
And last but not least, I'd also ensure I had a decent backup of the folders in question before I did anything.
Cheers... Rick
Maybe you are looking for
-
location of file is on wrong drive. Says F drive, but really on C after downloading. Then it says missing file and then I cannot reconnect.
-
Fastest way to get overset textframes
What is the fastest way to get overset Textframes?
-
My Z30 is the better mouse trap! However Link has a long way to go to obtain the level of performance of DM. Only syncing Contacts and Calendar is short of the mark. Link is slow - takes 25 minutes to one-way sync my Outlook data (standalone.) BTW th
-
BizTalk Configuration 2013 issue - Error in Group configuration
Hi, I am configuring BizTalk 2013 in a Virtual machine and SQL server 2012 in another Virtual machine. I have successfully configured the SSODB database. while configuring the Group's i am getting following error. " exception of type System.Enterpri
-
My Computer crashed and when i did installed CS, i had the following problem: Photoshop CS in finnish version and when i did try to install CS2 Premium UK version it stops, because it can not find finnish there. I did get help from this forum, when i