13 Replies Latest reply on Aug 7, 2009 5:09 PM by abdul khaliq gaffar

    Java Heap Space Error when running cxf based service provider

    abdul khaliq gaffar Newbie

      Hello,

      As defined in cheat sheets created a sample cxf based web service provider. When i try to run the web service i get the following error . I have attached eip_diagram as camel export file.

       

      Please let me know how this issue can be sorted. So that we can continue with evaluation process.

       

      Thanks,

      Khaliq

       

       

      current Working directory is D:\Apps\fuse\fuse-integration-designer-1.2.1\workspace\FuseJMSProject

              1. class com.fusesource.tools.eip.run.debugger.scaffolded.CamelLauncher PARAMS => debug=false, run=true, debugPort=3132, eventPort=3133, contextFileName=D:/Installs/IONA/Eclipse3.4.1/eclipse/runtime-New_configuration(1)/FuseOne/src/main/resources/META-INF/spring/wiretap-camel.xml #####

              2. debug=false, debugPort=3132, eventPort=3133, contextFileName=file:/C:/DOCUME1/s726580/LOCALS1/Temp/camel-configuration-45638.xml #####

      log4j:WARN No appenders could be found for logger (org.springframework.context.support.FileSystemXmlApplicationContext).

      log4j:WARN Please initialize the log4j system properly.

       

      INFO: No cxf.xml configuration file detected, relying on defaults.

      04-Aug-2009 14:38:04 org.apache.cxf.bus.spring.BusApplicationContext getConfigResources

      INFO: No cxf.xml configuration file detected, relying on defaults.

      04-Aug-2009 14:38:07 org.apache.cxf.bus.spring.BusApplicationContext getConfigResources

      INFO: No cxf.xml configuration file detected, relying on defaults.

      04-Aug-2009 14:38:13 org.apache.cxf.bus.spring.BusApplicationContext getConfigResources

      INFO: No cxf.xml configuration file detected, relying on defaults.

      04-Aug-2009 14:38:22 org.apache.cxf.bus.spring.BusApplicationContext getConfigResources

      INFO: No cxf.xml configuration file detected, relying on defaults.

      java.lang.OutOfMemoryError: Java heap space

           at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:99)

           at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:393)

           at java.lang.StringBuffer.append(StringBuffer.java:225)

           at java.io.StringWriter.write(StringWriter.java:90)

           at java.io.PrintWriter.write(PrintWriter.java:384)

           at java.io.PrintWriter.write(PrintWriter.java:401)

           at java.io.PrintWriter.print(PrintWriter.java:532)

           at java.io.PrintWriter.println(PrintWriter.java:669)

           at java.lang.Throwable.printStackTrace(Throwable.java:513)

           at org.springframework.beans.factory.BeanCreationException.printStackTrace(BeanCreationException.java:175)

           at java.util.logging.SimpleFormatter.format(SimpleFormatter.java:72)

           at java.util.logging.StreamHandler.publish(StreamHandler.java:179)

           at java.util.logging.ConsoleHandler.publish(ConsoleHandler.java:88)

           at java.util.logging.Logger.log(Logger.java:452)

           at org.apache.cxf.common.logging.LogUtils.doLog(LogUtils.java:345)

           at org.apache.cxf.common.logging.LogUtils.log(LogUtils.java:252)

           at org.apache.cxf.bus.spring.SpringBusFactory.createApplicationContext(SpringBusFactory.java:104)

           at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:93)

           at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:86)

           at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:64)

           at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:53)

           at org.apache.camel.component.cxf.CxfConsumer.(CxfConsumer.java:52)

           at org.apache.camel.component.cxf.CxfEndpoint.createConsumer(CxfEndpoint.java:97)

           at org.apache.camel.impl.EventDrivenConsumerRoute.addServices(EventDrivenConsumerRoute.java:62)

           at org.apache.camel.Route.getServicesForRoute(Route.java:74)

           at org.apache.camel.impl.DefaultCamelContext.startRoutes(DefaultCamelContext.java:692)

           at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:611)

           at org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:95)

           at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:114)

           at org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:326)

           at org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:78)

           at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)