Hi,
some of our clients when running their script, it export graphics to a word document, gives the following error - "Error while accessing file "D:\Program Files\ARIS7.1\server\temp\ReportTemp\5\ARF29367.tmp".
Usually they get it when running the script from the installed BA instance, and some when using the web based installed instance of Designer. It occurs when the script, using the OutGraphic command puts the graphic of the model in the document.
Do anyone have an idea why some would get this error and others not.
Ciska
Hi,
This can happen if a graphic cannot be created due to one of the following reasons:
- an image file (maybe used for document header) has not been imported to the server or cannot be read
- a model graphic is too large and a memory exception occurs
Maybe the server log contains further details.
From the next release (ARIS 7.1, Service Release 3) this message will not occur anymore. There will be a small error image in the report output instead.
Hi Torsten
Oke..... but I do not agree, I somehow managed to generated the same problem on my computer by installing a server (not local) on my computer, i have connected to the server via the web based Buisiness Designer and run the script for the graphics, I am getting the same error, If I run the script using my local installation of Buisiness Architect, logged on the the same server and db, run the script with no issues. It can't be the size of the graphic cause the scipt crashes on the first graphic it found, which in this case is not huge.
The web based Business designer runs by downloading the java libraries from the server you log on to the first time, can this have something to do with the allocated memory for java on each users computer, multiple java runtimes on the computer, which in my case I'm using the latest java runtime?
Ciska
Hi Ciska,
I really don't understand why those two clients behave differently, because the report executes exclusively on the server side. So the client used should have no influence at all.
Please have a look at your server/log directory. Are there any log entries (in file jsreport_0.log or internalerr0.log) when this error occurs?
BR, Torsten
Hi Torsten,
This seem to be an old thread, nevertheless I have very similar problem as Ciska.
I have a server (not Local) running on my pc in which I write the sripts to be loaded on the productive Aris server. I have this script that writes the model picture into a word document, that runs perfect on my server, but as soon I load it up in the productive server it keeps on throwing this message: "Error while accessing file "C:\Program Files\ARIS7.1\server\temp\ReportTemp\5\ARF29367.tmp" This is the piece of code where the error shows up: At first I create the output file using: var ooutfile = Context.createOutputObject( Constants.OUTRTF, "report2.pdf", Constants.MEDIASIZE_A4); Then, inside a for loop, retrieve the current occurence model's graphic:var modelPic = oocclist[j].Model().Graphic(true, false, g_nloc); ooutfile.OutGraphic(modelPic, -1, 180, 130); ooutfile.OutputLnF("", "REPORT4");When debugging these lines I see that at this point the variable ooutfile is null. Given the fact that, debugging these same lines on my server this variable does have a value, I come to think that the real source of the problem is this "null" value. However I still can't figure out how to solve it. Looking into the log files I get this in internalerr0.log: 2010-06-04T15:24:54,790 com.idsscheer.report.output.logging - Se ha producido un error al acceder al archivo 'C:\Program Files\ARIS7.1\server\temp\ReportTemp\8\ARF49966.tmp': 'null'. com.idsscheer.utils.logging.ALogger.logException java.lang.IndexOutOfBoundsException at com.idsscheer.aris.common.designerbase.layout.ALayoutParamSet.addParams(ALayoutParamSet.java:312) at com.idsscheer.aris.server.bl.graphics.logic.drawables.ADrawableModel.setGraphicOptions(ADrawableModel.java:120) at com.idsscheer.aris.server.bl.graphics.logic.drawables.ADrawableModel.<init>(ADrawableModel.java:88) at com.idsscheer.aris.server.bl.graphics.logic.AMetafileCreater.createModel(AMetafileCreater.java:175) at com.idsscheer.aris.server.bl.graphics.logic.AModelGraphicProvider.getModelAndGraphic(AModelGraphicProvider.java:177) at com.idsscheer.aris.server.bl.graphics.logic.AModelGraphicProvider.getDesignerModel(AModelGraphicProvider.java:408) at com.idsscheer.aris.server.bl.common.reportobjects.aris.logic.AModelPicture.ensureDesignerModelCreated(AModelPicture.java:314) at com.idsscheer.aris.server.bl.common.reportobjects.aris.logic.AModelPicture.getInFormatTiles(AModelPicture.java:211) at com.idsscheer.aris.server.bl.common.reportobjects.aris.logic.AModelPicture.getBytesTiled(AModelPicture.java:400) at com.idsscheer.report.output.external.interfaces.impl.AImageAccessor.getAsBytesInternal(AImageAccessor.java:28) at com.idsscheer.aris.server.bl.common.reportobjects.aris.logic.AArisImageAccessor.getAsBytes(AArisImageAccessor.java:61) at com.idsscheer.aris.server.bl.logic.webreport.javascript.logic.context.AReportData.getAsBytes(AReportData.java:84) at com.idsscheer.report.output.outputobject.reportdoc.logic.AReportGraphic.getPictureTiled(AReportGraphic.java:201) at com.idsscheer.report.output.outputobject.classic.ARepGenGraphic.WriteReportSized(ARepGenGraphic.java:373) at com.idsscheer.report.output.outputobject.classic.ARepGenGraphic.WriteReport(ARepGenGraphic.java:320) at com.idsscheer.report.output.outputobject.classic.AReportGenerator.OutGraphic(AReportGenerator.java:2112) at sun.reflect.GeneratedMethodAccessor66.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:142) at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:201) at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3084) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2250) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:149) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:337) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2755) at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:160) at com.idsscheer.report.execution.debugger.backend.AScriptDebugger.startScript(AScriptDebugger.java:160) at com.idsscheer.report.execution.interpreter.AJReportDebugger.executeReport(AJReportDebugger.java:95) at com.idsscheer.aris.server.bl.logic.webreport.scripting.AJavaScriptReportThread.run(AJavaScriptReportThread.java:82) at com.idsscheer.aris.server.bl.logic.webreport.scripting.AJavaScriptDebuggerThread.run(AJavaScriptDebuggerThread.java:36) at java.lang.Thread.run(Thread.java:619) Hope you can help me. Thanks! 2010- 06-04T15:24:54,790 com.idsscheer.report.output.logging - Se ha producido un error al acceder al archivo 'C:\Program Files\ARIS7.1\server\temp\ReportTemp\8\ARF49966.tmp': 'null'. com.idsscheer.utils.logging.ALogger.logException java.lang.IndexOutOfBoundsException at com.idsscheer.aris.common.designerbase.layout.ALayoutParamSet.addParams(ALayoutParamSet.java:312) at com.idsscheer.aris.server.bl.graphics.logic.drawables.ADrawableModel.setGraphicOptions(ADrawableModel.java:120) at com.idsscheer.aris.server.bl.graphics.logic.drawables.ADrawableModel.<init>(ADrawableModel.java:88) at com.idsscheer.aris.server.bl.graphics.logic.AMetafileCreater.createModel(AMetafileCreater.java:175) at com.idsscheer.aris.server.bl.graphics.logic.AModelGraphicProvider.getModelAndGraphic(AModelGraphicProvider.java:177) at com.idsscheer.aris.server.bl.graphics.logic.AModelGraphicProvider.getDesignerModel(AModelGraphicProvider.java:408) at com.idsscheer.aris.server.bl.common.reportobjects.aris.logic.AModelPicture.ensureDesignerModelCreated(AModelPicture.java:314) at com.idsscheer.aris.server.bl.common.reportobjects.aris.logic.AModelPicture.getInFormatTiles(AModelPicture.java:211) at com.idsscheer.aris.server.bl.common.reportobjects.aris.logic.AModelPicture.getBytesTiled(AModelPicture.java:400) at com.idsscheer.report.output.external.interfaces.impl.AImageAccessor.getAsBytesInternal(AImageAccessor.java:28) at com.idsscheer.aris.server.bl.common.reportobjects.aris.logic.AArisImageAccessor.getAsBytes(AArisImageAccessor.java:61) at com.idsscheer.aris.server.bl.logic.webreport.javascript.logic.context.AReportData.getAsBytes(AReportData.java:84) at com.idsscheer.report.output.outputobject.reportdoc.logic.AReportGraphic.getPictureTiled(AReportGraphic.java:201) at com.idsscheer.report.output.outputobject.classic.ARepGenGraphic.WriteReportSized(ARepGenGraphic.java:373) at com.idsscheer.report.output.outputobject.classic.ARepGenGraphic.WriteReport(ARepGenGraphic.java:320) at com.idsscheer.report.output.outputobject.classic.AReportGenerator.OutGraphic(AReportGenerator.java:2112) at sun.reflect.GeneratedMethodAccessor66.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:142) at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:201) at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3084) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2250) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:149) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:337) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2755) at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:160) at com.idsscheer.report.execution.debugger.backend.AScriptDebugger.startScript(AScriptDebugger.java:160) at com.idsscheer.report.execution.interpreter.AJReportDebugger.executeReport(AJReportDebugger.java:95) at com.idsscheer.aris.server.bl.logic.webreport.scripting.AJavaScriptReportThread.run(AJavaScriptReportThread.java:82) at com.idsscheer.aris.server.bl.logic.webreport.scripting.AJavaScriptDebuggerThread.run(AJavaScriptDebuggerThread.java:36) at java.lang.Thread.run(Thread.java:619) = Context.createPicture(); modelPic = oocclist[j].Model().Graphic(true, false, g_nloc); ooutfile.OutGraphic(modelPic, -1, 180, 130); ooutfile.OutputLnF("", "REPORT4"); var modelPic = Context.createPicture(); modelPic = oocclist[j].Model().Graphic(true, false, g_nloc); ooutfile.OutGraphic(modelPic, -1, 180, 130); ooutfile.OutputLnF("", "REPORT4");