[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] ServiceConfigurationError Error with AspectJ Load-Time Weaving


Hi all,

I have a Java Application in Eclipse which has a launchconfiguration, which works fine.

I have created an AspectJ project which adds some aspects to this application. If I create a "AspectJ Load-Time Weaving Application" and basically copy the existing launchconfiguration, the startup fails with

Exception in thread "Thread-4" sun.misc.ServiceConfigurationError: javax.imageio.spi.ImageOutputStreamSpi: Provider com.sun.media.imageioimpl.stream.ChannelImageOutputStreamSpi could not be instantiated: java.lang.IllegalArgumentException: vendorName == null!
    at sun.misc.Service.fail(Service.java:120)
    at sun.misc.Service.access$200(Service.java:111)
    at sun.misc.Service$LazyIterator.next(Service.java:276)
    at javax.imageio.spi.IIORegistry.registerApplicationClasspathSpis(IIORegistry.java:190)
    at javax.imageio.spi.IIORegistry.<init>(IIORegistry.java:121)
    at javax.imageio.spi.IIORegistry.getDefaultInstance(IIORegistry.java:142)
    at javax.imageio.ImageIO.<clinit>(ImageIO.java:48)
    at gui.icon.DefaultBlaIcon.getImage(DefaultBlaIcon.java:83)
Caused by: java.lang.IllegalArgumentException: vendorName == null!
    at javax.imageio.spi.IIOServiceProvider.<init>(IIOServiceProvider.java:59)
    at javax.imageio.spi.ImageOutputStreamSpi.<init>(ImageOutputStreamSpi.java:74)
    at com.sun.media.imageioimpl.stream.ChannelImageOutputStreamSpi.<init>(ChannelImageOutputStreamSpi.java:38)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at java.lang.Class.newInstance0(Class.java:355)
    at java.lang.Class.newInstance(Class.java:308)
    at sun.misc.Service$LazyIterator.next(Service.java:271)
    ... 16 more

I have Eclipse 3.7.0 with AspectJ downloaded from http://download.eclipse.org/tools/ajdt/37/update
As Java i tried jdk 1.5.0_22 and jdk1.6.0_26

Has anyone any idea what might cause the problem ? or any hint would could go wrong ?

Many many thanks for any hint
Andreas