You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Clement Escoffier <cl...@gmail.com> on 2014/06/14 09:49:53 UTC

Re: IPojo and Java 8

Hi,

Definitely a bug related to Java 8. Can you send me your class, seems like the manipulator does not compute the right frames.

Regards,

Clement

On 13 juin 2014 at 22:25:40, sylvain.hamel@miranda.com (sylvain.hamel@miranda.com) wrote:

Hi 

We just migrated to Java 8 and IPojo 1.12.0. Previously we were using 
java 7 and IPojo 1.11.2 and everything was working fine. Now i'm getting 
this kind of error when trying to get an instance from the IPojo 
framework. 

We are using the latest IPojo and IPojo manipulator in our Maven project. 


Does anyone knows what is the cause of this porblem, and if there is a 
solution to it 


[20:08.260 event notifier] WARN 
com.miranda.icontrol.tools.MTLookupLocatorExt (502) - discovered - lookup 
on 10.0.4.0 
[20:08.447 [iPOJO] pool-1-thread-1] INFO System (569) - !SESSION 
2014-06-13 15:20:05.832 ----------------------------------------------- 
[20:08.447 [iPOJO] pool-1-thread-1] INFO System (569) - 
eclipse.buildId=unknown 
[20:08.447 [iPOJO] pool-1-thread-1] INFO System (569) - 
java.version=1.8.0_05 
[20:08.448 [iPOJO] pool-1-thread-1] INFO System (569) - 
java.vendor=Oracle Corporation 
[20:08.448 [iPOJO] pool-1-thread-1] INFO System (569) - BootLoader 
constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US 
[20:08.448 [iPOJO] pool-1-thread-1] INFO System (569) - Framework 
arguments: -ea -verbose 
[20:08.449 [iPOJO] pool-1-thread-1] INFO System (569) - Command-line 
arguments: -dev 
file:E:/workspace-kepler/.metadata/.plugins/org.eclipse.pde.core/Copy of 
Densite OSGI-maven refactor_2/dev.properties -ea -debug -verbose -os win32 
-ws win32 -arch x86_64 -consoleLog -clean -console 63116 
[20:08.449 [iPOJO] pool-1-thread-1] INFO System (569) - !ENTRY 
com.miranda.densite.message.pipeline.routing 4 0 2014-06-13 15:20:08.449 
[20:08.449 [iPOJO] pool-1-thread-1] INFO System (569) - !MESSAGE [ERROR] 
: [pipelineRouterFactory-0] createInstance -> The POJO constructor 
invocation failed : Expecting a stackmap frame at branch target 15 
[20:08.449 [iPOJO] pool-1-thread-1] INFO System (569) - Exception 
Details: 
[20:08.449 [iPOJO] pool-1-thread-1] INFO System (569) - Location: 
[20:08.450 [iPOJO] pool-1-thread-1] INFO System (569) - 
com/miranda/densite/message/pipeline/routing/internal/service/PipelineRouterImpl.getPipeline(IILjava/lang/String;)Lcom/miranda/densite/message/pipeline/routing/api/pipeline/MessagePipeline; 
@4: ifne 
[20:08.450 [iPOJO] pool-1-thread-1] INFO System (569) - Reason: 
[20:08.450 [iPOJO] pool-1-thread-1] INFO System (569) - Expected 
stackmap frame at this location. 
[20:08.450 [iPOJO] pool-1-thread-1] INFO System (569) - Bytecode: 
[20:08.451 [iPOJO] pool-1-thread-1] INFO System (569) - 0000000: 2ab4 
0080 9a00 0b2a 1b1c 2db7 0083 b02a 
[20:08.451 [iPOJO] pool-1-thread-1] INFO System (569) - 0000010: b400 
1e2a 1285 06bd 0004 5903 1bbb 0087 
[20:08.451 [iPOJO] pool-1-thread-1] INFO System (569) - 0000020: 5a5f 
b700 8a53 5904 1cbb 0087 5a5f b700 
[20:08.451 [iPOJO] pool-1-thread-1] INFO System (569) - 0000030: 8a53 
5905 2d53 b600 8e2a 1b1c 2db7 0083 
[20:08.452 [iPOJO] pool-1-thread-1] INFO System (569) - 0000040: 3a06 
2ab4 001e 2a12 8519 06b6 0091 a700 
[20:08.452 [iPOJO] pool-1-thread-1] INFO System (569) - 0000050: 143a 
072a b400 1e2a 1285 1907 b600 9519 
[20:08.452 [iPOJO] pool-1-thread-1] INFO System (569) - 0000060: 07bf 
1906 b0 
[20:08.452 [iPOJO] pool-1-thread-1] INFO System (569) - Exception 
Handler Table: 
[20:08.452 [iPOJO] pool-1-thread-1] INFO System (569) - bci [15, 78] 
=> handler: 81 
[20:08.453 [iPOJO] pool-1-thread-1] INFO System (569) - !STACK 0 
[20:08.453 [iPOJO] pool-1-thread-1] INFO System (569) - 
java.lang.VerifyError: Expecting a stackmap frame at branch target 15 
[20:08.453 [iPOJO] pool-1-thread-1] INFO System (569) - Exception 
Details: 
[20:08.453 [iPOJO] pool-1-thread-1] INFO System (569) - Location: 
[20:08.454 [iPOJO] pool-1-thread-1] INFO System (569) - 
com/miranda/densite/message/pipeline/routing/internal/service/PipelineRouterImpl.getPipeline(IILjava/lang/String;)Lcom/miranda/densite/message/pipeline/routing/api/pipeline/MessagePipeline; 
@4: ifne 
[20:08.454 [iPOJO] pool-1-thread-1] INFO System (569) - Reason: 
[20:08.454 [iPOJO] pool-1-thread-1] INFO System (569) - Expected 
stackmap frame at this location. 
[20:08.454 [iPOJO] pool-1-thread-1] INFO System (569) - Bytecode: 
[20:08.455 [iPOJO] pool-1-thread-1] INFO System (569) - 0000000: 2ab4 
0080 9a00 0b2a 1b1c 2db7 0083 b02a 
[20:08.455 [iPOJO] pool-1-thread-1] INFO System (569) - 0000010: b400 
1e2a 1285 06bd 0004 5903 1bbb 0087 
[20:08.455 [iPOJO] pool-1-thread-1] INFO System (569) - 0000020: 5a5f 
b700 8a53 5904 1cbb 0087 5a5f b700 
[20:08.455 [iPOJO] pool-1-thread-1] INFO System (569) - 0000030: 8a53 
5905 2d53 b600 8e2a 1b1c 2db7 0083 
[20:08.455 [iPOJO] pool-1-thread-1] INFO System (569) - 0000040: 3a06 
2ab4 001e 2a12 8519 06b6 0091 a700 
[20:08.456 [iPOJO] pool-1-thread-1] INFO System (569) - 0000050: 143a 
072a b400 1e2a 1285 1907 b600 9519 
[20:08.456 [iPOJO] pool-1-thread-1] INFO System (569) - 0000060: 07bf 
1906 b0 
[20:08.456 [iPOJO] pool-1-thread-1] INFO System (569) - Exception 
Handler Table: 
[20:08.456 [iPOJO] pool-1-thread-1] INFO System (569) - bci [15, 78] 
=> handler: 81 
[20:08.456 [iPOJO] pool-1-thread-1] INFO System (569) - at 
java.lang.Class.getDeclaredConstructors0(Native Method) 
[20:08.457 [iPOJO] pool-1-thread-1] INFO System (569) - at 
java.lang.Class.privateGetDeclaredConstructors(Unknown Source) 
[20:08.457 [iPOJO] pool-1-thread-1] INFO System (569) - at 
java.lang.Class.getConstructor0(Unknown Source) 
[20:08.457 [iPOJO] pool-1-thread-1] INFO System (569) - at 
java.lang.Class.getDeclaredConstructor(Unknown Source) 
[20:08.457 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.InstanceManager.createObject( 
InstanceManager.java:746) 
[20:08.458 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.InstanceManager.getPojoObject( 
InstanceManager.java:961) 
[20:08.458 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.handlers.lifecycle.callback.LifecycleCallbackHandler.__M_stateChanged( 
LifecycleCallbackHandler.java:156) 
[20:08.458 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.handlers.lifecycle.callback.LifecycleCallbackHandler.stateChanged(LifecycleCallbackHandler.java) 
[20:08.459 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.InstanceManager.setState(InstanceManager.java:560) 
[20:08.459 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.InstanceManager.stateChanged( 
InstanceManager.java:1531) 
[20:08.459 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.InstanceManager.setState(InstanceManager.java:585) 
[20:08.459 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.HandlerManager.stateChanged(HandlerManager.java:239 
) 
[20:08.460 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.Handler.setValidity(Handler.java:174) 
[20:08.460 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.handlers.dependency.DependencyHandler.__M_checkContext( 
DependencyHandler.java:170) 
[20:08.460 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.handlers.dependency.DependencyHandler.checkContext(DependencyHandler.java) 
[20:08.460 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.handlers.dependency.DependencyHandler.__M_validate( 
DependencyHandler.java:133) 
[20:08.461 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.handlers.dependency.DependencyHandler.validate(DependencyHandler.java) 
[20:08.461 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.util.DependencyModel.validate( 
DependencyModel.java:522) 
[20:08.461 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.util.DependencyModel.computeAndSetDependencyState( 
DependencyModel.java:362) 
[20:08.461 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.util.DependencyModel.onChange( 
DependencyModel.java:1123) 
[20:08.462 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.dependency.impl.ServiceReferenceManager.fireUpdate( 
ServiceReferenceManager.java:561) 
[20:08.462 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.dependency.impl.ServiceReferenceManager.onNewMatchingService( 
ServiceReferenceManager.java:525) 
[20:08.462 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.dependency.impl.ServiceReferenceManager.addedService( 
ServiceReferenceManager.java:504) 
[20:08.462 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.util.Tracker$Tracked.trackAdding(Tracker.java:711) 
[20:08.463 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.util.Tracker$Tracked.track(Tracker.java:672) 
[20:08.463 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.util.Tracker$Tracked.serviceChanged( 
Tracker.java:633) 
[20:08.463 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged( 
FilteredServiceListener.java:107) 
[20:08.463 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent( 
BundleContextImpl.java:861) 
[20:08.463 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent( 
EventManager.java:230) 
[20:08.464 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous( 
ListenerQueue.java:148) 
[20:08.464 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged( 
ServiceRegistry.java:819) 
[20:08.464 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry$1.run( 
ServiceRegistry.java:775) 
[20:08.464 [iPOJO] pool-1-thread-1] INFO System (569) - at 
java.security.AccessController.doPrivileged(Native Method) 
[20:08.464 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent( 
ServiceRegistry.java:773) 
[20:08.464 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register( 
ServiceRegistrationImpl.java:130) 
[20:08.464 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService( 
ServiceRegistry.java:214) 
[20:08.465 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService( 
BundleContextImpl.java:433) 
[20:08.465 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.IPojoContext.registerService(IPojoContext.java:395) 
[20:08.465 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.handlers.providedservice.ProvidedService.registerService( 
ProvidedService.java:351) 
[20:08.465 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.handlers.providedservice.ProvidedServiceHandler.__M_stateChanged( 
ProvidedServiceHandler.java:484) 
[20:08.465 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.handlers.providedservice.ProvidedServiceHandler.stateChanged(ProvidedServiceHandler.java) 
[20:08.465 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.InstanceManager.setState(InstanceManager.java:560) 
[20:08.466 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.InstanceManager.start(InstanceManager.java:440) 
[20:08.466 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.ComponentFactory.createInstance( 
ComponentFactory.java:179) 
[20:08.466 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.IPojoFactory.createComponentInstance( 
IPojoFactory.java:319) 
[20:08.466 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.IPojoFactory.createComponentInstance( 
IPojoFactory.java:240) 
[20:08.466 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.extender.internal.linker.ManagedType$InstanceSupport$1.call( 
ManagedType.java:312) 
[20:08.467 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.extender.internal.linker.ManagedType$InstanceSupport$1.call( 
ManagedType.java:306) 
[20:08.467 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.extender.internal.queue.JobInfoCallable.call( 
JobInfoCallable.java:114) 
[20:08.467 [iPOJO] pool-1-thread-1] INFO System (569) - at 
java.util.concurrent.FutureTask.run(Unknown Source) 
[20:08.467 [iPOJO] pool-1-thread-1] INFO System (569) - at 
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) 
[20:08.468 [iPOJO] pool-1-thread-1] INFO System (569) - at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 
[20:08.468 [iPOJO] pool-1-thread-1] INFO System (569) - at 
java.lang.Thread.run(Unknown Source) 
[20:08.474 [iPOJO] pool-1-thread-1] INFO System (569) - !ENTRY 
org.eclipse.osgi 4 0 2014-06-13 15:20:08.474 
[20:08.475 [iPOJO] pool-1-thread-1] INFO System (569) - !MESSAGE An 
unexpected runtime error has occurred. 
[20:08.475 [iPOJO] pool-1-thread-1] INFO System (569) - !STACK 0 
Sylvain Hamel | Software Designer/Concepteur de logiciels 
Grass Valley, A Belden Brand | Tel:(514) 333-1772 Ext: 3146 
3499 Douglas-B.-Floreani, Montreal, Quebec Canada H4S 2C6 

Please note our new company name! 
www.new.grassvalley.com 
DISCLAIMER: 
Privileged and/or Confidential information may be contained in this 
message. If you are not the addressee of this message, you may not 
copy, use or deliver this message to anyone. In such event, you 
should destroy the message and kindly notify the sender by reply 
e-mail. It is understood that opinions or conclusions that do not 
relate to the official business of the company are neither given 
nor endorsed by the company. 
Thank You. 

Re: IPojo and Java 8

Posted by Clement Escoffier <cl...@gmail.com>.
Hi,

Good news, thanks. It was probably using an outdated iPOJO manipulator somewhere…

Clement

On 20 juin 2014 at 19:49:19, sylvain.hamel@miranda.com (sylvain.hamel@miranda.com) wrote:

Hi

One of our team member, reworked the maven scripts and now its seems to be working fine.   Thanks again.
Sylvain Hamel |Software Designer/Concepteur de logiciels
Grass Valley, A Belden Brand | Tel:(514) 333-1772 Ext: 3146
3499 Douglas-B.-Floreani, Montreal, Quebec Canada H4S 2C6
 
Please note our new company name!
www.new.grassvalley.com



From:        Clement Escoffier <cl...@gmail.com>
To:        users@felix.apache.org,
Date:        2014-06-20 13:45
Subject:        Re: IPojo and Java 8




Hi,

FYI, I’ve started investigating. So far I’m able to manipulate and use your classes with the 1.12.0 manipulator. Will investigate a bit more to reproduce  your case more precisely.

Regards,

Clement



On 17 juin 2014 at 14:57:55, sylvain.hamel@miranda.com (sylvain.hamel@miranda.com) wrote:

Hi  

We are using the maven-ipojo-plugin in the build system and the  
ipojoization plugin in eclipse.  
Sylvain Hamel | Software Designer/Concepteur de logiciels  
Grass Valley, A Belden Brand | Tel:(514) 333-1772 Ext: 3146  
3499 Douglas-B.-Floreani, Montreal, Quebec Canada H4S 2C6  

Please note our new company name!  
www.new.grassvalley.com 



From: Clement Escoffier <cl...@gmail.com>  
To: users@felix.apache.org,  
Date: 2014-06-16 15:14  
Subject: Re: IPojo and Java 8  



Hi,  

Thanks for the code. I?ve a small question about your build system. Are  
you using the ipojo-maven-plugin or the ipojo-bnd-plugin ?  

Regards,  

Clement  

On 16 juin 2014 at 15:06:42, sylvain.hamel@miranda.com  
(sylvain.hamel@miranda.com) wrote:  

Hi  

I have attached my classes, an APi bundle and an Implementation  
bundle. Thanks for looking into it.  

Sylvain Hamel |Software Designer/Concepteur de logiciels  
Grass Valley, A Belden Brand | Tel:(514) 333-1772 Ext: 3146  
3499 Douglas-B.-Floreani, Montreal, Quebec Canada H4S 2C6  

Please note our new company name!  
www.new.grassvalley.com 



From: Clement Escoffier <cl...@gmail.com>  
To: users@felix.apache.org,  
Date: 2014-06-14 03:50  
Subject: Re: IPojo and Java 8  




Hi,  

Definitely a bug related to Java 8. Can you send me your class, seems like  
the manipulator does not compute the right frames.  

Regards,  

Clement  

On 13 juin 2014 at 22:25:40, sylvain.hamel@miranda.com  
(sylvain.hamel@miranda.com) wrote:  

Hi  

We just migrated to Java 8 and IPojo 1.12.0. Previously we were using  
java 7 and IPojo 1.11.2 and everything was working fine. Now i'm getting  
this kind of error when trying to get an instance from the IPojo  
framework.  

We are using the latest IPojo and IPojo manipulator in our Maven project.  


Does anyone knows what is the cause of this porblem, and if there is a  
solution to it  


[20:08.260 event notifier] WARN  
com.miranda.icontrol.tools.MTLookupLocatorExt (502) - discovered - lookup  
on 10.0.4.0  
[20:08.447 [iPOJO] pool-1-thread-1] INFO System (569) - !SESSION  
2014-06-13 15:20:05.832 -----------------------------------------------  
[20:08.447 [iPOJO] pool-1-thread-1] INFO System (569) -  
eclipse.buildId=unknown  
[20:08.447 [iPOJO] pool-1-thread-1] INFO System (569) -  
java.version=1.8.0_05  
[20:08.448 [iPOJO] pool-1-thread-1] INFO System (569) -  
java.vendor=Oracle Corporation  
[20:08.448 [iPOJO] pool-1-thread-1] INFO System (569) - BootLoader  
constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US  
[20:08.448 [iPOJO] pool-1-thread-1] INFO System (569) - Framework  
arguments: -ea -verbose  
[20:08.449 [iPOJO] pool-1-thread-1] INFO System (569) - Command-line  
arguments: -dev  
file:E:/workspace-kepler/.metadata/.plugins/org.eclipse.pde.core/Copyof 
Densite OSGI-maven refactor_2/dev.properties -ea -debug -verbose -os win32  
-ws win32 -arch x86_64 -consoleLog -clean -console 63116  
[20:08.449 [iPOJO] pool-1-thread-1] INFO System (569) - !ENTRY  
com.miranda.densite.message.pipeline.routing 4 0 2014-06-13 15:20:08.449  
[20:08.449 [iPOJO] pool-1-thread-1] INFO System (569) - !MESSAGE [ERROR]  
: [pipelineRouterFactory-0] createInstance -> The POJO constructor  
invocation failed : Expecting a stackmap frame at branch target 15  
[20:08.449 [iPOJO] pool-1-thread-1] INFO System (569) - Exception  
Details:  
[20:08.449 [iPOJO] pool-1-thread-1] INFO System (569) - Location:  
[20:08.450 [iPOJO] pool-1-thread-1] INFO System (569) -  
com/miranda/densite/message/pipeline/routing/internal/service/PipelineRouterImpl.getPipeline(IILjava/lang/String;)Lcom/miranda/densite/message/pipeline/routing/api/pipeline/MessagePipeline;  
@4: ifne  
[20:08.450 [iPOJO] pool-1-thread-1] INFO System (569) - Reason:  
[20:08.450 [iPOJO] pool-1-thread-1] INFO System (569) - Expected  
stackmap frame at this location.  
[20:08.450 [iPOJO] pool-1-thread-1] INFO System (569) - Bytecode:  
[20:08.451 [iPOJO] pool-1-thread-1] INFO System (569) - 0000000: 2ab4  
0080 9a00 0b2a 1b1c 2db7 0083 b02a  
[20:08.451 [iPOJO] pool-1-thread-1] INFO System (569) - 0000010: b400  
1e2a 1285 06bd 0004 5903 1bbb 0087  
[20:08.451 [iPOJO] pool-1-thread-1] INFO System (569) - 0000020: 5a5f  
b700 8a53 5904 1cbb 0087 5a5f b700  
[20:08.451 [iPOJO] pool-1-thread-1] INFO System (569) - 0000030: 8a53  
5905 2d53 b600 8e2a 1b1c 2db7 0083  
[20:08.452 [iPOJO] pool-1-thread-1] INFO System (569) - 0000040: 3a06  
2ab4 001e 2a12 8519 06b6 0091 a700  
[20:08.452 [iPOJO] pool-1-thread-1] INFO System (569) - 0000050: 143a  
072a b400 1e2a 1285 1907 b600 9519  
[20:08.452 [iPOJO] pool-1-thread-1] INFO System (569) - 0000060: 07bf  
1906 b0  
[20:08.452 [iPOJO] pool-1-thread-1] INFO System (569) - Exception  
Handler Table:  
[20:08.452 [iPOJO] pool-1-thread-1] INFO System (569) - bci [15, 78]  
=> handler: 81  
[20:08.453 [iPOJO] pool-1-thread-1] INFO System (569) - !STACK 0  
[20:08.453 [iPOJO] pool-1-thread-1] INFO System (569) -  
java.lang.VerifyError: Expecting a stackmap frame at branch target 15  
[20:08.453 [iPOJO] pool-1-thread-1] INFO System (569) - Exception  
Details:  
[20:08.453 [iPOJO] pool-1-thread-1] INFO System (569) - Location:  
[20:08.454 [iPOJO] pool-1-thread-1] INFO System (569) -  
com/miranda/densite/message/pipeline/routing/internal/service/PipelineRouterImpl.getPipeline(IILjava/lang/String;)Lcom/miranda/densite/message/pipeline/routing/api/pipeline/MessagePipeline;  
@4: ifne  
[20:08.454 [iPOJO] pool-1-thread-1] INFO System (569) - Reason:  
[20:08.454 [iPOJO] pool-1-thread-1] INFO System (569) - Expected  
stackmap frame at this location.  
[20:08.454 [iPOJO] pool-1-thread-1] INFO System (569) - Bytecode:  
[20:08.455 [iPOJO] pool-1-thread-1] INFO System (569) - 0000000: 2ab4  
0080 9a00 0b2a 1b1c 2db7 0083 b02a  
[20:08.455 [iPOJO] pool-1-thread-1] INFO System (569) - 0000010: b400  
1e2a 1285 06bd 0004 5903 1bbb 0087  
[20:08.455 [iPOJO] pool-1-thread-1] INFO System (569) - 0000020: 5a5f  
b700 8a53 5904 1cbb 0087 5a5f b700  
[20:08.455 [iPOJO] pool-1-thread-1] INFO System (569) - 0000030: 8a53  
5905 2d53 b600 8e2a 1b1c 2db7 0083  
[20:08.455 [iPOJO] pool-1-thread-1] INFO System (569) - 0000040: 3a06  
2ab4 001e 2a12 8519 06b6 0091 a700  
[20:08.456 [iPOJO] pool-1-thread-1] INFO System (569) - 0000050: 143a  
072a b400 1e2a 1285 1907 b600 9519  
[20:08.456 [iPOJO] pool-1-thread-1] INFO System (569) - 0000060: 07bf  
1906 b0  
[20:08.456 [iPOJO] pool-1-thread-1] INFO System (569) - Exception  
Handler Table:  
[20:08.456 [iPOJO] pool-1-thread-1] INFO System (569) - bci [15, 78]  
=> handler: 81  
[20:08.456 [iPOJO] pool-1-thread-1] INFO System (569) - at  
java.lang.Class.getDeclaredConstructors0(Native Method)  
[20:08.457 [iPOJO] pool-1-thread-1] INFO System (569) - at  
java.lang.Class.privateGetDeclaredConstructors(Unknown Source)  
[20:08.457 [iPOJO] pool-1-thread-1] INFO System (569) - at  
java.lang.Class.getConstructor0(Unknown Source)  
[20:08.457 [iPOJO] pool-1-thread-1] INFO System (569) - at  
java.lang.Class.getDeclaredConstructor(Unknown Source)  
[20:08.457 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.InstanceManager.createObject(  
InstanceManager.java:746)  
[20:08.458 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.InstanceManager.getPojoObject(  
InstanceManager.java:961)  
[20:08.458 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.handlers.lifecycle.callback.LifecycleCallbackHandler.__M_stateChanged(  
LifecycleCallbackHandler.java:156)  
[20:08.458 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.handlers.lifecycle.callback.LifecycleCallbackHandler.stateChanged(LifecycleCallbackHandler.java)  
[20:08.459 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.InstanceManager.setState(InstanceManager.java:560)  
[20:08.459 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.InstanceManager.stateChanged(  
InstanceManager.java:1531)  
[20:08.459 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.InstanceManager.setState(InstanceManager.java:585)  
[20:08.459 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.HandlerManager.stateChanged(HandlerManager.java:239  
)  
[20:08.460 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.Handler.setValidity(Handler.java:174)  
[20:08.460 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.handlers.dependency.DependencyHandler.__M_checkContext(  
DependencyHandler.java:170)  
[20:08.460 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.handlers.dependency.DependencyHandler.checkContext(DependencyHandler.java)  
[20:08.460 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.handlers.dependency.DependencyHandler.__M_validate(  
DependencyHandler.java:133)  
[20:08.461 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.handlers.dependency.DependencyHandler.validate(DependencyHandler.java)  
[20:08.461 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.util.DependencyModel.validate(  
DependencyModel.java:522)  
[20:08.461 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.util.DependencyModel.computeAndSetDependencyState(  
DependencyModel.java:362)  
[20:08.461 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.util.DependencyModel.onChange(  
DependencyModel.java:1123)  
[20:08.462 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.dependency.impl.ServiceReferenceManager.fireUpdate(  
ServiceReferenceManager.java:561)  
[20:08.462 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.dependency.impl.ServiceReferenceManager.onNewMatchingService(  
ServiceReferenceManager.java:525)  
[20:08.462 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.dependency.impl.ServiceReferenceManager.addedService(  
ServiceReferenceManager.java:504)  
[20:08.462 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.util.Tracker$Tracked.trackAdding(Tracker.java:711)  
[20:08.463 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.util.Tracker$Tracked.track(Tracker.java:672)  
[20:08.463 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.util.Tracker$Tracked.serviceChanged(  
Tracker.java:633)  
[20:08.463 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(  
FilteredServiceListener.java:107)  
[20:08.463 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(  
BundleContextImpl.java:861)  
[20:08.463 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(  
EventManager.java:230)  
[20:08.464 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(  
ListenerQueue.java:148)  
[20:08.464 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(  
ServiceRegistry.java:819)  
[20:08.464 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry$1.run(  
ServiceRegistry.java:775)  
[20:08.464 [iPOJO] pool-1-thread-1] INFO System (569) - at  
java.security.AccessController.doPrivileged(Native Method)  
[20:08.464 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(  
ServiceRegistry.java:773)  
[20:08.464 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(  
ServiceRegistrationImpl.java:130)  
[20:08.464 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(  
ServiceRegistry.java:214)  
[20:08.465 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(  
BundleContextImpl.java:433)  
[20:08.465 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.IPojoContext.registerService(IPojoContext.java:395)  
[20:08.465 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.handlers.providedservice.ProvidedService.registerService(  
ProvidedService.java:351)  
[20:08.465 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.handlers.providedservice.ProvidedServiceHandler.__M_stateChanged(  
ProvidedServiceHandler.java:484)  
[20:08.465 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.handlers.providedservice.ProvidedServiceHandler.stateChanged(ProvidedServiceHandler.java)  
[20:08.465 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.InstanceManager.setState(InstanceManager.java:560)  
[20:08.466 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.InstanceManager.start(InstanceManager.java:440)  
[20:08.466 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.ComponentFactory.createInstance(  
ComponentFactory.java:179)  
[20:08.466 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.IPojoFactory.createComponentInstance(  
IPojoFactory.java:319)  
[20:08.466 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.IPojoFactory.createComponentInstance(  
IPojoFactory.java:240)  
[20:08.466 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.extender.internal.linker.ManagedType$InstanceSupport$1.call(  
ManagedType.java:312)  
[20:08.467 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.extender.internal.linker.ManagedType$InstanceSupport$1.call(  
ManagedType.java:306)  
[20:08.467 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.extender.internal.queue.JobInfoCallable.call(  
JobInfoCallable.java:114)  
[20:08.467 [iPOJO] pool-1-thread-1] INFO System (569) - at  
java.util.concurrent.FutureTask.run(Unknown Source)  
[20:08.467 [iPOJO] pool-1-thread-1] INFO System (569) - at  
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)  
[20:08.468 [iPOJO] pool-1-thread-1] INFO System (569) - at  
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)  
[20:08.468 [iPOJO] pool-1-thread-1] INFO System (569) - at  
java.lang.Thread.run(Unknown Source)  
[20:08.474 [iPOJO] pool-1-thread-1] INFO System (569) - !ENTRY  
org.eclipse.osgi 4 0 2014-06-13 15:20:08.474  
[20:08.475 [iPOJO] pool-1-thread-1] INFO System (569) - !MESSAGE An  
unexpected runtime error has occurred.  
[20:08.475 [iPOJO] pool-1-thread-1] INFO System (569) - !STACK 0  
Sylvain Hamel | Software Designer/Concepteur de logiciels  
Grass Valley, A Belden Brand | Tel:(514) 333-1772 Ext: 3146  
3499 Douglas-B.-Floreani, Montreal, Quebec Canada H4S 2C6  

Please note our new company name!  
www.new.grassvalley.com 
DISCLAIMER:  
Privileged and/or Confidential information may be contained in this  
message. If you are not the addressee of this message, you may not  
copy, use or deliver this message to anyone. In such event, you  
should destroy the message and kindly notify the sender by reply  
e-mail. It is understood that opinions or conclusions that do not  
relate to the official business of the company are neither given  
nor endorsed by the company.  
Thank You.  

DISCLAIMER: Privileged and/or Confidential information may be contained in  
this message. If you are not the addressee of this message, you may not  
copy, use or deliver this message to anyone. In such event, you should  
destroy the message and kindly notify the sender by reply e-mail. It is  
understood that opinions or conclusions that do not relate to the official  
business of the company are neither given nor endorsed by the company.  
Thank You.  


---------------------------------------------------------------------  
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org  
For additional commands, e-mail: users-help@felix.apache.org  

DISCLAIMER:  
Privileged and/or Confidential information may be contained in this  
message. If you are not the addressee of this message, you may not  
copy, use or deliver this message to anyone. In such event, you  
should destroy the message and kindly notify the sender by reply  
e-mail. It is understood that opinions or conclusions that do not  
relate to the official business of the company are neither given  
nor endorsed by the company.  
Thank You.  

DISCLAIMER: Privileged and/or Confidential information may be contained in this message. If you are not the addressee of this message, you may not copy, use or deliver this message to anyone. In such event, you should destroy the message and kindly notify the sender by reply e-mail. It is understood that opinions or conclusions that do not relate to the official business of the company are neither given nor endorsed by the company. Thank You.

Re: IPojo and Java 8

Posted by Clement Escoffier <cl...@gmail.com>.
Hi,

FYI, I’ve started investigating. So far I’m able to manipulate and use your classes with the 1.12.0 manipulator. Will investigate a bit more to reproduce  your case more precisely.

Regards,

Clement



On 17 juin 2014 at 14:57:55, sylvain.hamel@miranda.com (sylvain.hamel@miranda.com) wrote:

Hi  

We are using the maven-ipojo-plugin in the build system and the  
ipojoization plugin in eclipse.  
Sylvain Hamel | Software Designer/Concepteur de logiciels  
Grass Valley, A Belden Brand | Tel:(514) 333-1772 Ext: 3146  
3499 Douglas-B.-Floreani, Montreal, Quebec Canada H4S 2C6  

Please note our new company name!  
www.new.grassvalley.com  



From: Clement Escoffier <cl...@gmail.com>  
To: users@felix.apache.org,  
Date: 2014-06-16 15:14  
Subject: Re: IPojo and Java 8  



Hi,  

Thanks for the code. I?ve a small question about your build system. Are  
you using the ipojo-maven-plugin or the ipojo-bnd-plugin ?  

Regards,  

Clement  

On 16 juin 2014 at 15:06:42, sylvain.hamel@miranda.com  
(sylvain.hamel@miranda.com) wrote:  

Hi  

I have attached my classes, an APi bundle and an Implementation  
bundle. Thanks for looking into it.  

Sylvain Hamel |Software Designer/Concepteur de logiciels  
Grass Valley, A Belden Brand | Tel:(514) 333-1772 Ext: 3146  
3499 Douglas-B.-Floreani, Montreal, Quebec Canada H4S 2C6  

Please note our new company name!  
www.new.grassvalley.com  



From: Clement Escoffier <cl...@gmail.com>  
To: users@felix.apache.org,  
Date: 2014-06-14 03:50  
Subject: Re: IPojo and Java 8  




Hi,  

Definitely a bug related to Java 8. Can you send me your class, seems like  
the manipulator does not compute the right frames.  

Regards,  

Clement  

On 13 juin 2014 at 22:25:40, sylvain.hamel@miranda.com  
(sylvain.hamel@miranda.com) wrote:  

Hi  

We just migrated to Java 8 and IPojo 1.12.0. Previously we were using  
java 7 and IPojo 1.11.2 and everything was working fine. Now i'm getting  
this kind of error when trying to get an instance from the IPojo  
framework.  

We are using the latest IPojo and IPojo manipulator in our Maven project.  


Does anyone knows what is the cause of this porblem, and if there is a  
solution to it  


[20:08.260 event notifier] WARN  
com.miranda.icontrol.tools.MTLookupLocatorExt (502) - discovered - lookup  
on 10.0.4.0  
[20:08.447 [iPOJO] pool-1-thread-1] INFO System (569) - !SESSION  
2014-06-13 15:20:05.832 -----------------------------------------------  
[20:08.447 [iPOJO] pool-1-thread-1] INFO System (569) -  
eclipse.buildId=unknown  
[20:08.447 [iPOJO] pool-1-thread-1] INFO System (569) -  
java.version=1.8.0_05  
[20:08.448 [iPOJO] pool-1-thread-1] INFO System (569) -  
java.vendor=Oracle Corporation  
[20:08.448 [iPOJO] pool-1-thread-1] INFO System (569) - BootLoader  
constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US  
[20:08.448 [iPOJO] pool-1-thread-1] INFO System (569) - Framework  
arguments: -ea -verbose  
[20:08.449 [iPOJO] pool-1-thread-1] INFO System (569) - Command-line  
arguments: -dev  
file:E:/workspace-kepler/.metadata/.plugins/org.eclipse.pde.core/Copyof  
Densite OSGI-maven refactor_2/dev.properties -ea -debug -verbose -os win32  
-ws win32 -arch x86_64 -consoleLog -clean -console 63116  
[20:08.449 [iPOJO] pool-1-thread-1] INFO System (569) - !ENTRY  
com.miranda.densite.message.pipeline.routing 4 0 2014-06-13 15:20:08.449  
[20:08.449 [iPOJO] pool-1-thread-1] INFO System (569) - !MESSAGE [ERROR]  
: [pipelineRouterFactory-0] createInstance -> The POJO constructor  
invocation failed : Expecting a stackmap frame at branch target 15  
[20:08.449 [iPOJO] pool-1-thread-1] INFO System (569) - Exception  
Details:  
[20:08.449 [iPOJO] pool-1-thread-1] INFO System (569) - Location:  
[20:08.450 [iPOJO] pool-1-thread-1] INFO System (569) -  
com/miranda/densite/message/pipeline/routing/internal/service/PipelineRouterImpl.getPipeline(IILjava/lang/String;)Lcom/miranda/densite/message/pipeline/routing/api/pipeline/MessagePipeline;  
@4: ifne  
[20:08.450 [iPOJO] pool-1-thread-1] INFO System (569) - Reason:  
[20:08.450 [iPOJO] pool-1-thread-1] INFO System (569) - Expected  
stackmap frame at this location.  
[20:08.450 [iPOJO] pool-1-thread-1] INFO System (569) - Bytecode:  
[20:08.451 [iPOJO] pool-1-thread-1] INFO System (569) - 0000000: 2ab4  
0080 9a00 0b2a 1b1c 2db7 0083 b02a  
[20:08.451 [iPOJO] pool-1-thread-1] INFO System (569) - 0000010: b400  
1e2a 1285 06bd 0004 5903 1bbb 0087  
[20:08.451 [iPOJO] pool-1-thread-1] INFO System (569) - 0000020: 5a5f  
b700 8a53 5904 1cbb 0087 5a5f b700  
[20:08.451 [iPOJO] pool-1-thread-1] INFO System (569) - 0000030: 8a53  
5905 2d53 b600 8e2a 1b1c 2db7 0083  
[20:08.452 [iPOJO] pool-1-thread-1] INFO System (569) - 0000040: 3a06  
2ab4 001e 2a12 8519 06b6 0091 a700  
[20:08.452 [iPOJO] pool-1-thread-1] INFO System (569) - 0000050: 143a  
072a b400 1e2a 1285 1907 b600 9519  
[20:08.452 [iPOJO] pool-1-thread-1] INFO System (569) - 0000060: 07bf  
1906 b0  
[20:08.452 [iPOJO] pool-1-thread-1] INFO System (569) - Exception  
Handler Table:  
[20:08.452 [iPOJO] pool-1-thread-1] INFO System (569) - bci [15, 78]  
=> handler: 81  
[20:08.453 [iPOJO] pool-1-thread-1] INFO System (569) - !STACK 0  
[20:08.453 [iPOJO] pool-1-thread-1] INFO System (569) -  
java.lang.VerifyError: Expecting a stackmap frame at branch target 15  
[20:08.453 [iPOJO] pool-1-thread-1] INFO System (569) - Exception  
Details:  
[20:08.453 [iPOJO] pool-1-thread-1] INFO System (569) - Location:  
[20:08.454 [iPOJO] pool-1-thread-1] INFO System (569) -  
com/miranda/densite/message/pipeline/routing/internal/service/PipelineRouterImpl.getPipeline(IILjava/lang/String;)Lcom/miranda/densite/message/pipeline/routing/api/pipeline/MessagePipeline;  
@4: ifne  
[20:08.454 [iPOJO] pool-1-thread-1] INFO System (569) - Reason:  
[20:08.454 [iPOJO] pool-1-thread-1] INFO System (569) - Expected  
stackmap frame at this location.  
[20:08.454 [iPOJO] pool-1-thread-1] INFO System (569) - Bytecode:  
[20:08.455 [iPOJO] pool-1-thread-1] INFO System (569) - 0000000: 2ab4  
0080 9a00 0b2a 1b1c 2db7 0083 b02a  
[20:08.455 [iPOJO] pool-1-thread-1] INFO System (569) - 0000010: b400  
1e2a 1285 06bd 0004 5903 1bbb 0087  
[20:08.455 [iPOJO] pool-1-thread-1] INFO System (569) - 0000020: 5a5f  
b700 8a53 5904 1cbb 0087 5a5f b700  
[20:08.455 [iPOJO] pool-1-thread-1] INFO System (569) - 0000030: 8a53  
5905 2d53 b600 8e2a 1b1c 2db7 0083  
[20:08.455 [iPOJO] pool-1-thread-1] INFO System (569) - 0000040: 3a06  
2ab4 001e 2a12 8519 06b6 0091 a700  
[20:08.456 [iPOJO] pool-1-thread-1] INFO System (569) - 0000050: 143a  
072a b400 1e2a 1285 1907 b600 9519  
[20:08.456 [iPOJO] pool-1-thread-1] INFO System (569) - 0000060: 07bf  
1906 b0  
[20:08.456 [iPOJO] pool-1-thread-1] INFO System (569) - Exception  
Handler Table:  
[20:08.456 [iPOJO] pool-1-thread-1] INFO System (569) - bci [15, 78]  
=> handler: 81  
[20:08.456 [iPOJO] pool-1-thread-1] INFO System (569) - at  
java.lang.Class.getDeclaredConstructors0(Native Method)  
[20:08.457 [iPOJO] pool-1-thread-1] INFO System (569) - at  
java.lang.Class.privateGetDeclaredConstructors(Unknown Source)  
[20:08.457 [iPOJO] pool-1-thread-1] INFO System (569) - at  
java.lang.Class.getConstructor0(Unknown Source)  
[20:08.457 [iPOJO] pool-1-thread-1] INFO System (569) - at  
java.lang.Class.getDeclaredConstructor(Unknown Source)  
[20:08.457 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.InstanceManager.createObject(  
InstanceManager.java:746)  
[20:08.458 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.InstanceManager.getPojoObject(  
InstanceManager.java:961)  
[20:08.458 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.handlers.lifecycle.callback.LifecycleCallbackHandler.__M_stateChanged(  
LifecycleCallbackHandler.java:156)  
[20:08.458 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.handlers.lifecycle.callback.LifecycleCallbackHandler.stateChanged(LifecycleCallbackHandler.java)  
[20:08.459 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.InstanceManager.setState(InstanceManager.java:560)  
[20:08.459 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.InstanceManager.stateChanged(  
InstanceManager.java:1531)  
[20:08.459 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.InstanceManager.setState(InstanceManager.java:585)  
[20:08.459 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.HandlerManager.stateChanged(HandlerManager.java:239  
)  
[20:08.460 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.Handler.setValidity(Handler.java:174)  
[20:08.460 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.handlers.dependency.DependencyHandler.__M_checkContext(  
DependencyHandler.java:170)  
[20:08.460 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.handlers.dependency.DependencyHandler.checkContext(DependencyHandler.java)  
[20:08.460 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.handlers.dependency.DependencyHandler.__M_validate(  
DependencyHandler.java:133)  
[20:08.461 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.handlers.dependency.DependencyHandler.validate(DependencyHandler.java)  
[20:08.461 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.util.DependencyModel.validate(  
DependencyModel.java:522)  
[20:08.461 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.util.DependencyModel.computeAndSetDependencyState(  
DependencyModel.java:362)  
[20:08.461 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.util.DependencyModel.onChange(  
DependencyModel.java:1123)  
[20:08.462 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.dependency.impl.ServiceReferenceManager.fireUpdate(  
ServiceReferenceManager.java:561)  
[20:08.462 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.dependency.impl.ServiceReferenceManager.onNewMatchingService(  
ServiceReferenceManager.java:525)  
[20:08.462 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.dependency.impl.ServiceReferenceManager.addedService(  
ServiceReferenceManager.java:504)  
[20:08.462 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.util.Tracker$Tracked.trackAdding(Tracker.java:711)  
[20:08.463 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.util.Tracker$Tracked.track(Tracker.java:672)  
[20:08.463 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.util.Tracker$Tracked.serviceChanged(  
Tracker.java:633)  
[20:08.463 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(  
FilteredServiceListener.java:107)  
[20:08.463 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(  
BundleContextImpl.java:861)  
[20:08.463 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(  
EventManager.java:230)  
[20:08.464 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(  
ListenerQueue.java:148)  
[20:08.464 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(  
ServiceRegistry.java:819)  
[20:08.464 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry$1.run(  
ServiceRegistry.java:775)  
[20:08.464 [iPOJO] pool-1-thread-1] INFO System (569) - at  
java.security.AccessController.doPrivileged(Native Method)  
[20:08.464 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(  
ServiceRegistry.java:773)  
[20:08.464 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(  
ServiceRegistrationImpl.java:130)  
[20:08.464 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(  
ServiceRegistry.java:214)  
[20:08.465 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(  
BundleContextImpl.java:433)  
[20:08.465 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.IPojoContext.registerService(IPojoContext.java:395)  
[20:08.465 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.handlers.providedservice.ProvidedService.registerService(  
ProvidedService.java:351)  
[20:08.465 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.handlers.providedservice.ProvidedServiceHandler.__M_stateChanged(  
ProvidedServiceHandler.java:484)  
[20:08.465 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.handlers.providedservice.ProvidedServiceHandler.stateChanged(ProvidedServiceHandler.java)  
[20:08.465 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.InstanceManager.setState(InstanceManager.java:560)  
[20:08.466 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.InstanceManager.start(InstanceManager.java:440)  
[20:08.466 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.ComponentFactory.createInstance(  
ComponentFactory.java:179)  
[20:08.466 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.IPojoFactory.createComponentInstance(  
IPojoFactory.java:319)  
[20:08.466 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.IPojoFactory.createComponentInstance(  
IPojoFactory.java:240)  
[20:08.466 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.extender.internal.linker.ManagedType$InstanceSupport$1.call(  
ManagedType.java:312)  
[20:08.467 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.extender.internal.linker.ManagedType$InstanceSupport$1.call(  
ManagedType.java:306)  
[20:08.467 [iPOJO] pool-1-thread-1] INFO System (569) - at  
org.apache.felix.ipojo.extender.internal.queue.JobInfoCallable.call(  
JobInfoCallable.java:114)  
[20:08.467 [iPOJO] pool-1-thread-1] INFO System (569) - at  
java.util.concurrent.FutureTask.run(Unknown Source)  
[20:08.467 [iPOJO] pool-1-thread-1] INFO System (569) - at  
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)  
[20:08.468 [iPOJO] pool-1-thread-1] INFO System (569) - at  
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)  
[20:08.468 [iPOJO] pool-1-thread-1] INFO System (569) - at  
java.lang.Thread.run(Unknown Source)  
[20:08.474 [iPOJO] pool-1-thread-1] INFO System (569) - !ENTRY  
org.eclipse.osgi 4 0 2014-06-13 15:20:08.474  
[20:08.475 [iPOJO] pool-1-thread-1] INFO System (569) - !MESSAGE An  
unexpected runtime error has occurred.  
[20:08.475 [iPOJO] pool-1-thread-1] INFO System (569) - !STACK 0  
Sylvain Hamel | Software Designer/Concepteur de logiciels  
Grass Valley, A Belden Brand | Tel:(514) 333-1772 Ext: 3146  
3499 Douglas-B.-Floreani, Montreal, Quebec Canada H4S 2C6  

Please note our new company name!  
www.new.grassvalley.com  
DISCLAIMER:  
Privileged and/or Confidential information may be contained in this  
message. If you are not the addressee of this message, you may not  
copy, use or deliver this message to anyone. In such event, you  
should destroy the message and kindly notify the sender by reply  
e-mail. It is understood that opinions or conclusions that do not  
relate to the official business of the company are neither given  
nor endorsed by the company.  
Thank You.  

DISCLAIMER: Privileged and/or Confidential information may be contained in  
this message. If you are not the addressee of this message, you may not  
copy, use or deliver this message to anyone. In such event, you should  
destroy the message and kindly notify the sender by reply e-mail. It is  
understood that opinions or conclusions that do not relate to the official  
business of the company are neither given nor endorsed by the company.  
Thank You.  


---------------------------------------------------------------------  
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org  
For additional commands, e-mail: users-help@felix.apache.org  

DISCLAIMER:  
Privileged and/or Confidential information may be contained in this  
message. If you are not the addressee of this message, you may not  
copy, use or deliver this message to anyone. In such event, you  
should destroy the message and kindly notify the sender by reply  
e-mail. It is understood that opinions or conclusions that do not  
relate to the official business of the company are neither given  
nor endorsed by the company.  
Thank You.  

Re: IPojo and Java 8

Posted by Sy...@miranda.com.
Hi

We are using the maven-ipojo-plugin in the build system and the 
ipojoization plugin in eclipse.
Sylvain Hamel | Software Designer/Concepteur de logiciels
Grass Valley, A Belden Brand | Tel:(514) 333-1772 Ext: 3146
3499 Douglas-B.-Floreani, Montreal, Quebec Canada H4S 2C6
 
Please note our new company name! 
www.new.grassvalley.com 



From:   Clement Escoffier <cl...@gmail.com>
To:     users@felix.apache.org, 
Date:   2014-06-16 15:14
Subject:        Re: IPojo and Java 8



Hi,

Thanks for the code. I?ve a small question about your build system. Are 
you using the ipojo-maven-plugin or the ipojo-bnd-plugin ? 

Regards,

Clement

On 16 juin 2014 at 15:06:42, sylvain.hamel@miranda.com 
(sylvain.hamel@miranda.com) wrote:

Hi

  I have attached my classes,   an APi bundle and an Implementation 
bundle.  Thanks for looking into it.

Sylvain Hamel |Software Designer/Concepteur de logiciels
Grass Valley, A Belden Brand | Tel:(514) 333-1772 Ext: 3146
3499 Douglas-B.-Floreani, Montreal, Quebec Canada H4S 2C6
 
Please note our new company name!
www.new.grassvalley.com



From:        Clement Escoffier <cl...@gmail.com>
To:        users@felix.apache.org,
Date:        2014-06-14 03:50
Subject:        Re: IPojo and Java 8




Hi,

Definitely a bug related to Java 8. Can you send me your class, seems like 
the manipulator does not compute the right frames.

Regards,

Clement

On 13 juin 2014 at 22:25:40, sylvain.hamel@miranda.com 
(sylvain.hamel@miranda.com) wrote:

Hi

We just migrated to Java 8 and IPojo 1.12.0. Previously we were using
java 7 and IPojo 1.11.2 and everything was working fine. Now i'm getting
this kind of error when trying to get an instance from the IPojo
framework.

We are using the latest IPojo and IPojo manipulator in our Maven project.


Does anyone knows what is the cause of this porblem, and if there is a
solution to it


[20:08.260 event notifier] WARN
com.miranda.icontrol.tools.MTLookupLocatorExt (502) - discovered - lookup
on 10.0.4.0
[20:08.447 [iPOJO] pool-1-thread-1] INFO System (569) - !SESSION
2014-06-13 15:20:05.832 -----------------------------------------------
[20:08.447 [iPOJO] pool-1-thread-1] INFO System (569) -
eclipse.buildId=unknown
[20:08.447 [iPOJO] pool-1-thread-1] INFO System (569) -
java.version=1.8.0_05
[20:08.448 [iPOJO] pool-1-thread-1] INFO System (569) -
java.vendor=Oracle Corporation
[20:08.448 [iPOJO] pool-1-thread-1] INFO System (569) - BootLoader
constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
[20:08.448 [iPOJO] pool-1-thread-1] INFO System (569) - Framework
arguments: -ea -verbose
[20:08.449 [iPOJO] pool-1-thread-1] INFO System (569) - Command-line
arguments: -dev
file:E:/workspace-kepler/.metadata/.plugins/org.eclipse.pde.core/Copyof
Densite OSGI-maven refactor_2/dev.properties -ea -debug -verbose -os win32
-ws win32 -arch x86_64 -consoleLog -clean -console 63116
[20:08.449 [iPOJO] pool-1-thread-1] INFO System (569) - !ENTRY
com.miranda.densite.message.pipeline.routing 4 0 2014-06-13 15:20:08.449
[20:08.449 [iPOJO] pool-1-thread-1] INFO System (569) - !MESSAGE [ERROR]
: [pipelineRouterFactory-0] createInstance -> The POJO constructor
invocation failed : Expecting a stackmap frame at branch target 15
[20:08.449 [iPOJO] pool-1-thread-1] INFO System (569) - Exception
Details:
[20:08.449 [iPOJO] pool-1-thread-1] INFO System (569) - Location:
[20:08.450 [iPOJO] pool-1-thread-1] INFO System (569) -
com/miranda/densite/message/pipeline/routing/internal/service/PipelineRouterImpl.getPipeline(IILjava/lang/String;)Lcom/miranda/densite/message/pipeline/routing/api/pipeline/MessagePipeline;
@4: ifne
[20:08.450 [iPOJO] pool-1-thread-1] INFO System (569) - Reason:
[20:08.450 [iPOJO] pool-1-thread-1] INFO System (569) - Expected
stackmap frame at this location.
[20:08.450 [iPOJO] pool-1-thread-1] INFO System (569) - Bytecode:
[20:08.451 [iPOJO] pool-1-thread-1] INFO System (569) - 0000000: 2ab4
0080 9a00 0b2a 1b1c 2db7 0083 b02a
[20:08.451 [iPOJO] pool-1-thread-1] INFO System (569) - 0000010: b400
1e2a 1285 06bd 0004 5903 1bbb 0087
[20:08.451 [iPOJO] pool-1-thread-1] INFO System (569) - 0000020: 5a5f
b700 8a53 5904 1cbb 0087 5a5f b700
[20:08.451 [iPOJO] pool-1-thread-1] INFO System (569) - 0000030: 8a53
5905 2d53 b600 8e2a 1b1c 2db7 0083
[20:08.452 [iPOJO] pool-1-thread-1] INFO System (569) - 0000040: 3a06
2ab4 001e 2a12 8519 06b6 0091 a700
[20:08.452 [iPOJO] pool-1-thread-1] INFO System (569) - 0000050: 143a
072a b400 1e2a 1285 1907 b600 9519
[20:08.452 [iPOJO] pool-1-thread-1] INFO System (569) - 0000060: 07bf
1906 b0
[20:08.452 [iPOJO] pool-1-thread-1] INFO System (569) - Exception
Handler Table:
[20:08.452 [iPOJO] pool-1-thread-1] INFO System (569) - bci [15, 78]
=> handler: 81
[20:08.453 [iPOJO] pool-1-thread-1] INFO System (569) - !STACK 0
[20:08.453 [iPOJO] pool-1-thread-1] INFO System (569) -
java.lang.VerifyError: Expecting a stackmap frame at branch target 15
[20:08.453 [iPOJO] pool-1-thread-1] INFO System (569) - Exception
Details:
[20:08.453 [iPOJO] pool-1-thread-1] INFO System (569) - Location:
[20:08.454 [iPOJO] pool-1-thread-1] INFO System (569) -
com/miranda/densite/message/pipeline/routing/internal/service/PipelineRouterImpl.getPipeline(IILjava/lang/String;)Lcom/miranda/densite/message/pipeline/routing/api/pipeline/MessagePipeline;
@4: ifne
[20:08.454 [iPOJO] pool-1-thread-1] INFO System (569) - Reason:
[20:08.454 [iPOJO] pool-1-thread-1] INFO System (569) - Expected
stackmap frame at this location.
[20:08.454 [iPOJO] pool-1-thread-1] INFO System (569) - Bytecode:
[20:08.455 [iPOJO] pool-1-thread-1] INFO System (569) - 0000000: 2ab4
0080 9a00 0b2a 1b1c 2db7 0083 b02a
[20:08.455 [iPOJO] pool-1-thread-1] INFO System (569) - 0000010: b400
1e2a 1285 06bd 0004 5903 1bbb 0087
[20:08.455 [iPOJO] pool-1-thread-1] INFO System (569) - 0000020: 5a5f
b700 8a53 5904 1cbb 0087 5a5f b700
[20:08.455 [iPOJO] pool-1-thread-1] INFO System (569) - 0000030: 8a53
5905 2d53 b600 8e2a 1b1c 2db7 0083
[20:08.455 [iPOJO] pool-1-thread-1] INFO System (569) - 0000040: 3a06
2ab4 001e 2a12 8519 06b6 0091 a700
[20:08.456 [iPOJO] pool-1-thread-1] INFO System (569) - 0000050: 143a
072a b400 1e2a 1285 1907 b600 9519
[20:08.456 [iPOJO] pool-1-thread-1] INFO System (569) - 0000060: 07bf
1906 b0
[20:08.456 [iPOJO] pool-1-thread-1] INFO System (569) - Exception
Handler Table:
[20:08.456 [iPOJO] pool-1-thread-1] INFO System (569) - bci [15, 78]
=> handler: 81
[20:08.456 [iPOJO] pool-1-thread-1] INFO System (569) - at
java.lang.Class.getDeclaredConstructors0(Native Method)
[20:08.457 [iPOJO] pool-1-thread-1] INFO System (569) - at
java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
[20:08.457 [iPOJO] pool-1-thread-1] INFO System (569) - at
java.lang.Class.getConstructor0(Unknown Source)
[20:08.457 [iPOJO] pool-1-thread-1] INFO System (569) - at
java.lang.Class.getDeclaredConstructor(Unknown Source)
[20:08.457 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.InstanceManager.createObject(
InstanceManager.java:746)
[20:08.458 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.InstanceManager.getPojoObject(
InstanceManager.java:961)
[20:08.458 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.handlers.lifecycle.callback.LifecycleCallbackHandler.__M_stateChanged(
LifecycleCallbackHandler.java:156)
[20:08.458 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.handlers.lifecycle.callback.LifecycleCallbackHandler.stateChanged(LifecycleCallbackHandler.java)
[20:08.459 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.InstanceManager.setState(InstanceManager.java:560)
[20:08.459 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.InstanceManager.stateChanged(
InstanceManager.java:1531)
[20:08.459 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.InstanceManager.setState(InstanceManager.java:585)
[20:08.459 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.HandlerManager.stateChanged(HandlerManager.java:239
)
[20:08.460 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.Handler.setValidity(Handler.java:174)
[20:08.460 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.handlers.dependency.DependencyHandler.__M_checkContext(
DependencyHandler.java:170)
[20:08.460 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.handlers.dependency.DependencyHandler.checkContext(DependencyHandler.java)
[20:08.460 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.handlers.dependency.DependencyHandler.__M_validate(
DependencyHandler.java:133)
[20:08.461 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.handlers.dependency.DependencyHandler.validate(DependencyHandler.java)
[20:08.461 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.util.DependencyModel.validate(
DependencyModel.java:522)
[20:08.461 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.util.DependencyModel.computeAndSetDependencyState(
DependencyModel.java:362)
[20:08.461 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.util.DependencyModel.onChange(
DependencyModel.java:1123)
[20:08.462 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.dependency.impl.ServiceReferenceManager.fireUpdate(
ServiceReferenceManager.java:561)
[20:08.462 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.dependency.impl.ServiceReferenceManager.onNewMatchingService(
ServiceReferenceManager.java:525)
[20:08.462 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.dependency.impl.ServiceReferenceManager.addedService(
ServiceReferenceManager.java:504)
[20:08.462 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.util.Tracker$Tracked.trackAdding(Tracker.java:711)
[20:08.463 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.util.Tracker$Tracked.track(Tracker.java:672)
[20:08.463 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.util.Tracker$Tracked.serviceChanged(
Tracker.java:633)
[20:08.463 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(
FilteredServiceListener.java:107)
[20:08.463 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(
BundleContextImpl.java:861)
[20:08.463 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(
EventManager.java:230)
[20:08.464 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(
ListenerQueue.java:148)
[20:08.464 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(
ServiceRegistry.java:819)
[20:08.464 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry$1.run(
ServiceRegistry.java:775)
[20:08.464 [iPOJO] pool-1-thread-1] INFO System (569) - at
java.security.AccessController.doPrivileged(Native Method)
[20:08.464 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(
ServiceRegistry.java:773)
[20:08.464 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(
ServiceRegistrationImpl.java:130)
[20:08.464 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(
ServiceRegistry.java:214)
[20:08.465 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(
BundleContextImpl.java:433)
[20:08.465 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.IPojoContext.registerService(IPojoContext.java:395)
[20:08.465 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.handlers.providedservice.ProvidedService.registerService(
ProvidedService.java:351)
[20:08.465 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.handlers.providedservice.ProvidedServiceHandler.__M_stateChanged(
ProvidedServiceHandler.java:484)
[20:08.465 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.handlers.providedservice.ProvidedServiceHandler.stateChanged(ProvidedServiceHandler.java)
[20:08.465 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.InstanceManager.setState(InstanceManager.java:560)
[20:08.466 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.InstanceManager.start(InstanceManager.java:440)
[20:08.466 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.ComponentFactory.createInstance(
ComponentFactory.java:179)
[20:08.466 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.IPojoFactory.createComponentInstance(
IPojoFactory.java:319)
[20:08.466 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.IPojoFactory.createComponentInstance(
IPojoFactory.java:240)
[20:08.466 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.extender.internal.linker.ManagedType$InstanceSupport$1.call(
ManagedType.java:312)
[20:08.467 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.extender.internal.linker.ManagedType$InstanceSupport$1.call(
ManagedType.java:306)
[20:08.467 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.extender.internal.queue.JobInfoCallable.call(
JobInfoCallable.java:114)
[20:08.467 [iPOJO] pool-1-thread-1] INFO System (569) - at
java.util.concurrent.FutureTask.run(Unknown Source)
[20:08.467 [iPOJO] pool-1-thread-1] INFO System (569) - at
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
[20:08.468 [iPOJO] pool-1-thread-1] INFO System (569) - at
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
[20:08.468 [iPOJO] pool-1-thread-1] INFO System (569) - at
java.lang.Thread.run(Unknown Source)
[20:08.474 [iPOJO] pool-1-thread-1] INFO System (569) - !ENTRY
org.eclipse.osgi 4 0 2014-06-13 15:20:08.474
[20:08.475 [iPOJO] pool-1-thread-1] INFO System (569) - !MESSAGE An
unexpected runtime error has occurred.
[20:08.475 [iPOJO] pool-1-thread-1] INFO System (569) - !STACK 0
Sylvain Hamel | Software Designer/Concepteur de logiciels
Grass Valley, A Belden Brand | Tel:(514) 333-1772 Ext: 3146
3499 Douglas-B.-Floreani, Montreal, Quebec Canada H4S 2C6

Please note our new company name!
www.new.grassvalley.com
DISCLAIMER:
Privileged and/or Confidential information may be contained in this
message. If you are not the addressee of this message, you may not
copy, use or deliver this message to anyone. In such event, you
should destroy the message and kindly notify the sender by reply
e-mail. It is understood that opinions or conclusions that do not
relate to the official business of the company are neither given
nor endorsed by the company.
Thank You.

DISCLAIMER: Privileged and/or Confidential information may be contained in 
this message. If you are not the addressee of this message, you may not 
copy, use or deliver this message to anyone. In such event, you should 
destroy the message and kindly notify the sender by reply e-mail. It is 
understood that opinions or conclusions that do not relate to the official 
business of the company are neither given nor endorsed by the company. 
Thank You.


--------------------------------------------------------------------- 
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org 
For additional commands, e-mail: users-help@felix.apache.org

DISCLAIMER:
Privileged and/or Confidential information may be contained in this
message. If you are not the addressee of this message, you may not
copy, use or deliver this message to anyone. In such event, you
should destroy the message and kindly notify the sender by reply
e-mail. It is understood that opinions or conclusions that do not
relate to the official business of the company are neither given
nor endorsed by the company.
Thank You.

Re: IPojo and Java 8

Posted by Clement Escoffier <cl...@gmail.com>.
Hi,

Thanks for the code. I’ve a small question about your build system. Are you using the ipojo-maven-plugin or the ipojo-bnd-plugin ? 

Regards,

Clement

On 16 juin 2014 at 15:06:42, sylvain.hamel@miranda.com (sylvain.hamel@miranda.com) wrote:

Hi

  I have attached my classes,   an APi bundle and an Implementation bundle.  Thanks for looking into it.

Sylvain Hamel |Software Designer/Concepteur de logiciels
Grass Valley, A Belden Brand | Tel:(514) 333-1772 Ext: 3146
3499 Douglas-B.-Floreani, Montreal, Quebec Canada H4S 2C6
 
Please note our new company name!
www.new.grassvalley.com



From:        Clement Escoffier <cl...@gmail.com>
To:        users@felix.apache.org,
Date:        2014-06-14 03:50
Subject:        Re: IPojo and Java 8




Hi,

Definitely a bug related to Java 8. Can you send me your class, seems like the manipulator does not compute the right frames.

Regards,

Clement

On 13 juin 2014 at 22:25:40, sylvain.hamel@miranda.com (sylvain.hamel@miranda.com) wrote:

Hi

We just migrated to Java 8 and IPojo 1.12.0. Previously we were using
java 7 and IPojo 1.11.2 and everything was working fine. Now i'm getting
this kind of error when trying to get an instance from the IPojo
framework.

We are using the latest IPojo and IPojo manipulator in our Maven project.


Does anyone knows what is the cause of this porblem, and if there is a
solution to it


[20:08.260 event notifier] WARN
com.miranda.icontrol.tools.MTLookupLocatorExt (502) - discovered - lookup
on 10.0.4.0
[20:08.447 [iPOJO] pool-1-thread-1] INFO System (569) - !SESSION
2014-06-13 15:20:05.832 -----------------------------------------------
[20:08.447 [iPOJO] pool-1-thread-1] INFO System (569) -
eclipse.buildId=unknown
[20:08.447 [iPOJO] pool-1-thread-1] INFO System (569) -
java.version=1.8.0_05
[20:08.448 [iPOJO] pool-1-thread-1] INFO System (569) -
java.vendor=Oracle Corporation
[20:08.448 [iPOJO] pool-1-thread-1] INFO System (569) - BootLoader
constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
[20:08.448 [iPOJO] pool-1-thread-1] INFO System (569) - Framework
arguments: -ea -verbose
[20:08.449 [iPOJO] pool-1-thread-1] INFO System (569) - Command-line
arguments: -dev
file:E:/workspace-kepler/.metadata/.plugins/org.eclipse.pde.core/Copyof
Densite OSGI-maven refactor_2/dev.properties -ea -debug -verbose -os win32
-ws win32 -arch x86_64 -consoleLog -clean -console 63116
[20:08.449 [iPOJO] pool-1-thread-1] INFO System (569) - !ENTRY
com.miranda.densite.message.pipeline.routing 4 0 2014-06-13 15:20:08.449
[20:08.449 [iPOJO] pool-1-thread-1] INFO System (569) - !MESSAGE [ERROR]
: [pipelineRouterFactory-0] createInstance -> The POJO constructor
invocation failed : Expecting a stackmap frame at branch target 15
[20:08.449 [iPOJO] pool-1-thread-1] INFO System (569) - Exception
Details:
[20:08.449 [iPOJO] pool-1-thread-1] INFO System (569) - Location:
[20:08.450 [iPOJO] pool-1-thread-1] INFO System (569) -
com/miranda/densite/message/pipeline/routing/internal/service/PipelineRouterImpl.getPipeline(IILjava/lang/String;)Lcom/miranda/densite/message/pipeline/routing/api/pipeline/MessagePipeline;
@4: ifne
[20:08.450 [iPOJO] pool-1-thread-1] INFO System (569) - Reason:
[20:08.450 [iPOJO] pool-1-thread-1] INFO System (569) - Expected
stackmap frame at this location.
[20:08.450 [iPOJO] pool-1-thread-1] INFO System (569) - Bytecode:
[20:08.451 [iPOJO] pool-1-thread-1] INFO System (569) - 0000000: 2ab4
0080 9a00 0b2a 1b1c 2db7 0083 b02a
[20:08.451 [iPOJO] pool-1-thread-1] INFO System (569) - 0000010: b400
1e2a 1285 06bd 0004 5903 1bbb 0087
[20:08.451 [iPOJO] pool-1-thread-1] INFO System (569) - 0000020: 5a5f
b700 8a53 5904 1cbb 0087 5a5f b700
[20:08.451 [iPOJO] pool-1-thread-1] INFO System (569) - 0000030: 8a53
5905 2d53 b600 8e2a 1b1c 2db7 0083
[20:08.452 [iPOJO] pool-1-thread-1] INFO System (569) - 0000040: 3a06
2ab4 001e 2a12 8519 06b6 0091 a700
[20:08.452 [iPOJO] pool-1-thread-1] INFO System (569) - 0000050: 143a
072a b400 1e2a 1285 1907 b600 9519
[20:08.452 [iPOJO] pool-1-thread-1] INFO System (569) - 0000060: 07bf
1906 b0
[20:08.452 [iPOJO] pool-1-thread-1] INFO System (569) - Exception
Handler Table:
[20:08.452 [iPOJO] pool-1-thread-1] INFO System (569) - bci [15, 78]
=> handler: 81
[20:08.453 [iPOJO] pool-1-thread-1] INFO System (569) - !STACK 0
[20:08.453 [iPOJO] pool-1-thread-1] INFO System (569) -
java.lang.VerifyError: Expecting a stackmap frame at branch target 15
[20:08.453 [iPOJO] pool-1-thread-1] INFO System (569) - Exception
Details:
[20:08.453 [iPOJO] pool-1-thread-1] INFO System (569) - Location:
[20:08.454 [iPOJO] pool-1-thread-1] INFO System (569) -
com/miranda/densite/message/pipeline/routing/internal/service/PipelineRouterImpl.getPipeline(IILjava/lang/String;)Lcom/miranda/densite/message/pipeline/routing/api/pipeline/MessagePipeline;
@4: ifne
[20:08.454 [iPOJO] pool-1-thread-1] INFO System (569) - Reason:
[20:08.454 [iPOJO] pool-1-thread-1] INFO System (569) - Expected
stackmap frame at this location.
[20:08.454 [iPOJO] pool-1-thread-1] INFO System (569) - Bytecode:
[20:08.455 [iPOJO] pool-1-thread-1] INFO System (569) - 0000000: 2ab4
0080 9a00 0b2a 1b1c 2db7 0083 b02a
[20:08.455 [iPOJO] pool-1-thread-1] INFO System (569) - 0000010: b400
1e2a 1285 06bd 0004 5903 1bbb 0087
[20:08.455 [iPOJO] pool-1-thread-1] INFO System (569) - 0000020: 5a5f
b700 8a53 5904 1cbb 0087 5a5f b700
[20:08.455 [iPOJO] pool-1-thread-1] INFO System (569) - 0000030: 8a53
5905 2d53 b600 8e2a 1b1c 2db7 0083
[20:08.455 [iPOJO] pool-1-thread-1] INFO System (569) - 0000040: 3a06
2ab4 001e 2a12 8519 06b6 0091 a700
[20:08.456 [iPOJO] pool-1-thread-1] INFO System (569) - 0000050: 143a
072a b400 1e2a 1285 1907 b600 9519
[20:08.456 [iPOJO] pool-1-thread-1] INFO System (569) - 0000060: 07bf
1906 b0
[20:08.456 [iPOJO] pool-1-thread-1] INFO System (569) - Exception
Handler Table:
[20:08.456 [iPOJO] pool-1-thread-1] INFO System (569) - bci [15, 78]
=> handler: 81
[20:08.456 [iPOJO] pool-1-thread-1] INFO System (569) - at
java.lang.Class.getDeclaredConstructors0(Native Method)
[20:08.457 [iPOJO] pool-1-thread-1] INFO System (569) - at
java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
[20:08.457 [iPOJO] pool-1-thread-1] INFO System (569) - at
java.lang.Class.getConstructor0(Unknown Source)
[20:08.457 [iPOJO] pool-1-thread-1] INFO System (569) - at
java.lang.Class.getDeclaredConstructor(Unknown Source)
[20:08.457 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.InstanceManager.createObject(
InstanceManager.java:746)
[20:08.458 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.InstanceManager.getPojoObject(
InstanceManager.java:961)
[20:08.458 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.handlers.lifecycle.callback.LifecycleCallbackHandler.__M_stateChanged(
LifecycleCallbackHandler.java:156)
[20:08.458 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.handlers.lifecycle.callback.LifecycleCallbackHandler.stateChanged(LifecycleCallbackHandler.java)
[20:08.459 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.InstanceManager.setState(InstanceManager.java:560)
[20:08.459 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.InstanceManager.stateChanged(
InstanceManager.java:1531)
[20:08.459 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.InstanceManager.setState(InstanceManager.java:585)
[20:08.459 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.HandlerManager.stateChanged(HandlerManager.java:239
)
[20:08.460 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.Handler.setValidity(Handler.java:174)
[20:08.460 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.handlers.dependency.DependencyHandler.__M_checkContext(
DependencyHandler.java:170)
[20:08.460 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.handlers.dependency.DependencyHandler.checkContext(DependencyHandler.java)
[20:08.460 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.handlers.dependency.DependencyHandler.__M_validate(
DependencyHandler.java:133)
[20:08.461 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.handlers.dependency.DependencyHandler.validate(DependencyHandler.java)
[20:08.461 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.util.DependencyModel.validate(
DependencyModel.java:522)
[20:08.461 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.util.DependencyModel.computeAndSetDependencyState(
DependencyModel.java:362)
[20:08.461 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.util.DependencyModel.onChange(
DependencyModel.java:1123)
[20:08.462 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.dependency.impl.ServiceReferenceManager.fireUpdate(
ServiceReferenceManager.java:561)
[20:08.462 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.dependency.impl.ServiceReferenceManager.onNewMatchingService(
ServiceReferenceManager.java:525)
[20:08.462 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.dependency.impl.ServiceReferenceManager.addedService(
ServiceReferenceManager.java:504)
[20:08.462 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.util.Tracker$Tracked.trackAdding(Tracker.java:711)
[20:08.463 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.util.Tracker$Tracked.track(Tracker.java:672)
[20:08.463 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.util.Tracker$Tracked.serviceChanged(
Tracker.java:633)
[20:08.463 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(
FilteredServiceListener.java:107)
[20:08.463 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(
BundleContextImpl.java:861)
[20:08.463 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(
EventManager.java:230)
[20:08.464 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(
ListenerQueue.java:148)
[20:08.464 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(
ServiceRegistry.java:819)
[20:08.464 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry$1.run(
ServiceRegistry.java:775)
[20:08.464 [iPOJO] pool-1-thread-1] INFO System (569) - at
java.security.AccessController.doPrivileged(Native Method)
[20:08.464 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(
ServiceRegistry.java:773)
[20:08.464 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(
ServiceRegistrationImpl.java:130)
[20:08.464 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(
ServiceRegistry.java:214)
[20:08.465 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(
BundleContextImpl.java:433)
[20:08.465 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.IPojoContext.registerService(IPojoContext.java:395)
[20:08.465 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.handlers.providedservice.ProvidedService.registerService(
ProvidedService.java:351)
[20:08.465 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.handlers.providedservice.ProvidedServiceHandler.__M_stateChanged(
ProvidedServiceHandler.java:484)
[20:08.465 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.handlers.providedservice.ProvidedServiceHandler.stateChanged(ProvidedServiceHandler.java)
[20:08.465 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.InstanceManager.setState(InstanceManager.java:560)
[20:08.466 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.InstanceManager.start(InstanceManager.java:440)
[20:08.466 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.ComponentFactory.createInstance(
ComponentFactory.java:179)
[20:08.466 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.IPojoFactory.createComponentInstance(
IPojoFactory.java:319)
[20:08.466 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.IPojoFactory.createComponentInstance(
IPojoFactory.java:240)
[20:08.466 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.extender.internal.linker.ManagedType$InstanceSupport$1.call(
ManagedType.java:312)
[20:08.467 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.extender.internal.linker.ManagedType$InstanceSupport$1.call(
ManagedType.java:306)
[20:08.467 [iPOJO] pool-1-thread-1] INFO System (569) - at
org.apache.felix.ipojo.extender.internal.queue.JobInfoCallable.call(
JobInfoCallable.java:114)
[20:08.467 [iPOJO] pool-1-thread-1] INFO System (569) - at
java.util.concurrent.FutureTask.run(Unknown Source)
[20:08.467 [iPOJO] pool-1-thread-1] INFO System (569) - at
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
[20:08.468 [iPOJO] pool-1-thread-1] INFO System (569) - at
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
[20:08.468 [iPOJO] pool-1-thread-1] INFO System (569) - at
java.lang.Thread.run(Unknown Source)
[20:08.474 [iPOJO] pool-1-thread-1] INFO System (569) - !ENTRY
org.eclipse.osgi 4 0 2014-06-13 15:20:08.474
[20:08.475 [iPOJO] pool-1-thread-1] INFO System (569) - !MESSAGE An
unexpected runtime error has occurred.
[20:08.475 [iPOJO] pool-1-thread-1] INFO System (569) - !STACK 0
Sylvain Hamel | Software Designer/Concepteur de logiciels
Grass Valley, A Belden Brand | Tel:(514) 333-1772 Ext: 3146
3499 Douglas-B.-Floreani, Montreal, Quebec Canada H4S 2C6

Please note our new company name!
www.new.grassvalley.com
DISCLAIMER:
Privileged and/or Confidential information may be contained in this
message. If you are not the addressee of this message, you may not
copy, use or deliver this message to anyone. In such event, you
should destroy the message and kindly notify the sender by reply
e-mail. It is understood that opinions or conclusions that do not
relate to the official business of the company are neither given
nor endorsed by the company.
Thank You.

DISCLAIMER: Privileged and/or Confidential information may be contained in this message. If you are not the addressee of this message, you may not copy, use or deliver this message to anyone. In such event, you should destroy the message and kindly notify the sender by reply e-mail. It is understood that opinions or conclusions that do not relate to the official business of the company are neither given nor endorsed by the company. Thank You.


---------------------------------------------------------------------  
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org  
For additional commands, e-mail: users-help@felix.apache.org

Re: IPojo and Java 8

Posted by Sy...@miranda.com.
Hi 

  I have attached my classes,   an APi bundle and an Implementation 
bundle.  Thanks for looking into it.


Sylvain Hamel | Software Designer/Concepteur de logiciels
Grass Valley, A Belden Brand | Tel:(514) 333-1772 Ext: 3146
3499 Douglas-B.-Floreani, Montreal, Quebec Canada H4S 2C6
 
Please note our new company name! 
www.new.grassvalley.com 



From:   Clement Escoffier <cl...@gmail.com>
To:     users@felix.apache.org, 
Date:   2014-06-14 03:50
Subject:        Re: IPojo and Java 8



Hi,

Definitely a bug related to Java 8. Can you send me your class, seems like 
the manipulator does not compute the right frames.

Regards,

Clement

On 13 juin 2014 at 22:25:40, sylvain.hamel@miranda.com 
(sylvain.hamel@miranda.com) wrote:

Hi 

We just migrated to Java 8 and IPojo 1.12.0. Previously we were using 
java 7 and IPojo 1.11.2 and everything was working fine. Now i'm getting 
this kind of error when trying to get an instance from the IPojo 
framework. 

We are using the latest IPojo and IPojo manipulator in our Maven project. 


Does anyone knows what is the cause of this porblem, and if there is a 
solution to it 


[20:08.260 event notifier] WARN 
com.miranda.icontrol.tools.MTLookupLocatorExt (502) - discovered - lookup 
on 10.0.4.0 
[20:08.447 [iPOJO] pool-1-thread-1] INFO System (569) - !SESSION 
2014-06-13 15:20:05.832 ----------------------------------------------- 
[20:08.447 [iPOJO] pool-1-thread-1] INFO System (569) - 
eclipse.buildId=unknown 
[20:08.447 [iPOJO] pool-1-thread-1] INFO System (569) - 
java.version=1.8.0_05 
[20:08.448 [iPOJO] pool-1-thread-1] INFO System (569) - 
java.vendor=Oracle Corporation 
[20:08.448 [iPOJO] pool-1-thread-1] INFO System (569) - BootLoader 
constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US 
[20:08.448 [iPOJO] pool-1-thread-1] INFO System (569) - Framework 
arguments: -ea -verbose 
[20:08.449 [iPOJO] pool-1-thread-1] INFO System (569) - Command-line 
arguments: -dev 
file:E:/workspace-kepler/.metadata/.plugins/org.eclipse.pde.core/Copy of 
Densite OSGI-maven refactor_2/dev.properties -ea -debug -verbose -os win32 

-ws win32 -arch x86_64 -consoleLog -clean -console 63116 
[20:08.449 [iPOJO] pool-1-thread-1] INFO System (569) - !ENTRY 
com.miranda.densite.message.pipeline.routing 4 0 2014-06-13 15:20:08.449 
[20:08.449 [iPOJO] pool-1-thread-1] INFO System (569) - !MESSAGE [ERROR] 
: [pipelineRouterFactory-0] createInstance -> The POJO constructor 
invocation failed : Expecting a stackmap frame at branch target 15 
[20:08.449 [iPOJO] pool-1-thread-1] INFO System (569) - Exception 
Details: 
[20:08.449 [iPOJO] pool-1-thread-1] INFO System (569) - Location: 
[20:08.450 [iPOJO] pool-1-thread-1] INFO System (569) - 
com/miranda/densite/message/pipeline/routing/internal/service/PipelineRouterImpl.getPipeline(IILjava/lang/String;)Lcom/miranda/densite/message/pipeline/routing/api/pipeline/MessagePipeline; 

@4: ifne 
[20:08.450 [iPOJO] pool-1-thread-1] INFO System (569) - Reason: 
[20:08.450 [iPOJO] pool-1-thread-1] INFO System (569) - Expected 
stackmap frame at this location. 
[20:08.450 [iPOJO] pool-1-thread-1] INFO System (569) - Bytecode: 
[20:08.451 [iPOJO] pool-1-thread-1] INFO System (569) - 0000000: 2ab4 
0080 9a00 0b2a 1b1c 2db7 0083 b02a 
[20:08.451 [iPOJO] pool-1-thread-1] INFO System (569) - 0000010: b400 
1e2a 1285 06bd 0004 5903 1bbb 0087 
[20:08.451 [iPOJO] pool-1-thread-1] INFO System (569) - 0000020: 5a5f 
b700 8a53 5904 1cbb 0087 5a5f b700 
[20:08.451 [iPOJO] pool-1-thread-1] INFO System (569) - 0000030: 8a53 
5905 2d53 b600 8e2a 1b1c 2db7 0083 
[20:08.452 [iPOJO] pool-1-thread-1] INFO System (569) - 0000040: 3a06 
2ab4 001e 2a12 8519 06b6 0091 a700 
[20:08.452 [iPOJO] pool-1-thread-1] INFO System (569) - 0000050: 143a 
072a b400 1e2a 1285 1907 b600 9519 
[20:08.452 [iPOJO] pool-1-thread-1] INFO System (569) - 0000060: 07bf 
1906 b0 
[20:08.452 [iPOJO] pool-1-thread-1] INFO System (569) - Exception 
Handler Table: 
[20:08.452 [iPOJO] pool-1-thread-1] INFO System (569) - bci [15, 78] 
=> handler: 81 
[20:08.453 [iPOJO] pool-1-thread-1] INFO System (569) - !STACK 0 
[20:08.453 [iPOJO] pool-1-thread-1] INFO System (569) - 
java.lang.VerifyError: Expecting a stackmap frame at branch target 15 
[20:08.453 [iPOJO] pool-1-thread-1] INFO System (569) - Exception 
Details: 
[20:08.453 [iPOJO] pool-1-thread-1] INFO System (569) - Location: 
[20:08.454 [iPOJO] pool-1-thread-1] INFO System (569) - 
com/miranda/densite/message/pipeline/routing/internal/service/PipelineRouterImpl.getPipeline(IILjava/lang/String;)Lcom/miranda/densite/message/pipeline/routing/api/pipeline/MessagePipeline; 

@4: ifne 
[20:08.454 [iPOJO] pool-1-thread-1] INFO System (569) - Reason: 
[20:08.454 [iPOJO] pool-1-thread-1] INFO System (569) - Expected 
stackmap frame at this location. 
[20:08.454 [iPOJO] pool-1-thread-1] INFO System (569) - Bytecode: 
[20:08.455 [iPOJO] pool-1-thread-1] INFO System (569) - 0000000: 2ab4 
0080 9a00 0b2a 1b1c 2db7 0083 b02a 
[20:08.455 [iPOJO] pool-1-thread-1] INFO System (569) - 0000010: b400 
1e2a 1285 06bd 0004 5903 1bbb 0087 
[20:08.455 [iPOJO] pool-1-thread-1] INFO System (569) - 0000020: 5a5f 
b700 8a53 5904 1cbb 0087 5a5f b700 
[20:08.455 [iPOJO] pool-1-thread-1] INFO System (569) - 0000030: 8a53 
5905 2d53 b600 8e2a 1b1c 2db7 0083 
[20:08.455 [iPOJO] pool-1-thread-1] INFO System (569) - 0000040: 3a06 
2ab4 001e 2a12 8519 06b6 0091 a700 
[20:08.456 [iPOJO] pool-1-thread-1] INFO System (569) - 0000050: 143a 
072a b400 1e2a 1285 1907 b600 9519 
[20:08.456 [iPOJO] pool-1-thread-1] INFO System (569) - 0000060: 07bf 
1906 b0 
[20:08.456 [iPOJO] pool-1-thread-1] INFO System (569) - Exception 
Handler Table: 
[20:08.456 [iPOJO] pool-1-thread-1] INFO System (569) - bci [15, 78] 
=> handler: 81 
[20:08.456 [iPOJO] pool-1-thread-1] INFO System (569) - at 
java.lang.Class.getDeclaredConstructors0(Native Method) 
[20:08.457 [iPOJO] pool-1-thread-1] INFO System (569) - at 
java.lang.Class.privateGetDeclaredConstructors(Unknown Source) 
[20:08.457 [iPOJO] pool-1-thread-1] INFO System (569) - at 
java.lang.Class.getConstructor0(Unknown Source) 
[20:08.457 [iPOJO] pool-1-thread-1] INFO System (569) - at 
java.lang.Class.getDeclaredConstructor(Unknown Source) 
[20:08.457 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.InstanceManager.createObject( 
InstanceManager.java:746) 
[20:08.458 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.InstanceManager.getPojoObject( 
InstanceManager.java:961) 
[20:08.458 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.handlers.lifecycle.callback.LifecycleCallbackHandler.__M_stateChanged( 

LifecycleCallbackHandler.java:156) 
[20:08.458 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.handlers.lifecycle.callback.LifecycleCallbackHandler.stateChanged(LifecycleCallbackHandler.java) 

[20:08.459 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.InstanceManager.setState(InstanceManager.java:560) 
[20:08.459 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.InstanceManager.stateChanged( 
InstanceManager.java:1531) 
[20:08.459 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.InstanceManager.setState(InstanceManager.java:585) 
[20:08.459 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.HandlerManager.stateChanged(HandlerManager.java:239 

) 
[20:08.460 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.Handler.setValidity(Handler.java:174) 
[20:08.460 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.handlers.dependency.DependencyHandler.__M_checkContext( 

DependencyHandler.java:170) 
[20:08.460 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.handlers.dependency.DependencyHandler.checkContext(DependencyHandler.java) 

[20:08.460 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.handlers.dependency.DependencyHandler.__M_validate( 

DependencyHandler.java:133) 
[20:08.461 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.handlers.dependency.DependencyHandler.validate(DependencyHandler.java) 

[20:08.461 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.util.DependencyModel.validate( 
DependencyModel.java:522) 
[20:08.461 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.util.DependencyModel.computeAndSetDependencyState( 
DependencyModel.java:362) 
[20:08.461 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.util.DependencyModel.onChange( 
DependencyModel.java:1123) 
[20:08.462 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.dependency.impl.ServiceReferenceManager.fireUpdate( 

ServiceReferenceManager.java:561) 
[20:08.462 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.dependency.impl.ServiceReferenceManager.onNewMatchingService( 

ServiceReferenceManager.java:525) 
[20:08.462 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.dependency.impl.ServiceReferenceManager.addedService( 

ServiceReferenceManager.java:504) 
[20:08.462 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.util.Tracker$Tracked.trackAdding(Tracker.java:711) 
[20:08.463 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.util.Tracker$Tracked.track(Tracker.java:672) 
[20:08.463 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.util.Tracker$Tracked.serviceChanged( 
Tracker.java:633) 
[20:08.463 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged( 

FilteredServiceListener.java:107) 
[20:08.463 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent( 
BundleContextImpl.java:861) 
[20:08.463 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent( 
EventManager.java:230) 
[20:08.464 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous( 

ListenerQueue.java:148) 
[20:08.464 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged( 

ServiceRegistry.java:819) 
[20:08.464 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry$1.run( 
ServiceRegistry.java:775) 
[20:08.464 [iPOJO] pool-1-thread-1] INFO System (569) - at 
java.security.AccessController.doPrivileged(Native Method) 
[20:08.464 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent( 

ServiceRegistry.java:773) 
[20:08.464 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register( 

ServiceRegistrationImpl.java:130) 
[20:08.464 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService( 

ServiceRegistry.java:214) 
[20:08.465 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService( 

BundleContextImpl.java:433) 
[20:08.465 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.IPojoContext.registerService(IPojoContext.java:395) 

[20:08.465 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.handlers.providedservice.ProvidedService.registerService( 

ProvidedService.java:351) 
[20:08.465 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.handlers.providedservice.ProvidedServiceHandler.__M_stateChanged( 

ProvidedServiceHandler.java:484) 
[20:08.465 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.handlers.providedservice.ProvidedServiceHandler.stateChanged(ProvidedServiceHandler.java) 

[20:08.465 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.InstanceManager.setState(InstanceManager.java:560) 
[20:08.466 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.InstanceManager.start(InstanceManager.java:440) 
[20:08.466 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.ComponentFactory.createInstance( 
ComponentFactory.java:179) 
[20:08.466 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.IPojoFactory.createComponentInstance( 
IPojoFactory.java:319) 
[20:08.466 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.IPojoFactory.createComponentInstance( 
IPojoFactory.java:240) 
[20:08.466 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.extender.internal.linker.ManagedType$InstanceSupport$1.call( 

ManagedType.java:312) 
[20:08.467 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.extender.internal.linker.ManagedType$InstanceSupport$1.call( 

ManagedType.java:306) 
[20:08.467 [iPOJO] pool-1-thread-1] INFO System (569) - at 
org.apache.felix.ipojo.extender.internal.queue.JobInfoCallable.call( 
JobInfoCallable.java:114) 
[20:08.467 [iPOJO] pool-1-thread-1] INFO System (569) - at 
java.util.concurrent.FutureTask.run(Unknown Source) 
[20:08.467 [iPOJO] pool-1-thread-1] INFO System (569) - at 
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) 
[20:08.468 [iPOJO] pool-1-thread-1] INFO System (569) - at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 
[20:08.468 [iPOJO] pool-1-thread-1] INFO System (569) - at 
java.lang.Thread.run(Unknown Source) 
[20:08.474 [iPOJO] pool-1-thread-1] INFO System (569) - !ENTRY 
org.eclipse.osgi 4 0 2014-06-13 15:20:08.474 
[20:08.475 [iPOJO] pool-1-thread-1] INFO System (569) - !MESSAGE An 
unexpected runtime error has occurred. 
[20:08.475 [iPOJO] pool-1-thread-1] INFO System (569) - !STACK 0 
Sylvain Hamel | Software Designer/Concepteur de logiciels 
Grass Valley, A Belden Brand | Tel:(514) 333-1772 Ext: 3146 
3499 Douglas-B.-Floreani, Montreal, Quebec Canada H4S 2C6 

Please note our new company name! 
www.new.grassvalley.com 
DISCLAIMER: 
Privileged and/or Confidential information may be contained in this 
message. If you are not the addressee of this message, you may not 
copy, use or deliver this message to anyone. In such event, you 
should destroy the message and kindly notify the sender by reply 
e-mail. It is understood that opinions or conclusions that do not 
relate to the official business of the company are neither given 
nor endorsed by the company. 
Thank You. 


DISCLAIMER:
Privileged and/or Confidential information may be contained in this
message. If you are not the addressee of this message, you may not
copy, use or deliver this message to anyone. In such event, you
should destroy the message and kindly notify the sender by reply
e-mail. It is understood that opinions or conclusions that do not
relate to the official business of the company are neither given
nor endorsed by the company.
Thank You.