You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hivemind.apache.org by "Brian K. Wallace (JIRA)" <hi...@jakarta.apache.org> on 2005/05/09 18:38:09 UTC

[jira] Created: (HIVEMIND-120) Proxy creation failure for non-interface beans

Proxy creation failure for non-interface beans
----------------------------------------------

         Key: HIVEMIND-120
         URL: http://issues.apache.org/jira/browse/HIVEMIND-120
     Project: HiveMind
        Type: Bug
  Components: framework  
    Versions: 1.1    
 Environment: Windows XP, Java 1.5
    Reporter: Brian K. Wallace


When utilizing a non-interface bean as in the following:
  <service-point id="MenuBar" interface="javax.swing.JMenuBar">
The SingletonServiceModel.createSingletonProxy will fail as a result of trying to override a final method. 

Stacktrace follows
-------------------------------------------------
org.apache.hivemind.ApplicationRuntimeException: Unable to create class $$JMenuBar_103c097ba17_103c097ba18: by java.lang.VerifyError: class $$JMenuBar_103c097ba17_103c097ba18 overrides final method s¦ß*'+
.#Ýß*'+
	at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.createSingletonProxy(SingletonServiceModel.java:130)
	at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.getService(SingletonServiceModel.java:57)
	at org.apache.hivemind.impl.ServicePointImpl.getService(ServicePointImpl.java:209)
	at org.apache.hivemind.impl.ServicePointImpl.getService(ServicePointImpl.java:222)
	at org.apache.hivemind.impl.RegistryInfrastructureImpl.getService(RegistryInfrastructureImpl.java:242)
	at org.apache.hivemind.impl.ModuleImpl.getService(ModuleImpl.java:102)
	at org.apache.hivemind.service.impl.BuilderFactoryLogic.autowireProperty(BuilderFactoryLogic.java:395)
	at org.apache.hivemind.service.impl.BuilderFactoryLogic.autowireServices(BuilderFactoryLogic.java:381)
	at org.apache.hivemind.service.impl.BuilderFactoryLogic.setProperties(BuilderFactoryLogic.java:327)
	at org.apache.hivemind.service.impl.BuilderFactoryLogic.createService(BuilderFactoryLogic.java:77)
	at org.apache.hivemind.service.impl.BuilderFactory.createCoreServiceImplementation(BuilderFactory.java:42)
	at org.apache.hivemind.impl.InvokeFactoryServiceConstructor.constructCoreServiceImplementation(InvokeFactoryServiceConstructor.java:84)
	at org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructCoreServiceImplementation(AbstractServiceModelImpl.java:107)
	at org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructNewServiceImplementation(AbstractServiceModelImpl.java:157)
	at org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructServiceImplementation(AbstractServiceModelImpl.java:139)
	at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.getActualServiceImplementation(SingletonServiceModel.java:68)

Caused by: org.apache.hivemind.ApplicationRuntimeException: Unable to create class $$JMenuBar_103c097ba17_103c097ba18: by java.lang.VerifyError: class $$JMenuBar_103c097ba17_103c097ba18 overrides final method s¦ß*'+
.#Ýß*'+
	at org.apache.hivemind.service.impl.CtClassSource.createClass(CtClassSource.java:88)
	at org.apache.hivemind.service.impl.AbstractFab.createClass(AbstractFab.java:92)
	at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.createSingletonProxyClass(SingletonServiceModel.java:184)
	at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.createSingletonProxy(SingletonServiceModel.java:103)
	... 19 more
Caused by: javassist.CannotCompileException: by java.lang.VerifyError: class $$JMenuBar_103c097ba17_103c097ba18 overrides final method s¦ß*'+
.#Ýß*'+
	at javassist.ClassPool.toClass(ClassPool.java:713)
	at javassist.CtClass.toClass(CtClass.java:988)
	at org.apache.hivemind.service.impl.HiveMindClassPool.toClass(HiveMindClassPool.java:75)
	at org.apache.hivemind.service.impl.CtClassSource.createClass(CtClassSource.java:84)
	... 22 more

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (HIVEMIND-120) Proxy creation failure for non-interface beans

Posted by "James Carman (JIRA)" <hi...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/HIVEMIND-120?page=comments#action_65705 ]
     
James Carman commented on HIVEMIND-120:
---------------------------------------

Well, what do we propose to do about this?  Should we throw an immediate exception when we realize that the bean class has final methods?  Do we only override (and therefore support interceptors on) the non-final methods?  Thoughts, folks?

> Proxy creation failure for non-interface beans
> ----------------------------------------------
>
>          Key: HIVEMIND-120
>          URL: http://issues.apache.org/jira/browse/HIVEMIND-120
>      Project: HiveMind
>         Type: Bug
>   Components: framework
>     Versions: 1.1
>  Environment: Windows XP, Java 1.5
>     Reporter: Brian K. Wallace
>  Attachments: HivemindTestNonInterfaceBean.jar
>
> When utilizing a non-interface bean as in the following:
>   <service-point id="MenuBar" interface="javax.swing.JMenuBar">
> The SingletonServiceModel.createSingletonProxy will fail as a result of trying to override a final method. 
> Stacktrace follows
> -------------------------------------------------
> org.apache.hivemind.ApplicationRuntimeException: Unable to create class $$JMenuBar_103c097ba17_103c097ba18: by java.lang.VerifyError: class $$JMenuBar_103c097ba17_103c097ba18 overrides final method s¦ß*'+
> .#Ýß*'+
> 	at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.createSingletonProxy(SingletonServiceModel.java:130)
> 	at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.getService(SingletonServiceModel.java:57)
> 	at org.apache.hivemind.impl.ServicePointImpl.getService(ServicePointImpl.java:209)
> 	at org.apache.hivemind.impl.ServicePointImpl.getService(ServicePointImpl.java:222)
> 	at org.apache.hivemind.impl.RegistryInfrastructureImpl.getService(RegistryInfrastructureImpl.java:242)
> 	at org.apache.hivemind.impl.ModuleImpl.getService(ModuleImpl.java:102)
> 	at org.apache.hivemind.service.impl.BuilderFactoryLogic.autowireProperty(BuilderFactoryLogic.java:395)
> 	at org.apache.hivemind.service.impl.BuilderFactoryLogic.autowireServices(BuilderFactoryLogic.java:381)
> 	at org.apache.hivemind.service.impl.BuilderFactoryLogic.setProperties(BuilderFactoryLogic.java:327)
> 	at org.apache.hivemind.service.impl.BuilderFactoryLogic.createService(BuilderFactoryLogic.java:77)
> 	at org.apache.hivemind.service.impl.BuilderFactory.createCoreServiceImplementation(BuilderFactory.java:42)
> 	at org.apache.hivemind.impl.InvokeFactoryServiceConstructor.constructCoreServiceImplementation(InvokeFactoryServiceConstructor.java:84)
> 	at org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructCoreServiceImplementation(AbstractServiceModelImpl.java:107)
> 	at org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructNewServiceImplementation(AbstractServiceModelImpl.java:157)
> 	at org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructServiceImplementation(AbstractServiceModelImpl.java:139)
> 	at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.getActualServiceImplementation(SingletonServiceModel.java:68)
> Caused by: org.apache.hivemind.ApplicationRuntimeException: Unable to create class $$JMenuBar_103c097ba17_103c097ba18: by java.lang.VerifyError: class $$JMenuBar_103c097ba17_103c097ba18 overrides final method s¦ß*'+
> .#Ýß*'+
> 	at org.apache.hivemind.service.impl.CtClassSource.createClass(CtClassSource.java:88)
> 	at org.apache.hivemind.service.impl.AbstractFab.createClass(AbstractFab.java:92)
> 	at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.createSingletonProxyClass(SingletonServiceModel.java:184)
> 	at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.createSingletonProxy(SingletonServiceModel.java:103)
> 	... 19 more
> Caused by: javassist.CannotCompileException: by java.lang.VerifyError: class $$JMenuBar_103c097ba17_103c097ba18 overrides final method s¦ß*'+
> .#Ýß*'+
> 	at javassist.ClassPool.toClass(ClassPool.java:713)
> 	at javassist.CtClass.toClass(CtClass.java:988)
> 	at org.apache.hivemind.service.impl.HiveMindClassPool.toClass(HiveMindClassPool.java:75)
> 	at org.apache.hivemind.service.impl.CtClassSource.createClass(CtClassSource.java:84)
> 	... 22 more

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (HIVEMIND-120) Proxy creation failure for non-interface beans

Posted by "Brian K. Wallace (JIRA)" <hi...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/HIVEMIND-120?page=comments#action_64821 ]
     
Brian K. Wallace commented on HIVEMIND-120:
-------------------------------------------

Although the test case I attached earlier is still valid, I've narrowed the problem down to "public final" methods in parent classes and can produce the same error by creating a simple (not extending any other class) bean with a method "public final sayHello() {}". Attempts to wrap this in a proxy will undoubtedly fail wrapping a final method.

> Proxy creation failure for non-interface beans
> ----------------------------------------------
>
>          Key: HIVEMIND-120
>          URL: http://issues.apache.org/jira/browse/HIVEMIND-120
>      Project: HiveMind
>         Type: Bug
>   Components: framework
>     Versions: 1.1
>  Environment: Windows XP, Java 1.5
>     Reporter: Brian K. Wallace
>  Attachments: HivemindTestNonInterfaceBean.jar
>
> When utilizing a non-interface bean as in the following:
>   <service-point id="MenuBar" interface="javax.swing.JMenuBar">
> The SingletonServiceModel.createSingletonProxy will fail as a result of trying to override a final method. 
> Stacktrace follows
> -------------------------------------------------
> org.apache.hivemind.ApplicationRuntimeException: Unable to create class $$JMenuBar_103c097ba17_103c097ba18: by java.lang.VerifyError: class $$JMenuBar_103c097ba17_103c097ba18 overrides final method s¦ß*'+
> .#Ýß*'+
> 	at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.createSingletonProxy(SingletonServiceModel.java:130)
> 	at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.getService(SingletonServiceModel.java:57)
> 	at org.apache.hivemind.impl.ServicePointImpl.getService(ServicePointImpl.java:209)
> 	at org.apache.hivemind.impl.ServicePointImpl.getService(ServicePointImpl.java:222)
> 	at org.apache.hivemind.impl.RegistryInfrastructureImpl.getService(RegistryInfrastructureImpl.java:242)
> 	at org.apache.hivemind.impl.ModuleImpl.getService(ModuleImpl.java:102)
> 	at org.apache.hivemind.service.impl.BuilderFactoryLogic.autowireProperty(BuilderFactoryLogic.java:395)
> 	at org.apache.hivemind.service.impl.BuilderFactoryLogic.autowireServices(BuilderFactoryLogic.java:381)
> 	at org.apache.hivemind.service.impl.BuilderFactoryLogic.setProperties(BuilderFactoryLogic.java:327)
> 	at org.apache.hivemind.service.impl.BuilderFactoryLogic.createService(BuilderFactoryLogic.java:77)
> 	at org.apache.hivemind.service.impl.BuilderFactory.createCoreServiceImplementation(BuilderFactory.java:42)
> 	at org.apache.hivemind.impl.InvokeFactoryServiceConstructor.constructCoreServiceImplementation(InvokeFactoryServiceConstructor.java:84)
> 	at org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructCoreServiceImplementation(AbstractServiceModelImpl.java:107)
> 	at org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructNewServiceImplementation(AbstractServiceModelImpl.java:157)
> 	at org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructServiceImplementation(AbstractServiceModelImpl.java:139)
> 	at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.getActualServiceImplementation(SingletonServiceModel.java:68)
> Caused by: org.apache.hivemind.ApplicationRuntimeException: Unable to create class $$JMenuBar_103c097ba17_103c097ba18: by java.lang.VerifyError: class $$JMenuBar_103c097ba17_103c097ba18 overrides final method s¦ß*'+
> .#Ýß*'+
> 	at org.apache.hivemind.service.impl.CtClassSource.createClass(CtClassSource.java:88)
> 	at org.apache.hivemind.service.impl.AbstractFab.createClass(AbstractFab.java:92)
> 	at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.createSingletonProxyClass(SingletonServiceModel.java:184)
> 	at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.createSingletonProxy(SingletonServiceModel.java:103)
> 	... 19 more
> Caused by: javassist.CannotCompileException: by java.lang.VerifyError: class $$JMenuBar_103c097ba17_103c097ba18 overrides final method s¦ß*'+
> .#Ýß*'+
> 	at javassist.ClassPool.toClass(ClassPool.java:713)
> 	at javassist.CtClass.toClass(CtClass.java:988)
> 	at org.apache.hivemind.service.impl.HiveMindClassPool.toClass(HiveMindClassPool.java:75)
> 	at org.apache.hivemind.service.impl.CtClassSource.createClass(CtClassSource.java:84)
> 	... 22 more

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (HIVEMIND-120) Proxy creation failure for non-interface beans

Posted by "James Carman (JIRA)" <hi...@jakarta.apache.org>.
    [ https://issues.apache.org/jira/browse/HIVEMIND-120?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12568190#action_12568190 ] 

James Carman commented on HIVEMIND-120:
---------------------------------------

I like that approach.  This lets them know they're doing something they're not supposed to be doing.  

> Proxy creation failure for non-interface beans
> ----------------------------------------------
>
>                 Key: HIVEMIND-120
>                 URL: https://issues.apache.org/jira/browse/HIVEMIND-120
>             Project: HiveMind
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: 1.1
>         Environment: Windows XP, Java 1.5
>            Reporter: Brian K. Wallace
>         Attachments: hivemind-120.patch, HivemindTestNonInterfaceBean.jar
>
>
> When utilizing a non-interface bean as in the following:
>   <service-point id="MenuBar" interface="javax.swing.JMenuBar">
> The SingletonServiceModel.createSingletonProxy will fail as a result of trying to override a final method. 
> Stacktrace follows
> -------------------------------------------------
> org.apache.hivemind.ApplicationRuntimeException: Unable to create class $$JMenuBar_103c097ba17_103c097ba18: by java.lang.VerifyError: class $$JMenuBar_103c097ba17_103c097ba18 overrides final method s¦ß*??'+
> .#Ýß*??'+?
> 	at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.createSingletonProxy(SingletonServiceModel.java:130)
> 	at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.getService(SingletonServiceModel.java:57)
> 	at org.apache.hivemind.impl.ServicePointImpl.getService(ServicePointImpl.java:209)
> 	at org.apache.hivemind.impl.ServicePointImpl.getService(ServicePointImpl.java:222)
> 	at org.apache.hivemind.impl.RegistryInfrastructureImpl.getService(RegistryInfrastructureImpl.java:242)
> 	at org.apache.hivemind.impl.ModuleImpl.getService(ModuleImpl.java:102)
> 	at org.apache.hivemind.service.impl.BuilderFactoryLogic.autowireProperty(BuilderFactoryLogic.java:395)
> 	at org.apache.hivemind.service.impl.BuilderFactoryLogic.autowireServices(BuilderFactoryLogic.java:381)
> 	at org.apache.hivemind.service.impl.BuilderFactoryLogic.setProperties(BuilderFactoryLogic.java:327)
> 	at org.apache.hivemind.service.impl.BuilderFactoryLogic.createService(BuilderFactoryLogic.java:77)
> 	at org.apache.hivemind.service.impl.BuilderFactory.createCoreServiceImplementation(BuilderFactory.java:42)
> 	at org.apache.hivemind.impl.InvokeFactoryServiceConstructor.constructCoreServiceImplementation(InvokeFactoryServiceConstructor.java:84)
> 	at org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructCoreServiceImplementation(AbstractServiceModelImpl.java:107)
> 	at org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructNewServiceImplementation(AbstractServiceModelImpl.java:157)
> 	at org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructServiceImplementation(AbstractServiceModelImpl.java:139)
> 	at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.getActualServiceImplementation(SingletonServiceModel.java:68)
> Caused by: org.apache.hivemind.ApplicationRuntimeException: Unable to create class $$JMenuBar_103c097ba17_103c097ba18: by java.lang.VerifyError: class $$JMenuBar_103c097ba17_103c097ba18 overrides final method s¦ß*??'+
> .#Ýß*??'+?
> 	at org.apache.hivemind.service.impl.CtClassSource.createClass(CtClassSource.java:88)
> 	at org.apache.hivemind.service.impl.AbstractFab.createClass(AbstractFab.java:92)
> 	at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.createSingletonProxyClass(SingletonServiceModel.java:184)
> 	at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.createSingletonProxy(SingletonServiceModel.java:103)
> 	... 19 more
> Caused by: javassist.CannotCompileException: by java.lang.VerifyError: class $$JMenuBar_103c097ba17_103c097ba18 overrides final method s¦ß*??'+
> .#Ýß*??'+?
> 	at javassist.ClassPool.toClass(ClassPool.java:713)
> 	at javassist.CtClass.toClass(CtClass.java:988)
> 	at org.apache.hivemind.service.impl.HiveMindClassPool.toClass(HiveMindClassPool.java:75)
> 	at org.apache.hivemind.service.impl.CtClassSource.createClass(CtClassSource.java:84)
> 	... 22 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVEMIND-120) Proxy creation failure for non-interface beans

Posted by "Brian K. Wallace (JIRA)" <hi...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/HIVEMIND-120?page=all ]

Brian K. Wallace updated HIVEMIND-120:
--------------------------------------

    Attachment: HivemindTestNonInterfaceBean.jar

Attached is the simplest test case I could create utilizing the same Swing components with which I initially noticed the problem. Everything works as expected until a method is called on the SimpleClient (thereby pulling it out of Proxy-mode).

> Proxy creation failure for non-interface beans
> ----------------------------------------------
>
>          Key: HIVEMIND-120
>          URL: http://issues.apache.org/jira/browse/HIVEMIND-120
>      Project: HiveMind
>         Type: Bug
>   Components: framework
>     Versions: 1.1
>  Environment: Windows XP, Java 1.5
>     Reporter: Brian K. Wallace
>  Attachments: HivemindTestNonInterfaceBean.jar
>
> When utilizing a non-interface bean as in the following:
>   <service-point id="MenuBar" interface="javax.swing.JMenuBar">
> The SingletonServiceModel.createSingletonProxy will fail as a result of trying to override a final method. 
> Stacktrace follows
> -------------------------------------------------
> org.apache.hivemind.ApplicationRuntimeException: Unable to create class $$JMenuBar_103c097ba17_103c097ba18: by java.lang.VerifyError: class $$JMenuBar_103c097ba17_103c097ba18 overrides final method s¦ß*'+
> .#Ýß*'+
> 	at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.createSingletonProxy(SingletonServiceModel.java:130)
> 	at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.getService(SingletonServiceModel.java:57)
> 	at org.apache.hivemind.impl.ServicePointImpl.getService(ServicePointImpl.java:209)
> 	at org.apache.hivemind.impl.ServicePointImpl.getService(ServicePointImpl.java:222)
> 	at org.apache.hivemind.impl.RegistryInfrastructureImpl.getService(RegistryInfrastructureImpl.java:242)
> 	at org.apache.hivemind.impl.ModuleImpl.getService(ModuleImpl.java:102)
> 	at org.apache.hivemind.service.impl.BuilderFactoryLogic.autowireProperty(BuilderFactoryLogic.java:395)
> 	at org.apache.hivemind.service.impl.BuilderFactoryLogic.autowireServices(BuilderFactoryLogic.java:381)
> 	at org.apache.hivemind.service.impl.BuilderFactoryLogic.setProperties(BuilderFactoryLogic.java:327)
> 	at org.apache.hivemind.service.impl.BuilderFactoryLogic.createService(BuilderFactoryLogic.java:77)
> 	at org.apache.hivemind.service.impl.BuilderFactory.createCoreServiceImplementation(BuilderFactory.java:42)
> 	at org.apache.hivemind.impl.InvokeFactoryServiceConstructor.constructCoreServiceImplementation(InvokeFactoryServiceConstructor.java:84)
> 	at org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructCoreServiceImplementation(AbstractServiceModelImpl.java:107)
> 	at org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructNewServiceImplementation(AbstractServiceModelImpl.java:157)
> 	at org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructServiceImplementation(AbstractServiceModelImpl.java:139)
> 	at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.getActualServiceImplementation(SingletonServiceModel.java:68)
> Caused by: org.apache.hivemind.ApplicationRuntimeException: Unable to create class $$JMenuBar_103c097ba17_103c097ba18: by java.lang.VerifyError: class $$JMenuBar_103c097ba17_103c097ba18 overrides final method s¦ß*'+
> .#Ýß*'+
> 	at org.apache.hivemind.service.impl.CtClassSource.createClass(CtClassSource.java:88)
> 	at org.apache.hivemind.service.impl.AbstractFab.createClass(AbstractFab.java:92)
> 	at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.createSingletonProxyClass(SingletonServiceModel.java:184)
> 	at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.createSingletonProxy(SingletonServiceModel.java:103)
> 	... 19 more
> Caused by: javassist.CannotCompileException: by java.lang.VerifyError: class $$JMenuBar_103c097ba17_103c097ba18 overrides final method s¦ß*'+
> .#Ýß*'+
> 	at javassist.ClassPool.toClass(ClassPool.java:713)
> 	at javassist.CtClass.toClass(CtClass.java:988)
> 	at org.apache.hivemind.service.impl.HiveMindClassPool.toClass(HiveMindClassPool.java:75)
> 	at org.apache.hivemind.service.impl.CtClassSource.createClass(CtClassSource.java:84)
> 	... 22 more

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Updated: (HIVEMIND-120) Proxy creation failure for non-interface beans

Posted by "Johan Lindquist (JIRA)" <hi...@jakarta.apache.org>.
     [ https://issues.apache.org/jira/browse/HIVEMIND-120?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Johan Lindquist updated HIVEMIND-120:
-------------------------------------

    Attachment: hivemind-120.patch

Taken the comments into consideration, the following patch will throw an error if the class being instantiated has a method which is declared final.

> Proxy creation failure for non-interface beans
> ----------------------------------------------
>
>                 Key: HIVEMIND-120
>                 URL: https://issues.apache.org/jira/browse/HIVEMIND-120
>             Project: HiveMind
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: 1.1
>         Environment: Windows XP, Java 1.5
>            Reporter: Brian K. Wallace
>         Attachments: hivemind-120.patch, HivemindTestNonInterfaceBean.jar
>
>
> When utilizing a non-interface bean as in the following:
>   <service-point id="MenuBar" interface="javax.swing.JMenuBar">
> The SingletonServiceModel.createSingletonProxy will fail as a result of trying to override a final method. 
> Stacktrace follows
> -------------------------------------------------
> org.apache.hivemind.ApplicationRuntimeException: Unable to create class $$JMenuBar_103c097ba17_103c097ba18: by java.lang.VerifyError: class $$JMenuBar_103c097ba17_103c097ba18 overrides final method s¦ß*??'+
> .#Ýß*??'+?
> 	at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.createSingletonProxy(SingletonServiceModel.java:130)
> 	at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.getService(SingletonServiceModel.java:57)
> 	at org.apache.hivemind.impl.ServicePointImpl.getService(ServicePointImpl.java:209)
> 	at org.apache.hivemind.impl.ServicePointImpl.getService(ServicePointImpl.java:222)
> 	at org.apache.hivemind.impl.RegistryInfrastructureImpl.getService(RegistryInfrastructureImpl.java:242)
> 	at org.apache.hivemind.impl.ModuleImpl.getService(ModuleImpl.java:102)
> 	at org.apache.hivemind.service.impl.BuilderFactoryLogic.autowireProperty(BuilderFactoryLogic.java:395)
> 	at org.apache.hivemind.service.impl.BuilderFactoryLogic.autowireServices(BuilderFactoryLogic.java:381)
> 	at org.apache.hivemind.service.impl.BuilderFactoryLogic.setProperties(BuilderFactoryLogic.java:327)
> 	at org.apache.hivemind.service.impl.BuilderFactoryLogic.createService(BuilderFactoryLogic.java:77)
> 	at org.apache.hivemind.service.impl.BuilderFactory.createCoreServiceImplementation(BuilderFactory.java:42)
> 	at org.apache.hivemind.impl.InvokeFactoryServiceConstructor.constructCoreServiceImplementation(InvokeFactoryServiceConstructor.java:84)
> 	at org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructCoreServiceImplementation(AbstractServiceModelImpl.java:107)
> 	at org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructNewServiceImplementation(AbstractServiceModelImpl.java:157)
> 	at org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructServiceImplementation(AbstractServiceModelImpl.java:139)
> 	at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.getActualServiceImplementation(SingletonServiceModel.java:68)
> Caused by: org.apache.hivemind.ApplicationRuntimeException: Unable to create class $$JMenuBar_103c097ba17_103c097ba18: by java.lang.VerifyError: class $$JMenuBar_103c097ba17_103c097ba18 overrides final method s¦ß*??'+
> .#Ýß*??'+?
> 	at org.apache.hivemind.service.impl.CtClassSource.createClass(CtClassSource.java:88)
> 	at org.apache.hivemind.service.impl.AbstractFab.createClass(AbstractFab.java:92)
> 	at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.createSingletonProxyClass(SingletonServiceModel.java:184)
> 	at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.createSingletonProxy(SingletonServiceModel.java:103)
> 	... 19 more
> Caused by: javassist.CannotCompileException: by java.lang.VerifyError: class $$JMenuBar_103c097ba17_103c097ba18 overrides final method s¦ß*??'+
> .#Ýß*??'+?
> 	at javassist.ClassPool.toClass(ClassPool.java:713)
> 	at javassist.CtClass.toClass(CtClass.java:988)
> 	at org.apache.hivemind.service.impl.HiveMindClassPool.toClass(HiveMindClassPool.java:75)
> 	at org.apache.hivemind.service.impl.CtClassSource.createClass(CtClassSource.java:84)
> 	... 22 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVEMIND-120) Proxy creation failure for non-interface beans

Posted by "Eyon Land (JIRA)" <hi...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/HIVEMIND-120?page=comments#action_66718 ]
     
Eyon Land commented on HIVEMIND-120:
------------------------------------

I too tried to use the primitive model when creating a service with a Swing component implementation called org.example.Main  

Does anyone know a work-around that would allow dependency injection on the org.example.Main?  Using ObjectProviders like...

    <service-point id="MainCntrl" interface="org.example.Controller">
        <invoke-factory  model="singleton">
            <construct class="org.example.DefaultController" 
                initialize-method="afterPropertiesSet" autowire-services="false"
                service-id-property="serviceId" >
               <set-object property="view" value="instance:org.example.Main"/>
            </construct>        
        </invoke-factory>      
        <interceptor service-id="hivemind.LoggingInterceptor"/>
    </service-point>

...does not help if you want org.example.Main to get a reference to yet another service point.



> Proxy creation failure for non-interface beans
> ----------------------------------------------
>
>          Key: HIVEMIND-120
>          URL: http://issues.apache.org/jira/browse/HIVEMIND-120
>      Project: HiveMind
>         Type: Bug
>   Components: framework
>     Versions: 1.1
>  Environment: Windows XP, Java 1.5
>     Reporter: Brian K. Wallace
>  Attachments: HivemindTestNonInterfaceBean.jar
>
> When utilizing a non-interface bean as in the following:
>   <service-point id="MenuBar" interface="javax.swing.JMenuBar">
> The SingletonServiceModel.createSingletonProxy will fail as a result of trying to override a final method. 
> Stacktrace follows
> -------------------------------------------------
> org.apache.hivemind.ApplicationRuntimeException: Unable to create class $$JMenuBar_103c097ba17_103c097ba18: by java.lang.VerifyError: class $$JMenuBar_103c097ba17_103c097ba18 overrides final method s¦ß*'+
> .#Ýß*'+
> 	at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.createSingletonProxy(SingletonServiceModel.java:130)
> 	at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.getService(SingletonServiceModel.java:57)
> 	at org.apache.hivemind.impl.ServicePointImpl.getService(ServicePointImpl.java:209)
> 	at org.apache.hivemind.impl.ServicePointImpl.getService(ServicePointImpl.java:222)
> 	at org.apache.hivemind.impl.RegistryInfrastructureImpl.getService(RegistryInfrastructureImpl.java:242)
> 	at org.apache.hivemind.impl.ModuleImpl.getService(ModuleImpl.java:102)
> 	at org.apache.hivemind.service.impl.BuilderFactoryLogic.autowireProperty(BuilderFactoryLogic.java:395)
> 	at org.apache.hivemind.service.impl.BuilderFactoryLogic.autowireServices(BuilderFactoryLogic.java:381)
> 	at org.apache.hivemind.service.impl.BuilderFactoryLogic.setProperties(BuilderFactoryLogic.java:327)
> 	at org.apache.hivemind.service.impl.BuilderFactoryLogic.createService(BuilderFactoryLogic.java:77)
> 	at org.apache.hivemind.service.impl.BuilderFactory.createCoreServiceImplementation(BuilderFactory.java:42)
> 	at org.apache.hivemind.impl.InvokeFactoryServiceConstructor.constructCoreServiceImplementation(InvokeFactoryServiceConstructor.java:84)
> 	at org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructCoreServiceImplementation(AbstractServiceModelImpl.java:107)
> 	at org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructNewServiceImplementation(AbstractServiceModelImpl.java:157)
> 	at org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructServiceImplementation(AbstractServiceModelImpl.java:139)
> 	at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.getActualServiceImplementation(SingletonServiceModel.java:68)
> Caused by: org.apache.hivemind.ApplicationRuntimeException: Unable to create class $$JMenuBar_103c097ba17_103c097ba18: by java.lang.VerifyError: class $$JMenuBar_103c097ba17_103c097ba18 overrides final method s¦ß*'+
> .#Ýß*'+
> 	at org.apache.hivemind.service.impl.CtClassSource.createClass(CtClassSource.java:88)
> 	at org.apache.hivemind.service.impl.AbstractFab.createClass(AbstractFab.java:92)
> 	at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.createSingletonProxyClass(SingletonServiceModel.java:184)
> 	at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.createSingletonProxy(SingletonServiceModel.java:103)
> 	... 19 more
> Caused by: javassist.CannotCompileException: by java.lang.VerifyError: class $$JMenuBar_103c097ba17_103c097ba18 overrides final method s¦ß*'+
> .#Ýß*'+
> 	at javassist.ClassPool.toClass(ClassPool.java:713)
> 	at javassist.CtClass.toClass(CtClass.java:988)
> 	at org.apache.hivemind.service.impl.HiveMindClassPool.toClass(HiveMindClassPool.java:75)
> 	at org.apache.hivemind.service.impl.CtClassSource.createClass(CtClassSource.java:84)
> 	... 22 more

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (HIVEMIND-120) Proxy creation failure for non-interface beans

Posted by "Richard Hensley (JIRA)" <hi...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/HIVEMIND-120?page=comments#action_65721 ]
     
Richard Hensley commented on HIVEMIND-120:
------------------------------------------

I really think that older objects that don't have interfaces, or can't be sub-classed should be limited to using the primitive model. 

Another way that I've been working around these kind of issues is using ObjectProviders. 

Hivemind has documented contracts that assume either interfaces, or at overridable methods. I think that if we add a feature that breaks this contract by silently ignoring it is some cases is a very bad idea. I will state this again, in these few cases, the primitive model is about the best that can be done and still not astonish the user. For instance, if my logging interceptor showed some of the methods but not all, how long would it take a new user to track this down to some final method on their object.

As a precedence for limiting functionality when an object has final methods, Hibernate states that if you make a method final on an bean that is being managed by Hibernate, then that bean can not do managed lazy instantiation. 

> Proxy creation failure for non-interface beans
> ----------------------------------------------
>
>          Key: HIVEMIND-120
>          URL: http://issues.apache.org/jira/browse/HIVEMIND-120
>      Project: HiveMind
>         Type: Bug
>   Components: framework
>     Versions: 1.1
>  Environment: Windows XP, Java 1.5
>     Reporter: Brian K. Wallace
>  Attachments: HivemindTestNonInterfaceBean.jar
>
> When utilizing a non-interface bean as in the following:
>   <service-point id="MenuBar" interface="javax.swing.JMenuBar">
> The SingletonServiceModel.createSingletonProxy will fail as a result of trying to override a final method. 
> Stacktrace follows
> -------------------------------------------------
> org.apache.hivemind.ApplicationRuntimeException: Unable to create class $$JMenuBar_103c097ba17_103c097ba18: by java.lang.VerifyError: class $$JMenuBar_103c097ba17_103c097ba18 overrides final method s¦ß*'+
> .#Ýß*'+
> 	at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.createSingletonProxy(SingletonServiceModel.java:130)
> 	at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.getService(SingletonServiceModel.java:57)
> 	at org.apache.hivemind.impl.ServicePointImpl.getService(ServicePointImpl.java:209)
> 	at org.apache.hivemind.impl.ServicePointImpl.getService(ServicePointImpl.java:222)
> 	at org.apache.hivemind.impl.RegistryInfrastructureImpl.getService(RegistryInfrastructureImpl.java:242)
> 	at org.apache.hivemind.impl.ModuleImpl.getService(ModuleImpl.java:102)
> 	at org.apache.hivemind.service.impl.BuilderFactoryLogic.autowireProperty(BuilderFactoryLogic.java:395)
> 	at org.apache.hivemind.service.impl.BuilderFactoryLogic.autowireServices(BuilderFactoryLogic.java:381)
> 	at org.apache.hivemind.service.impl.BuilderFactoryLogic.setProperties(BuilderFactoryLogic.java:327)
> 	at org.apache.hivemind.service.impl.BuilderFactoryLogic.createService(BuilderFactoryLogic.java:77)
> 	at org.apache.hivemind.service.impl.BuilderFactory.createCoreServiceImplementation(BuilderFactory.java:42)
> 	at org.apache.hivemind.impl.InvokeFactoryServiceConstructor.constructCoreServiceImplementation(InvokeFactoryServiceConstructor.java:84)
> 	at org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructCoreServiceImplementation(AbstractServiceModelImpl.java:107)
> 	at org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructNewServiceImplementation(AbstractServiceModelImpl.java:157)
> 	at org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructServiceImplementation(AbstractServiceModelImpl.java:139)
> 	at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.getActualServiceImplementation(SingletonServiceModel.java:68)
> Caused by: org.apache.hivemind.ApplicationRuntimeException: Unable to create class $$JMenuBar_103c097ba17_103c097ba18: by java.lang.VerifyError: class $$JMenuBar_103c097ba17_103c097ba18 overrides final method s¦ß*'+
> .#Ýß*'+
> 	at org.apache.hivemind.service.impl.CtClassSource.createClass(CtClassSource.java:88)
> 	at org.apache.hivemind.service.impl.AbstractFab.createClass(AbstractFab.java:92)
> 	at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.createSingletonProxyClass(SingletonServiceModel.java:184)
> 	at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.createSingletonProxy(SingletonServiceModel.java:103)
> 	... 19 more
> Caused by: javassist.CannotCompileException: by java.lang.VerifyError: class $$JMenuBar_103c097ba17_103c097ba18 overrides final method s¦ß*'+
> .#Ýß*'+
> 	at javassist.ClassPool.toClass(ClassPool.java:713)
> 	at javassist.CtClass.toClass(CtClass.java:988)
> 	at org.apache.hivemind.service.impl.HiveMindClassPool.toClass(HiveMindClassPool.java:75)
> 	at org.apache.hivemind.service.impl.CtClassSource.createClass(CtClassSource.java:84)
> 	... 22 more

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (HIVEMIND-120) Proxy creation failure for non-interface beans

Posted by "Richard Hensley (JIRA)" <hi...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/HIVEMIND-120?page=comments#action_65722 ]
     
Richard Hensley commented on HIVEMIND-120:
------------------------------------------

If you can't tell, I vote for immediate throwing of an exception. The message could include a pointer that primitive should work.

> Proxy creation failure for non-interface beans
> ----------------------------------------------
>
>          Key: HIVEMIND-120
>          URL: http://issues.apache.org/jira/browse/HIVEMIND-120
>      Project: HiveMind
>         Type: Bug
>   Components: framework
>     Versions: 1.1
>  Environment: Windows XP, Java 1.5
>     Reporter: Brian K. Wallace
>  Attachments: HivemindTestNonInterfaceBean.jar
>
> When utilizing a non-interface bean as in the following:
>   <service-point id="MenuBar" interface="javax.swing.JMenuBar">
> The SingletonServiceModel.createSingletonProxy will fail as a result of trying to override a final method. 
> Stacktrace follows
> -------------------------------------------------
> org.apache.hivemind.ApplicationRuntimeException: Unable to create class $$JMenuBar_103c097ba17_103c097ba18: by java.lang.VerifyError: class $$JMenuBar_103c097ba17_103c097ba18 overrides final method s¦ß*'+
> .#Ýß*'+
> 	at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.createSingletonProxy(SingletonServiceModel.java:130)
> 	at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.getService(SingletonServiceModel.java:57)
> 	at org.apache.hivemind.impl.ServicePointImpl.getService(ServicePointImpl.java:209)
> 	at org.apache.hivemind.impl.ServicePointImpl.getService(ServicePointImpl.java:222)
> 	at org.apache.hivemind.impl.RegistryInfrastructureImpl.getService(RegistryInfrastructureImpl.java:242)
> 	at org.apache.hivemind.impl.ModuleImpl.getService(ModuleImpl.java:102)
> 	at org.apache.hivemind.service.impl.BuilderFactoryLogic.autowireProperty(BuilderFactoryLogic.java:395)
> 	at org.apache.hivemind.service.impl.BuilderFactoryLogic.autowireServices(BuilderFactoryLogic.java:381)
> 	at org.apache.hivemind.service.impl.BuilderFactoryLogic.setProperties(BuilderFactoryLogic.java:327)
> 	at org.apache.hivemind.service.impl.BuilderFactoryLogic.createService(BuilderFactoryLogic.java:77)
> 	at org.apache.hivemind.service.impl.BuilderFactory.createCoreServiceImplementation(BuilderFactory.java:42)
> 	at org.apache.hivemind.impl.InvokeFactoryServiceConstructor.constructCoreServiceImplementation(InvokeFactoryServiceConstructor.java:84)
> 	at org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructCoreServiceImplementation(AbstractServiceModelImpl.java:107)
> 	at org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructNewServiceImplementation(AbstractServiceModelImpl.java:157)
> 	at org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructServiceImplementation(AbstractServiceModelImpl.java:139)
> 	at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.getActualServiceImplementation(SingletonServiceModel.java:68)
> Caused by: org.apache.hivemind.ApplicationRuntimeException: Unable to create class $$JMenuBar_103c097ba17_103c097ba18: by java.lang.VerifyError: class $$JMenuBar_103c097ba17_103c097ba18 overrides final method s¦ß*'+
> .#Ýß*'+
> 	at org.apache.hivemind.service.impl.CtClassSource.createClass(CtClassSource.java:88)
> 	at org.apache.hivemind.service.impl.AbstractFab.createClass(AbstractFab.java:92)
> 	at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.createSingletonProxyClass(SingletonServiceModel.java:184)
> 	at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.createSingletonProxy(SingletonServiceModel.java:103)
> 	... 19 more
> Caused by: javassist.CannotCompileException: by java.lang.VerifyError: class $$JMenuBar_103c097ba17_103c097ba18 overrides final method s¦ß*'+
> .#Ýß*'+
> 	at javassist.ClassPool.toClass(ClassPool.java:713)
> 	at javassist.CtClass.toClass(CtClass.java:988)
> 	at org.apache.hivemind.service.impl.HiveMindClassPool.toClass(HiveMindClassPool.java:75)
> 	at org.apache.hivemind.service.impl.CtClassSource.createClass(CtClassSource.java:84)
> 	... 22 more

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (HIVEMIND-120) Proxy creation failure for non-interface beans

Posted by "Brian K. Wallace (JIRA)" <hi...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/HIVEMIND-120?page=comments#action_65806 ]
     
Brian K. Wallace commented on HIVEMIND-120:
-------------------------------------------

I, too, agree that an exception should be thrown immediately. An exception that makes sense is much more valuable than an Error in handling cases unsuspecting (aka: me) users would attempt.

I must also say, however, that in this instance the primitive model did allow for creation of the object, but did not allow for the object to be used. (The only thing ever accessible was the proxy).

> Proxy creation failure for non-interface beans
> ----------------------------------------------
>
>          Key: HIVEMIND-120
>          URL: http://issues.apache.org/jira/browse/HIVEMIND-120
>      Project: HiveMind
>         Type: Bug
>   Components: framework
>     Versions: 1.1
>  Environment: Windows XP, Java 1.5
>     Reporter: Brian K. Wallace
>  Attachments: HivemindTestNonInterfaceBean.jar
>
> When utilizing a non-interface bean as in the following:
>   <service-point id="MenuBar" interface="javax.swing.JMenuBar">
> The SingletonServiceModel.createSingletonProxy will fail as a result of trying to override a final method. 
> Stacktrace follows
> -------------------------------------------------
> org.apache.hivemind.ApplicationRuntimeException: Unable to create class $$JMenuBar_103c097ba17_103c097ba18: by java.lang.VerifyError: class $$JMenuBar_103c097ba17_103c097ba18 overrides final method s¦ß*'+
> .#Ýß*'+
> 	at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.createSingletonProxy(SingletonServiceModel.java:130)
> 	at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.getService(SingletonServiceModel.java:57)
> 	at org.apache.hivemind.impl.ServicePointImpl.getService(ServicePointImpl.java:209)
> 	at org.apache.hivemind.impl.ServicePointImpl.getService(ServicePointImpl.java:222)
> 	at org.apache.hivemind.impl.RegistryInfrastructureImpl.getService(RegistryInfrastructureImpl.java:242)
> 	at org.apache.hivemind.impl.ModuleImpl.getService(ModuleImpl.java:102)
> 	at org.apache.hivemind.service.impl.BuilderFactoryLogic.autowireProperty(BuilderFactoryLogic.java:395)
> 	at org.apache.hivemind.service.impl.BuilderFactoryLogic.autowireServices(BuilderFactoryLogic.java:381)
> 	at org.apache.hivemind.service.impl.BuilderFactoryLogic.setProperties(BuilderFactoryLogic.java:327)
> 	at org.apache.hivemind.service.impl.BuilderFactoryLogic.createService(BuilderFactoryLogic.java:77)
> 	at org.apache.hivemind.service.impl.BuilderFactory.createCoreServiceImplementation(BuilderFactory.java:42)
> 	at org.apache.hivemind.impl.InvokeFactoryServiceConstructor.constructCoreServiceImplementation(InvokeFactoryServiceConstructor.java:84)
> 	at org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructCoreServiceImplementation(AbstractServiceModelImpl.java:107)
> 	at org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructNewServiceImplementation(AbstractServiceModelImpl.java:157)
> 	at org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructServiceImplementation(AbstractServiceModelImpl.java:139)
> 	at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.getActualServiceImplementation(SingletonServiceModel.java:68)
> Caused by: org.apache.hivemind.ApplicationRuntimeException: Unable to create class $$JMenuBar_103c097ba17_103c097ba18: by java.lang.VerifyError: class $$JMenuBar_103c097ba17_103c097ba18 overrides final method s¦ß*'+
> .#Ýß*'+
> 	at org.apache.hivemind.service.impl.CtClassSource.createClass(CtClassSource.java:88)
> 	at org.apache.hivemind.service.impl.AbstractFab.createClass(AbstractFab.java:92)
> 	at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.createSingletonProxyClass(SingletonServiceModel.java:184)
> 	at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.createSingletonProxy(SingletonServiceModel.java:103)
> 	... 19 more
> Caused by: javassist.CannotCompileException: by java.lang.VerifyError: class $$JMenuBar_103c097ba17_103c097ba18 overrides final method s¦ß*'+
> .#Ýß*'+
> 	at javassist.ClassPool.toClass(ClassPool.java:713)
> 	at javassist.CtClass.toClass(CtClass.java:988)
> 	at org.apache.hivemind.service.impl.HiveMindClassPool.toClass(HiveMindClassPool.java:75)
> 	at org.apache.hivemind.service.impl.CtClassSource.createClass(CtClassSource.java:84)
> 	... 22 more

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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