IC5Notice: We have upgraded developerWorks Community to the latest version of IBM Connections. For more information, read our upgrade FAQ.
Topic
  • 5 replies
  • Latest Post - ‏2009-10-05T14:27:11Z by SystemAdmin
SystemAdmin
SystemAdmin
334 Posts

Pinned topic Error with RTF using Domino View and Forms builder

‏2009-08-26T13:49:35Z |
If I enable the "Retrieve Rich Text Items as HTML" in View section of Domino View and Forms builder, I will get the following message. I'm running the Domino sample that I downloaded from the wiki. I have also attached the model (dominoExpense.model)

An error has occurred.
The error message returned was: "Error in method _gen_call_GoToexpensesDocumentView. Error in method GoToexpensesDocumentView. Error in method expensesview.getDocumentData. Server returned HTTP response code: 400 for URL: http://localhost:63148/Expenses.nsf/0/49C003E1F0C0BA0D8625761100528B9F/body?OpenField".

Please refer to the logs folder in your deployed application for additional error information.

Click here for a detailed error message. Click here to hide the detailed error message.

ExceptionError in method _gen_call_GoToexpensesDocumentView. Error in method GoToexpensesDocumentView. Error in method expensesview.getDocumentData. Server returned HTTP response code: 400 for URL: http://localhost:63148/Expenses.nsf/0/49C003E1F0C0BA0D8625761100528B9F/body?OpenField

Stack Trace
java.io.IOException: Server returned HTTP response code: 400 for URL: http://localhost:63148/Expenses.nsf/0/49C003E1F0C0BA0D8625761100528B9F/body?OpenField
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1179)
at sun.net.www.protocol.http.HttpURLConnection.getHeaderFieldKey(HttpURLConnection.java:1966)
at com.bowstreet.util.HTTPRequest.getHeadersAndCookies(HTTPRequest.java:646)
at com.bowstreet.util.HTTPRequest.invoke(HTTPRequest.java:613)
at com.bowstreet.builders.webapp.methods.HTMLImporter.invoke(HTMLImporter.java:126)
at com.bowstreet.builders.webapp.methods.DominoHelper.getRichText(DominoHelper.java:1639)
at com.bowstreet.builders.webapp.methods.DominoHelper.getRichTextField(DominoHelper.java:1601)
at com.bowstreet.builders.webapp.methods.DominoHelper.addDocItemsToXml(DominoHelper.java:444)
at com.bowstreet.builders.webapp.methods.DominoHelper.getDocumentData(DominoHelper.java:481)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at com.bowstreet.webapp.engine.actions.MethodAction.callAction(MethodAction.java:90)
at com.bowstreet.webapp.engine.WebAppAccessImpl.callMethod(WebAppAccessImpl.java:405)
at genjava.demo._dominoExpense.expensesDocumentViewOnEnter(_dominoExpense.java:233)
at genjava.demo._dominoExpense.GoToexpensesDocumentView(_dominoExpense.java:211)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at com.bowstreet.webapp.engine.actions.MethodAction.callAction(MethodAction.java:90)
at com.bowstreet.webapp.engine.WebAppAccessImpl.callMethod(WebAppAccessImpl.java:405)
at genjava.demo._dominoExpense._gen_call_GoToexpensesDocumentView(_dominoExpense.java:2245)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at com.bowstreet.webapp.engine.actions.MethodAction.callAction(MethodAction.java:90)
at com.bowstreet.webapp.engine.WebAppAccessImpl.callMethod(WebAppAccessImpl.java:405)
at com.bowstreet.webapp.engine.WebAppAccessImpl.processAction(WebAppAccessImpl.java:1063)
at com.bowstreet.webapp.engine.WebAppAccessImpl.processAction(WebAppAccessImpl.java:1163)
at com.bowstreet.webapp.engine.WebAppRequestRunner.doRequest(WebAppRequestRunner.java:364)
at com.bowstreet.webapp.engine.WebAppRunner.doActualRequest(WebAppRunner.java:923)
at com.bowstreet.webapp.engine.WebAppRunner.doRequest(WebAppRunner.java:535)
at com.bowstreet.webapp.engine.WebAppRunner.doRequest(WebAppRunner.java:300)
at com.bowstreet.webapp.engine.WebAppRunner.doRequest(WebAppRunner.java:237)
at com.bowstreet.webapp.engine.WebAppServlet.doPost(WebAppServlet.java:73)
at com.bowstreet.webapp.engine.WebAppServlet.doGet(WebAppServlet.java:53)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:989)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:930)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:118)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:766)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:674)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:498)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:464)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3276)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:267)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1455)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:113)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:454)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:383)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:263)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)

Action Status
The following table lists the actions that have run during this request.
Action ID:
WebAppRunner.doRequest
_gen_call_GoToexpensesDocumentView
GoToexpensesDocumentView
StateManager.setCurrentStep
StateManagerInitializer
expensesview.getDocumentData
expensesview_Util.callReferenceResolver
_IRResolver_2
expensesview_Util.callReferenceResolver
_IRResolver_1

Attachments

Updated on 2009-10-05T14:27:11Z at 2009-10-05T14:27:11Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    334 Posts

    Re: Error with RTF using Domino View and Forms builder

    ‏2009-08-26T13:57:08Z  
    I did change the Notes database slightly - I've added an RTF field called "body" to test how it displays rich text content and attachments. It doesn't seem to work well for either. Could you please help me figure out what I did wrong?
  • SystemAdmin
    SystemAdmin
    334 Posts

    Re: Error with RTF using Domino View and Forms builder

    ‏2009-08-27T16:38:37Z  
    I did change the Notes database slightly - I've added an RTF field called "body" to test how it displays rich text content and attachments. It doesn't seem to work well for either. Could you please help me figure out what I did wrong?
    Instead of 63148 (the diiop port), use the Domino server's http port. This is specified in the ServerName property in web-inf/config/domino-config/whatever.properties.

    example: ServerName=localhost:8080

    You must use the web port when using rich text, b/c the builder fetches the rich text over the http port.

    Let me know how it goes.

    sam
  • SystemAdmin
    SystemAdmin
    334 Posts

    Re: Error with RTF using Domino View and Forms builder

    ‏2009-08-28T00:38:07Z  
    Instead of 63148 (the diiop port), use the Domino server's http port. This is specified in the ServerName property in web-inf/config/domino-config/whatever.properties.

    example: ServerName=localhost:8080

    You must use the web port when using rich text, b/c the builder fetches the rich text over the http port.

    Let me know how it goes.

    sam
    Thanks for the suggestion, Sam.

    I tried that, but now I get a different error message.

    Error accessing Domino view.
    Server:
    Database: Expenses.nsf
    View: Expense Reports\By Project
    Error: NotesException: Could not get IOR from Domino Server: http://localhost:8080/diiop_ior.txt
  • SystemAdmin
    SystemAdmin
    334 Posts

    Re: Error with RTF using Domino View and Forms builder

    ‏2009-08-28T03:01:21Z  
    Thanks for the suggestion, Sam.

    I tried that, but now I get a different error message.

    Error accessing Domino view.
    Server:
    Database: Expenses.nsf
    View: Expense Reports\By Project
    Error: NotesException: Could not get IOR from Domino Server: http://localhost:8080/diiop_ior.txt
    Perhaps your Domino web server is running on a different port?

    Do you have access to the Domino console? If so, type " show tasks " and look for the line describing the http task and note the port. Alternatively, using a Notes client, open the names.nsf database on the Domino server, open the server document for the server, find the Http tab and note the http port.

    Also verify that diiop is running (although I'm guessing it is, as it sounds like you're been able to use the builder except for the rich text functionality)

    Lastly, since you are using localhost as the server name, I'm assuming Domino is co-located on the same server as your application server where your WAR is deployed. If Domino is elsewhere, change the server name accordingly.

    Let me know how it goes.

    sam
  • SystemAdmin
    SystemAdmin
    334 Posts

    Re: Error with RTF using Domino View and Forms builder

    ‏2009-10-05T14:27:11Z  
    Perhaps your Domino web server is running on a different port?

    Do you have access to the Domino console? If so, type " show tasks " and look for the line describing the http task and note the port. Alternatively, using a Notes client, open the names.nsf database on the Domino server, open the server document for the server, find the Http tab and note the http port.

    Also verify that diiop is running (although I'm guessing it is, as it sounds like you're been able to use the builder except for the rich text functionality)

    Lastly, since you are using localhost as the server name, I'm assuming Domino is co-located on the same server as your application server where your WAR is deployed. If Domino is elsewhere, change the server name accordingly.

    Let me know how it goes.

    sam
    My Domino port is 80 not 8080. It now works!

    Thank you, Sam.