Hi All,
I am new to portal development and I am trying to use broadcast message code from this link. It is compiling fine, but when I deploy and run the publish page and click on "Publish" button. I am getting following class loader error:
[executeHandleTopic]: error during the call of the method handleTopic on the listerner class test.broadcast.AlertReceiver
[EXCEPTION]
java.lang.IllegalStateException: application [test/por~broadcast], CSN component [] should not use an unregistered loader for operation [loadClass of com.sapportals.portal.prt.service.notification.TopicDataContainer].
[This loader has been unregistered as part of the following operation:
|com.sap.engine.core.classload.impl0.LoadContextImpl.unregister(LoadContextImpl.java:907)
|com.sap.engine.core.service630.container.LoadContextWrapper.unregister(LoadContextWrapper.java:131)
|com.sap.engine.services.servlets_jsp.server.deploy.StopAction.commitStop(StopAction.java:147)
|com.sap.engine.services.servlets_jsp.server.deploy.WebContainer.commitStop(WebContainer.java:694)
|com.sap.engine.services.deploy.server.utils.container.ContainerWrapper.commitStop(ContainerWrapper.java:561)
|com.sap.engine.services.deploy.server.application.StopTransaction.commonCommitFinished(StopTransaction.java:244)
|com.sap.engine.services.deploy.server.application.StopTransaction.commitCommon(StopTransaction.java:285)
|com.sap.engine.services.deploy.server.application.StopTransaction.commit(StopTransaction.java:269)
|com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:442)
|com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhases(ParallelAdapter.java:465)
|com.sap.engine.services.deploy.server.application.ApplicationTransaction.stopRelatedApplication(ApplicationTransaction.java:768)
|com.sap.engine.services.deploy.server.application.RemoveTransaction.begin(RemoveTransaction.java:249)
|com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:421)
|com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:473)
|com.sap.engine.services.deploy.server.DeployServiceImpl.makeGlobalTransaction(DeployServiceImpl.java:1828)
|com.sap.engine.services.deploy.server.DeployServiceImpl.remove(DeployServiceImpl.java:757)
|com.sap.engine.services.deploy.server.DeployServiceImpl.remove(DeployServiceImpl.java:2671)
|com.sap.engine.services.dc.gd.impl.ApplicationDeployer.performUndeployment(ApplicationDeployer.java:196)
|com.sap.engine.services.dc.gd.impl.InitialGenericDeliveryImpl.undeploy(InitialGenericDeliveryImpl.java:124)
|com.sap.engine.services.dc.cm.undeploy.impl.OnlineUndeployPhaseProcessor$UndeployProcessorHelper.visit(OnlineUndeployPhaseProcessor.java:172)
|com.sap.engine.services.dc.cm.undeploy.impl.UndeployItemImpl.accept(UndeployItemImpl.java:477)
|com.sap.engine.services.dc.cm.undeploy.impl.OnlineUndeployPhaseProcessor.doUndeploy(OnlineUndeployPhaseProcessor.java:99)
|com.sap.engine.services.dc.cm.undeploy.impl.OnlineUndeployPhaseProcessor.performUndeploy(OnlineUndeployPhaseProcessor.java:63)
|com.sap.engine.services.dc.cm.undeploy.impl.AbstractUndeployPhaseProcessor.undeploy(AbstractUndeployPhaseProcessor.java:44)
|com.sap.engine.services.dc.cm.undeploy.impl.AbstractUndeploymentProcessor.doUndeploy(AbstractUndeploymentProcessor.java:108)
|com.sap.engine.services.dc.cm.undeploy.impl.IfDepStopUndeploymentProcessor.performUndeploy(IfDepStopUndeploymentProcessor.java:82)
|com.sap.engine.services.dc.cm.undeploy.impl.AbstractUndeploymentProcessor.performUndplPhaseUndeploy(AbstractUndeploymentProcessor.java:179)
|com.sap.engine.services.dc.cm.undeploy.impl.AbstractUndeploymentProcessor.process(AbstractUndeploymentProcessor.java:61)
|com.sap.engine.services.dc.cm.undeploy.impl.UndeployerImpl.undeployInternal(UndeployerImpl.java:284)
|com.sap.engine.services.dc.cm.undeploy.impl.UndeployerImpl.undeploy(UndeployerImpl.java:147)
|com.sap.engine.services.dc.cm.undeploy.impl.UndeployerImplp4_Skel.dispatch(UndeployerImplp4_Skel.java:144)
|com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:462)
|com.sap.engine.services.rmi_p4.server.ServerDispatchImpl.run(ServerDispatchImpl.java:69)
|com.sap.engine.services.rmi_p4.P4Message.process(P4Message.java:72)
|com.sap.engine.services.rmi_p4.P4Message.execute(P4Message.java:43)
|com.sap.engine.services.cross.fca.FCAConnectorImpl.executeRequest(FCAConnectorImpl.java:983)
|com.sap.engine.services.rmi_p4.P4Message.process(P4Message.java:59)
|com.sap.engine.services.cross.fca.MessageReader.run(MessageReader.java:55)
|com.sap.engine.core.thread.execution.Executable.run(Executable.java:122)
|com.sap.engine.core.thread.execution.Executable.run(Executable.java:101)
|com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:328)
--------------------------------------------------------------------------]
classLoader name: [WCE_PRIVATE_CL_test/por~broadcast]
Loader hash code: 4d969b9
Living status: unregistered
Direct parent loaders:
[test/por~broadcast]
This loader has been unregistered and should not be used anymore. Remove all the references to classes loaded by this loader.
at com.sap.engine.boot.loader.MultiParentClassLoader.throwIllegalStateException(MultiParentClassLoader.java:488)
at com.sap.engine.boot.loader.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:236)
at test.broadcast.AlertReceiver.handleTopic(AlertReceiver.java:123)
at com.sap.portal.prt.notification.NotificatorSAPJ2EE630.executeHandleTopic(NotificatorSAPJ2EE630.java:964)
at com.sap.portal.prt.notification.NotificatorSAPJ2EE630.notifySubscribers(NotificatorSAPJ2EE630.java:889)
at com.sap.portal.prt.notification.NotificatorSAPJ2EE630.receiveLocally(NotificatorSAPJ2EE630.java:384)
at com.sap.portal.prt.notification.NotificatorSAPJ2EE630.publish(NotificatorSAPJ2EE630.java:619)
at com.sapportals.portal.prt.service.notification.impl.NotificationSAPJ2EE630.publish(NotificationSAPJ2EE630.java:150)
at com.sapportals.portal.prt.service.notification.NotificationServiceDispatcher.publish(NotificationServiceDispatcher.java:140)
at test.broadcast.PublishMessage$PublishPage.doProcessBeforeOutput(PublishMessage.java:102)
at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:114)
at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:205)
at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:121)
at com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher$5.service(RequestDispatcherFactory.java:308)
at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:270)
at com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher.service(RequestDispatcherFactory.java:298)
at com.sap.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:229)
at com.sap.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:107)
at com.sap.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:141)
at com.sap.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:206)
at com.sap.portal.prt.pom.PortalNode.service(PortalNode.java:588)
at com.sap.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:233)
at com.sap.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:107)
at com.sap.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:141)
at com.sap.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:520)
at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:203)
at com.sap.portal.prt.dispatcher.DispatcherServlet.service(DispatcherServlet.java:132)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
Note, I am using NW 7.3 SP05 PAT0005. Please help.