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/09/15 16:41:11 UTC

[Bug 60141] New: Executing a program in Eclipse is displaying an exception on the console: "Exception in thread "main" org.apache.poi.openxml4j.exceptions.OpenXML4JRuntimeException: Rule M2.4 exception"

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

            Bug ID: 60141
           Summary: Executing a program in Eclipse is displaying an
                    exception on the console: "Exception in thread "main"
                    org.apache.poi.openxml4j.exceptions.OpenXML4JRuntimeEx
                    ception: Rule M2.4 exception"
           Product: POI
           Version: 3.14-FINAL
          Hardware: PC
            Status: NEW
          Severity: critical
          Priority: P2
         Component: POI Overall
          Assignee: dev@poi.apache.org
          Reporter: vishalpamnani1@gmail.com

Created attachment 34253
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=34253&action=edit
Data Driven Testing

Executing a program in Eclipse is displaying an exception on the console:
"Exception in thread "main"
org.apache.poi.openxml4j.exceptions.OpenXML4JRuntimeException: Rule M2.4
exception"

Refer to the attached .java 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 60141] Executing a program in Eclipse is displaying an exception on the console: "Exception in thread "main" org.apache.poi.openxml4j.exceptions.OpenXML4JRuntimeException: Rule M2.4 exception"

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

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

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

-- 
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 60141] Executing a program in Eclipse is displaying an exception on the console: "Exception in thread "main" org.apache.poi.openxml4j.exceptions.OpenXML4JRuntimeException: Rule M2.4 exception"

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

Javen O'Neal <on...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All

--- Comment #1 from Javen O'Neal <on...@apache.org> ---
Can you provide a stack trace to know where the exception is coming from? You
might need to run this in debug mode with breakpoints to figure out which line
is causing the error.

My guess is that it's breaking at wb.write(fos), since you never closed your
file input stream and in Windows opening a file gets an exclusive lock until
the resource is closed.

Some suggestions:
* Open with a File instead of a FileInputStream
* Write to a different file than you read (and back up the original file in
case you accidentally mangle 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 60141] Executing a program in Eclipse is displaying an exception on the console: "Exception in thread "main" org.apache.poi.openxml4j.exceptions.OpenXML4JRuntimeException: Rule M2.4 exception"

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|NEEDINFO                    |RESOLVED

--- Comment #2 from Dominik Stadler <do...@gmx.at> ---
No update on the requested information for some time, therefore I am closing
this as INVALID for now, please reopen with more information if this is still a
problem for you.

-- 
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