Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

image processing

  Asked By: Carlton    Date: Feb 26    Category: Java    Views: 1073
  

,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

Share: 

 

3 Answers Found

 
Answer #1    Answered By: Fairuzah Alam     Answered On: Feb 26

I don't have these java  advanced imaging packages,
but your problem  is a casting exception.
it may be because of one of the followings:
1) invalid arguments
2) version mistamtch between client and server

 
Answer #2    Answered By: Arron Lee     Answered On: Jul 23

Using code to solve the problem is too complicated for me. You can refer to some related image processing SDK for help:
www.yiigo.com/.../processing-support.shtml

 
Answer #3    Answered By: Ray Brown     Answered On: Mar 03

I have not processed image in Java class before. Currently, I am testing .NET image processing at: www.rasteredge.com/solutions/image-processing/

So I am sorry I can not help your image operation error.

 
Didn't find what you were looking for? Find more on image processing Or get search suggestion and latest updates.




Tagged: