TIBCO BusinessEvents (BE) service deployment fails using AppManage with "java.lang.OutOfMemoryError: Java heap space."

TIBCO BusinessEvents (BE) service deployment fails using AppManage with "java.lang.OutOfMemoryError: Java heap space."

book

Article ID: KB0093003

calendar_today

Updated On:

Products Versions
TIBCO Administrator -
Not Applicable -

Description

Description:
When deploying BE application using AppManage, the following exception is seen.

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.tibco.pof.admindomain.impl.BwServerDeploymentPlugIn.a(BwServerDeploymentPlugIn.java:385) at com.tibco.pof.admindomain.impl.BwServerDeploymentPlugIn.a(BwServerDeploymentPlugIn.java:366) at com.tibco.pof.admindomain.impl.BwServerDeploymentPlugIn.onDeploy(BwServerDeploymentPlugIn.java:509) at com.tibco.pof.admindomain.impl.ApplicationConfigurationImpl.a(ApplicationConfigurationImpl.java:1002) at com.tibco.pof.admindomain.impl.ApplicationConfigurationImpl.a(ApplicationConfigurationImpl.java:753) at com.tibco.pof.admindomain.impl.ApplicationConfigurationImpl.deploy(ApplicationConfigurationImpl.java:592) at com.tibco.pof.admindomain.impl.ApplicationConfigurationImpl.deploy(ApplicationConfigurationImpl.java:573) at com.tibco.administrator.command.data.application.Application.deploy(Application.java:832) at com.tibco.administrator.command.tool.ApplicationManagement.if(ApplicationManagement.java:551) at com.tibco.administrator.command.tool.ApplicationManagement.action(ApplicationManagement.java:452) at com.tibco.administrator.command.tool.ApplicationManagement.task(ApplicationManagement.java:226) at com.tibco.administrator.command.tool.ApplicationManagement.main(ApplicationManagement.java:157) Caused by: java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOfRange(Arrays.java:3209) at java.lang.String.(String.java:215) at java.lang.StringBuffer.toString(StringBuffer.java:585) at com.tibco.infra.tools.Base64.encode(Base64.java:31) at com.tibco.repo.StreamRepoServer.writeXMLData(StreamRepoServer.java:883) at com.tibco.repo.StreamRepoServer.writeXMLNode(StreamRepoServer.java:844) at com.tibco.repo.FileRepoServer.writeXMLNode(FileRepoServer.java:895) at com.tibco.repo.StreamRepoServer.writeXMLChildren(StreamRepoServer.java:824) at com.tibco.repo.StreamRepoServer.writeXML(StreamRepoServer.java:813) at com.tibco.repo.StreamRepoServer.write(StreamRepoServer.java:354) at com.tibco.repo.FileRepoServer.write(FileRepoServer.java:876) at com.tibco.repo.StreamRepoServer.commitPersistentStore(StreamRepoServer.java:209) at com.tibco.repo.CachedRepoServer.commit(CachedRepoServer.java:2759) at com.tibco.repo.FileRepoServer.commit(FileRepoServer.java:757) at com.tibco.repo.CachedRepoServer.commit(CachedRepoServer.java:2604) at com.tibco.repo.CachedRepoClient.commit(CachedRepoClient.java:2780) at com.tibco.repo.CachedRepoClient.commit(CachedRepoClient.java:1754) at com.tibco.repo.CachedRepoClient.commitWithCount(CachedRepoClient.java:1661) at com.tibco.objectrepo.vfile.tibrepo.RepoVFileFactory.saveWithCount(RepoVFileFactory.java:831) at com.tibco.objectrepo.vfile.tibrepo.RepoVFileFactory
---------------------------------------------------------------------------------------------------------------------------------------------------------------------

Symptoms:

Deploying BE application using AppManage results in the following error.

 

java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
Caused by: java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOfRange(Arrays.java:3209)


Cause:
"Server plugin failed in the Admin GUI. "Failed to deploy application using AppManage."

Issue/Introduction

TIBCO BusinessEvents (BE) service deployment fails using AppManage with "java.lang.OutOfMemoryError: Java heap space."

Resolution

1). Increase heap size, i.e., java.heap.size.max in appmanage.tra located in Tibco_Home\tra\5.9\bin .

2). Restart the hawkagent and admin.

3). Redeploy the application using AppManage.