Hi there,
I am trying to build a simple disseminator that uses the imagemanip servlet shipped with Fedora. I am building the SDep object using EZService.

This is my EZXML:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ezdep [
<!ENTITY fedora "http://localhost:8080/";>
<!ENTITY imgmanip "http://localhost:8080/imagemanip/";>
]>
<sdep pid="AICTEST:SDepImg" label="Service Deployment for all image
resources">
        <cmodel>AICTEST:CMImg</cmodel>
        <sdef>AICTEST:SDefImg</sdef>
        <impl method="getThumbnail">
                <datastream-input datastream="MASTER"/>
                <url-pattern>
                        
&imgmanip;ImageManipulation?url=(MASTER)&amp;op=resize&amp;newWidth=128
                </url-pattern>
        </impl>
        <impl method="getIntLarge">
                <datastream-input datastream="MASTER"/>
                <url-pattern>
                        
&imgmanip;ImageManipulation?url=(MASTER)&amp;op=resize&amp;newWidth=1024
                </url-pattern>
        </impl>
        <impl method="getIntSmall">
                <datastream-input datastream="MASTER"/>
                <url-pattern>
                        
&imgmanip;ImageManipulation?url=(MASTER)&amp;op=resize&amp;newWidth=300
                </url-pattern>
        </impl>
</sdep>

So far so good, not too different from the Fedora demos. The only difference is that MASTER is a managed datastream, not an external reference.
If I try to access the above methods, I get an error:

javax.servlet.ServletException: Could not load image: http://localhost:8080/fedora/getDS?id=2013-07-10T17:40:56.66:1+(MASTER). Errorcode 500 from remote server. at org.fcrepo.localservices.imagemanip.ImageManipulation.getImage(ImageManipulation.java:250) at org.fcrepo.localservices.imagemanip.ImageManipulation.doGet(ImageManipulation.java:141)
[...]
org.fcrepo.server.errors.GeneralException: Error getting http://localhost:8080/imagemanip/ImageManipulation?url=http%3A%2F%2Flocalhost%3A8080%2Ffedora%2FgetDS%3Fid%3D2013-07-10T17%3A40%3A56.66%3A1%2B%28MASTER%29&op=resize&newWidth=128 at org.fcrepo.server.storage.DefaultExternalContentManager.get(DefaultExternalContentManager.java:181) at org.fcrepo.server.storage.DefaultExternalContentManager.getFromWeb(DefaultExternalContentManager.java:324)
[...]


I haven't seen any documentation for the API method getDS, so I'm at a loss about checking whether the DS ID being passed is correct.

Any hints?

Thanks,
--

Stefano Cossu
Director of Application Services, Collections

The Art Institute of Chicago

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Fedora-commons-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to