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.
Similar Messages
-
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 .. -
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 -
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.
ThanksDoes 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. -
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 -
Can Any one help me in finding the cause of following error
16:18:27,565 INFO [PipelineManager] DEBUG Cancel Link Transaction
16:18:27,565 INFO [PipelineManager] DEBUG Transaction is TX_MANDATORY
16:18:27,565 INFO [PipelineManager] DEBUG Setting transaction to rollback
16:18:27,565 INFO [PipelineManager] DEBUG Cancel Chain Transaction
16:18:27,565 INFO [PipelineManager] DEBUG Transaction is TX_REQUIRED
16:18:27,565 INFO [PipelineManager] DEBUG Setting transaction to rollback
16:18:27,565 ERROR [OrderManager]
CAUGHT AT:
CONTAINER:atg.service.pipeline.RunProcessException: An exception was thrown from the context of the link named [loadCommerceItemObjects].; SOURCE:java.lang.RuntimeException: CONTAINER:atg.repository.RepositoryException; SOURCE:org.jboss.util.NestedSQLException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -53eaeff2:f142:52c29876:2a4f status: ActionStatus.ABORT_ONLY >; - nested throwable: (ja
at atg.service.pipeline.PipelineChain.runProcess(PipelineChain.java:393)
at atg.service.pipeline.PipelineChainContext.runProcess(PipelineChainContext.java:207)
at atg.service.pipeline.PipelineManager.runProcess(PipelineManager.java:475)
at atg.commerce.pipeline.CommercePipelineManager.runProcess(CommercePipelineManager.java:123)
at atg.commerce.order.OrderImpl.ensureContainers(OrderImpl.java:1745)
at atg.commerce.order.OrderImpl.getShippingGroups(OrderImpl.java:1084)
at com.mk.integration.epicor.salesAudit.datamanager.EpicorSalesAuditDataManager.processShippingGroups(EpicorSalesAuditDataManager.java:477)
at com.mk.integration.epicor.salesAudit.datamanager.EpicorSalesAuditDataManager.constructSalesAuditFeed(EpicorSalesAuditDataManager.java:431)
at com.mk.integration.epicor.salesAudit.datamanager.EpicorSalesAuditDataManager.exportFullfilledOrder(EpicorSalesAuditDataManager.java:213)
at com.mk.integration.epicor.salesAudit.processor.EpicorSalesAuditProcessor.exportFullfilledOrder(EpicorSalesAuditProcessor.java:42)
at com.mk.integration.epicor.salesAudit.scheduler.EpicorSalesAuditScheduler.startSalesAuditExport(EpicorSalesAuditScheduler.java:65)
at com.mk.integration.epicor.salesAudit.scheduler.EpicorSalesAuditScheduler.doScheduledTask(EpicorSalesAuditScheduler.java:49)
at atg.service.scheduler.SingletonSchedulableService.performScheduledTask(SingletonSchedulableService.java:253)
at atg.service.scheduler.ScheduledJob.runJobs(ScheduledJob.java:466)
at atg.service.scheduler.Scheduler$2handler.run(Scheduler.java:782)
Caused by: java.lang.RuntimeException: CONTAINER:atg.repository.RepositoryException; SOURCE:org.jboss.util.NestedSQLException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -53eaeff2:f142:52c29876:2a4f status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -53eaeff2:f142:52c29876:2a4f status:
at atg.adapter.gsa.GSAItemDescriptor.loadProperty(GSAItemDescriptor.java:5994)
at atg.adapter.gsa.GSAItem.getPersistentPropertyValue(GSAItem.java:1315)
at atg.adapter.gsa.GSAItem.getPropertyValue(GSAItem.java:1208)
at atg.adapter.gsa.GSAItem.getPropertyValue(GSAItem.java:1405)
at atg.repository.RepositoryItemImpl.getPropertyValue(RepositoryItemImpl.java:151)Hi,
I seems like you don't have any active transaction. Try start or get transaction before execute your required operations.
After it, commit (or rollback, if something wrong happens) the transaction.
Hope it helps. -
How to catch Exception in backingbean which is thrown from the Model layer.
Hi,
JDev Ver: 11.1.1.2.0
In my application there are two layer viewcontroller & model.
In model layer I have created JPA service facade which does the database operation like persist, merge & remove entity.
I am calling this service facade method from backing bean via below standard code.
public static Object invokeMethod(String methodName, String mapKey,
Object object){
BindingContext bcx =
DCUtil.getBindingContext((HttpServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest());
JUFormBinding bc1 = (JUFormBinding)bcx.getCurrentBindingsEntry();
FacesCtrlActionBinding reassignOperationBinding =
(FacesCtrlActionBinding)bc1.findControlBinding(methodName);
if (mapKey != null && object != null) {
Map params = reassignOperationBinding.getParamsMap();
params.put(mapKey, object);
Object result = reassignOperationBinding.execute();
return result;
This is a static method which I am calling from backingbean to invoke service facade persist, merge or remove entity method
I have written throws in all the methods signature of service facade.
The exception which is thrown from the service facade are not comming back to backingbean catch block.
Is there any way to catch this exception in backingbean.
regards,
devangHi,
2 things to check
1 - does reassignOperationBinding has errors. You can check on the component
2 - does the exception show on the binding layet. See the Fusion Developer guide for how to define an error handler on the databindings.cpx file
Frank -
NO EXCEPTION IS THROWN FROM THE PERSIST
We are using Glassfish and MySQL. When we do a persist with a bad object/query, internal DB errors are NOT being reported back to the caller in any way, but Glassfish knows that the error occurred. Here is a schematic of the situation:
Glassfish starts a CMP transaction and calls our bean
Inside the bean we have code like this:
obj = (a new object that will cause a DB error when persisted)
try {
entityManager.persist(obj)
} catch (Throwable t) {
report to the user that the throwable happened
bean returns
Glassfish manages CMP transaction
What we see is the following:
- The persist has an internal failure and generates error messages in the Glassfish system.log file.
- NO EXCEPTION IS THROWN FROM THE PERSIST, so the application code thinks that the persist completed correctly
- At the end of the bean operation, Glassfish (correctly) rolls back the transaction.
At the user level the result is that the request succeeds but nothing is put into the Database!
We are not asking about the cause of the DB error. From reading the system log we know what happened and can fix it. Our problem is that problems in our field-deployed systems cannot be detected by the application code so failures cannot be reported to the user.
The critical question is:
Is there a way for the application code in the bean to see that an error occurred?
By the way, we also have a secondary question: Why is the erroneous persist tried 6 times before deciding it won't work? Is there an option somewhere that says to try 6 times?
The Exception as reported in the system log (only one copy of it) is included below.
[#|2008-10-22T08:32:25.992-0400|WARNING|sun-appserver9.1|oracle.toplink.essentials.session.file:/opt/localVendors/glassfish/tems-glassfish-v1/domains/domain1/applications/j2ee-apps/im-app/im-ejb_jar/-local|_ThreadID=138;_ThreadName=p: thread-pool-1; w: 156;_RequestID=509e7043-21bb-410c-b795-19e9953afeec;|
Local Exception Stack:
Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0.1 (Build b04-fcs (04/11/2008))): oracle.toplink.essentials.exceptions.DatabaseException
Internal Exception: com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Column 'STATIONCODE' cannot be null
Error Code: 1048
Call: INSERT INTO <exact operation and table contents elided from this trace file>
at oracle.toplink.essentials.exceptions.DatabaseException.sqlException(DatabaseException.java:311)
at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(DatabaseAccessor.java:654)
at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.executeNoSelect(DatabaseAccessor.java:703)
at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:492)
at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:452)
at oracle.toplink.essentials.internal.sessions.AbstractSession.executeCall(AbstractSession.java:690)
at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:228)
at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:214)
at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.insertObject(DatasourceCallQueryMechanism.java:346)
at oracle.toplink.essentials.internal.queryframework.StatementQueryMechanism.insertObject(StatementQueryMechanism.java:191)
at oracle.toplink.essentials.internal.queryframework.StatementQueryMechanism.insertObject(StatementQueryMechanism.java:205)
at oracle.toplink.essentials.internal.queryframework.DatabaseQueryMechanism.insertObjectForWrite(DatabaseQueryMechanism.java:564)
at oracle.toplink.essentials.queryframework.InsertObjectQuery.executeCommit(InsertObjectQuery.java:89)
at oracle.toplink.essentials.internal.queryframework.DatabaseQueryMechanism.performUserDefinedWrite(DatabaseQueryMechanism.java:750)
at oracle.toplink.essentials.internal.queryframework.DatabaseQueryMechanism.performUserDefinedInsert(DatabaseQueryMechanism.java:714)
at oracle.toplink.essentials.internal.queryframework.DatabaseQueryMechanism.insertObjectForWriteWithChangeSet(DatabaseQueryMechanism.java:602)
at oracle.toplink.essentials.queryframework.WriteObjectQuery.executeCommitWithChangeSet(WriteObjectQuery.java:162)
at oracle.toplink.essentials.internal.queryframework.DatabaseQueryMechanism.executeWriteWithChangeSet(DatabaseQueryMechanism.java:390)
at oracle.toplink.essentials.queryframework.WriteObjectQuery.executeDatabaseQuery(WriteObjectQuery.java:109)
at oracle.toplink.essentials.queryframework.DatabaseQuery.execute(DatabaseQuery.java:628)
at oracle.toplink.essentials.queryframework.DatabaseQuery.executeInUnitOfWork(DatabaseQuery.java:555)
at oracle.toplink.essentials.queryframework.ObjectLevelModifyQuery.executeInUnitOfWorkObjectLevelModifyQuery(ObjectLevelModifyQuery.java:138)
at oracle.toplink.essentials.queryframework.ObjectLevelModifyQuery.executeInUnitOfWork(ObjectLevelModifyQuery.java:110)
at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:2233)
at oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:952)
at oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:909)
at oracle.toplink.essentials.internal.sessions.CommitManager.commitNewObjectsForClassWithChangeSet(CommitManager.java:269)
at oracle.toplink.essentials.internal.sessions.CommitManager.commitAllObjectsWithChangeSet(CommitManager.java:190)
at oracle.toplink.essentials.internal.sessions.AbstractSession.writeAllObjectsWithChangeSet(AbstractSession.java:2657)
at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.commitToDatabase(UnitOfWorkImpl.java:1044)
at oracle.toplink.essentials.internal.ejb.cmp3.base.RepeatableWriteUnitOfWork.commitToDatabase(RepeatableWriteUnitOfWork.java:403)
at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.commitToDatabaseWithChangeSet(UnitOfWorkImpl.java:1126)
at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.issueSQLbeforeCompletion(UnitOfWorkImpl.java:2443)
at oracle.toplink.essentials.internal.ejb.cmp3.base.RepeatableWriteUnitOfWork.issueSQLbeforeCompletion(RepeatableWriteUnitOfWork.java:202)
at oracle.toplink.essentials.transaction.AbstractSynchronizationListener.beforeCompletion(AbstractSynchronizationListener.java:131)
at oracle.toplink.essentials.transaction.JTASynchronizationListener.beforeCompletion(JTASynchronizationListener.java:91)
at com.sun.jts.jta.SynchronizationImpl.before_completion(SynchronizationImpl.java:99)
at com.sun.jts.CosTransactions.RegisteredSyncs.distributeBefore(RegisteredSyncs.java:158)
at com.sun.jts.CosTransactions.TopCoordinator.beforeCompletion(TopCoordinator.java:2548)
at com.sun.jts.CosTransactions.CoordinatorTerm.commit(CoordinatorTerm.java:278)
at com.sun.jts.CosTransactions.TerminatorImpl.commit(TerminatorImpl.java:249)
at com.sun.jts.CosTransactions.CurrentImpl.commit(CurrentImpl.java:623)
at com.sun.jts.jta.TransactionManagerImpl.commit(TransactionManagerImpl.java:309)
at com.sun.enterprise.distributedtx.J2EETransactionManagerImpl.commit(J2EETransactionManagerImpl.java:1030)
at com.sun.enterprise.distributedtx.J2EETransactionManagerOpt.commit(J2EETransactionManagerOpt.java:397)
at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:3792)
at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:3571)
at com.sun.ejb.containers.MessageBeanContainer.afterMessageDeliveryInternal(MessageBeanContainer.java:1226)
at com.sun.ejb.containers.MessageBeanContainer.afterMessageDelivery(MessageBeanContainer.java:1197)
at com.sun.ejb.containers.MessageBeanListenerImpl.afterMessageDelivery(MessageBeanListenerImpl.java:79)
at com.sun.enterprise.connectors.inflow.MessageEndpointInvocationHandler.invoke(MessageEndpointInvocationHandler.java:139)
at $Proxy364.afterDelivery(Unknown Source)
at com.sun.messaging.jms.ra.OnMessageRunner.run(OnMessageRunner.java:324)
at com.sun.enterprise.connectors.work.OneWork.doWork(OneWork.java:76)
at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:555)
Caused by: com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Column 'STATIONCODE' cannot be null
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:931)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2985)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1631)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1723)
at com.mysql.jdbc.Connection.execSQL(Connection.java:3283)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1332)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1604)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1519)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1504)
at com.mysql.jdbc.jdbc2.optional.PreparedStatementWrapper.executeUpdate(PreparedStatementWrapper.java:840)
at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(DatabaseAccessor.java:647)
... 53 more
|#]This is because the persistent context is not synchronized with the database until the commit is being executed.
You might 'force' this by calling entityManager.flush() right after the call to persist(...).
Or you register a transaction synchronizer and check the transaction status on afeterCompletion().
- Roy -
Exception: java.lang.NoClassDefFoundError thrown from the UncaughtException
Exception in thread "main"
Exception: java.lang.NoClassDefFoundError thrown from the UncaughtExceptionHandler in thread "main"
I dont know why, but after 3 hours of processing I get this error. I encapsulated my main with try/catch but nothing is caught. Nor is there a traceback.
[gat@asus dist]$ java -Xdiag -XshowSettings:vm -Xint -jar jgps.RTI.jar localroads
VM settings:
Max. Heap Size (Estimated): 1.73G
Ergonomics Machine Class: server
Using VM: Java HotSpot(TM) 64-Bit Server VM
[gat@asus dist]$ java -version
java version "1.7.0_06"
Java(TM) SE Runtime Environment (build 1.7.0_06-b24)
Java HotSpot(TM) 64-Bit Server VM (build 23.2-b09, mixed mode)I don't have any idea to offer on what the problem is. However, here are some suggestions:
Perhaps you can provide an example of your code and/or a more through description of what it does so someone might see something wrong with the code.
I assume you print out the entire stack trace using somthing like this, so you can get the entire stack trace:
} catch (Exception e) {
e.printStackTrace();
and not something like this:
System.out.println( e.getMessage());
You can also consider peppering your code with System.out.println() statements (or write to the log file) to get a better understanding of whats going on and where it crashes.
What is jgps.RTI.jar? Is that a jar file you created or a vendor jar file? If its a vendor jar file, you might research their web site on how to use it. -
This exception is never thrown from the try statement body
try {
SimpleFileReader.openFileForReading("fileName.text");
} catch (FileNotFoundException fnfe) {
System.out.println("");
}This is part of a method, if that helps. In Eclipse I get the error message "Unreachable catch block for FileNotFoundException. This exception is never thrown from the try statement body." I saw another post similar to this one, but it's not quite clear what the solution is. Could anyone clarify for a beginner?
ThanksIt actually does if the file it's opening is not really a text file, or if it's read-protected. Or is that where I'm going wrong? I'm just trying to open the file's name(already in the field) and know that it is .text or will return the error.
Edited by: meme_kun_345k on Jan 15, 2008 7:18 PM -
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. -
I want to send a response from the servlet and then call another servlet.
Hi,
I want to send a response from the servlet and then call another servlet. can this happen. Here is my scenario.
1. Capture all the information from a form including an Email address and submit it to a servlet.
2. Now send a message to the browser that the request will be processed and mailed.
3. Now execute the request and give a mail to the mentioned Email.
Can this be done in any way even by calling another servlet from within a servlet or any other way.
Can any one Please help me out.
Thanks,
RameshMaybe that will help you (This is registration sample):
1.You have Registration.html;
2.You have Registration servlet;
3.You have CheckUser servlet;
4.And last you have Dispatcher between all.
See the code:
Registration.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<TITLE>Hello registration</TITLE>
</HEAD>
<BODY>
<H1>Entry</H1>
<FORM ACTION="helloservlet" METHOD="POST">
<LEFT>
User: <INPUT TYPE="TEXT" NAME="login" SIZE=10><BR>
Password: <INPUT TYPE="PASSWORD" NAME="password" SIZE=10><BR>
<P>
<TABLE CELLSPACING=1>
<TR>
<TH><SMALL>
<INPUT TYPE="SUBMIT" NAME="logon" VALUE="Entry">
</SMALL>
<TH><SMALL>
<INPUT TYPE="SUBMIT" NAME="registration" VALUE="Registration">
</SMALL>
</TABLE>
</LEFT>
</FORM>
<BR>
</BODY>
</HTML>
Dispatcher.java
package mybeans;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.ServletException;
import java.io.IOException;
import javax.servlet.RequestDispatcher;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class Dispatcher extends HttpServlet {
protected void forward(String address, HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException {
RequestDispatcher dispatcher = getServletContext().
getRequestDispatcher(address);
dispatcher.forward(request, response);
Registration.java
package mybeans;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class Registration extends Dispatcher {
public String getServletInfo() {
return "Registration servlet";
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
ServletContext ctx = getServletContext();
if(request.getParameter("logon") != null) {
this.forward("/CheckUser", request, response);
else if (request.getParameter("registration") != null) {
this.forward("/registration.html", request, response);
CheckUser.java
package mybeans;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;
public class CheckUser extends Dispatcher {
Connection conn;
Statement stat;
ResultSet rs;
String cur_UserName;
public static String cur_UserSurname;;
String cur_UserOtchestvo;
public String getServletInfo() {
return "Registration servlet";
public void service(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
try{
ServletContext ctx = getServletContext();
Class.forName("oracle.jdbc.driver.OracleDriver");
conn = DriverManager.getConnection("jdbc:oracle:oci:@eugenz","SYSTEM", "manager");
stat = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
String queryDB = "SELECT ID, Login, Password FROM TLogon WHERE Login = ? AND Password = ?";
PreparedStatement ps = conn.prepareStatement(queryDB);
User user = new User();
user.setLogin(request.getParameter("login"));
String cur_Login = user.getLogin();
ps.setString(1, cur_Login);
user.setPassword(request.getParameter("password"));
String cur_Password = user.getPassword();
ps.setString(2, cur_Password);
Password = admin");
rs = ps.executeQuery();
String sn = "Zatoka";
String n = "Eugen";
String queryPeople = "SELECT ID, Surname FROM People WHERE ID = ?";
PreparedStatement psPeople = conn.prepareStatement(queryPeople);
if(rs.next()) {
int logonID = rs.getInt("ID");
psPeople.setInt(1, logonID);
rs = psPeople.executeQuery();
rs.next();
user.setSurname(rs.getString("Surname"));
FROM TLogon, People WHERE TLogon.ID = People.ID";
ctx.setAttribute("user", user);
this.forward("/successLogin.jsp", request, response);
this.forward("/registration.html", request, response);
catch(Exception exception) {
}CheckUser.java maybe incorrect, but it's not serious, because see the principe (conception).
Main is Dispatcher.java. This class is dispatcher between all servlets. -
How webDynpro handles exception thrown by adaptive web service
Hi people,
in design time, webdynpro can handle web service's exception by defining return structure based on the <b>Fault </b>which is the exception defined in the web service. But in the runtime, when web service throws exception, webDynpro can not handle it, WD framework will throw nullPointerException.
The reason behind it might be: let me assume a WS <b>getEmployeeNumber</b>, the WS returns employee number as a element <b><EmployeeNumber></b>12345<b></EmployeeNumber></b> in the return SOAP document. I think WD always expects the element <b><EmployeeNumber></b> in the SOAP document, but in case of exception, web service throws exception and will not provide employee number in the return SOAP which is logical, thus the element <EmployeeNumber> will not be available in the SOAP document, therefore causes WD framework to raise <b>nullPointerException</b>.
So any of you have any suggestion to make webDynpro working in case an exception is thorwn in the web service?
Thanks for your infor
JaysonTo encourage people, I include the text of the xml response from the test of Web Service Navigator window :
HTTP/1.1 500 Internal Server Error
Connection: close
Server: SAP J2EE Engine/6.40
Content-Type: text/xml; charset=UTF-8
Set-Cookie: <value is hidden>
Date: Mon, 27 Mar 2006 09:30:50 GMT
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Client</faultcode>
<faultstring>Hi, I'm the new exception</faultstring>
<detail>
<ns1:throwException_com.sap.demo.testexception.TestException xmlns:ns1='urn:TestExceptionServiceWsd/TestExceptionServiceVi' xmlns:pns='urn:com.sap.demo.testexception'>
<pns:message>Hi, I'm the new exception</pns:message>
</ns1:throwException_com.sap.demo.testexception.TestException>
</detail>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
I've found too a strange workaround :
The fact seems that you have to design your session bean without throwing custom exceptions, then generates the VI and after that, adding the custom exceptions throws.
Or if you don't want to modify the bussiness methods.
The point is to eliminate the exceptions (faults) sections from the VI and WS deployment descriptor.
You have to access from Package Explorer, and edit with a Text Editor the following files :
*.videf from the package, and remove <Function.Faults> sections
ws-deployments-descriptor.xml in META-INF, and remove <fault> sections
After that, the WS Configurations will give an error, so delete the configuration and remake it. Now, the VI stills looks bad, so close the project, close NetViewer and reopen it to flush whatever cache it seems to keep.
Now, your VI will looks better without exceptions, and you'll get their messages when you catch them in the WebDynpro applicattion.
So, now the question is: Could anybody explain me why ? -
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"
Maybe you are looking for
-
Dynamic file name of the attachment in sender mail adapter
Hi I have configured a sender mail adapter which receives some attachments. Right now the file name of the attachment is hardcoded to "MailAttachment-1" "MailAttachment-2" using the content-description from "AF_Modules/PayloadSwapBean" module. I want
-
Filter Functionality is not working in ALV
Hi, I have a ALV Report which contains a column named Delivery Status. The Delivery Status could be of 3 types->Not Delivered, Open and Fully Delivered. But the report is not getting filtered with respect to a certain delvery status. For example if I
-
I got an iPod Nano 2nd generation for Christmas with a Nike Sport kit, which I love. However it can not connect and can not be used any more, and I'm not sure why. I've tried a reset, nothing. When I connect it to the PC the PC beeps to say connectin
-
I have a class that uses makes an OS level call to move a file from location A to location B, and then I have further code that will open this file and then do some reading and writing to it. The problem I am having is that the OS command is issued a
-
I have a problem with my 17" display. Just got the computer as a gift. The display is crystalized. I have Windows Vista Home Premium. Dell replaced the display twice and put another video card in. Still the same although when the displays were repla