-
1. Re: Adding "com/sun/image/codec/jpeg" in the sun.jdk module.
mageshbk Oct 3, 2012 7:46 AM (in response to jeff.yuchang)Jeff, From the error trace it seem to be emanating from batik. So it would be in that module. It has nothing to do with SwitchYard.
com.sun.image.codec.jpeg.TruncatedFileException from [Module "batik:main"
-
2. Re: Adding "com/sun/image/codec/jpeg" in the sun.jdk module.
mageshbk Oct 3, 2012 7:54 AM (in response to jeff.yuchang)Infact you can import that module like this in batik
<dependencies> <system> <paths> <path name="com/sun/image/codec/jpeg"/> </paths> </system> </dependencies>
-
3. Re: Adding "com/sun/image/codec/jpeg" in the sun.jdk module.
kcbabo Oct 3, 2012 7:50 AM (in response to mageshbk)1 of 1 people found this helpfulMagesh can answer for sure, but I thought the <system> tag in module.xml was used to declare JDK classes as dependencies. Generally speaking, we should avoid changing any AS7 module definitions. It looks like we are adding batik, so the dependency likely belongs there.
-
4. Re: Adding "com/sun/image/codec/jpeg" in the sun.jdk module.
kcbabo Oct 3, 2012 7:51 AM (in response to kcbabo)Bah! Beat me by like two seconds!
-
5. Re: Adding "com/sun/image/codec/jpeg" in the sun.jdk module.
mageshbk Oct 3, 2012 7:55 AM (in response to kcbabo)He.. he...
-
6. Re: Adding "com/sun/image/codec/jpeg" in the sun.jdk module.
jeff.yuchang Oct 3, 2012 8:06 AM (in response to mageshbk)Thanks Magesh and Keith.
The error is thrown from the batik module, but it was missing some classes inside jdk. Didn't realise that I can declare the system classes inside module directly.
Thanks
Jeff
-
7. Re: Adding "com/sun/image/codec/jpeg" in the sun.jdk module.
rcernich Oct 3, 2012 8:44 AM (in response to jeff.yuchang)Forgive me for asking, but will this dependency prevent us working with other JDKs? Also, it looks like that package may not exist in Java7.
-
8. Re: Adding "com/sun/image/codec/jpeg" in the sun.jdk module.
kcbabo Oct 3, 2012 9:01 AM (in response to rcernich)It's definitely a good question. AS itself has module dependencies defined with com/sun/... , so we are not all alone in this boat. :-) In this particular instance, however, I thought that the batik dependency was used exclusively by the BPEL console. It's Jeff's call on which JDKs he wants this to work on. We don't include the BPEL console by default - it's an installable option.
-
9. Re: Adding "com/sun/image/codec/jpeg" in the sun.jdk module.
jeff.yuchang Oct 3, 2012 9:22 AM (in response to rcernich)We've also noticed this limitation. Because we were just migrating the previous BPEL console from AS5 onto SwitchYard, didn't do any new development, we didn't want to make big changes, as this change might require changing the batik codes.
People do not seem to raise this issue in the previous versions, so we will continue do this unless we got some users asking for it. Just echo'ed Keith reply here, yes, this batik dependency is used exclusively by the BPEL console, specifally, by the svg graphic generation, it won't affect anything else in switchyard.
And thanks for asking, I've created a jira (https://issues.jboss.org/browse/RIFTSAW-512) to track it. :-)
Regards
Jeff