Payload compression: payloadcompressor[tag=1125,type=6,count=1,size=5,offset=1465]
gzip
Exception in thread "main" java.lang.NumberFormatException: For input string: "f0199a88"
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at org.redline_rpm.payload.CpioHeader.readEight(CpioHeader.java:160)
at org.redline_rpm.payload.CpioHeader.read(CpioHeader.java:198)
at org.redline_rpm.Scanner.main(Scanner.java:68)
Most of the other RPMs are correctly preccessed. Any idea how to get around this? Aby ideas/help is appreciated.
For sure "f0199a88" cannot be converted into an integer.
Here is the exception located:
public int read( final ReadableByteChannel channel, int total) throws IOException {
total += skip( channel, total);
ByteBuffer descriptor = Util.fill( channel, CPIO_HEADER);
CharBuffer buffer = charset.decode( descriptor);
// 6 bytes are read OK
final CharSequence magic = readSix( buffer);
if ( !MAGIC.equals(magic.toString())) throw new IllegalStateException( "Invalid magic number '" + magic + "' of length '" + magic.length() + "'.");
// attempt to read 8 bytes : NOK - exception
inode = readEight( buffer);
final int mode = readEight( buffer);
permissions = mode & 07777;
type = mode >>> 12;
the value "f0199a88" is too large to fit in an integer:
@Test(expected=NumberFormatException.class)
public void parseInt() throws Exception {
final int result = Integer.parseInt("f0199a88", 16);
}
@Test
public void parseLong() throws Exception {
final long result = Long.parseLong("f0199a88", 16);
assertEquals(4028209800L ,result );
}
When running
I get the following message:
Most of the other RPMs are correctly preccessed. Any idea how to get around this? Aby ideas/help is appreciated.
Here is the exception located:
the full header (from debugger):
the value "f0199a88" is too large to fit in an integer:
All elements (I assume)