I'm a new user of ImageMagick, please try to help me with my issue. What could be the reason of getting an exception in a Java code using ImageMagick like this:
Caused by: org.im4java.core.CommandException: convert: DistributedPixelCache '127.0.0.1' @ error/distribute-cache.c/ConnectPixelCacheServer/210.
at org.im4java.core.ImageCommand.finished(ImageCommand.java:249)
at org.im4java.process.ProcessStarter.run(ProcessStarter.java:314)
I know what Distributed Pixel Cache is good for. I figured it out that there are 3 different scenarios which can cause this error by looking into the source code of distribute-cache.c
Code: Select all
status=getaddrinfo(hostname,service,&hint,&result); %status!=0
Code: Select all
client_socket=socket(result->ai_family,result->ai_socktype,result->ai_protocol); %client_socket==-1
Code: Select all
status=connect(client_socket,result->ai_addr,result->ai_addrlen); %status==-1
Thank you in advance!