Skip to main content

developerWorks >  WebSphere  >  Forums  >  IBM WebSphere Portlet Factory - Lotus Collaboration Extension  >  developerWorks

Error with RTF using Domino View and Forms builder    Point your RSS reader here for a feed of the latest messages in this thread


Tags for this thread: 

     

 
 

My developerWorks
 Welcome, Guest
Sign in or register
This question is answered.

Permlink Replies: 5 - Pages: 1 - Last Post: Oct 5, 2009 10:27 AM Last Post By: cottonBall
cottonBall

Posts: 42
Registered: Jul 18, 2007 04:12:28 PM
Error with RTF using Domino View and Forms builder
Posted: Aug 26, 2009 09:49:35 AM
 
Click to report abuse...   Click to reply to this thread Reply
Attachment domino.zip (365.4 KB)
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

cottonBall

Posts: 42
Registered: Jul 18, 2007 04:12:28 PM
Re: Error with RTF using Domino View and Forms builder
Posted: Aug 26, 2009 09:57:08 AM   in response to: cottonBall in response to: cottonBall's post
 
Click to report abuse...   Click to reply to this thread Reply
Attachment Expenses.nsf (2.8 MB)
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?
salexander

Posts: 182
Registered: Mar 14, 2007 01:29:36 PM
Re: Error with RTF using Domino View and Forms builder
Posted: Aug 27, 2009 12:38:37 PM   in response to: cottonBall in response to: cottonBall's post
 
Click to report abuse...   Click to reply to this thread Reply
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
cottonBall

Posts: 42
Registered: Jul 18, 2007 04:12:28 PM
Re: Error with RTF using Domino View and Forms builder
Posted: Aug 27, 2009 08:38:07 PM   in response to: salexander in response to: salexander's post
 
Click to report abuse...   Click to reply to this thread Reply
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
salexander

Posts: 182
Registered: Mar 14, 2007 01:29:36 PM
Re: Error with RTF using Domino View and Forms builder
Posted: Aug 27, 2009 11:01:21 PM   in response to: cottonBall in response to: cottonBall's post
 
Click to report abuse...   Click to reply to this thread Reply
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
cottonBall

Posts: 42
Registered: Jul 18, 2007 04:12:28 PM
Re: Error with RTF using Domino View and Forms builder
Posted: Oct 05, 2009 10:27:11 AM   in response to: salexander in response to: salexander's post
 
Click to report abuse...   Click to reply to this thread Reply
My Domino port is 80 not 8080. It now works!

Thank you, Sam.
 Tags
Help

Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular type of content or application that you're viewing.

My tags shows your tags for this particular type of content or application that you're viewing.

 

MoreLess 


Point your RSS reader here for a feed of the latest messages in all forums