You are hereForums / JDF Tools / JDF Editor / HTTP Server - does it support MIME packages?

HTTP Server - does it support MIME packages?


1 reply [Last post]
Offline
Joined: 06/09/2011

I was wondering if the JDF Editor's HTTP server supports MIME packages? Furthermore, what is causing the Java NullPointerException?

I downloaded and ran the JDF Editor with HTTP server support (see CIP4 JDF Editor - Http Server). Furthermore, I set it up to receive JMF messages as described in Http Server.

Unfortunately I get a HTTP 500 error in my .NET application:

System.Net.WebException: The remote server returned an
error: (500) Internal Server Error.
    at
System.Net.HttpWebRequest.GetResponse()

On the console I see:

java.lang.NullPointerException
        at org.cip4.jdfeditor.transport.JMFServlet.processMessage(JMFServlet.java:141)
        at org.cip4.jdfeditor.transport.JMFServlet.doPost(JMFServlet.java:112)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:616)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:427)
        at org.mortbay.jetty.servlet.ServletHandler.dispatch(ServletHandler.java:654)
        at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:556)
        at org.mortbay.http.HttpContext.handle(HttpContext.java:1563)
        at org.mortbay.http.HttpContext.handle(HttpContext.java:1515)
        at org.mortbay.http.HttpServer.service(HttpServer.java:956)
        at org.mortbay.http.HttpConnection.service(HttpConnection.java:814)
        at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:981)
        at org.mortbay.http.HttpConnection.handle(HttpConnection.java:831)
        at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
        at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
        at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)

The same message is correctly received by Bambi.

The message sent looks like this (actual Base64 data removed):

MIME-Version: 1.0
From: jdf@aquila-solutions.com
Date: 5 Nov 2011 09:07:40 +0100
Content-Type: multipart/related; boundary=--boundary_0_fee98f72-60d9-4fac-9af1-957909c8373a
----boundary_0_fee98f72-60d9-4fac-9af1-957909c8373a
Content-Type: application/vnd.cip4-jmf+xml
Content-Transfer-Encoding: base64
Content-ID: <1238@aquila-solutions.com>
<removed>
----boundary_0_fee98f72-60d9-4fac-9af1-957909c8373a
Content-Type: application/vnd.cip4-jdf+xml
Content-Transfer-Encoding: base64
Content-ID: <1238@aquila-solutions.com>
Content-Disposition: attachment; filename=1238.jdf
<removed>
----boundary_0_fee98f72-60d9-4fac-9af1-957909c8373a--

Offline
Joined: 11/02/2010
Is not supported

Hi Ranko,
JDF Editor currently does not support receiving MIME packages via HTTP. If you think it would be a useful feature you can propose it on the cip4 jira system (http://jira.cip4.org/jira).

But in my daily job I don't work with CIP4 JDF Editor. My favourit tools are CIP4 Alces and for editing JDF / JMF documents I use "Nodepad++" (http://notepad-plus-plus.org/). On last one you only have to activate the XML Syntax Highlighting for JDF /JMF files.

Stefan