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 2016/07/04 10:46:58 UTC
[Bug 59793] New: "Rule M2.4 exception : this error should NEVER
happen!" error message is still being triggered even with POI v3.14
https://bz.apache.org/bugzilla/show_bug.cgi?id=59793
Bug ID: 59793
Summary: "Rule M2.4 exception : this error should NEVER
happen!" error message is still being triggered even
with POI v3.14
Product: POI
Version: 3.14-FINAL
Hardware: PC
OS: Windows NT
Status: NEW
Severity: critical
Priority: P2
Component: POI Overall
Assignee: dev@poi.apache.org
Reporter: lamchiomeng78@gmail.com
Created attachment 34004
--> https://bz.apache.org/bugzilla/attachment.cgi?id=34004&action=edit
This file contains the codes of the two class I run that triggers the Rule M2.4
exception
The error message Rule M2.4 exception : this error should NEVER happen! is
still being triggered despite many duplicate reports. This time it's on POI
v3.14.
Kindly run the codes as per attached.
--
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 59793] "Rule M2.4 exception : this error should NEVER happen!"
error message is still being triggered even with POI v3.14
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59793
Dominik Stadler <do...@gmx.at> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |RESOLVED
Resolution|--- |WORKSFORME
--- Comment #5 from Dominik Stadler <do...@gmx.at> ---
Please reopen this bug if you can provide some more information here, currently
there is not much we can do without the actual file that triggers 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 59793] "Rule M2.4 exception : this error should NEVER happen!"
error message is still being triggered even with POI v3.14
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59793
Lam <la...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |lamchiomeng78@gmail.com
--- Comment #1 from Lam <la...@gmail.com> ---
Comment on attachment 34004
--> https://bz.apache.org/bugzilla/attachment.cgi?id=34004
This file contains the codes of the two class I run that triggers the Rule M2.4
exception
The excel file was created, but it's corrupted and cannot be opened by Excel
--
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 59793] "Rule M2.4 exception : this error should NEVER happen!"
error message is still being triggered even with POI v3.14
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59793
--- Comment #3 from Lam <la...@gmail.com> ---
Hi Andreas,
Thank you so much for your prompt reply. I have tried your method as per the
following:
It seems working now, except for the part in the If condition. I have replace
the method you mentioned, and it's still giving me the RUle M2.4 exception. I
suspect that it could be the closing of the FileOutputstream.
I'll test on it first, and will write again if I face any issues or need your
advice.
Thanks again for all your help !
--
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 59793] "Rule M2.4 exception : this error should NEVER happen!"
error message is still being triggered even with POI v3.14
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59793
Andreas Beeker <ki...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
--- Comment #2 from Andreas Beeker <ki...@apache.org> ---
Can you try to close your FileOutputStream?
so instead of:
workbook.write(new FileOutputStream("c:\\Test Data\\write.xlsx"));
workbook.close();
do:
FileOutputStream fos = new FileOutputStream("c:\\Test Data\\write.xlsx")
workbook.write(fos);
fos.close();
workbook.close();
Of course this assumes, that your initial write.xlsx is valid ...
If this doesn't work, please attach the write.xlsx (if this is the failing file
...)
--
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 59793] "Rule M2.4 exception : this error should NEVER happen!"
error message is still being triggered even with POI v3.14
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59793
--- Comment #4 from Dominik Stadler <do...@gmx.at> ---
As far as I see the code loads a file "write.xlsx", without this the code
likely will not be very useful, or? Can you attach it as well and describe how
it was biult (by which application, version, ...)
Also please try some more to provide a real reproducer that actually compiles,
your code still contains references to "login", which is commented out so a
developer who would like to take a look will first need to make the code
compilable/runnable, which is bad. Ideally you remove as many lines of code as
possible, to make the code as small as possible. Also commented out code
confuses, so remove this as well if possible.
--
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