List Info

Thread: Commented: (EJBTHREE-786) String remove() method on SFSB




Commented: (EJBTHREE-786) String remove() method on SFSB
country flaguser name
United States
2007-09-29 13:51:41
    [ http://jira.jboss.com/jira/browse/EJ
BTHREE-786?page=comments#action_12379428 ] 
            
Pete Muir commented on EJBTHREE-786:
------------------------------------

Section 4.6.6 has no restriction saying something like 'the
business interface may not contain a method with the
signature remove()' which to me implies that having a method
String remove() on the business interface is allowed by the
spec.


> String remove() method on SFSB
> ------------------------------
>
>                 Key: EJBTHREE-786
>                 URL: http:/
/jira.jboss.com/jira/browse/EJBTHREE-786
>             Project: EJB 3.0
>          Issue Type: Bug
>            Reporter: Gavin King
>         Assigned To: Andrew Rubinger
>            Priority: Critical
>             Fix For: Branch_4_2, HEAD
>
>
> I get the following exception if I try to declare a
method with the signature String remove() on the local
interface:
> 17:53:02,953 WARN  [ServiceController] Problem starting
service
jboss.j2ee:ear=MyDomain.ear,jar=MyDomain.jar,name=UserHome,s
ervice=EJB3
> java.lang.IllegalArgumentException: methods with same
signature remove() but incompatible return types: void and
others
> 	at
sun.misc.ProxyGenerator.checkReturnTypes(ProxyGenerator.java
:610)
> 	at
sun.misc.ProxyGenerator.generateClassFile(ProxyGenerator.jav
a:420)
> 	at
sun.misc.ProxyGenerator.generateProxyClass(ProxyGenerator.ja
va:306)
> 	at
java.lang.reflect.Proxy.getProxyClass(Proxy.java:501)
> 	at
org.jboss.ejb3.stateful.BaseStatefulProxyFactory.init(BaseSt
atefulProxyFactory.java:58)
> 	at
org.jboss.ejb3.stateful.BaseStatefulProxyFactory.start(BaseS
tatefulProxyFactory.java:66)
> 	at
org.jboss.ejb3.stateful.StatefulLocalProxyFactory.start(Stat
efulLocalProxyFactory.java:61)
> 	at
org.jboss.ejb3.ProxyDeployer.start(ProxyDeployer.java:105)
> 	at
org.jboss.ejb3.SessionContainer.start(SessionContainer.java:
124)
> 	at
org.jboss.ejb3.stateful.StatefulContainer.start(StatefulCont
ainer.java:91)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
> 	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
ssorImpl.java:39)
> 	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
thodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 	at
org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDe
legateWrapper.java:102)
> 	at
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(Serv
iceMBeanSupport.java:289)
> 	at
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(
ServiceMBeanSupport.java:245)
> 	at
sun.reflect.GeneratedMethodAccessor87.invoke(Unknown
Source)
> 	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
thodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 	at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(Reflecte
dDispatcher.java:155)
> 	at
org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
> 	at
org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
> 	at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBea
nInvoker.java:264)
> 	at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.j
ava:659)
> 	at
org.jboss.system.ServiceController$ServiceProxy.invoke(Servi
ceController.java:978)
> 	at $Proxy0.start(Unknown Source)
> 	at
org.jboss.system.ServiceController.start(ServiceController.j
ava:417)
> 	at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown
Source)
> 	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
thodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 	at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(Reflecte
dDispatcher.java:155)
> 	at
org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
> 	at
org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
> 	at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBea
nInvoker.java:264)
> 	at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.j
ava:659)
> 	at
org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:21
0)
> 	at $Proxy96.start(Unknown Source)

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

        
_______________________________________________
jboss-jira mailing list
jboss-jiralists.jboss.org
h
ttps://lists.jboss.org/mailman/listinfo/jboss-jira

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )