Magic Draw 17.0.5 Heap Space Error

Discussions about Teamwork Server functionalities

Moderator: Moderators

Magic Draw 17.0.5 Heap Space Error

Postby gregory.deese.ctr@navy.mil » Wed Aug 17, 2016 8:34 am

I have a user that is reporting the following error, We are running MagicDraw Teamwork Server 17.0.5 SP1 on a Virtual Citrix Server. Server 2008 R2.

When I try to generate a report on some MagicDraw files, I receive a heap space error.

java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Unknown Source)
at java.lang.AbstractStringBuilder.expandCapacity(Unknown Source)
at java.lang.AbstractStringBuilder.ensureCapacityInternal(Unknown Source)
at java.lang.AbstractStringBuilder.append(Unknown Source)
at java.lang.StringBuilder.append(Unknown Source)
at java.lang.StringBuilder.append(Unknown Source)
at com.nomagic.magicreport.engine.xml.ElementNode.toString(ElementNode.java:256)
at com.nomagic.magicreport.engine.velocity.ODFEngine$PostProcessHandler.endElement(ODFEngine.java:2277)
at com.nomagic.magicreport.engine.velocity.ODSEngine$PostProcessHandler.endElement(ODSEngine.java:619)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(Unknown Source)
at com.nomagic.magicreport.engine.velocity.ODSEngine.postProcess(ODSEngine.java:315)
at com.nomagic.magicreport.engine.AbstractTemplateEngine.evaluate(AbstractTemplateEngine.java:430)
at com.nomagic.magicreport.engine.velocity.ODFEngine.b(ODFEngine.java:1312)
at com.nomagic.magicreport.engine.velocity.ODFEngine.evaluate(ODFEngine.java:1183)
at com.nomagic.magicdraw.magicreport.GenerateTask.execute(GenerateTask.java:740)
at com.nomagic.task.Task.construct(Task.java:196)
at com.nomagic.task.SwingWorker$3.call(SwingWorker.java:228)
at java.util.concurrent.FutureTask.run(Unknown Source)
at com.nomagic.task.SwingWorker$SwingWorkerFuture.run(SwingWorker.java:596)
at com.nomagic.task.BackportedThreadPoolExecutor$Worker.runTask(BackportedThreadPoolExecutor.java:1592)
at com.nomagic.task.BackportedThreadPoolExecutor$Worker.run(BackportedThreadPoolExecutor.java:1623)

To replicate the error,

1) I opened Enterprise Cross Domain Solution_vLocalCopy.mdzip

2) Generate Report --> Other Documents --> Element Table

3) Heap space error appeared
gregory.deese.ctr@navy.mil
Forum Newbie
Forum Newbie
 
Posts: 1
Posts Rating:0
Joined: Wed Aug 17, 2016 8:14 am

Re: Magic Draw 17.0.5 Heap Space Error

Postby ieva.n » Wed Aug 17, 2016 8:51 am

Hello,

Reports are being generated from client side and not Teamwork Server side. You need to increase Heap Size in your client side application. Please see FAQ regarding this question http://www.nomagic.com/support/faq/42-p ... ccurs.html . The memory you should set for your application depends on the memory amount on your machine and what amount is already allocated.

Sincerely,
No Magic, Inc. Customer Support
ieva.n
No Magic
No Magic
 
Posts: 368
Posts Rating:28
Joined: Thu Aug 02, 2012 5:02 am
Full name: Ieva

Re: Magic Draw 17.0.5 Heap Space Error

Postby nolan.brian@solute.us » Fri Mar 29, 2019 9:18 am

The link to the FAQ no longer works :(
nolan.brian@solute.us
Forum Newbie
Forum Newbie
 
Posts: 3
Posts Rating:0
Joined: Tue Oct 30, 2018 1:04 pm


Return to MagicDraw Teamwork Server

Who is online

Users browsing this forum: No registered users and 0 guests