12 Replies Latest reply on Nov 14, 2001 1:58 PM by Josh Sents

    char used in methods of EJB session beans

    Josh Sents Newbie

      The following method is causing the error listed below. Can we not use "char" as a type in methods of session beans or do they all arguements need to be objects? Or is there something that I am doing wrong?

      Thanks for any help,
      Josh

      Method on the bean, notice first arg is char:
      public String registerRqstr(char acType, String asAssn, String asvUsers, String asvPassword) throws RcException
      {

      return com.rc.framework.RqstrMngrBeanFinal.registerRqstr(acType, asAssn, asvUsers, asvPassword);
      }



      Error:
      [AutoDeployer] Starting
      [AutoDeployer] Watching D:\RcDepWarJB
      [AutoDeployer] Auto deploy of file:/D:/RcDepWarJB/sys.jar
      [J2EE Deployer Default] Deploy J2EE application: file:/D:/RcDepWarJB/sys.jar
      [J2eeDeployer] Create application sys.jar
      [J2eeDeployer] install EJB module sys.jar
      [Container factory] Deploying:file:/D:/JBoss_Tomcat/jboss/tmp/deploy/Default/sys.jar
      [Verifier] Verifying file:/D:/JBoss_Tomcat/jboss/tmp/deploy/Default/sys.jar/ejb1001.jar
      [Container factory] Deploying Col_label
      [Container factory] Deploying Col_list
      [Container factory] Deploying Msg
      [Container factory] Deploying Msg_ref
      [Container factory] Deploying Page_col
      [Container factory] Deploying User_page
      [Container factory] Deploying Col_labelTv
      [Container factory] Deploying Col_listTv
      [Container factory] Deploying ColLabelDg
      [Container factory] Deploying ColListDg
      [Container factory] Deploying MsgTv
      [Container factory] Deploying Msg_refTv
      [Container factory] Deploying MsgDg
      [Container factory] Deploying MsgRefDg
      [Container factory] Deploying Page_colTv
      [Container factory] Deploying PageColDg
      [Container factory] Deploying User_pageTv
      [Container factory] Deploying UserPageDg
      [Container factory] Deploying AssnMngr
      [Container factory] Deploying MessagePc
      [Container factory] Deploying RqstrMngr
      [Container factory] Deploying UserMngr
      [J2EE Deployer Default] Starting sys.jar failed!
      [Default] java.lang.NoClassDefFoundError: java/lang/Char
      [Default] at $Proxy16.(Unknown Source)
      [Default]
      [Default] at java.lang.reflect.Constructor.newInstance(Native Method)
      [Default]
      [Default] at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:562)
      [Default]
      [Default] at org.jboss.ejb.plugins.jrmp13.server.JRMPContainerInvoker.init(JRMPContainerInvoker.java:80)
      [Default]
      [Default] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.init(JRMPContainerInvoker.java:258)
      [Default]
      [Default] at org.jboss.ejb.StatelessSessionContainer.init(StatelessSessionContainer.java:165)
      [Default]
      [Default] at org.jboss.ejb.Application.init(Application.java:202)
      [Default]
      [Default] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:372)
      [Default]
      [Default] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:304)
      [Default]
      [Default] at java.lang.reflect.Method.invoke(Native Method)
      [Default]
      [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [Default]
      [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [Default]
      [Default] at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:494)
      [Default]
      [Default] at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:468)
      [Default]
      [Default] at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:208)
      [Default]
      [Default] at java.lang.reflect.Method.invoke(Native Method)
      [Default]
      [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [Default]
      [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [Default]
      [Default] at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:379)
      [Default]
      [Default] at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:217)
      [Default]
      [Default] at org.jboss.ejb.AutoDeployer.startService(AutoDeployer.java:353)
      [Default]
      [Default] at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:107)
      [Default]
      [Default] at java.lang.reflect.Method.invoke(Native Method)
      [Default]
      [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [Default]
      [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [Default]
      [Default] at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(ConfigurationService.java:836)
      [Default]
      [Default] at $Proxy0.start(Unknown Source)
      [Default]
      [Default] at org.jboss.util.ServiceControl.start(ServiceControl.java:81)
      [Default]
      [Default] at java.lang.reflect.Method.invoke(Native Method)
      [Default]
      [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [Default]
      [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [Default]
      [Default] at org.jboss.Main.(Main.java:221)
      [Default]
      [Default] at org.jboss.Main$1.run(Main.java:127)
      [Default]
      [Default] at java.security.AccessController.doPrivileged(Native Method)
      [Default]
      [Default] at org.jboss.Main.main(Main.java:123)
      [Default]
      [J2EE Deployer Default] Module sys.jar is not running
      [J2EE Deployer Default] Destroying application sys.jar
      [AutoDeployer] Deployment failed:file:/D:/RcDepWarJB/sys.jar
      [AutoDeployer] org.jboss.deployment.J2eeDeploymentException: Error while starting sys.jar: java/lang/Char, Cause: java.lang.NoClassDefFoundError: java/lang/Char
      [AutoDeployer] at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:524)
      [AutoDeployer] at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:468)
      [AutoDeployer] at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:208)
      [AutoDeployer] at java.lang.reflect.Method.invoke(Native Method)
      [AutoDeployer] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [AutoDeployer] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [AutoDeployer] at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:379)
      [AutoDeployer] at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:217)
      [AutoDeployer] at org.jboss.ejb.AutoDeployer.startService(AutoDeployer.java:353)
      [AutoDeployer] at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:107)
      [AutoDeployer] at java.lang.reflect.Method.invoke(Native Method)
      [AutoDeployer] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [AutoDeployer] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [AutoDeployer] at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(ConfigurationService.java:836)
      [AutoDeployer] at $Proxy0.start(Unknown Source)
      [AutoDeployer] at org.jboss.util.ServiceControl.start(ServiceControl.java:81)
      [AutoDeployer] at java.lang.reflect.Method.invoke(Native Method)
      [AutoDeployer] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [AutoDeployer] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [AutoDeployer] at org.jboss.Main.(Main.java:221)
      [AutoDeployer] at org.jboss.Main$1.run(Main.java:127)
      [AutoDeployer] at java.security.AccessController.doPrivileged(Native Method)
      [AutoDeployer] at org.jboss.Main.main(Main.java:123)
      [AutoDeployer] Started
      [JMXAdaptorService] Starting
      [JMXAdaptorService] Started
      [RMIConnectorService] Starting
      [RMIConnectorService] Started
      [MailService] Starting
      [MailService] Mail Service 'Mail' bound to java:/Mail
      [MailService] Started
      [Service Control] Started 48 services
      [Default] JBoss 2.4.3 Started in 0m:11s