You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2015/05/07 14:37:37 UTC

[Bug 57897] New: RecordFormatException: Unable to construct record instance

https://bz.apache.org/bugzilla/show_bug.cgi?id=57897

            Bug ID: 57897
           Summary: RecordFormatException: Unable to construct record
                    instance
           Product: POI
           Version: 3.9-FINAL
          Hardware: PC
            Status: NEW
          Severity: critical
          Priority: P2
         Component: HSSF
          Assignee: dev@poi.apache.org
          Reporter: skyrocker121@gmail.com

Created attachment 32721
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=32721&action=edit
Excel File and error stack trace

WorkbookFactory.create(is) (Where is input stream) is throwing an error.(using
an xls file) On looking up the error, I found Bug 50779 which suggested that it
has been fixed...Tried downloading the 3.11 Final version but still get the
same error..

org.apache.poi.hssf.record.RecordFormatException: Not enough data (1) to read
requested (2) bytes

On just opening the file and saving it without any modifications and keeping
the file type as xls only, the problem appears to go away...So some wierd
characters might be causing the issue..

Attached the xls file and the complete error strack trace.

Appreciate a quick turnaround !!!

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 57897] RecordFormatException: Unable to construct record instance

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57897

--- Comment #3 from Adithya <sk...@gmail.com> ---
Is anyone looking into this ??

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 57897] RecordFormatException: Unable to construct record instance

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57897

--- Comment #6 from Javen O'Neal <on...@apache.org> ---
Feel free to write a unit test for this. If it's fixed in the latest version
but not fixed in a previous version (or vice versa), you could use a tool look
git-bisect to find the version that fixed (or broke) this issue.

In general, the best way to see a bug resolved to your liking is to put in a
proportional amount of effort, which includes doing a majority of the leg work
developing necessary tests to prove existing functionality is incorrect,
proposing patches, then using those tests to prove the patch is correct.
Downloading the POI source code, setting up eclipse, and building and testing
the code is pretty straightforward.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 57897] RecordFormatException: Unable to construct record instance

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57897

Nick Burch <ap...@gagravarr.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All
             Status|NEW                         |NEEDINFO

--- Comment #1 from Nick Burch <ap...@gagravarr.org> ---
Any chance you could re-test with the POI 3.12 release candidate, and see if
it's fixed in that newer version? https://dist.apache.org/repos/dist/dev/poi/

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 57897] RecordFormatException: Unable to construct record instance

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57897

--- Comment #5 from Adithya <sk...@gmail.com> ---
Can anyone please suggest if this issue has been fixed and if yes , what
version is it ?

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 57897] RecordFormatException: Unable to construct record instance

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57897

ithan <it...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ithanriza@gmail.com

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 57897] RecordFormatException: Unable to construct record instance

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57897

Dominik Stadler <do...@gmx.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|3.9-FINAL                   |3.12-FINAL

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 57897] RecordFormatException: Unable to construct record instance

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57897

Adithya <sk...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

--- Comment #2 from Adithya <sk...@gmail.com> ---
Nick,

I tested it with the latest 3.12 version and I can confirm that the issue still
exists.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 57897] RecordFormatException: Unable to construct record instance

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57897

--- Comment #4 from Nick Burch <ap...@gagravarr.org> ---
I am sorry that the free support you receive from a community of volunteers for
some software that is free isn't as fast as you would like. If only you had the
source code for the software, so you could investigate it yourself! Or a
workaround! Oh, wait...

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 57897] RecordFormatException: Unable to construct record instance

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57897

Hamza Gobir <hg...@googlemail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hgobir@googlemail.com

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org