<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <title></title>
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hi Tiho,<br>
    <br>
    I tried to access the URL from both browser and from a java client
    using HttpURLConnection, both worked. The file extension is missing,
    but this is not the reason why you got the exception. The problem is
    the REST server receives funny media types from your client, thus it
    can not parse. Thats the reason why you got
    "java.lang.IllegalArgumentException: Media type separator is
    missing" from "at
    javax.ws.rs.core.MediaType.valueOf(MediaType.java:119)".&nbsp; A valid
    medial is sth like "application/atom+xml" or "text/plain, */*".&nbsp; Its
    has to be a value from this list:
<a class="moz-txt-link-freetext" href="http://docs.jboss.org/resteasy/docs/1.0.0.GA/javadocs/javax/ws/rs/core/MediaType.html#valueOf%28java.lang.String%29">http://docs.jboss.org/resteasy/docs/1.0.0.GA/javadocs/javax/ws/rs/core/MediaType.html#valueOf%28java.lang.String%29</a><br>
    <br>
    The best way to find out the problem is to use an HTTP interceptor
    tool to intercept the exact content that the client sends to the
    server. I normally use tcpmon from axis. It could be related to the
    xlink. <br>
    <br>
    Jervis<br>
    <br>
    <br>
    <pre>Media type separator is missing</pre>
    On 2011/6/10 7:05, Tihomir Surdilovic wrote:
    <blockquote cite="mid:4DF151CB.9070300@redhat.com" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      <title></title>
      Thanks Antoine, one thing I found out is that this behavior depend
      on the Transcoder used. For example when converting this same SVG
      to PDF with PDFTranscoder the error does not happen and the images
      coming from Guvnor show fine. Same error happens with
      JPEGTranscode however. <br>
      The image tag inside SVG requires the href attribute to be xlink.
      Do you know if there is any other way, possibly to embed an
      external image inside the svg?<br>
      <br>
      Thanks.<br>
      <br>
      <br>
      On 6/9/11 5:29 PM, Antoine Toulme wrote:
      <blockquote
        cite="mid:BANLkTikpVG+O6nwbH5Q=c29J4s139qLSLw@mail.gmail.com"
        type="cite">
        <div>Maybe the .png extension missing is confusing CXF. It is
          babbling about media types in there.</div>
        <div><br>
        </div>
        <div>Otherwise:</div>
        <div>
          <meta charset="utf-8">
          Your href is a xlink, so maybe it behaves differently:
          <div> <br>
          </div>
          <div><a moz-do-not-send="true"
              href="http://www.w3.org/TR/xlink/">http://www.w3.org/TR/xlink/</a></div>
        </div>
        <div><br>
          <div class="gmail_quote">On Thu, Jun 9, 2011 at 17:40, Tihomir
            Surdilovic <span dir="ltr">&lt;<a moz-do-not-send="true"
                href="mailto:tsurdilo@redhat.com">tsurdilo@redhat.com</a>&gt;</span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
              0.8ex; border-left: 1px solid rgb(204, 204, 204);
              padding-left: 1ex;">Hi guys, I am using apache batik to
              convert some svg to png image and am<br>
              running into a weird problem:<br>
              the svg includes image tags which point to guvnor (rest
              api), for example:<br>
              <br>
              &lt;image oryx:anchors="top" x="1.6399999999999988" y="2"
              width="20"<br>
              height="20"<br>
              xlink:href="<a moz-do-not-send="true"
href="http://localhost:8080/drools-guvnor/rest/packages/defaultPackage/assets/fault/binary"
                target="_blank">http://localhost:8080/drools-guvnor/rest/packages/defaultPackage/assets/fault/binary</a>"<br>
id="_28EB8C09-7BF0-4401-98C4-8ECDCE8D987E__28EB8C09-7BF0-4401-98C4-8ECDCE8D987E_19"/&gt;<br>
              <br>
              where "fault" is fault.png which I uploaded into Guvnor in
              the<br>
              defaultPackage.<br>
              <br>
              When the batik transcoders evaluate this image url<br>
              (<a moz-do-not-send="true"
href="http://localhost:8080/drools-guvnor/rest/packages/defaultPackage/assets/fault/binary"
                target="_blank">http://localhost:8080/drools-guvnor/rest/packages/defaultPackage/assets/fault/binary</a>)<br>
              jaxrs on the Guvnor side throws this error:<br>
              <br>
              <a moz-do-not-send="true"
                href="https://gist.github.com/1017665" target="_blank">https://gist.github.com/1017665</a><br>
              <br>
              Anyone got any hints on this error?<br>
              <br>
              Thanks!<br>
              Tihomir<br>
              _______________________________________________<br>
              rules-dev mailing list<br>
              <a moz-do-not-send="true"
                href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
              <a moz-do-not-send="true"
                href="https://lists.jboss.org/mailman/listinfo/rules-dev"
                target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
            </blockquote>
          </div>
          <br>
        </div>
        <pre wrap=""><fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
rules-dev mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-dev">https://lists.jboss.org/mailman/listinfo/rules-dev</a>
</pre>
      </blockquote>
      <br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
rules-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-dev">https://lists.jboss.org/mailman/listinfo/rules-dev</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>