Exception thrown from servlet function
Hi,
I have a servlet "main.java" which connects to a database and displays a table. The table contains a check box in front of each table row. It has three buttons at the bottom "add" modify" "delete". When the user clicks on some check boxes and clicks on "delete" button how can i know in the script delete.java that these are the check boxes that have been checked or selected. I tried to do in the following way
String[] checkedBoxes = new String[100];
checkedBoxes = req.getParameterValues("sel");where sel is the name of the checkboxes
but I am getting the following error:
[21/Aug/2001:10:36:54] failure ( 1118): Internal error: exception thrown from the servlet service function (uri=/servlet/delete.class):java.lang.NullPointerException, Stack: java.lang.NullPointerException
Any help would be appreciated.
Thanks
Does every checkbox have the same name, i.e. "sel".
In this case you're dealing with a checkbox group. Similar to a select-style dropdown or radio button group.
I know I've had problems with dropdowns in Netscape where the select parameter was not being passed at all, so I'd get null values. I got around this by having the form submission re-assign the value from the select list to a hidden variable and then getting the value from the request.getParameter("hiddenFieldName") instead of the "dropdownFieldName".
You could try to name each checkbox individually using an appended ID, such as sel1, sel2, etc. and then have these parameters picked up using a loop construct, request.getParameter("sel" + i) -- you may want to pass some value back that would also indicate how many total checkboxes you had so you could determine how many iterations of the loop to go through.
On the form side, you could probably set the checkboxes up using a similar looping mechanism so that you wouldn't have to explicitly write each checkbox name.
If this is in fact similar to the Netscape issue I was having with dropdowns, I'd be interested to hear if it'll work in IE.
I got a bit off-topic, but hope it helps.
Similar Messages
-
How to catch exception thrown from a function module?
Hi all,
When we are calling a function module from JSPDynpage setting some import parameters, If in some case an exception is thrown in the function module. How can we catch the same exception in the JSPDynpage program?
Thanks & Regards,
RaviHi Ravi
Try this
try
Object retMsgs = output.get(bapiretrunmsgobject);
if(result != null )
IrecordSet rmsg = (IrecordSet) result
catch(Exception ex)
printException(ex, "Error getting function result");
Lemme know for any further questions.
Regards
Praveen -
Exception thrown from the servlet service function (uri=/servlet/auth)
iam getting foll. error when i try logging in to iDA -
[28/Mar/2005:15:39:38] failure (12538): Internal error: exception thrown from the servlet service function (uri=/servlet/auth): java.lang.NullPointerException, Stack: java.lang.NullPointerException
at netscape.nda.servlet.NDAAuth.execute(NDAAuth.java:306)
at netscape.nda.servlet.NDAServlet.doPost(NDAServlet.java:117)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServletRunner.java:897)
at com.iplanet.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:464)
we're using iplanet messaging server 5.2 with iDA.
we have two webservers one on each nodes where messaging services are running in cluster.
the webmail is running fine.
the webservers are running fine without errors.
i tried shifting mesaging services on to both nodes, but the error persists.
can any one pl. help me ??Hi,
I hope below link will help you.
http://knowledgebase.iplanet.com/ikb/kb/articles/4761.html
Thanks,
Daks. -
Internal error: exception thrown from the servlet service function
when i invoke the servlet in unix iplanet server i got the error
Kindly let me get the solution .i am in 11th hour.
[06/Jan/2006:09:30:28] info (10646): Internal Info: loading servlet
/servlet/Ipl
XmlServlet
[06/Jan/2006:09:30:28] info (10646): /servlet/IplXmlServlet: init
[06/Jan/2006:09:30:28] failure (10646): Internal error: exception thrown
from the servlet service function (uri=/servlet/IplXmlServlet/):
java.lang.NullPointerException, stack: java.lang.NullPointerException
at IplXmlReqHandler.generateRsp(IplXmlReqHandler.java:452)
at IplXmlReqHandler.processRequest(IplXmlReqHandler.java:168)
at IplXmlServlet.processRequest(IplXmlServlet.java:219)
at IplXmlServlet.doGet(IplXmlServlet.java:184)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:701)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:826)
at
com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRun
ner.java:513)
Thanking you
brindasanthyou are in the wrong forum for this kind of question/product,
goto:
http://swforum.sun.com/jive/forum.jspa?forumID=16
(in case you don't like "goto" - look at it like a "forward" :-) )
additionally don't forget to mention
- OS version
- WebServer version + SP
- .. the more the better
rgds.
/u -
I am getting the follow error in my webserver error log very offen. I am running iPlanet Delegated Administrator 4.5 and iPlanet WebServer 4.1 SP5. Sometimes I have to stop and start the web server because users can no longer authenticate to Delegated Admin. Does anyone know what this means.
Internal error: exception thrown from the servlet service function (uri=/servlet/auth): javax.servlet.ServletException, Stack: javax.servlet.ServletException
at netscape.nda.servlet.NDAAuth.execute(NDAAuth.java, Compiled Code)
at netscape.nda.servlet.NDAServlet.doPost(NDAServlet.java, Compiled Code)
at netscape.nda.servlet.NDAServlet.doGet(NDAServlet.java, Compiled Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
at com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRunner.java, Compiled Code)"Hi,
I hope below link will help you.
http://knowledgebase.iplanet.com/ikb/kb/articles/4761.html
Thanks,
Daks. -
I have done an install of iPlanet Portal Server on a Solaris 8 machine and when I try to access the main Page I get:
[26/Apr/2002:16:15:27] failure (21872): Internal error: exception thrown from the servlet service function
(uri=/login): java.lang.NullPointerException, stack: java.lang.NullPointerException
at com.iplanet.portalserver.auth.service.AuthD.isClientDetectionEnabled(AuthD.java:520)
at com.iplanet.portalserver.auth.service.AuthD.getClientType(AuthD.java:532)
at com.iplanet.portalserver.auth.service.AuthRequest.<init>(AuthRequest.java:102)
at com.iplanet.portalserver.auth.service.AuthRequest.getAuthRequest(AuthRequest.java:177)
at com.iplanet.portalserver.auth.service.LoginServlet.doGetPost(Compiled Code)
at com.iplanet.portalserver.auth.service.LoginServlet.doGet(LoginServlet.java:990)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:701)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:826)
at com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:507)
, root cause:
Suggestions? I have sucessfully installed IPS before, but I cannot figure out the cause of this error.
MikeLooks like a patch conflict ..
Check /var/sadm/patch and see
if this patch 108875-07 is present, if you have a later patch than that then you might run into the above problem .. -
Help Me, How to catch exception thrown from ejbStore
Hi,
I am working on application running on Iplanet Application Server 4.0. Problem is the application exception thrown from the ejbStore don't reach the calling servlet, calling servlet receive TransactionRollback exception which is system exception. But there is no sign of my application exception thrown from ejbStore. Can anybody tell me how I can get my ApplicationException thrown from ejbStore in my calling servlet.
I am calling entity beans set method in servlet and in entity bean ejbStore method I am throwing Application exception.
in entity bean
public void ejbStore() throws MyException
if(true) throw new MyException();
in servlet
try {
MyEntityHome home = .......
MyEntityRemote remote = home.findBy.....
remote.setMyValue(MyValue value); //Transaction required Container managed
}catch(MyException e) {
e.printStackTrace(); // Not cahcing My Exception
}catch(Exception e) {
e.printStackTrace(); //catching TransactionRolledBackException
Thanks
ShaktiHi Ravi
Try this
try
Object retMsgs = output.get(bapiretrunmsgobject);
if(result != null )
IrecordSet rmsg = (IrecordSet) result
catch(Exception ex)
printException(ex, "Error getting function result");
Lemme know for any further questions.
Regards
Praveen -
Exception thrown by servlet Faces Servlet in WAS ND 6.1.0.13
Hi,<br>
I'm using WebSphere Application Server Network Deployment (WAS ND) v. 6.1.0.13.<br><br>
I'm getting this error when I try to launch my application:<br><br>
[1/24/08 11:41:44:100 WET] 0000003c ServletWrappe E SRVE0100E: Did not realize init() exception thrown by servlet Faces Servlet: java.lang.NullPointerException<br>
at javax.faces.webapp.FacesServlet.init(FacesServlet.java:144)<br>
at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:190)<br>
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.init(ServletWrapper.java:317)<br>
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:346)<br>
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:464)<br>
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3276)<br>
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:267)<br>
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)<br>
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1455)<br>
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:113)<br>
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:454)<br>
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:383)<br>
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)<br>
at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1818)<br>
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:556)<br>
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:606)<br>
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:979)<br>
at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1064)<br>
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)<br>
<br><br><br>
After doing a search I tried this following steps:<br>
� Delete the entry in web.xml:<br>
<listener><br>
<listener-class><br>
com.sun.faces.config.ConfigureListener<br>
</listener-class><br>
</listener><br><br>
� Update my log4j version<br><br>
� Delete the commons-logging.jar from WEB-INF directory<br>
These are the jar files included in WEB-INF directory:<br>
commons-beanutils.jar<br>
commons-collections.jar<br>
commons-digester.jar<br>
commons-javaflow-20060411.jar<br>
commons-logging.jar<br>
FglConnectorClient.jar<br>
itext-1.4.2.jar<br>
jasperreports-1.2.3.jar<br>
jcommon-1.0.0.jar<br>
jfreechart-1.0.1.jar<br>
jsf-api.jar<br>
jsf-ibm.jar<br>
jsf-impl.jar<br>
jstl.jar<br>
log4j-1.2.14.jar<br>
standard.jar<br>
struts.jar<br>
<br><br>
<br>
None of the suggestions worked.<br><br>
Then I tried to deploy my application in another WAS ND 6.1.0.13 and it worked!!! <br>
What can I do so solve this problem in my WAS ND 6.1.0.13? What could be the problem?<br><br>
Thanks,<br>
NunoDid you find a solution to this problem
please help
Thanks & Regards
Nasir -
ERROR: ProviderCaller.run(): exception thrown from IMChannel
Not sure whether this is better addressed here or in the Instant Messaging forum.
Basically we're having a problem with the presence service in Portal Server, and it throws a huge exception stack when you do anything except have a blank contact list with noone logged in.
Portal Server, Access Manager, and IM Server are all installed on the same server in this configuration, and I've tried applying patches to the IM Server APIs to fix the problems to no avail.
JES 2005Q1
IM Server patched: 118787-01 118790-01
Portal server unpatched
Basically all of this is still a default install, with only minimal customization so customers don't have to configure anything.
tail -f /var/opt/SUNWam/debug/desktop.debug says:
07:34:25,192 INFO xmppd [com.sun.im.service.util.Worker 4] Authenticating using Identity Server SSO
06/20/2005 07:34:25:310 AM PDT: Thread[Thread-677,5,main]
ERROR: ProviderCaller.run(): exception thrown from IMChannel
com.sun.portal.providers.ProviderException: JSPProvider.processJSPFile(): jsp=IMContent.jsp, java.lang.NoSuchMethodError: org.jaxen.BaseXPath.<init>(Ljava/lang/String;Lorg/jaxen/Navigator;)V
at com.sun.portal.providers.jsp.JSPProvider.processJspFile(JSPProvider.java:916)
at com.sun.portal.providers.jsp.JSPProvider.processJspFile(JSPProvider.java:810)
at com.sun.portal.providers.jsp.JSPProvider.getContent(JSPProvider.java:579)
at com.sun.im.portal.provider.IMProvider.getContent(IMProvider.java:94)
at com.sun.portal.desktop.context.ReusableProviderCaller.run(ReusableProviderCaller.java:160)
java.lang.NoSuchMethodError: org.jaxen.BaseXPath.<init>(Ljava/lang/String;Lorg/jaxen/Navigator;)V
at net.outer_planes.jso.xpath.JSOXPath.<init>(JSOXPath.java:81)
at net.outer_planes.jso.xpath.JSOXPath.<init>(JSOXPath.java:78)
at net.outer_planes.jso.DataFactory.createXPath(DataFactory.java:128)
at net.outer_planes.jso.DataFactory.createXPath(DataFactory.java:117)
at net.outer_planes.jso.AbstractElement.getLocaleXPath(AbstractElement.java:175)
at net.outer_planes.jso.AbstractElement.findElementsForLocale(AbstractElement.java:629)
at net.outer_planes.jso.AbstractElement.findElementsForLocale(AbstractElement.java:626)
at net.outer_planes.jso.PresencePacket.getStatus(PresencePacket.java:155)
at net.outer_planes.jso.PresencePacket.getStatus(PresencePacket.java:152)
at com.sun.im.service.xmpp.XMPPPresenceService.getPresence(XMPPPresenceService.java:374)
at com.sun.im.service.xmpp.XMPPPresenceService.fetchPresence(XMPPPresenceService.java:164)
at com.sun.im.service.xmpp.XMPPPresenceSession.fetch(XMPPPresenceSession.java:47)
at com.sun.im.service.xmpp.XMPPPresenceSession.fetch(XMPPPresenceSession.java:55)
at com.sun.im.portal.taglib.GetContactGroupTag.doStartTag(GetContactGroupTag.java:51)
at jsps.etc._opt._SUNWps._desktop._sampleportal_en_US._IMChannel._html._IMContent_jsp._jspService(_IMContent_jsp.java:799)
at com.sun.portal.providers.jsp.jasper3.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
at com.sun.portal.providers.jsp.JspServletWrapper.service(JspServletWrapper.java:182)
at com.sun.portal.providers.jsp.JSPProvider.processJspFile(JSPProvider.java:896)
at com.sun.portal.providers.jsp.JSPProvider.processJspFile(JSPProvider.java:810)
at com.sun.portal.providers.jsp.JSPProvider.getContent(JSPProvider.java:579)
at com.sun.im.portal.provider.IMProvider.getContent(IMProvider.java:94)
at com.sun.portal.desktop.context.ReusableProviderCaller.run(ReusableProviderCaller.java:160)
We're looking to implement JES in the next month or so. I've seen mention of this error with other jaxen flavors, but none mentioning the JES Instant Messaging or Portal ServersDoes every checkbox have the same name, i.e. "sel".
In this case you're dealing with a checkbox group. Similar to a select-style dropdown or radio button group.
I know I've had problems with dropdowns in Netscape where the select parameter was not being passed at all, so I'd get null values. I got around this by having the form submission re-assign the value from the select list to a hidden variable and then getting the value from the request.getParameter("hiddenFieldName") instead of the "dropdownFieldName".
You could try to name each checkbox individually using an appended ID, such as sel1, sel2, etc. and then have these parameters picked up using a loop construct, request.getParameter("sel" + i) -- you may want to pass some value back that would also indicate how many total checkboxes you had so you could determine how many iterations of the loop to go through.
On the form side, you could probably set the checkboxes up using a similar looping mechanism so that you wouldn't have to explicitly write each checkbox name.
If this is in fact similar to the Netscape issue I was having with dropdowns, I'd be interested to hear if it'll work in IE.
I got a bit off-topic, but hope it helps. -
Jco exception thrown while executing function "BICS_PROV_OPEN" against syst
Hi,
Am implementing SAP EP, BI Integration. The BI Querys are running fine, but when i try to run a BEx Application Query am thrown with this exception in portal.
Exception caught: com.sap.ip.bi.base.exception.BIBaseRuntimeException: Jco exception thrown while executing function "BICS_PROV_OPEN" against system "SAP_BW" com.sap.ip.bi.base.exception.BIBaseRuntimeException: Jco exception thrown while executing function "BICS_PROV_OPEN" against system "SAP_BW" at
I've done all the configuration for the integration and the BI Diagnostic tool is showing all the configurations to GREEN.
Please help me on this...
Regards,
mcsekarException caught: com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: The current application triggered a termination with a short dump. com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: The current application triggered a termination with a short dump. at com.sap.mw.jco.MiddlewareJRfc.generateJCoException(MiddlewareJRfc.java:516) at com.sap.mw.jco.MiddlewareJRfc$Client.execute(MiddlewareJRfc.java:1514) at com.sap.mw.jco.JCO$Client.execute(JCO.java:3980) at com.sap.mw.jco.JCO$Client.execute(JCO.java:3417) at com.sap.ip.bi.base.application.service.rfcproxy.impl.jco640.Jco640Proxy.executeFunction(Jco640Proxy.java:362) at com.sap.ip.bi.base.application.service.rfcproxy.impl.jco640.Jco640Function.executeRfc(Jco640Function.java:75) at com.sap.ip.bi.base.application.service.rfcproxy.base.RfcFunction.execute(RfcFunction.java:46) at com.sap.ip.bi.bics.dataaccess.resource.impl.bi.selector.variableprocessor.RfcServiceWithVariables.executeCreationFunctionForVariableHandling(RfcServiceWithVariables.java:64) at com.sap.ip.bi.bics.dataaccess.resource.impl.bi.selector.ProviderSelectionObject.isApplicable(ProviderSelectionObject.java:339) at com.sap.ip.bi.base.application.impl.Application.checkAndCreateService(Application.java:709) at com.sap.ip.bi.base.application.impl.Application.createService(Application.java:634) at
Exception caught: com.sap.ip.bi.base.exception.BIBaseRuntimeException: Jco exception thrown while executing function "BICS_PROV_OPEN" against system "SAP_BW" com.sap.ip.bi.base.exception.BIBaseRuntimeException: Jco exception thrown while executing function "BICS_PROV_OPEN" against system "SAP_BW" at com.sap.ip.bi.base.application.service.rfcproxy.base.RfcFunction.execute(RfcFunction.java:48) at com -
Exception thrown in native function.
Hello,
I've encountered a bizarre, yet repetitive problem with
Dreamweaver 8. Whenever I close out of any file (.htm, .cfm, .dwt
for example) that contains any JavaScript I get the following error
and then DW crashes:
While executing DWMenu_File_Close command in menus.xml, the
following JavaScript error(s) occurred:
Exception thrown in native function.
I've been working with Dreamweaver for a few years, gone to
MAX, my partner is a certified professional, and a user group
manager. I can't fix this problem. It's got to be related to my
system, as she has no problems whatsoever. I've been through the
newsgroups, the technotes, developer center, and a reloaded my
system (XP Pro) a few times.
Thanks - DavidYou can try this simple fix -
Quit DW.
Find this file -
C:\Documents and Settings\<username>\Application
Data\Macromedia\Dreamweaver
8\Configuration\WinFileCache-*.dat
(these folders are normally hidden - you may have to use
Explorer > Tools >
Folder Options to unhide them)
and delete it.
Restart DW. Works better?
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"lotuseducation" <[email protected]> wrote
in message
news:e3a6up$ckl$[email protected]..
> hi
>
> i am facing a strange error in my DW 8,
> the error message is :
>
> while executing onLoad, the following Javascript
error(s) occurred:
> at line 36 of file "E:\Program
files\Macromedia\Dreamweaver
> 8\Configuration\Commands\_afterSave.htm":
> Exception thrown in native function.
>
> what to do now? any idea
>
> i did not find any solution in google search for this
>
> thanks in advance
> ashok sharma
> -
Exception thrown from action: createLink
Hi,
I am trying to install Application server on Red Hat Enterprise Linux 4.
I got the folowing error
Starting install Install Phase 2 of component Oracle Client Required Support Files
Calling Action unixActions10.1.0.4.0 createLink
source = /u01/app/oracle/product/10.1.3.1/OracleAS_1/lib/libclntsh.so.10.1
destination = /u01/app/oracle/product/10.1.3.1/OracleAS_1/lib/libclntsh.so
overwriteExistingLink = true
Exception thrown from action: createLink
Exception Name: FileNotFoundException
Exception String: File not found: %fileName%
Kinldy let me know how to proceed.
Regards,
AnuThis is a documented bug : 5029782.
Take a look at this metalink note:
Install of Oracle Database 10g Companion Products Fails With : File Not Found: %Filename%
Doc ID: Note:566889.1
~ Madrid
http://hrivera99.blogspot.com -
Differentiating between same exception thrown from 2 different methods
Suppose I have a class CodeDAO which has 2 methods who both throw SQLException
public int getLocationCode(String locationName) throws SQLException;
public int getDepartmentCode(String departmentName) throws SQLException;Now I have a business method in which I have to use both of the above DAO methods.
public int process() {
try {
CodeDAO codeDAO = new CodeDAO();
int locationCode = codeDAO.getLocationCode("NJ");
int departmentCode = codeDAO.getDepartmentCode("Sales");
catch (SQLException e) {
}If SQLException is thrown how will I know if it is thrown by the getLocationCode method or getDepartmentCode method?
What are the different choices I have in differentiating between same exception thrown from different methods? And which choice do you guys prefer?
Thankssrhcan wrote:
maheshguruswamy wrote:
srhcan wrote:
gimbal2 wrote:
baftos wrote:
Put each method invokation in its own try/catch block.Or in fact not use SQLException, but exceptions that are unique.So each DAO method has its own exception?
public int getLocationCode(String locationName) throws GetLocationCodeException;
public int getDepartmentCode(String departmentName) throws GetDepartmentCodeException;would not that means I have to create a lot of exception classes?
Edited by: srhcan on Aug 9, 2012 2:54 PMLet me ask you this, what do you plan to do in the catch block? Do some sort of recovery? rollback? If it is just for logging purposes, I am pretty sure the exception message will give you enough information to find out where the error was.* I would like to give user a specific message based on which method fails. So if getLocationCode("NJ") fails the message can be: Unable to find code for Location "NJ". And if getDepartmentCode("Sales") fails the message can be: Unable to find code for Department "Sales".
* I would like to print the exception's stacktrace in the log file.
* I may do a rollback depending on if its an INSERT/UPDATE/DELETE statement.Well, in that case why not log it in the DAO methods themselves...inside getLocationCode and getDepartmentCode. Instead of trying to do the recovery/logging in the process method, do it in the individual dao methods. The calling classes should not be responsible for logging/recovery etc. It should be done in the DAO classes themselves and the DAO method should return an appropriate message/code to the consumer tier classes indicating the status of the transaction. Just my 0.02$. -
Strange exception thrown from Client (Scanner has tokens)
Hi,
I am getting a really strange exception thrown from my client. It seems to be
about a class that the wsgen generated. Has anyone ever seen something like that
before? Maybe it is because I am using JBuilder(5.1)? I am operating on a WL6.1
server. It is only a test webservice. So there are only standard return types,
etc.
Any comments/suggestions are appreciated
cheers Stephan
Scanner has tokens:
[OPENTAGBEGIN]
[NAME] (META)
[NAME] (NAME)
[CHARDATA] (GENERATOR)
[NAME] (CONTENT)
[CHARDATA] (WebLogic htmlKona WebLogic Server 6.1 SP2 12/18/2001 11:13:46 #154529
[TAGEND]
[SPACE] (
[CLOSETAGBEGIN]
[NAME] (HEAD)
[TAGEND]
[SPACE] (
[OPENTAGBEGIN]
[NAME] (BODY)
[NAME] (bgcolor)
[CHARDATA] (white)
[NAME] (alink)
[CHARDATA] (#397F70)
[NAME] (link)
[CHARDATA] (#640078)
[NAME] (vlink)
[CHARDATA] (#DE7E00)
[TAGEND]
[SPACE] (
[OPENTAGBEGIN]
[NAME] (FONT)
[NAME] (FACE)
E7E00">
<FONT FACE=e <-- bad character
java.lang.reflect.UndeclaredThrowableException: Error at line:8 col:13 Line:8
''' expected, got char[72]
at weblogic.xml.babel.baseparser.SAXElementFactory.createSAXParseException(SAXElementFactory.java:60)
at weblogic.xml.babel.parsers.StreamParser.streamParseSome(StreamParser.java:130)
at weblogic.xml.babel.parsers.BabelXMLEventStream.parseSome(BabelXMLEventStream.java:46)
at weblogicx.xml.stream.XMLEventStreamBase.hasNext(XMLEventStreamBase.java:135)
at weblogicx.xml.stream.XMLEventStreamBase.hasStartElement(XMLEventStreamBase.java:258)
at weblogicx.xml.stream.XMLEventStreamBase.hasStartElement(XMLEventStreamBase.java:171)
at weblogicx.xml.stream.XMLEventStreamBase.startElement(XMLEventStreamBase.java:164)
at weblogic.soap.codec.SoapMessage.read(SoapMessage.java:86)
at weblogic.soap.WebServiceProxy.receive(WebServiceProxy.java:464)
at weblogic.soap.WebServiceProxy.invoke(WebServiceProxy.java:430)
at weblogic.soap.SoapMethod.invoke(SoapMethod.java:186)
at weblogic.soap.wsdl.WebServiceInvocationHandler.invoke(WebServiceInvocationHandler.java:31)
at $Proxy0.getAusgabe(Unknown Source)
at webclient.Client.main(Client.java:36)
Exception in thread "main"Hi, thanks, manoj!
The problem was that eventhough I had the correct login, the server had another
security layer, that prevented me from doing the lookup. So I guess I was supposed
to get an error html page and so the SAX-Parser got messed up.
Stupid mistake, but thank you very much.
"manoj cheenath" <[email protected]> wrote:
It looks like the server is sending back a html page instead
of the soap response (text/xml). Can you check the URL
you are trying?
If you are using a WSDL file, then the URL will be inside
the service->port->soap:address-location element.
regards,
-manoj
"Stephan" <[email protected]> wrote in message
news:[email protected]...
Hi,
I am getting a really strange exception thrown from my client. It seemsto
be
about a class that the wsgen generated. Has anyone ever seen somethinglike that
before? Maybe it is because I am using JBuilder(5.1)? I am operatingon a
WL6.1
server. It is only a test webservice. So there are only standard returntypes,
etc.
Any comments/suggestions are appreciated
cheers Stephan
Scanner has tokens:
[OPENTAGBEGIN]
[NAME] (META)
[NAME] (NAME)
[CHARDATA] (GENERATOR)
[NAME] (CONTENT)
[CHARDATA] (WebLogic htmlKona WebLogic Server 6.1 SP2 12/18/2001 11:13:46#154529
[TAGEND]
[SPACE] (
[CLOSETAGBEGIN]
[NAME] (HEAD)
[TAGEND]
[SPACE] (
[OPENTAGBEGIN]
[NAME] (BODY)
[NAME] (bgcolor)
[CHARDATA] (white)
[NAME] (alink)
[CHARDATA] (#397F70)
[NAME] (link)
[CHARDATA] (#640078)
[NAME] (vlink)
[CHARDATA] (#DE7E00)
[TAGEND]
[SPACE] (
[OPENTAGBEGIN]
[NAME] (FONT)
[NAME] (FACE)
E7E00">
<FONT FACE=e <-- bad character
java.lang.reflect.UndeclaredThrowableException: Error at line:8 col:13Line:8
''' expected, got char[72]
atweblogic.xml.babel.baseparser.SAXElementFactory.createSAXParseException(SAXE
lementFactory.java:60)
atweblogic.xml.babel.parsers.StreamParser.streamParseSome(StreamParser.java:13
0)
atweblogic.xml.babel.parsers.BabelXMLEventStream.parseSome(BabelXMLEventStream
..java:46)
atweblogicx.xml.stream.XMLEventStreamBase.hasNext(XMLEventStreamBase.java:135)
atweblogicx.xml.stream.XMLEventStreamBase.hasStartElement(XMLEventStreamBase.j
ava:258)
atweblogicx.xml.stream.XMLEventStreamBase.hasStartElement(XMLEventStreamBase.j
ava:171)
atweblogicx.xml.stream.XMLEventStreamBase.startElement(XMLEventStreamBase.java
:164)
at weblogic.soap.codec.SoapMessage.read(SoapMessage.java:86)
at weblogic.soap.WebServiceProxy.receive(WebServiceProxy.java:464)
at weblogic.soap.WebServiceProxy.invoke(WebServiceProxy.java:430)
at weblogic.soap.SoapMethod.invoke(SoapMethod.java:186)
atweblogic.soap.wsdl.WebServiceInvocationHandler.invoke(WebServiceInvocationHa
ndler.java:31)
at $Proxy0.getAusgabe(Unknown Source)
at webclient.Client.main(Client.java:36)
Exception in thread "main" -
Did not realize init() exception thrown by servlet FacesServlet
Dear Programmers
I have written a little application using JSF. It works fine on my machine (I use WSAD) but when I deploy it to the server I get the exception:
[08:47:55:656 IST 06/10/05] 39b61791 ServletInstan E SRVE0100E: Did not realize init() exception thrown by servlet FacesServlet: javax.servlet.ServletException
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doInit(StrictServletInstance.java:99)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._init(StrictLifecycleServlet.java:147)
at com.ibm.ws.webcontainer.servlet.PreInitializedServletState.init(StrictLifecycleServlet.java:270)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.init(StrictLifecycleServlet.java:113)
at com.ibm.ws.webcontainer.servlet.ServletInstance.init(ServletInstance.java:189)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at com.ibm.ws.webcontainer.webapp.WebAppServletManager.addServlet(WebAppServletManager.java:870)
at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:224)
at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java:542)
at com.ibm.ws.webcontainer.webapp.WebApp.loadServletManager(WebApp.java:1272)
at com.ibm.ws.webcontainer.webapp.WebApp.init(WebApp.java:277)
at com.ibm.ws.webcontainer.srt.WebGroup.loadWebApp(WebGroup.java:400)
at com.ibm.ws.webcontainer.srt.WebGroup.init(WebGroup.java:218)
at com.ibm.ws.webcontainer.WebContainer.addWebApplication(WebContainer.java:1004)
at com.ibm.ws.runtime.component.WebContainerImpl.install(WebContainerImpl.java:136)
at com.ibm.ws.runtime.component.WebContainerImpl.start(WebContainerImpl.java:356)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:415)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:808)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:351)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:578)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:268)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:485)
at java.lang.reflect.Method.invoke(Native Method)
at com.tivoli.jmx.modelmbean.MMBInvoker.invoke(Unknown Source)
at com.tivoli.jmx.modelmbean.MMBInvoker.invokeOperation(Unknown Source)
at com.tivoli.jmx.modelmbean.DynamicModelMBeanSupport.invoke(Unknown Source)
at javax.management.modelmbean.RequiredModelMBean.invoke(Unknown Source)
at com.tivoli.jmx.GenericMBeanSupport.invoke(Unknown Source)
at com.tivoli.jmx.MBeanAccess.invoke(Unknown Source)
at com.tivoli.jmx.MBeanServerImpl.invoke(Unknown Source)
at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:658)
at com.ibm.ws.console.core.mbean.MBeanHelper.invoke(MBeanHelper.java:141)
at com.ibm.ws.console.appdeployment.ApplicationDeploymentCollectionAction.perform(ApplicationDeploymentCollectionAction.java:315)
at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1791)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1586)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java(Inlined Compiled Code))
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java(Inlined Compiled Code))
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java(Compiled Code))
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java(Compiled Code))
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java(Compiled Code))
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:80)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:214)
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:116)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:615)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))
What does it mean???
How can I solve the problem?Cross-post
http://forum.java.sun.com/thread.jspa?threadID=683318&tstart=0
Maybe you are looking for
-
Get all the values of optionset
Hi My requirement is to retrieve all the values of an optionset field using javascript.How can i do this
-
Email received on BT email display blank content
Hi, The email received fron certain domain on BT internet mail display blank content. Has anyone come across the problem? Let me know how to solve.
-
Older versions stay on my computer; I can't get rid of them
I have Firefox 3.6, 3.61 etc and Thunderbird two versions; I recent downloaded Firefox 3.6.10 but have not yet installed it because I don't want THREE active versions on my computer. How do I get rid of the older version and keep the new versions? Th
-
Listing Work Items, through End User Menu
Hi I created a rule which will fetch all the Work Items. The below mentioned code is used to fetch the Work Items, <invoke name='listObjects'> <ref>ctx</ref> <invoke name='findType' class='com.waveset.object.Type'> <s>WorkItem</s> </invoke> </invoke>
-
Windows On Mac: BootCamp Freezes While Partitioning HDD
Hi everyone, I wanted to partition my 3tb hard drive in the second bay to have windows on it. I obviously did this using boot camp. I followed the steps as I had done it before and ended up partitioning 101gb for Windows. The progress bar went very q