Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

image processing

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

,i am doing my project in image processing whith
the help of "Java Advanced Imaging".this project is implemented with

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.ClassCastException: javax
at com.sun.media.jai.opimage.AWTImageRIF.create
at java.lang.reflect.Method.invoke(Native Method)
at javax.media.jai.FactoryCache.invoke(FactoryCache.java:130)
at javax.media.jai.OperationRegistry.invokeFactory
at javax.media.jai.ThreadSafeOperationRegistry.invokeFactory
at javax.media.jai.registry.RIFRegistry.create
at javax.media.jai.RenderedOp.createInstance
at javax.media.jai.RenderedOp.createRendering
at javax.media.jai.RenderedOp.getRendering
at javax.media.jai.RenderedOp.createInstance
at javax.media.jai.RenderedOp.createRendering
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
at sun.rmi.transport.Transport$1.run(Transport.java:142)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall
at sun.rmi.transport.tcp.TCPTransport.handleMessages
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run
at java.lang.Thread.run(Thread.java:484)



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: 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.