,i am doing my project in image processing whith
the help of "Java Advanced Imaging".this project is implemented with
rmi.
problem 1:
i am getting this errormessage:
"One factory fails for the operationawtImage"
while trying to run the program.i am attaching the total error
message for your reference.
Error message:
``````````````
Error: One factory fails for the operationawtImage
Occurs in: javax.media.jai.ThreadSafeOperationRegistry
java.lang.reflect.InvocationTargetException:
java.lang.ClassCastException: javax
.media.jai.TiledImage
at com.sun.media.jai.opimage.AWTImageRIF.create
(AWTImageRIF.java:57)
at java.lang.reflect.Method.invoke(Native Method)
at javax.media.jai.FactoryCache.invoke(FactoryCache.java:130)
at javax.media.jai.OperationRegistry.invokeFactory
(OperationRegistry.jav
a:1682)
at javax.media.jai.ThreadSafeOperationRegistry.invokeFactory
(ThreadSafeO
perationRegistry.java:481)
at javax.media.jai.registry.RIFRegistry.create
(RIFRegistry.java:340)
at javax.media.jai.RenderedOp.createInstance
(RenderedOp.java:830)
at javax.media.jai.RenderedOp.createRendering
(RenderedOp.java:878)
at javax.media.jai.RenderedOp.getRendering
(RenderedOp.java:899)
at javax.media.jai.RenderedOp.createInstance
(RenderedOp.java:810)
at javax.media.jai.RenderedOp.createRendering
(RenderedOp.java:878)
at javax.media.jai.RenderedOp.getData(RenderedOp.java:2276)
at Filters.filterImage(Filters.java:206)
at AddServerImpl.filterImage(AddServerImpl.java:141)
at java.lang.reflect.Method.invoke(Native Method)
at sun.rmi.server.UnicastServerRef.dispatch
(UnicastServerRef.java:241)
at sun.rmi.transport.Transport$1.run(Transport.java:142)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall
(Transport.java:139)
at sun.rmi.transport.tcp.TCPTransport.handleMessages
(TCPTransport.java:4
43)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run
(TCPTransport
.java:643)
at java.lang.Thread.run(Thread.java:484)
Filter