John Smith

Greenhorn
+ Follow
since Dec 05, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by John Smith

Hello community,

I'm facing a strange issue while using a webservice deployed in jboss.
In windows environnement, i mean locally, all works fine.
In axis.log, i've :

2008-06-02 12:23:14 DEBUG [DeserializationContextImpl] Enter: DeserializationContextImpl::startElement(, identifiant)
2008-06-02 12:23:14 DEBUG [ProjectResourceBundle] org.apache.axis.i18n.resource::handleGetObject(pushHandler00)
2008-06-02 12:23:14 DEBUG [DeserializationContextImpl] Pushing handler org.apache.axis.encoding.ser.Base64Deserializer@1a8c22b

But in linux, read 4, i've :
2008-06-02 12:22:36 DEBUG [DeserializationContextImpl] Enter: DeserializationContextImpl::startElement(, identifiant)
2008-06-02 12:22:36 DEBUG [ProjectResourceBundle] org.apache.axis.i18n.resource::handleGetObject(cantHandle00)
2008-06-02 12:22:36 DEBUG [ProjectResourceBundle] org.apache.axis.i18n.resource::handleGetObject(toAxisFault00)
2008-06-02 12:22:36 DEBUG [enterprise] Mapping Exception to AxisFault
org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.

Anyone has an idea ?
thaank you.

Faithfylly
15 years ago
Hello,

I should tell you that even with an empty exception.jsp, i've the error.

Thank you for your help.
19 years ago
Hello,

Here is my exception.jsp :

<%@ page import="java.util.Enumeration,
org.apache.struts.Globals,
java.io.StringWriter,
java.io.PrintWriter"%>

<h3>In error.jsp</h3>

<%
out.println("<p><b>All Attributes in request scope:</b>");

Enumeration paramNames = request.getAttributeNames();
while (paramNames.hasMoreElements()) {
String name = (String) paramNames.nextElement();
Object values = request.getAttribute(name);
out.println("<br> " + name + ":" + values);
}

out.println("<p><b>All Attributes in session scope:</b>");

paramNames = session.getAttributeNames();
while (paramNames.hasMoreElements()) {
String name = (String) paramNames.nextElement();
Object values = session.getAttribute(name);
out.println("<br> " + name + ":" + values);
}

//Object o = request.getAttribute("MYEXCEPTION");
Object o = request.getAttribute(Globals.EXCEPTION_KEY);
if (o != null) {
Throwable t = (Throwable)o;
out.println("<h3>An Exception was thrown:</h3>" + t);

StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
t.printStackTrace(pw);
pw.flush();
String trace = sw.toString();
out.println("<pre>"+trace+"</pre>");
}

%>
thank you for your help.
19 years ago
Hello,

I've been facing troubleshooting with declarative exception handling in struts (tomcat 5.0, struts 1.1).

It does not work with :

web.xml : (no error page declaration)
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">

<web-app version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" >
...
<web-app>



struts-config : (only one global exception)
....
<global-exceptions >
<exception
path="/WEB-INF/jsp/exception.jsp"
scope="request"
type="BaseException" />
</global-exceptions >
....


action:
protected ActionForward execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response) throws Exception {

int i = 0;
if(i == 0) {
throw(new BaseException());
}
...
}

result :

org.apache.jasper.JasperException: Impossible de compiler la classe pour la JSP
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:519)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274)
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:810)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)



java.lang.ArrayIndexOutOfBoundsException: 567
org.apache.jasper.compiler.JspReader.peekChar(JspReader.java:156)
org.apache.jasper.compiler.JspReader.isSpace(JspReader.java:349)
org.apache.jasper.compiler.JspReader.isDelimiter(JspReader.java:432)
org.apache.jasper.compiler.JspReader.parseToken(JspReader.java:397)
org.apache.jasper.compiler.Parser.checkUnbalancedEndTag(Parser.java:1699)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1561)
org.apache.jasper.compiler.Parser.parse(Parser.java:126)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:220)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:461)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274)
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:810)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

no

Could anybody please help ?

thank you very much.

jean217@caramail.com
19 years ago
hello community,
i've just tried your long list.
and i've got this result :
3. Develop clients that access the enterprise components
4
4
100.0

6. Develop J2EE components with IBM WebSphere Studio Application Developer for Windows, V4.0.3
8
7
87.0

4. Demonstrate understanding of database connectivity and connection pooling within IBM WebSphere Application Server
2
2
100.0

2. Design and build web components for JavaServer Pages (JSPs) and Servlets including IBM WebSphere specific features
10
10
100.0

1. Design and build reusable enterprise components
8
8
100.0

5. Handle EJB transaction issues
6
6
100.0

7. Assemble enterprise applications and deploy them in IBM WebSphere Application Server
7
7
100.0

8. Use IBM WebSphere tools to validate aspects of the application server, such as security, performance, connection pools, and session management
8
8
100.0

and i'don't know which question i answered wrong.
do you anybody has an idea ?
thanks

faithfully
commnunity man