Personal tools
You are here: Home GRIA Documentation Documentation 5.3 FAQs What does "DIME header less than 12 bytes" mean?

What does "DIME header less than 12 bytes" mean?

Up to Table of Contents

This FAQ applies to: 5.3

This error is seen if you try to upload a file that does not exist. e.g.

def stager = dataService.createStagingArea("test")
def src = new FileDataSource(new File("MissingFile.txt"));
def handler = new DataHandler(src);

Will result in this error at the service:

Caused by: java.io.IOException: DIME header less than 12 bytes.
	at org.apache.axis.attachments.DimeDelimitedInputStream.readHeader(DimeDelimitedInputStream.java:319)
	at org.apache.axis.attachments.DimeDelimitedInputStream.<init>(DimeDelimitedInputStream.java:123)
	at org.apache.axis.attachments.DimeDelimitedInputStream.getNextStream(DimeDelimitedInputStream.java:108)
	at org.apache.axis.attachments.MultiPartDimeInputStream.readTillFound(MultiPartDimeInputStream.java:149)