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/28 05:53:03 UTC

[Bug 59907] New: problem with jasperreports-5.1.0 and poi-3.14

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

            Bug ID: 59907
           Summary: problem with jasperreports-5.1.0 and poi-3.14
           Product: POI
           Version: 3.14-FINAL
          Hardware: PC
                OS: Mac OS X 10.1
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HSSF
          Assignee: dev@poi.apache.org
          Reporter: muthukumar13402040@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 59907] problem with jasperreports-5.1.0 and poi-3.14

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

alexey.izmaylov@NetCracker.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |alexey.izmaylov@NetCracker.
                   |                            |com
           Severity|normal                      |critical

-- 
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 59907] problem with jasperreports-5.1.0 and poi-3.14

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

--- Comment #1 from muthukumar <mu...@gmail.com> ---
In jasperreports-5.1.0.jar there is a file called JRXlsExporter.java
Previously i used poi 3.11  and now want to update to poi 3.14 When i update
there is a problem occured with JRXlsExporter.java in line 1549 

               
anchor.setAnchorType(ImageAnchorTypeEnum.getByName(currentAnchorType).getValue());

in poi 3.11 the argument for HSSFClientAnchor.setAnchorType is int
in poi 3.14 the argument for HSSFClientAnchor.setAnchorType is AnchorType

so when  compiling i meet this error:

jasperreports_5_1_0/src/net/sf/jasperreports/engine/export/JRXlsExporter.java:1549:
error: method setAnchorType in class HSSFClientAnchor cannot be applied to
given types;
              
anchor.setAnchorType(ImageAnchorTypeEnum.getByName(currentAnchorType).getValue());

required: AnchorType
found: byte



How to i use jasperreports-5.1.0.jar with poi 3.14??????

-- 
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 59907] HSSFClientAnchor.setAnchorType API was broken (problem with jasperreports-5.1.0 and poi-3.14)

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

alexey.izmaylov@NetCracker.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|problem with                |HSSFClientAnchor.setAnchorT
                   |jasperreports-5.1.0 and     |ype API was broken (problem
                   |poi-3.14                    |with jasperreports-5.1.0
                   |                            |and poi-3.14)

-- 
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 59907] problem with jasperreports-5.1.0 and poi-3.14

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

muthukumar <mu...@gmail.com> changed:

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

--- Comment #4 from muthukumar <mu...@gmail.com> ---
i also check with POI-3.15-beta2.jar this bug is not fixed.

-- 
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 59907] HSSFClientAnchor.setAnchorType API was broken (problem with jasperreports-5.1.0 and poi-3.14)

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

--- Comment #9 from Javen O'Neal <on...@apache.org> ---
Because this regression was accidentally included in 3.15 final, we will leave
this backwards breaking change in, rather than breathing another release to
revert Tue behavior.

Please upgrade your Jasper reports code to use enums.

-- 
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 59907] HSSFClientAnchor.setAnchorType API was broken (problem with jasperreports-5.1.0 and poi-3.14)

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

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

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

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


Re: [Bug 59907] HSSFClientAnchor.setAnchorType API was broken (problem with jasperreports-5.1.0 and poi-3.14)

Posted by Javen O'Neal <on...@apache.org>.
I was thinking the same thing.
I can lead this release.

On Nov 8, 2016 9:39 AM, "Nick Burch" <ap...@gagravarr.org> wrote:

> On Tue, 8 Nov 2016, bugzilla@apache.org wrote:
>
>> (HX)SSFClientAnchor.setAnchorType(int) was restored in r1760617, which
>> was after the release of POI 3.15 final. This will be available again in
>> POI 3.16 beta 1 and 3.16 final.
>>
>
> Is it worth doing a 3.16 beta 1 release quite soon, so that people
> affected by this (and the related) issue can easily upgrade to get the fix?
>
> Nick
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
> For additional commands, e-mail: dev-help@poi.apache.org
>
>

Re: [Bug 59907] HSSFClientAnchor.setAnchorType API was broken (problem with jasperreports-5.1.0 and poi-3.14)

Posted by Nick Burch <ap...@gagravarr.org>.
On Tue, 8 Nov 2016, bugzilla@apache.org wrote:
> (HX)SSFClientAnchor.setAnchorType(int) was restored in r1760617, which 
> was after the release of POI 3.15 final. This will be available again in 
> POI 3.16 beta 1 and 3.16 final.

Is it worth doing a 3.16 beta 1 release quite soon, so that people 
affected by this (and the related) issue can easily upgrade to get the 
fix?

Nick

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


[Bug 59907] HSSFClientAnchor.setAnchorType API was broken (problem with jasperreports-5.1.0 and poi-3.14)

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

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

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

--- Comment #12 from Javen O'Neal <on...@apache.org> ---
(HX)SSFClientAnchor.setAnchorType(int) was restored in r1760617, which was
after the release of POI 3.15 final. This will be available again in POI 3.16
beta 1 and  3.16 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 59907] problem with jasperreports-5.1.0 and poi-3.14

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

--- Comment #6 from muthukumar <mu...@gmail.com> ---
Its my scenerio what i do?

-- 
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 59907] problem with jasperreports-5.1.0 and poi-3.14

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Depends on|                            |58636

--- Comment #7 from Dominik Stadler <do...@gmx.at> ---
The change was done under bug #58636

-- 
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 59907] problem with jasperreports-5.1.0 and poi-3.14

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

--- Comment #5 from Andreas Beeker <ki...@apache.org> ---
(In reply to muthukumar from comment #1)
> In jasperreports-5.1.0.jar there is a file called JRXlsExporter.java
> Previously i used poi 3.11  and now want to update to poi 3.14 When i update
> there is a problem occured with JRXlsExporter.java ...
> 
> How to i use jasperreports-5.1.0.jar with poi 3.14??????

I would simply copy&paste the jasper exporter and fix the call.
This assumes, that you instantiate and invoke the exporter yourself.

-- 
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 59907] HSSFClientAnchor.setAnchorType API was broken (problem with jasperreports-5.1.0 and poi-3.14)

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

alexey.izmaylov@NetCracker.com changed:

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

--- Comment #11 from alexey.izmaylov@NetCracker.com ---
Hi,

Can you keep both methods: new for enum and obsolete for int? 

setAnchorType(int) should be marked as @Deprecated and removed in next major
release (not minor).

-- 
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 59907] HSSFClientAnchor.setAnchorType API was broken (problem with jasperreports-5.1.0 and poi-3.14)

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|critical                    |regression

-- 
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 59907] problem with jasperreports-5.1.0 and poi-3.14

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

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

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

--- Comment #2 from Nick Burch <ap...@gagravarr.org> ---
Can you try with a recent nightly build of Apache POI? (Link on
http://poi.apache.org/download.html). We may have already fixed this, as we've
done a bit of work recently on enums/ints/etc, including fixing a few
accidental breaks

-- 
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 59907] HSSFClientAnchor.setAnchorType API was broken (problem with jasperreports-5.1.0 and poi-3.14)

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |59836


Referenced Bugs:

https://bz.apache.org/bugzilla/show_bug.cgi?id=59836
[Bug 59836] Tracker: Replace primitives with enums
-- 
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 59907] HSSFClientAnchor.setAnchorType API was broken (problem with jasperreports-5.1.0 and poi-3.14)

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

alexey.izmaylov@NetCracker.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|Mac OS X 10.1               |All

-- 
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 59907] problem with jasperreports-5.1.0 and poi-3.14

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

--- Comment #3 from muthukumar <mu...@gmail.com> ---
In which version of poi this fixes are available

-- 
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 59907] HSSFClientAnchor.setAnchorType API was broken (problem with jasperreports-5.1.0 and poi-3.14)

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

--- Comment #10 from Javen O'Neal <on...@apache.org> ---
(In reply to Javen O'Neal from comment #8)
> I have opened discussion for how to handle getAnchorType() returns int or
> AnchorType enum on the dev mailing list. 

https://lists.apache.org/thread.html/e8b4b6c5c54497d2a64b0855093569a53edddbfa6bf559a10a10ddb1@<dev.poi.apache.org>

https://lists.apache.org/thread.html/f7a862484826f01bdd3c8a8c82e143ec02c434bce916d3495c48ae8b@<dev.poi.apache.org>

-- 
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 59907] HSSFClientAnchor.setAnchorType API was broken (problem with jasperreports-5.1.0 and poi-3.14)

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|HSSF                        |SS Common

--- Comment #8 from Javen O'Neal <on...@apache.org> ---
This affects both HSSF and XSSF.

In r1760617, I have restored ClientAnchor#setAnchorType(int) to regain
backwards compatibility with POI 3.13 that was broken in POI 3.14 beta 1 thru
POI 3.15 final RC2. ClientAnchor#setAnchorType(int) will be available in 3.15
final RC3 and removed no earlier than 3.17.

I have opened discussion for how to handle getAnchorType() returns int or
AnchorType enum on the dev mailing list. Reverting back to 3.13's behavior of
returning an int would break backwards compatibility for those who upgraded to
3.14, and break compatibility when we switch to only supporting enums.

Assuming Jasper Reports does not call AnchorType.getAnchorType(), the commit
mentioned above should fix your problem from comment 1.

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