XML syntax error in a JSP page.
Hi,
i was trying to include xml syntax in a jsp page in stead of core jsp syntax. it didn't work.But the jsp document with the core jsp syntax works. I'm wondering what's the problem.any help would be really helpful. I'm using Tomcat 3.2.1.
Thanx in adv,
Ganesh
JSP file - NOT WORKING
<jsp:directive.page import="java.util.Date"/>
<jsp:declaration>
private static String loadTime = new Date().toString();
private static String getLoadTime() { return loadTime; }
private static String getCurrentTime() { return new Date().toString(); }
</jsp:declaration>
<HTML>
<HEAD><TITLE>XML and JSP</TITLE></HEAD>
<BODY>
JSP page is created using XML syntax...<BR>
This page was loaded into memory at <%= getLoadTime() %>.<BR>
The current time is <%= getCurrentTime() %>
</BODY>
</HTML>
ERROR :
Error: 500
Location: /test/declarations.jsp
Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile class for JSPC:\tomcat321\tomcat\work\localhost_8080%2Ftest\_0002fdeclarations_0002ejspdeclarations_jsp_6.java:59: Method getLoadTime() not found in class _0002fdeclarations_0002ejspdeclarations_jsp_6.
out.print( getLoadTime() );
^
C:\tomcat321\tomcat\work\localhost_8080%2Ftest\_0002fdeclarations_0002ejspdeclarations_jsp_6.java:65: Method getCurrentTime() not found in class _0002fdeclarations_0002ejspdeclarations_jsp_6.
out.print( getCurrentTime() );
^
2 errors
Hi,
any help on this question would be really appreciated..
Thanx in adv,
Ganesh
Similar Messages
-
How to display XML file(as markup) in jsp page..?
Hi All,
* I have to display the XML file(as markup) in jsp page (Tree Format)....
* My XML file is an java.io.file object , and how to view this XML file on my JSP page...........
Thanks in Advance,
JavaImranYou mean you want to see the XML source?
You need to replace the characters '<' and '&' with corresponding entities '<' and '&'. You can use replaceAll, but do the ampersands first.
Then I suggest you probably want to put them in a <PRE> block. -
Syntax error when using jsp:include...
@ all
I get a syntax error at the jsp:include line, character "";
Can anybody help me with that issue?
Jürgenselect coalesce(col1,col2) joined_col, col3, sum(col4), col5 from data group by joined_col,col5You cannot use a column alias like this directly inside the group-by clause. You will have to rewrite this to:
select coalesce(col1,col2) joined_col, col3, sum(col4), col5 from data group by coalesce(col1,col2),col5Furthermore I assume that the 'col5' in the group by should be 'col3', not?
Or vice-verse the 'col3' inside the select-list should be 'col5'... -
Hi,
While running JSP page in weblogic I am getting following error.
java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:396)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProperty(SAXParserImpl.java:395)
at weblogic.xml.jaxp.WebLogicSAXParser.setProperty(WebLogicSAXParser.java:117)
at weblogic.xml.jaxp.RegistrySAXParser.setProperty(RegistrySAXParser.java:117)
at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:246)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
at org.apache.axis.serviceContext.ServiceContext.updateImplicitHeader(ServiceContext.java:269)
at com.cognos.developer.schemas.bibus._3.ContentManagerServiceStub.query(ContentManagerServiceStub.java:4907)
at jsp_servlet._pages.__viewreports._jspService(__viewreports.java:166)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:272)
at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:380)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:298)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:165)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3153)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1973)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1880)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1310)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
I am using jdk1.5. And I am using this jsp page for cognos connection.swattiii.....yaar..u are tring to put a null value inside hashtable..prbly u are doing this in ur jsp......
send ur jsp code -
Error in a jsp page...
Hi guys,
i'm a new user of Jsf and i've this error when i run my first application:
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: javax.servlet.jsp.JspException: Component javax.faces.component.UIViewRoot@5b38d7 not expected type. Expected: UIOutput. Perhaps you're missing a tag?
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:821)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
org.apache.jsp.pages.Login_jsp._jspService(Login_jsp.java:97)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
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.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.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:670)
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:637)
org.apache.jsp.index_jsp._jspService(index_jsp.java:43)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
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)
root cause
java.lang.IllegalStateException: Component javax.faces.component.UIViewRoot@5b38d7 not expected type. Expected: UIOutput. Perhaps you're missing a tag?
com.sun.faces.taglib.html_basic.OutputTextTag.setProperties(OutputTextTag.java:90)
javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:712)
javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:429)
com.sun.faces.taglib.html_basic.OutputTextTag.doStartTag(OutputTextTag.java:155)
org.apache.jsp.pages.Login_jsp._jspx_meth_h_outputText_0(Login_jsp.java:113)
org.apache.jsp.pages.Login_jsp._jspService(Login_jsp.java:80)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
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.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.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:670)
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:637)
org.apache.jsp.index_jsp._jspService(index_jsp.java:43)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
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)
note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.
How can i solve it?
i post you my Login.jsp and config files
Login.jsp
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<html>
<head>
<title>
<h:outputText value="MicroArray Classifier"/>
</title>
</head>
<body>
<f:view>
<h:form>
<table cellpadding="0" cellspacing="0">
<tr>
<td>
<h:graphicImage alt="Welcome to MicroArray Application" title="Welcome to MicroArray Application" url="/images/srfc_gourcuff1.jpg" width="170" height="200"/>
</td>
<td>
<table cellpadding="5" cellspacing="4">
<tr>
<td colspan="2">
<font faces="Arial,sans serif" size="5">
<h:outputText value="Welcome to MicroArray Application"/>
</font>
</td>
</tr>
<tr>
<td>
<h:outputLabel for="userNameInput" >
<h:outputText value="Enter Your Name"/>
</h:outputLabel>
</td>
<td>
<h:inputText id="userName Input" maxlength="30" size="20"/>
</td>
</tr>
<tr>
<td>
<h:outputLabel for="passwordInput">
<h:outputText value="Password"/>
</h:outputLabel>
</td>
<td>
<h:inputSecret id="passwordInput" maxlength="30" size="20"/>
</td>
</tr>
<tr>
<td>
<h:outputLabel for="Group Input">
<h:outputText value="Enter Your Group"/>
</h:outputLabel>
</td>
<td>
<h:inputText id="Group Input" maxlength="30" size="20"/>
</td>
</tr>
<tr>
<td>
<h:commandButton action="Ok" value="Submit" title="submit"/>
</td>
</tr>
</table>
</td>
</tr>
</table>
</h:form>
</f:view>
</body>
</html> web.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>client</param-value>
</context-param>
<filter>
<filter-name>ExtensionsFilter</filter-name>
<filter-class>
org.apache.myfaces.component.html.util.ExtensionsFilter
</filter-class>
<init-param>
<param-name>uploadMaxFileSize</param-name>
<param-value>100m</param-value>
</init-param>
<init-param>
<param-name>uploadThresholdSize</param-name>
<param-value>100k</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>ExtensionsFilter</filter-name>
<servlet-name>FacesServlet</servlet-name>
</filter-mapping>
<servlet>
<servlet-name>FacesServlet</servlet-name>
<servlet-class>
javax.faces.webapp.FacesServlet
</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>FacesServlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>FacesServlet</servlet-name>
<url-pattern>*.faces</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>
faces-config.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
"http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
<faces-config>
<managed-bean>
<managed-bean-name>myBean</managed-bean-name>
<managed-bean-class>giu.MyBean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<navigation-rule>
<from-view-id>/pages/Login.jsp</from-view-id>
<navigation-case>
<from-outcome>Ok</from-outcome>
<to-view-id>/pages/MyForm.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/pages/MyForm.jsp</from-view-id>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/pages/MyResult.jsp</to-view-id>
</navigation-case>
</navigation-rule>
</faces-config>Can you help me please?I'm inexpert...<title>
<h:outputText value="MicroArray Classifier"/>
</title>You cannot put faces elements outside the f:view.
Put it in a f:subview.
<title>
<f:subview id="title">
<h:outputText value="MicroArray Classifier"/>
</f:subview>
</title> -
I have an error showing up for my JSP page, where no error should be.
The page looks like:
<%@ page import="atg.servlet.ServletUtil" %>
<%@ taglib uri="dsp" prefix="dsp" %>
<%@ taglib uri="c" prefix="c" %>
<dsp:page>
<dsp:importbean bean="/rh/configurator/service/ProductService"/>
<dsp:importbean bean="/atg/dynamo/droplet/ForEach"/>
<dsp:importbean bean="/rh/configurator/Configuration"/>
<dsp:importbean bean="/rh/configurator/formhandler/ConfiguratorFormHandler"/>
<dsp:importbean bean="/rh/configurator/droplet/PossibleOptionsDroplet"/>
<p>
<dsp:valueof bean="Configuration.question[bean:ProductService.currentSize]"/>
<!-- Current index = <dsp:valueof bean="ProductService.currentIndex"/> -->
</p>
<dsp:form method="post" action="<%= ServletUtil.getDynamoRequest(request).getRequestURI() %>" name="myform" synchronized="/rh/configurator/service/ProductService">
<%-- Use a list box rather than a combo box. --%>
<dsp:select bean="ConfiguratorFormHandler.propertyValue" onchange="document.myform.addPropertyValue.click();" size="20" style="width: 200px">
<dsp:droplet name="PossibleOptionsDroplet">
<dsp:param name="productService" bean="ProductService"/>
<dsp:oparam name="output">
<dsp:droplet name="ForEach">
<dsp:param name="array" param="options"/>
<dsp:param name="sortProperties" value="+value"/>
<dsp:oparam name="outputStart">
<dsp:option value="" selected="<%= true %>">Select...</dsp:option>
</dsp:oparam>
<dsp:oparam name="output">
<dsp:param name="item" param="element"/>
<dsp:option paramvalue="item.id">
<dsp:valueof param="item.value"/>
</dsp:option>
</dsp:oparam>
</dsp:droplet>
</dsp:oparam>
</dsp:droplet>
</dsp:select>
<dsp:input type="submit" name="addPropertyValue" bean="ConfiguratorFormHandler.addPropertyValue" value="Go">
</dsp:form>
</dsp:page>[/code:1:92ab377bb2]
And the error is on the first <dsp:option> tag, where the "Select..." text is.
The error has a tooltip description, but there is no corresponding description in the Problems tab. I copied down the description as the following:
Syntax error on token "}", try expected on this token.
Syntax error, insert "}" to complete MethodBody.
Syntax error, insert "}" to complete Block.
Syntax error, insert "Finally" to complete try statement.
But... well, there's barely any java in this page. I don't know where this error is coming from, or how to find the compiled class associated with it.
Any ideas on how to fix this?
Will ([email protected]).Okay, fixed.
<dsp:input type="submit" name="addPropertyValue" bean="ConfiguratorFormHandler.addPropertyValue" value="Go">[/code:1:703fdcee35]
should have been:
[code:1:703fdcee35]<dsp:input type="submit" name="addPropertyValue" bean="ConfiguratorFormHandler.addPropertyValue" value="Go"/>[/code:1:703fdcee35]
Still a strange error, though. -
XML transformation using XSLT in JSP page
Hi,
Please help, I'm getting this error when I try to render my xml file using an xsl style sheet in my JSP page. Am I missing a JAR? Thanks
Error 500: org/apache/xalan/xslt/XSLTInputSource
Here's xsl file
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method='html' version='1.0' encoding='UTF-8' indent='yes'/>
<xsl:template match="/">
<html>
<body>
<h2>My CD Collection</h2>
<table border="1">
<tr>
<th align="left">Title</th>
<th align="left">Artist</th>
</tr>
<xsl:for-each select="catalog/cd">
<tr>
<td><xsl:value-of select="title"/></td>
<td><xsl:value-of select="artist"/></td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
And here's my JSP page
<%@taglib uri="http://jakarta.apache.org/taglibs/xsl-1.0" prefix="xsl"%>
<html>
<head><title>Phone Book</title></head>
<body>
<xsl:apply xml="/xml/book.xml" xsl="/xml/book.xsl" />
</body>
</html>
And here's my xml file
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Edited with XML Spy v4.2 -->
<catalog>
<cd>
<title>Empire Burlesque</title>
<artist>Bob Dylan</artist>
<country>USA</country>
<company>Columbia</company>
<price>10.90</price>
<year>1985</year>
</cd>
<cd>
<title>Hide your heart</title>
<artist>Bonnie Tyler</artist>
<country>UK</country>
<company>CBS Records</company>
<price>9.90</price>
<year>1988</year>
</cd>
</catalog>i would think the browser should be able do the transformation itself, rather than having to do this transformation on the server.
If you want to do this on the server, you can always try adding xalan.jar, xml-apis.jar and xercesImpl.jar to your server's lib directory, downloaded from
apache.org -
I have created a simple web application and using tomcat 5. when i try accessing my jsp page..it just gives an error message..HTTP Status 404...The requested resource (/carnhotel/date.jsp) is not available.
however, it works fine when i deploy in default applications (servlet-examples, jsp-examples,root)...plz help..How are you deploying this web application? Just in the webapps >directory?iewebapps/carnhotel/date.jsp?i have deployed in the webapps directory with the same directory structure...and also WEB-INF/web.xml
also, when i open tomcat admin console...click on host(localhost/context(/carnhotel))..displays an error ...
HTTP Status 500 - Error retrieving attribute debug
type Status report
message Error retrieving attribute debug
description The server encountered an internal error (Error retrieving attribute debug) that prevented it from fulfilling this request.
thnx...
. -
Error while deploying .jsp page
Hi all,
I created a single sample jsp page using jdeveloper and moved this jsp file to $OA_HTML. This page will be called from existing apps jsp page through hyperlink. When i click the hyperlink request passed for my jsp page but the following error occured,
"You are not authorized to access ABC.jsp".
What may be the problem. Do we have to register a jsp page. I already bounced the server.
Thanks,
KannanKannan,
seems to be obvious that the directory you are trying to access is security protected. So you need to logon
Frank -
Hi,
I managed to connect to the DB using sql developer.
But when i try to run the jsp page that i create.
it gives me the following error:
While trying to retrieve the URL: http://192.168.1.64:8988/StaffDirectorySystem-ViewController-context-root/addUser.jsp
The following error was encountered:
Connection Failed
The system returned:
(113) No route to hostThe remote host or network may be down. Please try the request again.
Your cache administrator is root.
Can anyone please advise me on what is wrong?
Thanks and regards,
EstherHI frank,
I can accessed the DB within jdeveloper.
But i do not understand when i get the error message still.
The error message i got is:
ERROR
The requested URL could not be retrieved
While trying to retrieve the URL: http://192.168.1.64:8988/StaffDirectorySystem-ViewController-context-root/deleteStaff.jsp
The following error was encountered:
Connection Failed
The system returned:
(113) No route to hostThe remote host or network may be down. Please try the request again.
Your cache administrator is root.
I am using hibernate:
<property name="connection.url">jdbc:oracle:thin:@localhost:1521:orcl</property> -
Wireld 500 Internal Server Error in my JSP page
My JSP page (maed by ADF) works good for about one week but after that it gives error:
500 Internal Server Error
javax.faces.el.EvaluationException: javax.faces.FacesException: javax.faces.FacesException: Can't instantiate class: 'invoiceEntry'.. class invoiceEntry : java.lang.NullPointerException
Would some one help tell me what the issue could be?
Here is the whole error message:
500 Internal Server Error
javax.faces.el.EvaluationException: javax.faces.FacesException: javax.faces.FacesException: Can't instantiate class: 'invoiceEntry'.. class invoiceEntry : java.lang.NullPointerException at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:206) at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:154) at oracle.adf.view.faces.bean.FacesBeanImpl.getProperty(FacesBeanImpl.java:55) at oracle.adfinternal.view.faces.renderkit.core.xhtml.ValueRenderer.getValue(ValueRenderer.java:63) at oracle.adfinternal.view.faces.renderkit.core.xhtml.ValueRenderer.getConvertedString(ValueRenderer.java:32) at oracle.adfinternal.view.faces.renderkit.core.xhtml.OutputTextRenderer.encodeEnd(OutputTextRenderer.java:56) at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeEnd(CoreRenderer.java:163) at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624) at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeChild(CoreRenderer.java:236) at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeAllChildren(CoreRenderer.java:255) at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelLabelAndMessageRenderer.renderFieldCellContents(PanelLabelAndMessageRenderer.java:59) at oracle.adfinternal.view.faces.renderkit.core.xhtml.LabelAndMessageRenderer._renderFieldCell(LabelAndMessageRenderer.java:293) at oracle.adfinternal.view.faces.renderkit.core.xhtml.LabelAndMessageRenderer.encodeAll(LabelAndMessageRenderer.java:163) at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeEnd(CoreRenderer.java:159) at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624) at oracle.adfinternal.view.faces.uinode.UIComponentUINode._renderComponent(UIComponentUINode.java:317) at oracle.adfinternal.view.faces.uinode.UIComponentUINode.render(UIComponentUINode.java:262) at oracle.adfinternal.view.faces.uinode.UIComponentUINode.render(UIComponentUINode.java:239) at oracle.adfinternal.view.faces.ui.BaseRenderer.renderChild(BaseRenderer.java:412) at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:330) at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:222) at oracle.adfinternal.view.faces.ui.BaseRenderer.renderContent(BaseRenderer.java:129) at oracle.adfinternal.view.faces.ui.BaseRenderer.render(BaseRenderer.java:81) at oracle.adfinternal.view.faces.ui.laf.base.xhtml.XhtmlLafRenderer.render(XhtmlLafRenderer.java:67) at oracle.adfinternal.view.faces.uinode.UIXComponentUINode.renderInternal(UIXComponentUINode.java:177) at oracle.adfinternal.view.faces.uinode.UINodeRendererBase.encodeEnd(UINodeRendererBase.java:53) at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624) at oracle.adfinternal.view.faces.uinode.UIComponentUINode._renderComponent(UIComponentUINode.java:317) at oracle.adfinternal.view.faces.uinode.UIComponentUINode.render(UIComponentUINode.java:262) at oracle.adfinternal.view.faces.uinode.UIComponentUINode.render(UIComponentUINode.java:239) at oracle.adfinternal.view.faces.ui.BaseRenderer.renderChild(BaseRenderer.java:412) at oracle.adfinternal.view.faces.ui.laf.base.xhtml.RowLayoutRenderer.renderChild(RowLayoutRenderer.java:95) at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:330) at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:222) at oracle.adfinternal.view.faces.ui.BaseRenderer.renderContent(BaseRenderer.java:129) at oracle.adfinternal.view.faces.ui.BaseRenderer.render(BaseRenderer.java:81) at oracle.adfinternal.view.faces.ui.laf.base.xhtml.XhtmlLafRenderer.render(XhtmlLafRenderer.java:67) at oracle.adfinternal.view.faces.uinode.UIXComponentUINode.renderInternal(UIXComponentUINode.java:177) at oracle.adfinternal.view.faces.uinode.UINodeRendererBase.encodeEnd(UINodeRendererBase.java:53) at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624) at oracle.adfinternal.view.faces.uinode.UIComponentUINode._renderComponent(UIComponentUINode.java:317) at oracle.adfinternal.view.faces.uinode.UIComponentUINode.render(UIComponentUINode.java:262) at oracle.adfinternal.view.faces.uinode.UIComponentUINode.render(UIComponentUINode.java:239) at oracle.adfinternal.view.faces.ui.BaseRenderer.renderChild(BaseRenderer.java:412) at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:330) at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:222) at oracle.adfinternal.view.faces.ui.BaseRenderer.renderContent(BaseRenderer.java:129) at oracle.adfinternal.view.faces.ui.BaseRenderer.render(BaseRenderer.java:81) at oracle.adfinternal.view.faces.ui.laf.base.xhtml.XhtmlLafRenderer.render(XhtmlLafRenderer.java:67) at oracle.adfinternal.view.faces.uinode.UIXComponentUINode.renderInternal(UIXComponentUINode.java:177) at oracle.adfinternal.view.faces.uinode.UINodeRendererBase.encodeEnd(UINodeRendererBase.java:53) at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624) at oracle.adfinternal.view.faces.uinode.UIComponentUINode._renderComponent(UIComponentUINode.java:317) at oracle.adfinternal.view.faces.uinode.UIComponentUINode.render(UIComponentUINode.java:262) at oracle.adfinternal.view.faces.uinode.UIComponentUINode.render(UIComponentUINode.java:239) at oracle.adfinternal.view.faces.ui.composite.ContextPoppingUINode$ContextPoppingRenderer.render(ContextPoppingUINode.java:224) at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:346) at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:301) at oracle.adfinternal.view.faces.ui.BaseRenderer.renderChild(BaseRenderer.java:412) at oracle.adfinternal.view.faces.ui.BaseRenderer.renderNamedChild(BaseRenderer.java:384) at oracle.adfinternal.view.faces.ui.laf.base.desktop.PageHeaderLayoutRenderer._renderTabBar(PageHeaderLayoutRenderer.java:570) at oracle.adfinternal.view.faces.ui.laf.base.desktop.PageHeaderLayoutRenderer.renderContent(PageHeaderLayoutRenderer.java:429) at oracle.adfinternal.view.faces.ui.BaseRenderer.render(BaseRenderer.java:81) at oracle.adfinternal.view.faces.ui.laf.base.xhtml.XhtmlLafRenderer.render(XhtmlLafRenderer.java:67) at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:346) at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:301) at oracle.adfinternal.view.faces.ui.BaseRenderer.renderChild(BaseRenderer.java:412) at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:330) at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:222) at oracle.adfinternal.view.faces.ui.BaseRenderer.renderContent(BaseRenderer.java:129) at oracle.adfinternal.view.faces.ui.BaseRenderer.render(BaseRenderer.java:81) at oracle.adfinternal.view.faces.ui.laf.base.xhtml.XhtmlLafRenderer.render(XhtmlLafRenderer.java:67) at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:346) at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:301) at oracle.adfinternal.view.faces.ui.composite.UINodeRenderer.renderWithNode(UINodeRenderer.java:90) at oracle.adfinternal.view.faces.ui.composite.UINodeRenderer.render(UINodeRenderer.java:36) at oracle.adfinternal.view.faces.ui.laf.oracle.desktop.PageLayoutRenderer.render(PageLayoutRenderer.java:76) at oracle.adfinternal.view.faces.uinode.UIXComponentUINode.renderInternal(UIXComponentUINode.java:177) at oracle.adfinternal.view.faces.uinode.UINodeRendererBase.encodeEnd(UINodeRendererBase.java:53) at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624) at javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:623) at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:546) at oracle.adf.view.faces.webapp.UIXComponentTag.doEndTag(UIXComponentTag.java:100) at invoiceEntryNew.jspService(_invoiceEntryNew.java:3702) [SRC:/invoiceEntryNew.jsp:669] at com.orionserver[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:253) at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322) at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130) at oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:157) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87) at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65) at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367) at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336) at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196) at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16) at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:332) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20) at Session.ApplicationSessionExpiryFilter.doFilter(ApplicationSessionExpiryFilter.java:50) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:659) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:224) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:133) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192) at java.lang.Thread.run(Thread.java:534)Caused by: javax.faces.FacesException: javax.faces.FacesException: Can't instantiate class: 'invoiceEntry'.. class invoiceEntry : java.lang.NullPointerException at com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:266) at com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:78) at oracle.adfinternal.view.faces.el.AdfFacesVariableResolver.resolveVariable(AdfFacesVariableResolver.java:40) at oracle.adfinternal.view.faces.model.VariableResolverUtils$JspResolver.resolveVariable(VariableResolverUtils.java:79) at com.sun.faces.el.impl.NamedValue.evaluate(NamedValue.java:125) at com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:146) at com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:243) at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:173) ... 114 moreCaused by: javax.faces.FacesException: Can't instantiate class: 'invoiceEntry'.. class invoiceEntry : java.lang.NullPointerException at com.sun.faces.config.ManagedBeanFactory.newInstance(ManagedBeanFactory.java:209) at com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:256) ... 121 moreCaused by: java.lang.ClassNotFoundException: class invoiceEntry : java.lang.NullPointerException at java.beans.Beans.instantiate(Beans.java:208) at java.beans.Beans.instantiate(Beans.java:48) at com.sun.faces.config.ManagedBeanFactory.newInstance(ManagedBeanFactory.java:203) ... 122 moreLooks like a NPE in your invoiceEntry class - I cannot tell for sure is that a managed bean or a jsp tag. My guess would be that the NPE is in that class' constructor... time to get out the debugger.
John -
Interrmittant dispaly of error message on JSP Page
Hi ,
I am developing an application using JSP and servlets. I ma having a peculiar issue with it.
I have few links on a JSP page. When a user clicks on the link, its credentials are verified from database and if he is authorised, he will be taken to corresponding link page. Otherwise an error message is dispalyed on the same JSP page.
When user is not authorised, an exception is thrown from backend to UI passing an error code. This error code is extracted in UI and error description for this error code is read from a properties file.
From the servlet I use send.redirect() calls to redirect to the url with error code concatenated at the end of the url.
It is something like this
try {
if(validUser)
//do stuff
response.sendRedirect("abc/xyzServlet");
} catch(Exception ex) {
errid=ex.getErrid();
response.sendRedirect("abc/MainPageServlet?errid=" + errid);
}In the MainPageServlet, i read error properties file and display error desc for that error id.
The problem I am facing is that when an unauthorised user clicks on link repeatedly, he sees the error message intermittently.
But the error id could be seen on the page url appended.
Sometimes I also see IllegalStateException in the logs.
I am using WebSphere server to deploy the application.
Please help me on this, I have spent much time on this and haven't got a clue. Any pointers will be useful.
Thank You,
Priyanshu.
Edited by: galapagos on Feb 28, 2008 10:43 PM
Edited by: galapagos on Feb 28, 2008 10:44 PMI've tried this and the message still comes up all the time. Have also tried resetting and this doesn't work either. The message appears whether or not it is connected to an accessory (eg speakers). Any further ideas?
-
Error with Portal JSP Page Upload
i've run into a problem with trying to deploy custom JSP pages to Portal. basically, if i enable JSP page types for the Page Group, generate a simple page, download it using the Download JSP link, and then try to upload it again as a JAR or WAR via the JSP Source tab, even without modifying the page at all, i receive the following error:
Unexpected error - User-Defined Exception (WWC-35000)
Unexpected error - User-Defined Exception (WWC-35000)
Path ID does not exist. (WWC-50001)
i've tried logging in as ORCLADMIN in case it was a permissions thing, but that didn't help.
anyone else experience this? any ideas?
thanks,
.richi've run into a problem with trying to deploy custom JSP pages to Portal. basically, if i enable JSP page types for the Page Group, generate a simple page, download it using the Download JSP link, and then try to upload it again as a JAR or WAR via the JSP Source tab, even without modifying the page at all, i receive the following error:
Unexpected error - User-Defined Exception (WWC-35000)
Unexpected error - User-Defined Exception (WWC-35000)
Path ID does not exist. (WWC-50001)
i've tried logging in as ORCLADMIN in case it was a permissions thing, but that didn't help.
anyone else experience this? any ideas?
thanks,
.rich -
Error when requesting JSP page
We have just finished getting our environment set up. We are running
WebLogic 4.5.1 sp7 on a Sun server, and are frontending it with IIS 4.0
SP6a using the iisproxy.dll WebLogic plugin.
We can get things working for a while, but eventually, we get the
following error in the NT event log when requesting the first JSP on our
site:
"Out of process application '/LM/W3SVC/1/Root' terminated unexpectedly"
The Web server is still up, it's just when the JSP page is called that
we get "Page can not be displayed" errors. Any HTML pages come up just
fine. To fix the problem, we just stop and restart the Web Publishing
service.
Has anyone seen this error or does anyone know what events cause this
problem?
Thanks,
-MikeThere is a big difference between this;
http://www.mydomain.com/blabla
and this;
http://www.mydomain.com/blah.jsp
blabla - this is the name of the Web application. When you reference this Web application name Tomcat will check the welcom file descriptor and redirect for that web application.
blah.jsp - is the name of a JSP page. When you reference this page the way you did above, you are not stating where the JSP page is located. It would be locatied in the "http://www.mydomain.com/blabla/blah.jsp" location. -
Hi,
this is my first post on the forum and I'm a new to Flash.
I got an error which I can't seem to figure out on my own what is the problem, I've read through some of the 1084 errors but still couldn't figure it out
I got "1084: Syntax error: expecting rightparen before colon" on this line: myXML = new XML(e:target.data);
And here is the whole code:
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE,onLoaded);
var myXML:XML; // Variable to hold XML class
function onLoaded (e:Event):void{
myXML = new XML(e:target.data);
loader.load(new URLRequest("names.xml"));
trace(myXML);
Thanks in advance
Regards SakujinI've discovered the error after I got help from a friend the culprit was a colon instead of a punctation after XML(e.target.data); instead of XML(e:target.data)
Thanks for everyone that has visited my post.
Maybe you are looking for
-
How do I sort out the troubles on the console?
Gmail - [#SAM-621717]: Trial of home intego 15/03/13 10:59 PM [#SAM-621717]: Trial of home intego 2 messages Intego Support <[email protected]> Reply-To: [email protected] To: mlkessell@**** Cc: monicakessell02@**** Hello Monica, Fri,
-
Need to view concurrent request output(pdf file of XML report)from OAFpage
Hi, I am submitting a concurrent request from OA page (on click of submit button). As of now, to view output of the request user has to open SRS form. Now the rquirement is to submit the request as well as to open the output file of the request in on
-
How to update email id & StandardComm.Mtd field in vendor masterdatascreen
Hi Thr, i want to update the emailid & the StandardComm.Mtd field in the screen of vendor masterdata(Tcode-FK03)for the corrosponding change / creation of hr masterdata (Tcode-PRMD ) specially if the email id is changed. I was suggested to go
-
Hello All, Does any one know the standard SAP message type for EDI-852 message from the partner? SAP suggests PROACT is the standard one, but the same is being used for 830/845 which are completely different from 852. Thanks, Lokesh
-
Back-up/sync Stopped Working In Elements 9
After upgrading from Elements 8 to Elements 9 due to Back-up/Sync problems I am now having similar problems. Elements tells me that everything is in sync even though I just loaded 250+ new photos. When I try to force a synch the process starts, looks