Hi all,

I wrote a Karaf command to generate a png file that then would be emailed to a specified recipient. I used java mail & added the png as an attachment. When I tried to run this, I get the following:

java.lang.NullPointerException

        at 
javax.activation.MimetypesFileTypeMap.<init>(MimetypesFileTypeMap.java:62)[:2.2.0]

        at 
javax.activation.FileTypeMap.getDefaultFileTypeMap(FileTypeMap.java:53)[:2.2.0]

        at 
javax.activation.FileDataSource.getContentType(FileDataSource.java:69)[:2.2.0]

        at javax.activation.DataHandler.<init>(DataHandler.java:41)[:2.2.0]


I did some searching and found this:

https://issues.apache.org/jira/browse/GERONIMO-6484

How do I go about resolving this? Remove the spec jar found in lib/endorsed & replace with this snapshot jar?

Thanks,
Jason

Reply via email to