You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sirona.apache.org by Romain Manni-Bucau <rm...@gmail.com> on 2014/03/23 18:28:12 UTC

java 7 changes make sirona agent broken

Hey guys,

since last refactoring of our javaagent we have issues transforming
bytecode compiled with java > 7. Here a sample error simply setting
compiler version to 1.7 in parent pom:

Exception Details:
  Location:
    org/apache/test/sirona/javaagent/SimpleTest$ServiceTransform.alreadyTryCatchWithReturnPrimitive()Z
@7: iconst_1
  Reason:
    Expected stackmap frame at this location.
  Bytecode:
    0000000: 2a12 5cb8 003e 4c04 3d2b 1cb8 0061 b600
    0000010: 421c ac4e 0336 042b 1504 b800 61b6 0042
    0000020: 1504 ac3a 052b 1905 b600 4819 05bf
  Exception Handler Table:
    bci [7, 8] => handler: 19
    bci [7, 34] => handler: 35
  Stackmap Table:
    full_frame(@35,{Object[#11],Object[#58]},{Object[#68]})


We use COMPUTE_FRAMES flag from asm, any idea what we can do for that?

Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau

Re: java 7 changes make sirona agent broken

Posted by Olivier Lamy <ol...@apache.org>.
On 24 March 2014 17:18, Romain Manni-Bucau <rm...@gmail.com> wrote:
> should be fixed.
>
> I'd appreciate any feedbacks since my tests are on simple (even if EE ;)) apps

no issue detected currently :-)

Thanks!
Olivier

> Romain Manni-Bucau
> Twitter: @rmannibucau
> Blog: http://rmannibucau.wordpress.com/
> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> Github: https://github.com/rmannibucau
>
>
>
> 2014-03-23 19:21 GMT+01:00 Jean-Louis MONTEIRO <je...@gmail.com>:
>> Absolutely no idea.
>> Le 23 mars 2014 19:29, "Romain Manni-Bucau" <rm...@gmail.com> a écrit
>> :
>>
>>> Hey guys,
>>>
>>> since last refactoring of our javaagent we have issues transforming
>>> bytecode compiled with java > 7. Here a sample error simply setting
>>> compiler version to 1.7 in parent pom:
>>>
>>> Exception Details:
>>>   Location:
>>>
>>> org/apache/test/sirona/javaagent/SimpleTest$ServiceTransform.alreadyTryCatchWithReturnPrimitive()Z
>>> @7: iconst_1
>>>   Reason:
>>>     Expected stackmap frame at this location.
>>>   Bytecode:
>>>     0000000: 2a12 5cb8 003e 4c04 3d2b 1cb8 0061 b600
>>>     0000010: 421c ac4e 0336 042b 1504 b800 61b6 0042
>>>     0000020: 1504 ac3a 052b 1905 b600 4819 05bf
>>>   Exception Handler Table:
>>>     bci [7, 8] => handler: 19
>>>     bci [7, 34] => handler: 35
>>>   Stackmap Table:
>>>     full_frame(@35,{Object[#11],Object[#58]},{Object[#68]})
>>>
>>>
>>> We use COMPUTE_FRAMES flag from asm, any idea what we can do for that?
>>>
>>> Romain Manni-Bucau
>>> Twitter: @rmannibucau
>>> Blog: http://rmannibucau.wordpress.com/
>>> LinkedIn: http://fr.linkedin.com/in/rmannibucau
>>> Github: https://github.com/rmannibucau
>>>



-- 
Olivier Lamy
Ecetera: http://ecetera.com.au
http://twitter.com/olamy | http://linkedin.com/in/olamy

Re: java 7 changes make sirona agent broken

Posted by Romain Manni-Bucau <rm...@gmail.com>.
should be fixed.

I'd appreciate any feedbacks since my tests are on simple (even if EE ;)) apps
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau



2014-03-23 19:21 GMT+01:00 Jean-Louis MONTEIRO <je...@gmail.com>:
> Absolutely no idea.
> Le 23 mars 2014 19:29, "Romain Manni-Bucau" <rm...@gmail.com> a écrit
> :
>
>> Hey guys,
>>
>> since last refactoring of our javaagent we have issues transforming
>> bytecode compiled with java > 7. Here a sample error simply setting
>> compiler version to 1.7 in parent pom:
>>
>> Exception Details:
>>   Location:
>>
>> org/apache/test/sirona/javaagent/SimpleTest$ServiceTransform.alreadyTryCatchWithReturnPrimitive()Z
>> @7: iconst_1
>>   Reason:
>>     Expected stackmap frame at this location.
>>   Bytecode:
>>     0000000: 2a12 5cb8 003e 4c04 3d2b 1cb8 0061 b600
>>     0000010: 421c ac4e 0336 042b 1504 b800 61b6 0042
>>     0000020: 1504 ac3a 052b 1905 b600 4819 05bf
>>   Exception Handler Table:
>>     bci [7, 8] => handler: 19
>>     bci [7, 34] => handler: 35
>>   Stackmap Table:
>>     full_frame(@35,{Object[#11],Object[#58]},{Object[#68]})
>>
>>
>> We use COMPUTE_FRAMES flag from asm, any idea what we can do for that?
>>
>> Romain Manni-Bucau
>> Twitter: @rmannibucau
>> Blog: http://rmannibucau.wordpress.com/
>> LinkedIn: http://fr.linkedin.com/in/rmannibucau
>> Github: https://github.com/rmannibucau
>>

Re: java 7 changes make sirona agent broken

Posted by Jean-Louis MONTEIRO <je...@gmail.com>.
Absolutely no idea.
Le 23 mars 2014 19:29, "Romain Manni-Bucau" <rm...@gmail.com> a écrit
:

> Hey guys,
>
> since last refactoring of our javaagent we have issues transforming
> bytecode compiled with java > 7. Here a sample error simply setting
> compiler version to 1.7 in parent pom:
>
> Exception Details:
>   Location:
>
> org/apache/test/sirona/javaagent/SimpleTest$ServiceTransform.alreadyTryCatchWithReturnPrimitive()Z
> @7: iconst_1
>   Reason:
>     Expected stackmap frame at this location.
>   Bytecode:
>     0000000: 2a12 5cb8 003e 4c04 3d2b 1cb8 0061 b600
>     0000010: 421c ac4e 0336 042b 1504 b800 61b6 0042
>     0000020: 1504 ac3a 052b 1905 b600 4819 05bf
>   Exception Handler Table:
>     bci [7, 8] => handler: 19
>     bci [7, 34] => handler: 35
>   Stackmap Table:
>     full_frame(@35,{Object[#11],Object[#58]},{Object[#68]})
>
>
> We use COMPUTE_FRAMES flag from asm, any idea what we can do for that?
>
> Romain Manni-Bucau
> Twitter: @rmannibucau
> Blog: http://rmannibucau.wordpress.com/
> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> Github: https://github.com/rmannibucau
>