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 2009/04/17 08:55:21 UTC

DO NOT REPLY [Bug 47042] New: two Page Settings Blocks found in the same sheet

https://issues.apache.org/bugzilla/show_bug.cgi?id=47042

           Summary: two Page Settings Blocks found in the same sheet
           Product: POI
           Version: 3.5-dev
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: critical
          Priority: P2
         Component: POI Overall
        AssignedTo: dev@poi.apache.org
        ReportedBy: kumar.naveen@in.ibm.com
                CC: kumar.naveen@in.ibm.com


Getting follwing exception when trying to create a worksheet using POI 3.5
beta6 version at Sheet.java line number : 241 (2nd exception). 

Exception in thread "main" java.lang.RuntimeException: two Page Settings Blocks
found in the same sheet
    at org.apache.poi.hssf.model.Sheet.<init>(Sheet.java:241)
    at org.apache.poi.hssf.model.Sheet.createSheet(Sheet.java:160)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:288)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:202)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:184)


Please let  me know the reason for this exception. Also try to resolve that if
possible,

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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


DO NOT REPLY [Bug 47042] two Page Settings Blocks found in the same sheet

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

Stefan Dotti <st...@shark-soft.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |

--- Comment #5 from Stefan Dotti <st...@shark-soft.com> 2011-06-08 06:51:20 UTC ---
I am getting this error when opening an xls file on Windows (Windows 7).
On Linux/Unix everything work fine.

my Code: 

InputStream in = new FileInputStream(xlsFile);
POIFSFileSystem fs = new POIFSFileSystem(in);
HSSFWorkbook wb = new HSSFWorkbook(fs);

The Exception:

java.lang.RuntimeException: java.lang.RuntimeException: two Page Settings
Blocks found in the same sheet
    at com.shark.testing.model.TestCaseLoader.load(TestCaseLoader.java:48)
    at
com.shark.testing.runtime.TestRunner.runFromSingleFile(TestRunner.java:108)
    at
com.shark.lv1871.testing.xls.LV1871XlsTestRunnerStep.start(LV1871XlsTestRunnerStep.java:262)
    at
com.shark.lv1871.testing.xls.LV1871XlsTestRunner.<init>(LV1871XlsTestRunner.java:135)
    at
com.shark.lv1871.testing.xls.LV1871XlsTestRunner.main(LV1871XlsTestRunner.java:233)
Caused by: java.lang.RuntimeException: two Page Settings Blocks found in the
same sheet
    at org.apache.poi.hssf.model.Sheet.<init>(Sheet.java:237)
    at org.apache.poi.hssf.model.Sheet.createSheet(Sheet.java:160)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:287)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:201)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:183)
    at com.shark.testing.utils.xls.XlsGridParser.parse(XlsGridParser.java:44)
    at com.shark.testing.utils.xls.FileParser.parse(FileParser.java:26)
    at com.shark.testing.model.TestCaseLoader.parse(TestCaseLoader.java:74)
    at com.shark.testing.model.TestCaseLoader.load(TestCaseLoader.java:46)
    ... 4 more

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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


DO NOT REPLY [Bug 47042] two Page Settings Blocks found in the same sheet

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

Nick Burch <ni...@alfresco.com> changed:

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

--- Comment #2 from Nick Burch <ni...@alfresco.com> 2010-06-03 07:29:12 EDT ---
Various duplicate page settings bugs have been fixed recently in poi, so I'm
assuming from the lack of recent comments on the bug that this has fixed it for
you.

If the bug still exists with the latest version of POI, please re-open the bug
and add a comment indicating this, ideally also with a failing unit test

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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


DO NOT REPLY [Bug 47042] two Page Settings Blocks found in the same sheet

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

--- Comment #6 from Stefan Dotti <st...@shark-soft.com> 2011-06-08 06:53:18 UTC ---
ups. we got a power failure - so i reposted my last comment accendently.

i tried it with the current 3.8 beta release and nothing changed.


 (In reply to comment #5)
> I am getting this error when opening an xls file on Windows (Windows 7).
> On Linux/Unix everything work fine.
> 
> my Code: 
> 
> InputStream in = new FileInputStream(xlsFile);
> POIFSFileSystem fs = new POIFSFileSystem(in);
> HSSFWorkbook wb = new HSSFWorkbook(fs);
> 
> The Exception:
> 
> java.lang.RuntimeException: java.lang.RuntimeException: two Page Settings
> Blocks found in the same sheet
>     at com.shark.testing.model.TestCaseLoader.load(TestCaseLoader.java:48)
>     at
> com.shark.testing.runtime.TestRunner.runFromSingleFile(TestRunner.java:108)
>     at
> com.shark.lv1871.testing.xls.LV1871XlsTestRunnerStep.start(LV1871XlsTestRunnerStep.java:262)
>     at
> com.shark.lv1871.testing.xls.LV1871XlsTestRunner.<init>(LV1871XlsTestRunner.java:135)
>     at
> com.shark.lv1871.testing.xls.LV1871XlsTestRunner.main(LV1871XlsTestRunner.java:233)
> Caused by: java.lang.RuntimeException: two Page Settings Blocks found in the
> same sheet
>     at org.apache.poi.hssf.model.Sheet.<init>(Sheet.java:237)
>     at org.apache.poi.hssf.model.Sheet.createSheet(Sheet.java:160)
>     at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:287)
>     at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:201)
>     at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:183)
>     at com.shark.testing.utils.xls.XlsGridParser.parse(XlsGridParser.java:44)
>     at com.shark.testing.utils.xls.FileParser.parse(FileParser.java:26)
>     at com.shark.testing.model.TestCaseLoader.parse(TestCaseLoader.java:74)
>     at com.shark.testing.model.TestCaseLoader.load(TestCaseLoader.java:46)
>     ... 4 more

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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


DO NOT REPLY [Bug 47042] two Page Settings Blocks found in the same sheet

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


Yegor Kozlov <ye...@dinom.ru> changed:

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




--- Comment #1 from Yegor Kozlov <ye...@dinom.ru>  2009-04-19 09:44:28 PST ---
Can you upload the problem file? Without it we can't do much to help you.

Yegor

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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


DO NOT REPLY [Bug 47042] two Page Settings Blocks found in the same sheet

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

Stefan Dotti <st...@shark-soft.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|LATER                       |

--- Comment #3 from Stefan Dotti <st...@shark-soft.com> 2011-06-07 12:47:35 UTC ---
I am getting this error when opening an xls file on Windows (Windows 7).
On Linux/Unix everything work fine.

my Code: 

InputStream in = new FileInputStream(xlsFile);
POIFSFileSystem fs = new POIFSFileSystem(in);
HSSFWorkbook wb = new HSSFWorkbook(fs);

The Exception:

java.lang.RuntimeException: java.lang.RuntimeException: two Page Settings
Blocks found in the same sheet
    at com.shark.testing.model.TestCaseLoader.load(TestCaseLoader.java:48)
    at
com.shark.testing.runtime.TestRunner.runFromSingleFile(TestRunner.java:108)
    at
com.shark.lv1871.testing.xls.LV1871XlsTestRunnerStep.start(LV1871XlsTestRunnerStep.java:262)
    at
com.shark.lv1871.testing.xls.LV1871XlsTestRunner.<init>(LV1871XlsTestRunner.java:135)
    at
com.shark.lv1871.testing.xls.LV1871XlsTestRunner.main(LV1871XlsTestRunner.java:233)
Caused by: java.lang.RuntimeException: two Page Settings Blocks found in the
same sheet
    at org.apache.poi.hssf.model.Sheet.<init>(Sheet.java:237)
    at org.apache.poi.hssf.model.Sheet.createSheet(Sheet.java:160)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:287)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:201)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:183)
    at com.shark.testing.utils.xls.XlsGridParser.parse(XlsGridParser.java:44)
    at com.shark.testing.utils.xls.FileParser.parse(FileParser.java:26)
    at com.shark.testing.model.TestCaseLoader.parse(TestCaseLoader.java:74)
    at com.shark.testing.model.TestCaseLoader.load(TestCaseLoader.java:46)
    ... 4 more

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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


DO NOT REPLY [Bug 47042] two Page Settings Blocks found in the same sheet

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

--- Comment #9 from Stefan Dotti <st...@shark-soft.com> 2011-06-09 14:18:07 UTC ---

Yes, you are right.
I was wronlgy testing with 3.5 because there are too many projects in my
Eclipse setting the classpath.
Now it works with 3.7 and 3.8beta3

(In reply to comment #8)
> (In reply to comment #7)
> > Created attachment 27129 [details]
> > an excel file producing the error
> 
> This file works just fine for me on 3.8 beta 3.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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


DO NOT REPLY [Bug 47042] two Page Settings Blocks found in the same sheet

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

--- Comment #7 from Stefan Dotti <st...@shark-soft.com> 2011-06-08 06:54:30 UTC ---
Created attachment 27129
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=27129
an excel file producing the error

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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


DO NOT REPLY [Bug 47042] two Page Settings Blocks found in the same sheet

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

Nick Burch <ni...@alfresco.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #4 from Nick Burch <ni...@alfresco.com> 2011-06-07 12:59:07 UTC ---
(In reply to comment #3)
> I am getting this error when opening an xls file on Windows (Windows 7).
> On Linux/Unix everything work fine.

Sounds like you have an older copy of POI on windows

If the problem still remains on 3.8 beta 3, please upload a failing unit test.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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


DO NOT REPLY [Bug 47042] two Page Settings Blocks found in the same sheet

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

Nick Burch <ni...@alfresco.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #8 from Nick Burch <ni...@alfresco.com> 2011-06-09 11:33:36 UTC ---
(In reply to comment #7)
> Created attachment 27129 [details]
> an excel file producing the error

This file works just fine for me on 3.8 beta 3.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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