Problem with attachments Custom Tag

Hi,

The attachments tag in the following codes results on a NullPointerException.

Note: JSPs are on a separate box running WebLogic Express.

<domino:session id=“sessionTest” user=“<%=username%>” password=“<%=password%>” host=“our.domino.box”>

<domino:db dbname=“TAG_TEST.nsf” host=“our.domino.box”>

<domino:form id=“frm1” name=“frmTEST” schema=“frmTEST” unid=“68A175095BEB5C7A85256D0900468C67” viewname=“vwTEST” editmode=“display” dbname=“TAG_TEST.nsf” dbserver=“Green” host=“our.domino.box”>

<domino:item name=“FIELD_ONE”/>

<domino:item name=“FIELD_TWO”/>

domino:attachments/-

</domino:form>

</domino:db>

</domino:session>

Is there a bug using attachments and DIIOP/CORBA?

Thanks

Terrence

Subject: Problem with attachments Custom Tag

I’m gonna have to eat one of the kid’s chocolate bunnies right now - I am sorry to say that there is a problem doing uploads over iiop. I opened spr SLED5LPL4E, and will let you know more as soon as I know more.

Subject: While on the subject…

Steve,

Firstly, thanks for your detailed and timely reponses.

Do the tags (all of them, not just attachments) support an encrypted connection over IIOP? We haven’t tried it yet, but I presume if it’s supported then we’d specify the port when defining the host=“” attribute of the session tag - e.g. <domino:session host=“our.domino.box:443”>

Thank you.

Terrence

Subject: RE: While on the subject…

I’ll try it and let you know.

Subject: RE: While on the subject…

Steve,

When I try the following:

<domino:session host=“our.domino.box:63149”>

to attempt an encrypted connection I get an Exception: “Could not get IOR from Domino Server” on WebLogic (see full below) and this error on the Domino console: “SSL handshake failure: SSL Error: Invalid SSL message”

I have DIIOP SSL port (63149) enabled on my Domino machine and have copied TrustedCerts.class to the remote machine and have it on my classpath when starting WebLogic.

<<< Full Expection in WebLogic Console: >>>

NOTES EXCEPTION in domino:session: (4457) Could not get IOR from Domino Server

NotesException: Could not get IOR from Domino Server: java.net.SocketException: Connection reset by peer: JVM_recv in socket input stream read

    at lotus.domino.NotesFactory.readIOR(Unknown Source)

    at lotus.domino.NotesFactory.getIOR(Unknown Source)

    at lotus.domino.NotesFactory.createSession(Unknown Source)

    at lotus.domino.NotesFactory.createSession(Unknown Source)

    at lotus.domino.taglib.SessionData.init(SessionData.java:73)

    at lotus.domino.taglib.SessionTag.dominoStartTag(SessionTag.java:66)

    at lotus.domino.taglib.DominoTag.doStartTag(DominoTag.java:397)

    at jsp_servlet.__readdocument._jspService(__readdocument.java:125)

    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)

    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:262)

    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:321)

    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:198)

    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2637)

    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2359)

    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)

    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

<Apr 22, 2003 12:15:25 PM EDT> <[WebAppServletContext(4489618,dom_tags,/dom_tags)] Root cause of ServletException

lotus.domino.taglib.DominoTagException: Domino object error.: (4457) Could not get IOR from Domino Server

    at lotus.domino.taglib.DominoTag.logException(DominoTag.java:793)

    at lotus.domino.taglib.Data.logException(Data.java:83)

    at lotus.domino.taglib.SessionData.init(SessionData.java:91)

    at lotus.domino.taglib.SessionTag.dominoStartTag(SessionTag.java:66)

    at lotus.domino.taglib.DominoTag.doStartTag(DominoTag.java:397)

    at jsp_servlet.__readdocument._jspService(__readdocument.java:125)

    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)

    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:262)

    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:321)

    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:198)

    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2637)

    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2359)

    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)

    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

Thanks

Paul

Subject: RE: While on the subject…

Terrence,

Were you able to find out what was wrong with this? I see this very same exception in a small application I wrote. Without SSL it works fine, when I try SSL, I get this exception.

I know it has been a while, but if you can give me some feedback or insight, I will be thankful.

Subject: RE: While on the subject…

Hi Terrence,

I’m back from portal server class - head still spinning. I am able to duplicate the “Invalid ssl message” and have a call into the ssl guys to see what they think I’m doing wrong.

I don’t know about you, but I’m hitting the web site on port 80 - no ssl there. Then the jsp is trying to use corba to get to the remote machine over an ssl connection - but I have to wonder where it is supposed to get the ssl cert from - anything it can get to would not be user specific. Is this the configuration you are using too?

-sl

Subject: RE: While on the subject…

Steve,

Thanks for your response.

Yes, it’s the same configuration - I have no cert on the WebLogic box.

Thank you, Paul

Subject: Problem with attachments Custom Tag

Yes, there’s a bug that isn’t fixed until 6.0.2.

The Lotusphere JSP tag presentation I did included a demo of the attachments tag:

http://www-10.lotus.com/ldd/sandbox.nsf/ecc552f1ab6e46e4852568a90055c4cd/f2b47a9f6cb470b585256ccb0063023f?OpenDocument&Highlight=0,ad303

To make progress developing this part of your app, you could use the domtags.jar and domtags.tld from it - but understand that when I hit the same bug you just found, the clock was running and I didn’t spec it out, I just coded around it. That domtags.jar was not tested in any way beyond doing the demo itself - which was all local, no corba - so please don’t ship with it!

Subject: RE: Problem with attachments Custom Tag

Hi again - I searched for ‘jsp’ instead of following the thread - I appologize for repeating myself.

I will try out the corba case today and post the results. In 6.0.3 the backend classes support Rich Text over iiop, and as luck would have it I am working that into the tags today.