Author Message
ChengLi
Joined: Mar 3, 2011
Messages: 9
Offline
Hi Experts,

I am following the document avaya-work-assignment-developer-guide-3_0-v1.pdf to deploy a sample project into CE.
When I tried to verify the Work Assignment Service REST interface with below URL I got a error:
{"errorCode":"IMREST001","message":"An internal server error occurred","cause":"REST service error"}

http://{Server IP}/services/WAIMRestService/wa/imrest/v2/matches/check

Does anyone have experience on this?

I checked log from CE server in /var/log/Avaya/services/WAIMRestService and show error content as below:

-------------------------------------------------------
2015-04-07 17:46:04,270 [WebContainer : 1] api.IMRestV2Service INFO - [M:check][T:]. Entering ENTERING /check
2015-04-07 17:46:04,272 [WebContainer : 1] proxy.IMSpaceProxyFactory INFO - [M:getIMSpaceProxy][T:]. Initializing GigaSpaces Remote Proxy for IMSpace.
2015-04-07 17:46:09,314 [WebContainer : 1] proxy.IMSpaceProxyFactory ERROR - [M:getIMSpaceProxy][T:]. Failed to connect to ImSpace using url jini://*/*/ImSpace and lookup locators 135.27.132.197:7000,135.27.
132.221:7000
2015-04-07 17:46:09,329 [WebContainer : 1] ex.DefaultExceptionMapper ERROR - [M:toResponse][T:]. An Internal Server Error occurred: FinderException: LookupFinder failed to find service using the following se
rvice attributes:

Service attributes: [net.jini.lookup.entry.Name(name=ImSpace)]
Service attributes: [com.j_spaces.lookup.entry.State(state=started,electable=null,replicable=null)]
Lookup timeout: [5000]
Classes: [interface com.j_spaces.core.service.Service]
Jini Lookup Groups: [gigaspaces-9.7.0-XAPPremium-ga]
Jini Lookup Locators: 135.27.132.197:7000,135.27.132.221:7000
Number of Lookup Services: 2

javax.ejb.EJBException: Injection failure; nested exception is: javax.enterprise.inject.CreationException: com.j_spaces.core.client.FinderException: LookupFinder failed to find service using the following se
rvice attributes:

Service attributes: [net.jini.lookup.entry.Name(name=ImSpace)]
Service attributes: [com.j_spaces.lookup.entry.State(state=started,electable=null,replicable=null)]
Lookup timeout: [5000]
Classes: [interface com.j_spaces.core.service.Service]
Jini Lookup Groups: [gigaspaces-9.7.0-XAPPremium-ga]
Jini Lookup Locators: 135.27.132.197:7000,135.27.132.221:7000
Number of Lookup Services: 2

at com.ibm.ejs.container.util.ExceptionUtil.EJBException(ExceptionUtil.java:475)
at com.ibm.ejs.container.StatelessBeanO.initialize(StatelessBeanO.java:299)
at com.ibm.ejs.container.BeanOFactory.create(BeanOFactory.java:130)
at com.ibm.ejs.container.EJSHome.createNewBeanO(EJSHome.java:869)
at com.ibm.ejs.container.EJSHome.createBeanO(EJSHome.java:1242)
at com.ibm.ejs.container.EJSHome.createBeanO(EJSHome.java:1360)
at com.ibm.ejs.container.activator.UncachedActivationStrategy.atActivate(UncachedActivationStrategy.java:89)
at com.ibm.ejs.container.activator.Activator.preInvokeActivateBean(Activator.java:324)
at com.ibm.ejs.container.EJSContainer.preInvokeActivate(EJSContainer.java:3728)
at com.ibm.ejs.container.EJSContainer.EjbPreInvoke(EJSContainer.java:3042)
at com.avaya.ingensg.ce.wa.imrest.entity.EJSLocalNSLInteractionManagerBean_297db6fc.impuIsAlive(EJSLocalNSLInteractionManagerBean_297db6fc.java)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:94)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:619)
at org.apache.webbeans.ejb.common.proxy.EjbBeanProxyHandler.invoke(EjbBeanProxyHandler.java:204)
at com.avaya.ingensg.ce.wa.imrest.entity.InteractionManagerBean_$$_javassist_0.impuIsAlive(InteractionManagerBean_$$_javassist_0.java)
at com.avaya.ingensg.ce.wa.imrest.api.IMRestV2Service.check(IMRestV2Service.java:157)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:94)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:619)
at org.apache.wink.server.internal.handlers.InvokeMethodHandler.handleRequest(InvokeMethodHandler.java:63)
at org.apache.wink.server.handlers.AbstractHandler.handleRequest(AbstractHandler.java:33)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)
at org.apache.wink.server.internal.handlers.CreateInvocationParametersHandler.handleRequest(CreateInvocationParametersHandler.java:54)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)
at org.apache.wink.server.internal.handlers.FindResourceMethodHandler.handleSubResourceMethod(FindResourceMethodHandler.java:188)
at org.apache.wink.server.internal.handlers.FindResourceMethodHandler.handleRequest(FindResourceMethodHandler.java:110)
SenthilC
Joined: Apr 9, 2015
Messages: 1
Offline
Hi Chengli,

It seems that IMRest could not find the IMSpace.
Can you please check if the IM PU is deployed in the grid. you can check it using gigaspace web ui or command line utility.

otherwise you can also find it in the WAManagerService.log in /var/log/Avaya/services/WAManagerService.
There will be a log entry to note that the IM PU is successfully deployed or any exceptions.

thanks,
senthil.
ChengLi
Joined: Mar 3, 2011
Messages: 9
Offline
Hi Senthil,

Thanks for your reply.

I checked with WAManagerService.log and found the error “space WAMgrSpace failed to deploy”.
Could you please advise how I can fix this issue?

--------------------------------------------
2015-05-06 13:40:09,219 [pool-31-thread-1] grid.ElasticGridManager INFO - [M:checkForSpace][T:null]. Required number of instances of space ucmSpace found
2015-05-06 13:40:09,219 [pool-31-thread-1] manager.SVARDeployer INFO - [M:checkForSpaceDependency][T:null]. Space dependency ucmSpace found
2015-05-06 13:40:09,219 [pool-31-thread-1] manager.SVARDeploymentManager INFO - [M:deployApplication][T:null]. Deploying SVAR WAManagerService-3.0.1.0.270
2015-05-06 13:40:09,219 [pool-31-thread-1] manager.SVARDeployer INFO - [M:deploySpaces][T:null]. Deploying SVAR Spaces
2015-05-06 13:40:09,220 [pool-31-thread-1] sla.SlaCreator INFO - [M:extractConfigurations][T:null]. configuration is extracted : {memoryCapacityPerContainer=128Mb, name=WAMgrSpace, maxMemmoryCapacity=256Mb}
2015-05-06 13:40:09,221 [pool-31-thread-1] sla.SlaCreator INFO - [M:createSlas][T:]. Thre created slas are : [SLA [ name = WAMgrSpace, reservedMemoryCapacityPerMachine = 5, provisionId = UCM, memoryCapacityPerContainer = 128Mb, maxMemmoryCapacity = 256Mb, numberOfPartition = 0, numberOfBackups = 0, contextProperties = {memoryCapacityPerContainer=128Mb, name=WAMgrSpace, maxMemmoryCapacity=256Mb} ]]
2015-05-06 13:40:09,221 [pool-31-thread-1] utils.AdminUtil INFO - [M:createAdmin][T:]. Admin object is already in the cache for lookUpLocators = 135.27.132.197:7000,135.27.132.211:7000 , User =
2015-05-06 13:40:14,164 [pool-49-thread-1] grid.ElasticGridManager INFO - [M:deployElasticSpace][T:null]. WAMgrSpace not found, deploying with Sla :
SLA [ name = WAMgrSpace, reservedMemoryCapacityPerMachine = 5, provisionId = UCM, memoryCapacityPerContainer = 128Mb, maxMemmoryCapacity = 256Mb, numberOfPartition = 0, numberOfBackups = 0, contextProperties = {memoryCapacityPerContainer=128Mb, name=WAMgrSpace, maxMemmoryCapacity=256Mb} ]...
2015-05-06 13:40:14,168 [pool-49-thread-1] grid.ElasticGridManager INFO - [M:deployElasticSpace][T:null]. reservedMemoryCapacityPerMachine and ManagementMachine for this deployment is 5 gigabytes.
2015-05-06 13:40:14,175 [pool-49-thread-1] grid.ElasticGridManager INFO - [M:deployElasticSpace][T:null]. memoryCapacityPerContainer for WAMgrSpace is 128 Mb.
2015-05-06 13:40:14,175 [pool-49-thread-1] grid.ElasticGridManager INFO - [M:deployElasticSpace][T:null]. maxMemoryCapacity for WAMgrSpace is 256 Mb.
2015-05-06 13:40:14,184 [pool-49-thread-1] utils.IpUtils INFO - [M:setIpInterval][T:]. Setting ip alignment interval to 197 * 20 ms = 3940
2015-05-06 13:40:14,185 [pool-49-thread-1] utils.IpUtils INFO - [M:synchToIpInterval][T:]. Waiting from now 1430890814185 for 3195 ms to align with ip-based interval
2015-05-06 13:40:14,224 [pool-31-thread-1] grid.ElasticGridManager INFO - [M:deployElasticSpace][T:null]. WAMgrSpace not found, deploying with Sla :
SLA [ name = WAMgrSpace, reservedMemoryCapacityPerMachine = 5, provisionId = UCM, memoryCapacityPerContainer = 128Mb, maxMemmoryCapacity = 256Mb, numberOfPartition = 0, numberOfBackups = 0, contextProperties = {memoryCapacityPerContainer=128Mb, name=WAMgrSpace, maxMemmoryCapacity=256Mb} ]...
2015-05-06 13:40:14,231 [pool-31-thread-1] grid.ElasticGridManager INFO - [M:deployElasticSpace][T:null]. reservedMemoryCapacityPerMachine and ManagementMachine for this deployment is 5 gigabytes.
2015-05-06 13:40:14,241 [pool-31-thread-1] grid.ElasticGridManager INFO - [M:addContextProperties()][T:null]. Setting context properties
2015-05-06 13:40:14,248 [pool-31-thread-1] grid.ElasticGridManager INFO - [M:deployElasticSpace][T:null]. memoryCapacityPerContainer for WAMgrSpace is 128 Mb.
2015-05-06 13:40:14,249 [pool-31-thread-1] grid.ElasticGridManager INFO - [M:deployElasticSpace][T:null]. maxMemoryCapacity for WAMgrSpace is 256 Mb.
2015-05-06 13:40:14,273 [pool-31-thread-1] utils.IpUtils INFO - [M:setIpInterval][T:]. Setting ip alignment interval to 197 * 20 ms = 3940
2015-05-06 13:40:14,273 [pool-31-thread-1] utils.IpUtils INFO - [M:synchToIpInterval][T:]. Waiting from now 1430890814273 for 3107 ms to align with ip-based interval
2015-05-06 13:40:17,883 [pool-31-thread-1] grid.ElasticGridManager WARN - [M:deployElasticSpace][T:null]. Space WAMgrSpace is already deployed.
2015-05-06 13:40:17,883 [pool-31-thread-1] manager.SVARDeployer INFO - [M:deploySpaces][T:null]. Application already deployed
2015-05-06 13:40:17,883 [pool-31-thread-1] manager.SVARDeploymentManager INFO - [M:deployApplication][T:null]. Application already deployed.
2015-05-06 13:40:17,883 [pool-31-thread-1] manager.SVARDeploymentManager INFO - [M:run][T:null]. Application deployment ended
2015-05-06 13:40:18,397 [pool-49-thread-1] grid.ElasticGridManager INFO - [M:checkDeploymentState][T:null]. Waiting for 2 instances of PU WAMgrSpace
2015-05-06 13:45:18,400 [pool-49-thread-1] grid.ElasticGridManager INFO - [M:checkDeploymentState][T:null]. WAMgrSpace was not deployed successfully. Expected instances : 2, available instances : 1
2015-05-06 13:45:18,400 [pool-49-thread-1] manager.SVARDeployer ERROR - [M:deploySpaces][T:null]. space WAMgrSpace failed to deploy
2015-05-06 13:45:18,402 [pool-49-thread-1] manager.SVARDeploymentManager ERROR - [M:deployApplication][T:null]. Failed to deploy application
2015-05-06 13:45:18,402 [pool-49-thread-1] manager.SVARDeploymentManager INFO - [M:run][T:null]. Application deployment ended
Go to:   
Mobile view