1 2 3 Previous Next 34 Replies Latest reply on May 5, 2009 3:59 AM by jaikiran

    NullPointerException in JavaEEComponentHelper with JBoss-5.1

      Hi,

      Our EJB3 application deploys without problems in JBoss 4.3, but in 5.x I get NullPointerException in JavaEEComponentHelper.

      I've started my tests in JBoss 5.0.1GA (jdk6) and got this problem, so after some googling I found a thread describing a similar problem in previous version of JBoss (http://www.jboss.org/index.html?module=bb&op=viewtopic&t=138480) and related JIRA (https://jira.jboss.org/jira/browse/JBAS-5713) stated that the problem has been resolved in JBoss 5.1.0.Beta1.

      So I've downloaded this version (also jdk6), but the problem is still there.

      08:15:31,758 ERROR [AbstractKernelController] Error installing to Real: name=vfs
      file:/E:/ifs_home_WS/jboss-5.1.0.Beta1/server/dev/deploy/ifsapp.ear/ state=PreRe
      al mode=Manual requiredState=Real
      org.jboss.deployers.spi.DeploymentException: Error deploying administrateuserpro
      files-ejb.jar: null
       at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:196)
       at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:99)
       at org.jboss.deployers.vfs.spi.deployer.AbstractVFSRealDeployer.internal
      Deploy(AbstractVFSRealDeployer.java:45)
       at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(
      AbstractRealDeployer.java:50)
       at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(Deployer
      Wrapper.java:171)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(Deployer
      sImpl.java:1439)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFi
      rst(DeployersImpl.java:1157)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFi
      rst(DeployersImpl.java:1210)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.install(Deployers
      Impl.java:1098)
       at org.jboss.dependency.plugins.AbstractControllerContext.install(Abstra
      ctControllerContext.java:348)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractContr
      oller.java:1598)
       at org.jboss.dependency.plugins.AbstractController.incrementState(Abstra
      ctController.java:934)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
      actController.java:1062)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
      actController.java:984)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractContro
      ller.java:822)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractContro
      ller.java:553)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.process(Deployers
      Impl.java:781)
       at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeploye
      rImpl.java:698)
       at org.jboss.system.server.profileservice.repository.MainDeployerAdapter
      .process(MainDeployerAdapter.java:117)
       at org.jboss.system.server.profileservice.repository.ProfileDeployAction
      .install(ProfileDeployAction.java:59)
       at org.jboss.system.server.profileservice.repository.AbstractProfileActi
      on.install(AbstractProfileAction.java:53)
       at org.jboss.system.server.profileservice.repository.AbstractProfileServ
      ice.install(AbstractProfileService.java:355)
       at org.jboss.dependency.plugins.AbstractControllerContext.install(Abstra
      ctControllerContext.java:348)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractContr
      oller.java:1598)
       at org.jboss.dependency.plugins.AbstractController.incrementState(Abstra
      ctController.java:934)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
      actController.java:1062)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
      actController.java:984)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractContro
      ller.java:822)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractContro
      ller.java:553)
       at org.jboss.system.server.profileservice.repository.AbstractProfileServ
      ice.activateProfile(AbstractProfileService.java:310)
       at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(
      ProfileServiceBootstrap.java:241)
       at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:
      461)
       at org.jboss.Main.boot(Main.java:216)
       at org.jboss.Main$1.run(Main.java:546)
       at java.lang.Thread.run(Thread.java:619)
      Caused by: java.lang.NullPointerException
       at org.jboss.ejb3.javaee.JavaEEComponentHelper.createObjectName(JavaEECo
      mponentHelper.java:46)
       at org.jboss.ejb3.deployers.JBoss5DeploymentScope.getEjbContainer(JBoss5
      DeploymentScope.java:170)
       at org.jboss.ejb3.Ejb3Deployment.getEjbContainer(Ejb3Deployment.java:410
      )
       at org.jboss.ejb3.EJBContainer.resolveEjbContainer(EJBContainer.java:141
      8)
       at org.jboss.injection.AbstractHandler.addDependency(AbstractHandler.jav
      a:50)
       at org.jboss.injection.EJBRemoteHandler.ejbRefDependency(EJBRemoteHandle
      r.java:146)
       at org.jboss.injection.EJBRemoteHandler.handleFieldAnnotations(EJBRemote
      Handler.java:393)
       at org.jboss.injection.InjectionUtil.processFieldAnnotations(InjectionUt
      il.java:160)
       at org.jboss.injection.InjectionUtil.processAnnotations(InjectionUtil.ja
      va:197)
       at org.jboss.ejb3.EJBContainer.processMetadata(EJBContainer.java:590)
       at org.jboss.ejb3.Ejb3Deployment.processEJBContainerMetadata(Ejb3Deploym
      ent.java:418)
       at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:526)
       at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:189)
       ... 34 more
      



        • 1. Re: NullPointerException in JavaEEComponentHelper with JBoss
          jaikiran

          Could you please explain a bit more about your application packaging? What does the EAR contain? Post the output of

          jar -tf ifsapp.ear


          Also do you have a application.xml? If yes, please post its contents.

          • 2. Re: NullPointerException in JavaEEComponentHelper with JBoss
            jaikiran

             

            Caused by: java.lang.NullPointerException
            at org.jboss.ejb3.javaee.JavaEEComponentHelper.createObjectName(JavaEECo
            mponentHelper.java:46)
            at org.jboss.ejb3.deployers.JBoss5DeploymentScope.getEjbContainer(JBoss5
            DeploymentScope.java:170)
            at org.jboss.ejb3.Ejb3Deployment.getEjbContainer(Ejb3Deployment.java:410
            )
            at org.jboss.ejb3.EJBContainer.resolveEjbContainer(EJBContainer.java:141
            8)
            at org.jboss.injection.AbstractHandler.addDependency(AbstractHandler.jav
            a:50)
            at org.jboss.injection.EJBRemoteHandler.ejbRefDependency(EJBRemoteHandle
            r.java:146)
            at org.jboss.injection.EJBRemoteHandler.handleFieldAnnotations(EJBRemote
            Handler.java:393)
            at org.jboss.injection.InjectionUtil.processFieldAnnotations(InjectionUt
            il.java:160)
            at org.jboss.injection.InjectionUtil.processAnnotations(InjectionUtil.ja
            va:197)
            at org.jboss.ejb3.EJBContainer.processMetadata(EJBContainer.java:590)
            at org.jboss.ejb3.Ejb3Deployment.processEJBContainerMetadata(Ejb3Deploym


            Hmmm, do you have a bean which is having a @EJB to inject another bean? And do these two beans reside in two separate jar files?


            • 3. Re: NullPointerException in JavaEEComponentHelper with JBoss

              Many thanks for the prompt response!

              Our application consists of quite a large number of EJBs and a couple of war applications - traditional servlets and web services (with annotations).

              Only EJB3 EJBs. With one or two exceptions we don't have ejb-jar.xml deployment descriptors.

              But we do have applications.xml; here comes its content:

              <?xml version="1.0" encoding="UTF-8"?>
              <!DOCTYPE application PUBLIC '-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN' 'http://java.sun.com/dtd/application_1_3.dtd'>
              <application>
               <display-name>IFS Applications</display-name>
               <description>IFS Applications</description>
               <module>
               <ejb>addresspresentationmanagement-ejb.jar</ejb>
               </module>
               <module>
               <ejb>administrateldapdomainconfig-ejb.jar</ejb>
               </module>
               <module>
               <ejb>administrateuserprofiles-ejb.jar</ejb>
               </module>
               <module>
               <ejb>applicationmonitoring-ejb.jar</ejb>
               </module>
               <module>
               <ejb>applicationsearch-ejb.jar</ejb>
               </module>
               <module>
               <ejb>applicationsearchadministration-ejb.jar</ejb>
               </module>
               <module>
               <ejb>applicationservertesting-ejb.jar</ejb>
               </module>
               <module>
               <ejb>applicationsupport-ejb.jar</ejb>
               </module>
               <module>
               <ejb>batchqueueadministration-ejb.jar</ejb>
               </module>
               <module>
               <ejb>browsesystemdocumentation-ejb.jar</ejb>
               </module>
               <module>
               <ejb>cachemanagement-ejb.jar</ejb>
               </module>
               <module>
               <ejb>clientnavigatormanagement-ejb.jar</ejb>
               </module>
               <module>
               <ejb>clientservices-ejb.jar</ejb>
               </module>
               <module>
               <ejb>codegeneration-ejb.jar</ejb>
               </module>
               <module>
               <ejb>commonmessages-ejb.jar</ejb>
               </module>
               <module>
               <ejb>connectadministration-ejb.jar</ejb>
               </module>
               <module>
               <ejb>connectdevelopment-ejb.jar</ejb>
               </module>
               <module>
               <ejb>connectivityservices-ejb.jar</ejb>
               </module>
               <module>
               <ejb>connectprotocoltestsuite-ejb.jar</ejb>
               </module>
               <module>
               <ejb>connectruntimeservices-ejb.jar</ejb>
               </module>
               <module>
               <ejb>connectsenders-ejb.jar</ejb>
               </module>
               <module>
               <ejb>connecttestorder-ejb.jar</ejb>
               </module>
               <module>
               <ejb>customersupport-ejb.jar</ejb>
               </module>
               <module>
               <ejb>databasebrowsing-ejb.jar</ejb>
               </module>
               <module>
               <ejb>eventadministration-ejb.jar</ejb>
               </module>
               <module>
               <ejb>excelreportadministration-ejb.jar</ejb>
               </module>
               <module>
               <ejb>fndlogmanagement-ejb.jar</ejb>
               </module>
               <module>
               <ejb>historylogadministration-ejb.jar</ejb>
               </module>
               <module>
               <ejb>infoservices-ejb.jar</ejb>
               </module>
               <module>
               <ejb>infoservicesconfiguration-ejb.jar</ejb>
               </module>
               <module>
               <ejb>manageconfigurations-ejb.jar</ejb>
               </module>
               <module>
               <ejb>manageconnectivityadministration-ejb.jar</ejb>
               </module>
               <module>
               <ejb>managecontextsubstitutionvariables-ejb.jar</ejb>
               </module>
               <module>
               <ejb>managedraft-ejb.jar</ejb>
               </module>
               <module>
               <ejb>manageexcelreport-ejb.jar</ejb>
               </module>
               <module>
               <ejb>manageisocountry-ejb.jar</ejb>
               </module>
               <module>
               <ejb>manageisolanguage-ejb.jar</ejb>
               </module>
               <module>
               <ejb>managelogicalprinters-ejb.jar</ejb>
               </module>
               <module>
               <ejb>managemobileserver-ejb.jar</ejb>
               </module>
               <module>
               <ejb>managemytodo-ejb.jar</ejb>
               </module>
               <module>
               <ejb>managenotes-ejb.jar</ejb>
               </module>
               <module>
               <ejb>managereportdefinitions-ejb.jar</ejb>
               </module>
               <module>
               <ejb>managesearchdomains-ejb.jar</ejb>
               </module>
               <module>
               <ejb>manageselection-ejb.jar</ejb>
               </module>
               <module>
               <ejb>manageservercache-ejb.jar</ejb>
               </module>
               <module>
               <ejb>managesysteminformation-ejb.jar</ejb>
               </module>
               <module>
               <ejb>managesystemparameters-ejb.jar</ejb>
               </module>
               <module>
               <ejb>managetemplate-ejb.jar</ejb>
               </module>
               <module>
               <ejb>manageuserprofile-ejb.jar</ejb>
               </module>
               <module>
               <ejb>manageusersextended-ejb.jar</ejb>
               </module>
               <module>
               <ejb>mobileadmin-ejb.jar</ejb>
               </module>
               <module>
               <ejb>mobileapplicationstore-ejb.jar</ejb>
               </module>
               <module>
               <ejb>mobileapplicationsynchoptimizer-ejb.jar</ejb>
               </module>
               <module>
               <ejb>mobileclientinstallation-ejb.jar</ejb>
               </module>
               <module>
               <ejb>mobilecustomerservices-ejb.jar</ejb>
               </module>
               <module>
               <ejb>mobilemanufacturerinfoservices-ejb.jar</ejb>
               </module>
               <module>
               <ejb>mobilepushout-ejb.jar</ejb>
               </module>
               <module>
               <ejb>mobiletechnicalclassservices-ejb.jar</ejb>
               </module>
               <module>
               <ejb>mobiletechnicalobjectreferencemanagement-ejb.jar</ejb>
               </module>
               <module>
               <ejb>mobiletechnicalobjectreferenceservices-ejb.jar</ejb>
               </module>
               <module>
               <ejb>mobiletechnicalspecificationservices-ejb.jar</ejb>
               </module>
               <module>
               <ejb>mobileuserauthentication-ejb.jar</ejb>
               </module>
               <module>
               <ejb>modelimportexportutilities-ejb.jar</ejb>
               </module>
               <module>
               <ejb>objectconnections-ejb.jar</ejb>
               </module>
               <module>
               <ejb>permissionsetfiltermanagement-ejb.jar</ejb>
               </module>
               <module>
               <ejb>personmanagement-ejb.jar</ejb>
               </module>
               <module>
               <ejb>plsqlaccess-ejb.jar</ejb>
               </module>
               <module>
               <ejb>plsqlservices-ejb.jar</ejb>
               </module>
               <module>
               <ejb>printagentservice-ejb.jar</ejb>
               </module>
               <module>
               <ejb>printserveradministration-ejb.jar</ejb>
               </module>
               <module>
               <ejb>printserverpluginregistration-ejb.jar</ejb>
               </module>
               <module>
               <ejb>quickreporting-ejb.jar</ejb>
               </module>
               <module>
               <ejb>regionalsettings-ejb.jar</ejb>
               </module>
               <module>
               <ejb>remoteprintingnode-ejb.jar</ejb>
               </module>
               <module>
               <ejb>reporthandling-ejb.jar</ejb>
               </module>
               <module>
               <ejb>repositoryadministration-ejb.jar</ejb>
               </module>
               <module>
               <ejb>runtimerepositoryservices-ejb.jar</ejb>
               </module>
               <module>
               <ejb>securityadministration-ejb.jar</ejb>
               </module>
               <module>
               <ejb>securitycheckpoint-ejb.jar</ejb>
               </module>
               <module>
               <ejb>securitycheckpointadministration-ejb.jar</ejb>
               </module>
               <module>
               <ejb>segregationofdutiesadministration-ejb.jar</ejb>
               </module>
               <module>
               <ejb>serverlogadministration-ejb.jar</ejb>
               </module>
               <module>
               <ejb>servertesterservices-ejb.jar</ejb>
               </module>
               <module>
               <ejb>taskadministration-ejb.jar</ejb>
               </module>
               <module>
               <ejb>taskchainadministration-ejb.jar</ejb>
               </module>
               <module>
               <ejb>taskscheduling-ejb.jar</ejb>
               </module>
               <module>
               <ejb>termbasicdatamanagement-ejb.jar</ejb>
               </module>
               <module>
               <ejb>termlocalizeadministration-ejb.jar</ejb>
               </module>
               <module>
               <ejb>termmanagement-ejb.jar</ejb>
               </module>
               <module>
               <ejb>termmigration-ejb.jar</ejb>
               </module>
               <module>
               <ejb>termruntimemanagement-ejb.jar</ejb>
               </module>
               <module>
               <ejb>termstatisticmanagement-ejb.jar</ejb>
               </module>
               <module>
               <ejb>termtranslationmanagement-ejb.jar</ejb>
               </module>
               <module>
               <ejb>termutilities-ejb.jar</ejb>
               </module>
               <module>
               <ejb>termversionmanagement-ejb.jar</ejb>
               </module>
               <module>
               <ejb>texttranslationmanagement-ejb.jar</ejb>
               </module>
               <module>
               <ejb>translatablecodescanning-ejb.jar</ejb>
               </module>
               <module>
               <ejb>usedlanguages-ejb.jar</ejb>
               </module>
               <module>
               <ejb>userclientprofileactivityinterface-ejb.jar</ejb>
               </module>
               <module>
               <web>
               <web-uri>ifsclientgateway.war</web-uri>
               <context-root>/fndext</context-root>
               </web>
               </module>
               <module>
               <web>
               <web-uri>ifswebservices.war</web-uri>
               <context-root>/webservices</context-root>
               </web>
               </module>
              </application>
              


              And here comes output from "jar -tf ifsapp.ear":

              META-INF/
              META-INF/MANIFEST.MF
              ifswebservices.war
              WEB-INF/
              installation/
              installation/all/
              installation/ppc/
              installation/winxp/
              installer/
              translation/
              translation/cf-CA/
              translation/da-DK/
              translation/de-CH/
              translation/de-DE/
              translation/en-US/
              translation/es-ES/
              translation/fi-FI/
              translation/fr-FR/
              translation/ja-JP/
              translation/nl-NL/
              translation/no-NO/
              translation/pl-PL/
              translation/sv-SE/
              translation/zh-CN/
              DL81_PDFLJNI.jar
              META-INF/application.xml
              META-INF/jboss-app.xml
              META-INF/orion-application.xml
              accrul-enumerations.jar
              activation.jar
              activity.jar
              activitygrant.jar
              activitypackage.jar
              addresspresentation.jar
              addresspresentationmanagement-ejb.jar
              administrateldapdomainconfig-ejb.jar
              administrateuserprofiles-ejb.jar
              applicationmessage.jar
              applicationmonitoring-ejb.jar
              applicationsearch-ejb.jar
              applicationsearchadministration-ejb.jar
              applicationservertesting-ejb.jar
              applicationsupport-ejb.jar
              appsrv-enumerations.jar
              archive.jar
              authgroup.jar
              authorizationrole.jar
              authorizeclassfinance.jar
              avalon-framework-cvs-20020806.jar
              basemodule.jar
              batchjob.jar
              batchqueue.jar
              batchqueueadministration-ejb.jar
              batchqueuedesc.jar
              batchqueuemethod.jar
              batchschedule.jar
              batchschedulechain.jar
              batchschedulechainpar.jar
              batchschedulechainstep.jar
              batchschedulemethod.jar
              batchschedulemethodparameter.jar
              batchscheduleparameter.jar
              batik-svggen.jar
              batik.jar
              binaryobject.jar
              browsesystemdocumentation-ejb.jar
              cachedartifact.jar
              cachemanagement-ejb.jar
              clientdiagram.jar
              clientnavigatormanagement-ejb.jar
              clientpackage.jar
              clientplugin.jar
              clientprofile.jar
              clientservices-ejb.jar
              codegeneration-ejb.jar
              commonmessage.jar
              commonmessages-ejb.jar
              company.jar
              companyfinance.jar
              componentpatch.jar
              configparameterarea.jar
              configparameterinstance.jar
              connectadministration-ejb.jar
              connectdevelopment-ejb.jar
              connectivityservices-ejb.jar
              connectprotocoltestsuite-ejb.jar
              connectruntimeservices-ejb.jar
              connectsenders-ejb.jar
              connecttestorder-ejb.jar
              contextsubstitutionvariable.jar
              costestimator.jar
              customer.jar
              customersupport-ejb.jar
              databasebrowsing-ejb.jar
              databaseobjectgrant.jar
              defaultbuyer.jar
              defaultcoordinator.jar
              deferredjob.jar
              deferredjobstatus.jar
              dictionarysysargument.jar
              dictionarysysdomain.jar
              dictionarysyslu.jar
              dictionarysysmethod.jar
              dictionarysyspackage.jar
              dictionarysysstate.jar
              dictionarysystabcolumns.jar
              dictionarysystable.jar
              dictionarysysview.jar
              dictionarysysviewcolumn.jar
              distributiongroup.jar
              distributiongroupmember.jar
              documentlifecycle.jar
              draft.jar
              dsod.jar
              dsodset.jar
              employee.jar
              enterp-enumerations.jar
              entity.jar
              entityassociation.jar
              entityattribute.jar
              entitypackage.jar
              entitystate.jar
              eventadministration-ejb.jar
              excelreportadministration-ejb.jar
              excelreportarchive.jar
              expiredmobilesessionrequest.jar
              failedmobiletransaction.jar
              feature.jar
              filter.jar
              fndadm-enumerations.jar
              fndbas-enumerations.jar
              fnddev-enumerations.jar
              fnddeveloper.jar
              fndevent.jar
              fndeventaction.jar
              fndeventparameter.jar
              fndlicense.jar
              fndlog.jar
              fndlogaccess.jar
              fndlogmanagement-ejb.jar
              fndlogpriority.jar
              fndlogtype.jar
              fndmob-enumerations.jar
              fndmonitorcategory.jar
              fndmonitorentry.jar
              fndnotebook.jar
              fndrole.jar
              fndsessionruntime.jar
              fndsetting.jar
              fnduser.jar
              fnduserrole.jar
              fop.jar
              ftp.jar
              funcareaconflictpermission.jar
              functionalarea.jar
              functionalareaconflict.jar
              genleduser.jar
              handler.jar
              handlermethod.jar
              historylog.jar
              historylogadministration-ejb.jar
              historysetting.jar
              ialobject.jar
              ialobjectgrant.jar
              icu4j_3_4_4.jar
              ifacecontrolparameter.jar
              ifs-fnd-common.jar
              ifs-fnd-connect.jar
              ifs-fnd-internationalization.jar
              ifs-fnd-j2ee.jar
              ifs-fnd-management.sar
              ifs-fnd-objcache.jar
              ifs-mob-cmn.jar
              ifs-mob.jar
              ifs-proxy-cache-config.xml
              ifs_report_designer.jar
              ifsclientgateway.war
              infoservices-ejb.jar
              infoservicesconfiguration-ejb.jar
              inmessage.jar
              installation/all/ifs.zip
              installation/all/version-info.xml
              installation/ppc/db2e.zip
              installation/ppc/ifs.zip
              installation/ppc/j9.zip
              installation/ppc/mqe.zip
              installation/ppc/swt.zip
              installation/ppc/version-info.xml
              installation/winxp/db2e.zip
              installation/winxp/ifs.zip
              installation/winxp/j9.zip
              installation/winxp/mqe.zip
              installation/winxp/swt.zip
              installation/winxp/version-info.xml
              installationsite.jar
              installedmobileapplication.jar
              installedmodule.jar
              installer/ifs-mob.cfg.xml
              installer/instppc.zip
              installer/instxp.zip
              inventorypartplanner.jar
              isocountry.jar
              isolanguage.jar
              itext-1.4.6.jar
              j2eeapplication.jar
              jcommon-1.0.0.jar
              jdom.jar
              jfreechart-1.0.1.jar
              jimi-1.0.jar
              jsch-0.1.31.jar
              languageattribute.jar
              languagecode.jar
              languagecontext.jar
              languagefileexport.jar
              languagefileimport.jar
              languagefontmapping.jar
              languagemodule.jar
              languagesource.jar
              languagetexttranslation.jar
              languagetranslation.jar
              ldapdomainconfig.jar
              livedatabaseinfo.jar
              logicalprinter.jar
              logicalunit.jar
              logicalunitdetails.jar
              mail.jar
              maintemployee.jar
              maintenanceorganization.jar
              manageconfigurations-ejb.jar
              manageconnectivityadministration-ejb.jar
              managecontextsubstitutionvariables-ejb.jar
              managedraft-ejb.jar
              manageexcelreport-ejb.jar
              manageisocountry-ejb.jar
              manageisolanguage-ejb.jar
              managelogicalprinters-ejb.jar
              managemobileserver-ejb.jar
              managemytodo-ejb.jar
              managenotes-ejb.jar
              managereportdefinitions-ejb.jar
              managesearchdomains-ejb.jar
              manageselection-ejb.jar
              manageservercache-ejb.jar
              managesysteminformation-ejb.jar
              managesystemparameters-ejb.jar
              managetemplate-ejb.jar
              manageuserprofile-ejb.jar
              manageusersextended-ejb.jar
              manufacturerinfo.jar
              manufengineer.jar
              messagearchive.jar
              messagearchivesearch.jar
              messageclass.jar
              messagemedia.jar
              messagequeue.jar
              messagereceiver.jar
              mobileadmin-ejb.jar
              mobileapplicationfile.jar
              mobileapplicationstore-ejb.jar
              mobileapplicationsynchoptimizer-ejb.jar
              mobileclientinstallation-ejb.jar
              mobilecustomerservices-ejb.jar
              mobiledevice.jar
              mobiledevicedetail.jar
              mobileentitysynchronization.jar
              mobileinboxmessage.jar
              mobilelog.jar
              mobilemanufacturerinfoservices-ejb.jar
              mobileoptimizerdata.jar
              mobilepushout-ejb.jar
              mobilesession.jar
              mobiletechnicalclassservices-ejb.jar
              mobiletechnicalobjectreferencemanagement-ejb.jar
              mobiletechnicalobjectreferenceservices-ejb.jar
              mobiletechnicalspecificationservices-ejb.jar
              mobileuser.jar
              mobileuserauthentication-ejb.jar
              mobileusercache.jar
              modelimportexportutilities-ejb.jar
              modelimportlog.jar
              modelworkspace.jar
              module.jar
              modulesystemdocumentation.jar
              mpccom-enumerations.jar
              mrpmessagecontroller.jar
              mytodoitem.jar
              notebook.jar
              objectconnection.jar
              objectconnections-ejb.jar
              objectproperty.jar
              ordercoordinator.jar
              ordercoordinatorgroup.jar
              outmessage.jar
              outmessageline.jar
              pdfarchive.jar
              permissionsetfilter.jar
              permissionsetfiltermanagement-ejb.jar
              persiancalendar.jar
              personinfo.jar
              personmanagement-ejb.jar
              plsqlaccess-ejb.jar
              plsqlmethod.jar
              plsqlpackage.jar
              plsqlparameter.jar
              plsqlservices-ejb.jar
              pngencoder.jar
              poi-3.1-FINAL-20080629.jar
              postingauthorizer.jar
              presobject.jar
              presobjectdependency.jar
              presobjectgrant.jar
              presobjectsecuritytype.jar
              presobjecttype.jar
              printagentservice-ejb.jar
              printjob.jar
              printjobcontents.jar
              printqueue.jar
              printserver.jar
              printserveradministration-ejb.jar
              printserverpluginregistration-ejb.jar
              projectsetting.jar
              purchaseauthorizer.jar
              purchasebuyer.jar
              purchaserequisitioner.jar
              qualitycontrolanalyst.jar
              queryhintview.jar
              quickreport.jar
              quickreporting-ejb.jar
              rbarcode.jar
              recurrenceagenda.jar
              recurrencepattern.jar
              regionalsettings-ejb.jar
              remoteprintingnode-ejb.jar
              reportcategory.jar
              reportdefinition.jar
              reportfontdefinition.jar
              reporthandling-ejb.jar
              reportlayout.jar
              reportlayoutdefinition.jar
              reportlayouttypeconfig.jar
              reportpdfinsert.jar
              reportplugin.jar
              reportresultgenconfig.jar
              reportschema.jar
              repositoryadministration-ejb.jar
              revokedmethod.jar
              routeaddress.jar
              routecondition.jar
              rractivity.jar
              rractivitypackage.jar
              rractivityurl.jar
              rrassociationattributeconnection.jar
              rrentityactivitysync.jar
              rrentityactivityurl.jar
              rrentityassociation.jar
              rrmobilepkglocation.jar
              rrmodule.jar
              runtimerepositoryservices-ejb.jar
              salespartsalesman.jar
              scheduleapprover.jar
              scheduleapproveruser.jar
              schedulereconciler.jar
              schedulereconcileruser.jar
              searchdomain.jar
              searchdomaingroup.jar
              searchdomainruntime.jar
              securityadministration-ejb.jar
              securitycheckpoint-ejb.jar
              securitycheckpointadministration-ejb.jar
              securitycheckpointgate.jar
              securitycheckpointlog.jar
              segregationofdutiesadministration-ejb.jar
              selection.jar
              servercachemanagement.jar
              serverlog.jar
              serverlogadministration-ejb.jar
              serverlogcategory.jar
              serverpackage.jar
              servertesterservices-ejb.jar
              site.jar
              sitetext.jar
              stereotype.jar
              storageattribute.jar
              storageobject.jar
              storagepackage.jar
              supplier.jar
              supportperson.jar
              suppschedapprover.jar
              suppschedapproveruser.jar
              swt.jar
              systemprivilege.jar
              systemprivilegegrant.jar
              tableindex.jar
              target.jar
              taskadministration-ejb.jar
              taskchainadministration-ejb.jar
              taskscheduling-ejb.jar
              team.jar
              teammember.jar
              technicalattrib.jar
              technicalattribalphanum.jar
              technicalattribnumeric.jar
              technicalattribstd.jar
              technicalattribtext.jar
              technicalclass.jar
              technicalgroup.jar
              technicalgroupspec.jar
              technicalobjectreference.jar
              technicalsearchcriteria.jar
              technicalsearchresult.jar
              technicalspecalphanum.jar
              technicalspecificationboth.jar
              technicalspecnumeric.jar
              technicaltemplates.jar
              template.jar
              term.jar
              termalertindicator.jar
              termbasicdatamanagement-ejb.jar
              termbinding.jar
              termbindingalert.jar
              termbindingcomponent.jar
              termbindingkpi.jar
              termbindingmodel.jar
              termdomain.jar
              termimportedproposal.jar
              termkpisummary.jar
              termlocalizeadministration-ejb.jar
              termmanagement-ejb.jar
              termmigration-ejb.jar
              termowner.jar
              termruntimemanagement-ejb.jar
              termstandardizetranslation.jar
              termstatistic.jar
              termstatisticmanagement-ejb.jar
              termstoplist.jar
              termtranslateddefinition.jar
              termtranslateddefinitionext.jar
              termtranslatedkpi.jar
              termtranslatedname.jar
              termtranslatednameext.jar
              termtranslationlanguagerelation.jar
              termtranslationmanagement-ejb.jar
              termtranslationstatistic.jar
              termusagedefinition.jar
              termusageidentifier.jar
              termusagesummarykpi.jar
              termutilities-ejb.jar
              termversionmanagement-ejb.jar
              texttranslationmanagement-ejb.jar
              todofolder.jar
              todoitem.jar
              translatablecodescanning-ejb.jar
              translation/cf-CA/ifs-mob.xml
              translation/da-DK/ifs-mob.xml
              translation/de-CH/ifs-mob.xml
              translation/de-DE/ifs-mob.xml
              translation/en-US/ifs-mob.xml
              translation/es-ES/ifs-mob.xml
              translation/fi-FI/ifs-mob.xml
              translation/fr-FR/ifs-mob.xml
              translation/ja-JP/ifs-mob.xml
              translation/nl-NL/ifs-mob.xml
              translation/no-NO/ifs-mob.xml
              translation/pl-PL/ifs-mob.xml
              translation/sv-SE/ifs-mob.xml
              translation/zh-CN/ifs-mob.xml
              usedlanguages-ejb.jar
              userallowedsite.jar
              userclientprofile.jar
              userclientprofileactivityinterface-ejb.jar
              userdefault.jar
              userfinance.jar
              userfunctionalareaconflict.jar
              usergroup.jar
              usergroupfinance.jar
              usergroupmemberfinance.jar
              userprofile.jar
              validationobject.jar
              view.jar
              vldt-font-support.jar
              vldt-fonts.jar
              widget.jar
              windowsclientnavigator.jar
              workspace.jar
              xercesImpl.jar
              xlrdimension.jar
              xlrdimensionitem.jar
              xlrexecutedorderabletemplate.jar
              xlrfact.jar
              xlrfactitem.jar
              xlrimportlog.jar
              xlrmodules.jar
              xlrmviewlogs.jar
              xlrmviews.jar
              xlrreferencedmviews.jar
              xlrreportinstance.jar
              xlrreportresult.jar
              xlrruntimelog.jar
              xlrsourcenavigator.jar
              xlrsystemparameter.jar
              xlrtablecolumns.jar
              xlrtemplate.jar
              xlrtranslationsource.jar
              xlrwritebackcollection.jar
              xmlreportdata.jar


              And yes, we're using @EJB injections to inject beans residing in separate jar files.

              Once again, many thanks for help!


              • 4. Re: NullPointerException in JavaEEComponentHelper with JBoss
                jaikiran

                 

                And yes, we're using @EJB injections to inject beans residing in separate jar files.


                I haven't looked at the complete list of your EJB jars in the application.xml that you posted. But could you please see if this is related to https://jira.jboss.org/jira/browse/EJBTHREE-1751. See my comments in that JIRA related to deployment ordering. That issue also mentions a couple of workaround. Please try those. Let us know how it goes.


                • 5. Re: NullPointerException in JavaEEComponentHelper with JBoss

                  Hi again,

                  It took some time, but finally I could manage to test one of the suggested workarrounds.

                  EJBs in our application are automatically generated, so I can't easily rename the jar files, but I could manage to customize our code generator to use the 'mappedName' attribute.
                  Unfortunately it still fails, but this time with another exception:


                  12:33:25,959 ERROR [AbstractKernelController] Error installing to Real: name=vfs
                  file:/E:/ifs_home_WS/jboss-5.1.0.Beta1/server/dev/deploy/ifsapp.ear/ state=PreRe
                  al mode=Manual requiredState=Real
                  org.jboss.deployers.spi.DeploymentException: Error deploying administrateuserpro
                  files-ejb.jar: null
                  at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:196)
                  at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:99)
                  at org.jboss.deployers.vfs.spi.deployer.AbstractVFSRealDeployer.internal
                  Deploy(AbstractVFSRealDeployer.java:45)
                  at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(
                  AbstractRealDeployer.java:50)
                  at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(Deployer
                  Wrapper.java:171)
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(Deployer
                  sImpl.java:1439)
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFi
                  rst(DeployersImpl.java:1157)
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFi
                  rst(DeployersImpl.java:1210)
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.install(Deployers
                  Impl.java:1098)
                  at org.jboss.dependency.plugins.AbstractControllerContext.install(Abstra
                  ctControllerContext.java:348)
                  at org.jboss.dependency.plugins.AbstractController.install(AbstractContr
                  oller.java:1598)
                  at org.jboss.dependency.plugins.AbstractController.incrementState(Abstra
                  ctController.java:934)
                  at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
                  actController.java:1062)
                  at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
                  actController.java:984)
                  at org.jboss.dependency.plugins.AbstractController.change(AbstractContro
                  ller.java:822)
                  at org.jboss.dependency.plugins.AbstractController.change(AbstractContro
                  ller.java:553)
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.process(Deployers
                  Impl.java:781)
                  at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeploye
                  rImpl.java:698)
                  at org.jboss.system.server.profileservice.repository.MainDeployerAdapter
                  .process(MainDeployerAdapter.java:117)
                  at org.jboss.system.server.profileservice.repository.ProfileDeployAction
                  .install(ProfileDeployAction.java:59)
                  at org.jboss.system.server.profileservice.repository.AbstractProfileActi
                  on.install(AbstractProfileAction.java:53)
                  at org.jboss.system.server.profileservice.repository.AbstractProfileServ
                  ice.install(AbstractProfileService.java:355)
                  at org.jboss.dependency.plugins.AbstractControllerContext.install(Abstra
                  ctControllerContext.java:348)
                  at org.jboss.dependency.plugins.AbstractController.install(AbstractContr
                  oller.java:1598)
                  at org.jboss.dependency.plugins.AbstractController.incrementState(Abstra
                  ctController.java:934)
                  at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
                  actController.java:1062)
                  at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
                  actController.java:984)
                  at org.jboss.dependency.plugins.AbstractController.change(AbstractContro
                  ller.java:822)
                  at org.jboss.dependency.plugins.AbstractController.change(AbstractContro
                  ller.java:553)
                  at org.jboss.system.server.profileservice.repository.AbstractProfileServ
                  ice.activateProfile(AbstractProfileService.java:310)
                  at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(
                  ProfileServiceBootstrap.java:241)
                  at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:
                  461)
                  at org.jboss.Main.boot(Main.java:216)
                  at org.jboss.Main$1.run(Main.java:546)
                  at java.lang.Thread.run(Thread.java:619)
                  Caused by: java.lang.NullPointerException
                  at org.jboss.ejb3.session.ProxyDeployer.hasJNDIBinding(ProxyDeployer.jav
                  a:98)
                  at org.jboss.ejb3.session.SessionContainer.hasJNDIBinding(SessionContain
                  er.java:696)
                  at org.jboss.injection.AbstractHandler.addJNDIDependency(AbstractHandler
                  .java:77)
                  at org.jboss.injection.EJBRemoteHandler.ejbRefDependency(EJBRemoteHandle
                  r.java:134)
                  at org.jboss.injection.EJBRemoteHandler.handleFieldAnnotations(EJBRemote
                  Handler.java:393)
                  at org.jboss.injection.InjectionUtil.processFieldAnnotations(InjectionUt
                  il.java:160)
                  at org.jboss.injection.InjectionUtil.processAnnotations(InjectionUtil.ja
                  va:197)
                  at org.jboss.ejb3.EJBContainer.processMetadata(EJBContainer.java:590)
                  at org.jboss.ejb3.Ejb3Deployment.processEJBContainerMetadata(Ejb3Deploym
                  ent.java:418)
                  at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:526)
                  at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:189)
                  ... 34 more


                  I have tested the application in 4.3 and it works.

                  An example of how the EJB declaration looks like:

                  @Stateless(name="UserProfileService")
                  public class UserProfileServiceBean extends FndImplementationBean implements UserProfileServiceLocal { ...
                  


                  And how we refer to the same EJB; the original code:

                  @EJB private UserProfileServiceLocal userProfileService;
                  


                  and now, after introducing the 'mappedName' attribute:

                  @EJB(mappedName="ifsapp/UserProfileService/local") private UserProfileServiceLocal userProfileService;
                  


                  • 6. Re: NullPointerException in JavaEEComponentHelper with JBoss
                    jaikiran

                     

                    Caused by: java.lang.NullPointerException
                    at org.jboss.ejb3.session.ProxyDeployer.hasJNDIBinding(ProxyDeployer.jav
                    a:98)


                    From this code/logs, i don't see a reason why you should be getting that exception. Can you create a simple application which shows this issue and create a JIRA at https://jira.jboss.org/jira/browse/EJBTHREE. Attach the application to the issue. I'll take a look.


                    • 7. Re: NullPointerException in JavaEEComponentHelper with JBoss
                      wolfc

                      Just before the NPE there should a log debug message starting with:

                      Found endpoint for interface:


                      If so, please post it.

                      • 8. Re: NullPointerException in JavaEEComponentHelper with JBoss

                        Hi,

                        I have no such message in the console window. On the other hand I have only INFO, WARNING and ERROR messages. I can start the server with DEBUG enabled, but for which category?

                        The server.log file, on the other hand, seems to have all the debug lines, but even there I couldn't find any such message. I can send the entire file, if necessary, but it is almost 23 MB large!

                        To create a simple application can be quite difficult because we don't really know what the problem is. I can probably create an application that would be much simpler then the one I'm trying to deploy, i.e. containing just a couple of EJBs, but is still build (generated) based on our framework. But I'm not allowed to send such application other then through Red Hat support channel.

                        I have already created a simple application (still based on our framework) with only one, generated EJB (totally two; one resides in the framework) and could, in fact, deploy and run this application.

                        But the EJB injection we have in our web services doesn't seem to work - variables defined as:

                        @EJB private ifs.application.connecttestorder.TestOrderInteractionLocal local;
                        


                        are null run time and only traditional look up is working. The EJBs in this simple application don't have any mutual references, so maybe the problem lies in EJB injection?

                        I can try to create a simple application with just a couple of EJBs referring to each other (with EJB injection, as we generate our code) and supply with more info/error stack.


                        • 9. Re: NullPointerException in JavaEEComponentHelper with JBoss
                          jaikiran

                           

                          "japase" wrote:

                          I have no such message in the console window. On the other hand I have only INFO, WARNING and ERROR messages. I can start the server with DEBUG enabled, but for which category?

                          The DEBUG logs are available in server.log (as you note later in this post). We would mainly be interested in org.jboss.ejb3 DEBUG logs.

                          "japase" wrote:

                          The server.log file, on the other hand, seems to have all the debug lines, but even there I couldn't find any such message. I can send the entire file, if necessary, but it is almost 23 MB large!

                          If possible, zip it and attach it to the JIRA issue https://jira.jboss.org/jira/browse/EJBTHREE-1751

                          But the EJB injection we have in our web services doesn't seem to work

                          Could you please post that webservice code including annotations?



                          The EJBs in this simple application don't have any mutual references, so maybe the problem lies in EJB injection?


                          The actual problem that we see in this issue (and the one noted in the JIRA) is related to ordering of deployment units. So if you have a EJB in one jar and the EJB depends on some other EJB in a different jar, then chances are that because of deployment ordering, the injection might fail. If both those EJBs are within the same jar then you wont be noticing this issue. This issue is specific to AS-5.x.

                          From my understanding of this issue, i would have expected the mappedName attribute on @EJB injection to fix the issue with injection (even if the EJBs are in different jars).


                          • 10. Re: NullPointerException in JavaEEComponentHelper with JBoss
                            jaikiran

                            Thanks for uploading the server log. I'll update this thread with the details.

                            • 11. Re: NullPointerException in JavaEEComponentHelper with JBoss

                              Hi,

                              As requested I have now attached the zipped server.log file. I've also tested two other simple applications build upon our framework (generated code) with only two EJBs with EJB injection.

                              Content of those two applications:


                              jar -tf ifstest-ab.ear
                              META-INF/
                              META-INF/MANIFEST.MF
                              applicationsupport-ejb.jar
                              atestutlpkg-ejb.jar
                              btestservice-ejb.jar
                              enumerations.jar
                              ifs-fndfw.jar
                              ifs-wstest.war
                              ifs.properties
                              META-INF/application.xml



                              jar -tf ifstest-cd.ear
                              META-INF/
                              META-INF/MANIFEST.MF
                              applicationsupport-ejb.jar
                              ctestservice-ejb.jar
                              dtestutlpkg-ejb.jar
                              enumerations.jar
                              ifs-fndfw.jar
                              ifs-wstest.war
                              ifs.properties
                              META-INF/application.xml


                              In ifstest-ab.ear my web service is calling EJB contained within btestservice-ejb.jar, which in turn is calling an EJB in atestutlpkg-ejb.jar.
                              In the second application, ifstest-cd.ear, the situation is the opposite: my web service makes a call to ctestservice-ejb.jar, which calls dtestutlpkg-ejb.jar.

                              Both test applications are working, i.e. I don't have any problems related to the deployment order. And I don't use mappedName attribute in those test applications.

                              But I still have problems with EJB injection in my web service - the same one as in the "big" ifsapp.ear.

                              An example of how our web service looks like:

                              @WebService
                              public class BTestHandler
                              {
                               @EJB
                               private ifs.application.btestservice.BTestHandlerLocal local;
                              
                               private void checkInterface( Logger _log ) throws javax.naming.NamingException
                               {
                               if( local==null )
                               {
                               if(_log.warning) _log.warning("EJB injection doesn't work; interface is null. Looking it up...");
                               local = (ifs.application.btestservice.BTestHandlerLocal)EjbUtils.lookupAnnotatedBean("BTestHandler", _log);
                               }
                               }
                              
                               @WebMethod
                               public String sayHello( @WebParam(name="name") String name ) throws WebServiceException
                               {
                               Logger _log = LogMgr.getFrameworkLogger();
                              
                               try
                               {
                               ifs.application.btestservice.BTestServiceViews.V1 _param = new ifs.application.btestservice.BTestServiceViews.V1();
                               _param.name.setValue(name);
                              
                               checkInterface(_log);
                              
                               _param = (ifs.application.btestservice.BTestServiceViews.V1)local.sayHello(_param, FndContext.getCurrentContext()).getResult();
                              
                               return _param.result.getValue();
                               }
                               catch( Throwable t )
                               {
                               _log.error(t);
                               throw new WebServiceException(t);
                               }
                               }
                              }
                              


                              The checkInterface() method I've added after discovering that EJB injection doesn't work. And I see the warning message...


                              • 12. Re: NullPointerException in JavaEEComponentHelper with JBoss

                                I've also tried to modify my web service class to use the 'mappedNme' attribute:

                                @EJB(mappedName="ifstest-ab/BTestHandler/local")
                                private ifs.application.btestservice.BTestHandlerLocal local;
                                


                                Still nothing injected...


                                • 13. Re: NullPointerException in JavaEEComponentHelper with JBoss
                                  jaikiran

                                  Injection in webservices isn't handled by EJBTHREE project. It's done from JBossWS. Let me see if they already have any issues open, related to this.

                                  • 14. Re: NullPointerException in JavaEEComponentHelper with JBoss
                                    jaikiran

                                     

                                    "japase" wrote:

                                    But I still have problems with EJB injection in my web service

                                    An example of how our web service looks like:

                                    @WebService
                                    public class BTestHandler
                                    {
                                     @EJB
                                     private ifs.application.btestservice.BTestHandlerLocal local;
                                    
                                    
                                    




                                    After reading a few related posts, i realize that injection in webservice is supported only for EJB3 endpoints http://www.jboss.org/index.html?module=bb&op=viewtopic&t=126665#4117577

                                    Which means that you should additionally annotate the WebService as a @Stateless

                                    @Stateless
                                    @WebService
                                    public class BTestHandler
                                    {
                                     @EJB
                                     private ifs.application.btestservice.BTestHandlerLocal local;
                                    
                                    


                                    1 2 3 Previous Next