KB Article #72924

-- Deployment fails while trying to send web service to WSFE with many operations

Problem

--While trying to send web service with more than 20 operations in  objects of type service deployment fails with below errors.




2011/10/05 15:54:01 :: Error:null  
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)  
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)  
java.lang.reflect.Method.invoke(Unknown Source)  
com.axway.xd.ws.business.broadcast.common.WSOperationDeploy.loadOperation(WSOperationDeploy.java:41)  
com.axway.xd.ws.business.broadcast.common.WSServiceDeploy.loadService(WSServiceDeploy.java:141)  
com.axway.xd.ws.business.broadcast.common.WSServiceDeploy.generateAarAndPutOnServer(WSServiceDeploy.java:306)  
com.axway.xd.ws.business.broadcast.common.WSServiceDeploy.generateAarAndPutOnServer(WSServiceDeploy.java:224)  
com.axway.xd.ws.business.broadcast.manager.SendToProductionManager.internalProcess(SendToProductionManager.java:55)  
com.axway.xd.ws.business.broadcast.manager.AbstractManager.process(AbstractManager.java:95)  
com.axway.xd.ws.business.broadcast.WSAgent.commit(WSAgent.java:51)  
com.axway.framework.business.diffusion.agent.threads.EngineExploitThread.run(EngineExploitThread.java:88)


Resolution

--  The problem may come when service broadcast agent runs out of memory.
To increase the memory you have to run the service broadcast agent in batch mode.



--Yo have to edit ServiceBroadcastAgent.bat.

Look for the below lnes in the file              
{



               SET CLASSPATH=



               %JAVA_EXEC% -Djava.ext.dirs="%JAVA_HOME%\lib\ext;%INSTALL_ROOT%\composer\lib\axway\ext;%INSTALL_ROOT%\composer\lib\axway;%INSTALL_ROOT%\composer\lib\axway\common;%INSTALL_ROOT%\composer\lib\ext;%INSTALL_ROOT%\Tools\Ant" -Djava.library.path="%INSTALL_ROOT%\composer\bin" -Xmx128m -Xms32m -XX:MaxPermSize=256m -Djava.awt.headless=true com.axway.xd.designer.business.AxwayServer -config "%INSTALL_ROOT%\composer\properties\serviceAgent.properties" %*



GOTO:END



}



and replace Xmx128m with Xmx256m normally this should be enough (if there is still a  problem this can be set to a higher value).



Then run the broadcast agent using startServiceBroadcastAgent.bat