You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "YANG, BongYeol (JIRA)" <ji...@apache.org> on 2008/10/23 17:38:44 UTC
[jira] Created: (FELIX-788) Failed to create object that extends
super class with BundleContext argument
Failed to create object that extends super class with BundleContext argument
----------------------------------------------------------------------------
Key: FELIX-788
URL: https://issues.apache.org/jira/browse/FELIX-788
Project: Felix
Issue Type: Bug
Components: iPOJO
Affects Versions: iPOJO-1.0.0, iPOJO-0.8.0
Environment: JDK 1.6
Felix 1.2.1
iPOJO 1.0.0 and 0.8.0
Reporter: YANG, BongYeol
Priority: Minor
In this situation:
Bundle 1:
public interface I {
}
public abstract class A implements I {
}
public abstract class B extends A implements Runnable {
public B(BundleContext context) {
}
}
Bundle 2:
public class C extends B {
public B(BundleContext context) {
super(context);
}
}
I used org.apache.felix.iPOJO.Factory.createComponentInstance(null);
But iPOJO failed to create instance like this:
[C] ERROR: [instance.name] createInstance -> The POJO constructor invocation failed : (class: C, method: <init> signature: (Lorg/apache/felix/ipojo/InstanceManager;Lorg/osgi/framework/BundleContext;)V) Expecting to find object/array on stack
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (FELIX-788) Failed to create object that extends
super class with BundleContext argument
Posted by "Clement Escoffier (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-788?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Clement Escoffier reassigned FELIX-788:
---------------------------------------
Assignee: Clement Escoffier
> Failed to create object that extends super class with BundleContext argument
> ----------------------------------------------------------------------------
>
> Key: FELIX-788
> URL: https://issues.apache.org/jira/browse/FELIX-788
> Project: Felix
> Issue Type: Bug
> Components: iPOJO
> Affects Versions: iPOJO-0.8.0, iPOJO-1.0.0
> Environment: JDK 1.6
> Felix 1.2.1
> iPOJO 1.0.0 and 0.8.0
> Reporter: YANG, BongYeol
> Assignee: Clement Escoffier
> Priority: Minor
>
> In this situation:
> Bundle 1:
> public interface I {
> }
> public abstract class A implements I {
> }
> public abstract class B extends A implements Runnable {
> public B(BundleContext context) {
> }
> }
> Bundle 2:
> public class C extends B {
> public B(BundleContext context) {
> super(context);
> }
> }
> I used org.apache.felix.iPOJO.Factory.createComponentInstance(null);
> But iPOJO failed to create instance like this:
> [C] ERROR: [instance.name] createInstance -> The POJO constructor invocation failed : (class: C, method: <init> signature: (Lorg/apache/felix/ipojo/InstanceManager;Lorg/osgi/framework/BundleContext;)V) Expecting to find object/array on stack
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Work started: (FELIX-788) Failed to create object that
extends super class with BundleContext argument
Posted by "Clement Escoffier (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-788?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on FELIX-788 started by Clement Escoffier.
> Failed to create object that extends super class with BundleContext argument
> ----------------------------------------------------------------------------
>
> Key: FELIX-788
> URL: https://issues.apache.org/jira/browse/FELIX-788
> Project: Felix
> Issue Type: Bug
> Components: iPOJO
> Affects Versions: iPOJO-0.8.0, iPOJO-1.0.0
> Environment: JDK 1.6
> Felix 1.2.1
> iPOJO 1.0.0 and 0.8.0
> Reporter: YANG, BongYeol
> Assignee: Clement Escoffier
> Priority: Minor
>
> In this situation:
> Bundle 1:
> public interface I {
> }
> public abstract class A implements I {
> }
> public abstract class B extends A implements Runnable {
> public B(BundleContext context) {
> }
> }
> Bundle 2:
> public class C extends B {
> public B(BundleContext context) {
> super(context);
> }
> }
> I used org.apache.felix.iPOJO.Factory.createComponentInstance(null);
> But iPOJO failed to create instance like this:
> [C] ERROR: [instance.name] createInstance -> The POJO constructor invocation failed : (class: C, method: <init> signature: (Lorg/apache/felix/ipojo/InstanceManager;Lorg/osgi/framework/BundleContext;)V) Expecting to find object/array on stack
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (FELIX-788) Failed to create object that extends
super class with BundleContext argument
Posted by "Clement Escoffier (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-788?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Clement Escoffier resolved FELIX-788.
-------------------------------------
Resolution: Fixed
Fix Version/s: iPOJO-1.2.0
Fixed at revision 707578.
The super constructor invocation can use the bundle context given in parameter of the constructor.
> Failed to create object that extends super class with BundleContext argument
> ----------------------------------------------------------------------------
>
> Key: FELIX-788
> URL: https://issues.apache.org/jira/browse/FELIX-788
> Project: Felix
> Issue Type: Bug
> Components: iPOJO
> Affects Versions: iPOJO-0.8.0, iPOJO-1.0.0
> Environment: JDK 1.6
> Felix 1.2.1
> iPOJO 1.0.0 and 0.8.0
> Reporter: YANG, BongYeol
> Assignee: Clement Escoffier
> Priority: Minor
> Fix For: iPOJO-1.2.0
>
>
> In this situation:
> Bundle 1:
> public interface I {
> }
> public abstract class A implements I {
> }
> public abstract class B extends A implements Runnable {
> public B(BundleContext context) {
> }
> }
> Bundle 2:
> public class C extends B {
> public B(BundleContext context) {
> super(context);
> }
> }
> I used org.apache.felix.iPOJO.Factory.createComponentInstance(null);
> But iPOJO failed to create instance like this:
> [C] ERROR: [instance.name] createInstance -> The POJO constructor invocation failed : (class: C, method: <init> signature: (Lorg/apache/felix/ipojo/InstanceManager;Lorg/osgi/framework/BundleContext;)V) Expecting to find object/array on stack
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (FELIX-788) Failed to create object that extends
super class with BundleContext argument
Posted by "YANG, BongYeol (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12642456#action_12642456 ]
YANG, BongYeol commented on FELIX-788:
--------------------------------------
Thank you. problem solved.
Note that maven-ipojo-plugin 1.1.0-SNAPSHOT should be used, I was confused because of it.
> Failed to create object that extends super class with BundleContext argument
> ----------------------------------------------------------------------------
>
> Key: FELIX-788
> URL: https://issues.apache.org/jira/browse/FELIX-788
> Project: Felix
> Issue Type: Bug
> Components: iPOJO
> Affects Versions: iPOJO-0.8.0, iPOJO-1.0.0
> Environment: JDK 1.6
> Felix 1.2.1
> iPOJO 1.0.0 and 0.8.0
> Reporter: YANG, BongYeol
> Assignee: Clement Escoffier
> Priority: Minor
> Fix For: iPOJO-1.2.0
>
>
> In this situation:
> Bundle 1:
> public interface I {
> }
> public abstract class A implements I {
> }
> public abstract class B extends A implements Runnable {
> public B(BundleContext context) {
> }
> }
> Bundle 2:
> public class C extends B {
> public B(BundleContext context) {
> super(context);
> }
> }
> I used org.apache.felix.iPOJO.Factory.createComponentInstance(null);
> But iPOJO failed to create instance like this:
> [C] ERROR: [instance.name] createInstance -> The POJO constructor invocation failed : (class: C, method: <init> signature: (Lorg/apache/felix/ipojo/InstanceManager;Lorg/osgi/framework/BundleContext;)V) Expecting to find object/array on stack
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.