Hi I get the below error when I am trying to run a project locally. This runs fine on my colleagues computer and he faces no issues. Buildfile: C:\Users\brio.joseph\Documents\FNMAPortal-main\deployment\build_core.xml compile: [javac] Compiling 2 source files to C:\Users\brio.joseph\Documents\FNMAPortal-main\deployment\run\bin [javac] Note: C:\Users\brio.joseph\Documents\FNMAPortal-main\javasource\com\mendix\core\Core.java uses or overrides a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] Note: C:\Users\brio.joseph\Documents\FNMAPortal-main\javasource\com\mendix\core\Core.java uses unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. build: [bnd] # addAll 'deployment/run/bnd.bnd' with , [bnd] in default pack? EWSJExamples [bnd] in default pack? a [bnd] in default pack? b [bnd] in default pack? c [bnd] in default pack? JDOMAbout [bnd] in default pack? JDOMAbout$Author [bnd] in default pack? JDOMAbout$Info BUILD FAILED C:\Users\brio.joseph\Documents\FNMAPortal-main\deployment\build_core.xml:46: The following error occurred while executing this line: C:\Users\brio.joseph\Documents\FNMAPortal-main\deployment\run\bndbuild.xml:9: java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2271) at java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:113) at java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:93) at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:140) at aQute.bnd.osgi.EmbeddedResource.copy(EmbeddedResource.java:68) at aQute.bnd.osgi.EmbeddedResource.collect(EmbeddedResource.java:57) at aQute.bnd.osgi.EmbeddedResource.build(EmbeddedResource.java:36) at aQute.bnd.osgi.EmbeddedResource.build(EmbeddedResource.java:78) at aQute.bnd.osgi.Analyzer.analyzeBundleClasspath(Analyzer.java:1672) at aQute.bnd.osgi.Analyzer.analyze(Analyzer.java:129) at aQute.bnd.osgi.Builder.analyze(Builder.java:324) at aQute.bnd.osgi.Analyzer.calcManifest(Analyzer.java:342) at aQute.bnd.osgi.Builder.build(Builder.java:77) at aQute.bnd.osgi.Builder.builds(Builder.java:1136) at aQute.bnd.ant.BndTask.executeBackwardCompatible(BndTask.java:223) at aQute.bnd.ant.BndTask.execute(BndTask.java:115) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:390) at org.apache.tools.ant.Target.performTasks(Target.java:411) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1360) at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38) at org.apache.tools.ant.Project.executeTargets(Project.java:1212) at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) Total time: 56 seconds
asked
Brio Joseph
1 answers
0
That is strange if the project has the same amount of Java memory allocated on your colleague's pc. You could try increasing the memory. If it still fails there could be a weird bug in the OSGi library but then we'd need more information to reproduce this.