Jejeje guest what it works now i update my JVM to 6.26 and my JDK to 6.26,
NetBeans 7.0 and put the build.xml and now really add all the libraries that
needs my program to work in the console yeeah!!! after weeks jejeje
thanks so much Rob you have been so much helpfull!!thanks man!!
Rob
Great news!
On 06/30/2011 02:27 PM, Oscar.Flores wrote:
Jejeje guest what it works now i update my JVM to 6.26 and my JDK to 6.26,
NetBeans 7.0 and put the build.xml and now really add all the libraries that
needs my program to work in the console yeeah!!! after weeks jejeje
thanks so
Are netbeans and your command-line using the same installation of java?
Can you isolate you image handling code for us?
On 06/27/2011 03:28 PM, Oscar.Flores wrote:
yeah i add the imageio.jar and the clibwrap.jar that comes in the bundle to
the classpath and put them in the jdk/jre bin and
Hi Rob Oscar,
I'm not sure that the initial topic of this thread is still on
discussion (see Subject).
Please, if it is the case, don't hack an existing one, but open a new
thread with the right Subject, to avoid confusion for other users.
Le 22/06/2011 18:49, Rob Sargent a écrit :
It's a
Hi there yeah its the pdf that give me the fop.bat i dont know why it works
this way and not from my java program anyway i am using fixed position i
show you my xlst to see if you can help me to correct the size
http://old.nabble.com/file/p31897144/FacturasOMF.xsl FacturasOMF.xsl
Rob
No i still can print the images in pdf in console what i do for now is call a
bat to make the transformation with fo until i figure out what the problem
is in log appear that can find a proper converter for the images
also another problem its that the table its to big it dont fit to the data
Is the pdf you posted made via the .bat file then? And it has all the
images you need? Which image is giving you all the trouble?
I see that you are incorrectly sizing the area into which you are
putting the address of the client. Alternatively you have placed the
table of items too high.
Hi thanks for the help yeah i haven see that its was .java and not .class, ok
then if i follow correctly what you are saying then it has to be something
like this
BufferedImage newImage = new BufferedImage (C:\Logo.jpg)
ImageIO.write(BufferedImage, JPEG, jpegImageFile) jpegImageFile will be
the
No i dont, and that weird jejeje netbeans seems to do that for me, so the
calls like ImageIO.write(BufferedImage, JPEG, jpegImageFile)? do i have to
do it in every image that i put in the pdf?? and the image is gererate
directly in the pdf??how can i do it??
Rob Sargent-4 wrote:
Some jar to
Did you go through all your jars looking for 'CLibJPEGImageReaderSpi'.
My greatest suspicion is that you don't have all your jars lined up.
Which jar(s) do you think supplies these?
What is your environment: just windows or do you have any tools like cygwin?
The jpegImageFile would be the
Yeah i do the class is in jai-imageio-1.1-sources.jar, the enviroment is just
windows xp, and the bufferedImage will be the path of the image??
Rob Sargent-4 wrote:
Did you go through all your jars looking for 'CLibJPEGImageReaderSpi'.
My greatest suspicion is that you don't have all your
On 06/14/2011 11:06 AM, Oscar.Flores wrote:
Yeah i do the class is in jai-imageio-1.1-sources.jar, the enviroment is just
Having the file in the ...sources.jar won't do the runtime world much
good. You need the jar of .class files for jai-imageio, not .java files
windows xp, and the
Ok yeah the log4j its having isuees to find the configuration
log4j:WARN No appenders could be found for logger
(org.apache.fop.util.ContentHandlerFactoryRegistry).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
Do you have a config file for log4j. Usually it's in a resource tree.
Are you copying that to your deployment? Is your ant script including
the config file in the jar of your application?
On 06/13/2011 10:12 AM, Oscar.Flores wrote:
Ok yeah the log4j its having isuees to find the
ok i dont thik i have a configuracion file i find the code that i put in the
other post i think its the basic
Rob Sargent-4 wrote:
Do you have a config file for log4j. Usually it's in a resource tree.
Are you copying that to your deployment? Is your ant script including
the config
Try this log4j.xml: Place it at the root of your jar file
?xml version=1.0 encoding=UTF-8?
!DOCTYPE log4j:configuration SYSTEM log4j.dtd
log4j:configuration xmlns:log4j=http://jakarta.apache.org/log4j/;
debug=false
appender name=CONSOLE class=org.apache.log4j.ConsoleAppender
param
ok well i put the xml in scr of my proyect i see that i still have the same
issues of the image render of any image i dont now if the xml its in place i
put the code down to see if something its missing
15:45:07,827 ERROR [render] Error while processing image:
c:\cfd\nombregp.bmp (i
mage/bmp)
Then it seems to me netbeans (if it's producing good output ==
assumptionA) is still using something that the command-line isn't.
And given assumptionA, you're java code is correct in terms of FOP and
your configuration isn't for ImageIO. Show your ImageIO related code
and are you sure it's
Ok i get it, actually the ImageIO library i added because i read in the
xmlgrapics that if something like the message
org.apache.xmlgraphics.image.loader.ImageException: Cannot load image (no
suitable loader/converter combination available)appear i have to add the jar
file to the classpath
I'm not sure I'm following correctly: does removing the xmlgraphics jar
cause netbeans to behave the same as the command-line run of you app? If
so, I suspect netbeans is registering services for you. Your own code
will have to make a call to one of the
IIORegistry.registerServiceProvider()
ok i made a test and tell me that the class is missign but maybe what you say
its rigth and it register the handler
so i gonna register the services so i do this
public static void main(String[] args) throws Exception {
DOMConfigurator.configure(D:/Mis
Some jar to which netbeans has access has those classes. Look in the
output of jar tvf each of your jars and see if any of those has the
named classes. If you find a jar with those classes make sure it's part
of your classpath for you app.
Are you making any calls like
I suspect running from your jar does not have/use the same classpath
that is in effect while you're in the debugger.
By what mechanism do you generate the jar?
Is it an executable jar or are you running java -classpath
your-jar-here:other-jars Main?
Make your IDE (netbeans) display the
You where absolutly rigth i miss a few libraries to add into the jar file, i
modified the build.xml to add the package and jar that i need, now the error
message is not there but still the images dont show in the pdf i remeber
that i do something in netbeans so they can add to the pdf but i cant
Hi there well i still got the problem but searching IN INTERNET i find a JPEG
renderer output for FOP its here
http://marc.info/?l=fop-userm=125986752706366w=2
the cuestion is can i render the image that i want to put in the pdf, and
then add to the xsl the render jpeg it will work??
and here
Ok i actually register the handler now what i have to do is setup this
handler or not?? and how can i do that, also it seem that the bmp its not
recognice also what can i do?? thanks for the help rob
also i am trying to convert the images to see if it that helps
Rob Sargent-4 wrote:
ImageIO.write(bufferedImage, JPEG, file);
On 06/07/2011 08:21 AM, Oscar.Flores wrote:
Ok i actually register the handler now what i have to do is setup this
handler or not?? and how can i do that, also it seem that the bmp its not
recognice also what can i do?? thanks for the help rob
also i am
Hi ok this is for generate images that dont need to be decompress later?? and
the result image i put in my xsl ?? then it should work, aaa i change to fop
1.0 and xml communs 1.4 and its the same jejeje dont find the image
preload
org.apache.fop.fo.flow.ExternalGraphic bind
SEVERE: Image not
Since you're now into xmlgraphics, I think you're best bet is here
http://xmlgraphics.apache.org/commons/image-loader.html
On 06/07/2011 10:18 AM, Oscar.Flores wrote:
Hi ok this is for generate images that dont need to be decompress later?? and
the result image i put in my xsl ?? then it
Yeah i think i need your help again i tried tu run the .jar file in the
console it work but without images this it what appears
GRAVE: Error while processing image: I:\cfd\rfc.jpg (image/jpeg)
org.apache.xmlgraphics.image.loader.ImageException: Cannot load image (no
suitable loader/converter
See the javadoc on IIORegistry. With ImageIO you may have to register
your handler(s). What does ImageIO.getImageReadersBySuffix() give you.
For certain jpegs we don't use ImageIO, rather the classes in
com.sun.image.codec.jpeg:
try {
FileOutputStream fos = new
Hi what can be the difference between execute the program in netbeans (where
it works and print the images and the jar in the console) also i tried the
imageIO.getImageReadersBySuffix but i cant interpretate the data y.y, its
that or always its true in the boolean variable, and how can i register
On 06/06/2011 02:29 PM, Oscar.Flores wrote:
Hi what can be the difference between execute the program in netbeans (where
it works and print the images and the jar in the console)
Different classes being loaded by Netbeans than the console app. Get
Netbeans to show you the full classpath it's
aaa hey thanks for the help the other day, i resolve the problem changing the
version of FOP for the 0.95beta instead of the 1.0, it works now it prints
the image and its good, thanks and we are in touch if anything else fails
jejeje
Rob Sargent-4 wrote:
Nothing in the log from the
34 matches
Mail list logo