Jul 5, 2014, 11:42 PM
110 Posts

[TypeError] Exception occurred calling method NotesDocument.send(java.util.Vector) null

  • Category: Debugging
  • Platform: Windows
  • Release: 9.0.1
  • Role: Developer
  • Tags: send mail
  • Replies: 2

I have 2 XPages applications created and used in-house with basic workflow functions (submit à review etc). For each submit, a mail will be sent to the reviewer. And for each review, a mail will be sent to the submitter.

Now the problem came with anything that will be sent to this 1 staff. He has no problem submitting and the mail will be sent to the reviewer. But when it came for the reviewer to review, it always comes out the following error for the reviewer:

[TypeError] Exception occurred calling method NotesDocument.send(java.util.Vector) null

A quick search for the above error would normally give reasons such as :-

  1. No name to send to
  2. Multiple names found in address book

There are some other different reasons but the above 2 are the most common one.

I did not get the stack trace from the reviewer when he got the error but I thought the log should be enough and that’s what I have he got me instead:

6/30/14 10:33 AM: Exception Thrown
javax.servlet.ServletException: com.ibm.xsp.FacesExceptionEx: java.net.SocketException: Connection reset by peer: socket write error
    at com.ibm.domino.xsp.module.nsf.NSFService.doService(Unknown Source)
    at com.ibm.designer.runtime.domino.adapter.LCDEnvironment.doService(Unknown Source)
    at com.ibm.designer.runtime.domino.adapter.LCDEnvironment.service(Unknown Source)
    at com.ibm.domino.xsp.bridge.websrv.servlets.DispatcherServlet.service(Unknown Source)
    at org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.service(Unknown Source)
    at org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(Unknown Source)
    at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(Unknown Source)
    at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(Unknown Source)
    at javax.servlet.http.HttpServlet.service(Unknown Source)
    at com.ibm.pvc.webhttpservice.BridgeServlet.service(Unknown Source)
    at com.ibm.pvc.internal.webcontainer.VirtualHost.handleRequest(Unknown Source)
    at com.ibm.ws.webcontainer.WebContainer.handleRequest(Unknown Source)
    at com.ibm.wsspi.webcontainer.WebContainer.handleRequest(Unknown Source)
    at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(Unknown Source)
    at com.ibm.ws.http.HttpConnection.readAndHandleRequest(Unknown Source)
    at com.ibm.ws.http.HttpConnection.run(Unknown Source)
    at com.ibm.ws.util.ThreadPool$Worker.run(Unknown Source)
Caused by: com.ibm.xsp.FacesExceptionEx: java.net.SocketException: Connection reset by peer: socket write error
    at com.ibm.xsp.model.domino.webapp.DominoResourceProvider$DominoResource.write(Unknown Source)
    at com.ibm.xsp.webapp.FacesResourceServlet.doGet(Unknown Source)
    at javax.servlet.http.HttpServlet.service(Unknown Source)
    at javax.servlet.http.HttpServlet.service(Unknown Source)
    at com.ibm.xsp.webapp.FacesModuleResourceServlet.service(Unknown Source)
    at com.ibm.designer.runtime.domino.adapter.ComponentModule.invokeServlet(Unknown Source)
    at com.ibm.domino.xsp.module.nsf.NSFComponentModule.invokeServlet(Unknown Source)
    at com.ibm.designer.runtime.domino.adapter.ComponentModule$AdapterInvoker.invokeServlet(Unknown Source)
    at com.ibm.designer.runtime.domino.adapter.ComponentModule$ServletInvoker.doService(Unknown Source)
    at com.ibm.designer.runtime.domino.adapter.ComponentModule.doService(Unknown Source)
    at com.ibm.domino.xsp.module.nsf.NSFComponentModule.doService(Unknown Source)
    at com.ibm.domino.xsp.module.nsf.NSFService.doServiceInternal(Unknown Source)
    at com.ibm.domino.xsp.module.nsf.NSFService.access$0(Unknown Source)
    at com.ibm.domino.xsp.module.nsf.NSFService$NsfServiceRequest.call(Unknown Source)
    at com.ibm.domino.xsp.module.nsf.NSFService$NsfServiceRequest.call(Unknown Source)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    at com.ibm.domino.xsp.module.nsf.NSFService$NsfServiceThread.run(Unknown Source)
Caused by: java.net.SocketException: Connection reset by peer: socket write error
    at java.net.SocketOutputStream.socketWrite(Unknown Source)
    at java.net.SocketOutputStream.write(Unknown Source)
    at com.ibm.ws.io.Stream.write(Unknown Source)
    at com.ibm.ws.io.WriteStream.flushMyBuf(Unknown Source)
    at com.ibm.ws.io.WriteStream.write(Unknown Source)
    at com.ibm.ws.http.ResponseStream.writeChunk(Unknown Source)
    at com.ibm.ws.http.ResponseStream.flushBuffer(Unknown Source)
    at com.ibm.ws.http.ResponseStream.write(Unknown Source)
    at com.ibm.ws.io.WriteStream.write(Unknown Source)
    at com.ibm.ws.webcontainer.srt.SRTOutputStream.write(Unknown Source)
    at com.ibm.wsspi.webcontainer.util.BufferedServletOutputStream.writeOut(Unknown Source)
    at com.ibm.wsspi.webcontainer.util.BufferedServletOutputStream.write(Unknown Source)
    at com.ibm.commons.util.io.StreamUtil.copyStream(Unknown Source)
    at com.ibm.commons.util.io.StreamUtil.copyStream(Unknown Source)
    at com.ibm.xsp.model.domino.webapp.DominoResourceProvider$DominoAttachmentResource.doWrite(Unknown Source)
    ... 21 more

From above, the main things I looked at are the following:-

  1. javax.servlet.ServletException: com.ibm.xsp.FacesExceptionEx: java.net.SocketException: Connection reset by peer: socket write error
  2. Caused by: com.ibm.xsp.FacesExceptionEx: java.net.SocketException: Connection reset by peer: socket write error
  3. Caused by: java.net.SocketException: Connection reset by peer: socket write error

This is beyond my knowledge so I hope any of the expert can help me because I totally have no idea how to solve this. Thanks.

Jul 10, 2014, 3:22 PM
170 Posts
Did you

Is this the errors found in the ibm technical support folder and the workspace log folder?

if not check there. 

Another thing that comes in to mind. Could it be that the different users have their mail on different servers?

that could give a problem in lotusscript. 

/Fredrik

www.xpagedeveloper.com

Jul 10, 2014, 11:53 PM
110 Posts
Only in IBM_TECHNICAL_SUPPORT folder

I did check the workspace log folder but as far as I can tell those logs there contains nothing like an Xpages error stack trace.

Also, both the staff and the reviewer mail database resides in the same domino server.

Btw, I did not use any lotusscript in my application.