Runtime compilation

Hi Forte-users,
I have a question about runtime compilation . Under what conditions does Forte
compile a method at runtime. My logical conclusion would be Forte complies
stuff that has been changed or has a direct impact due to the change, but this
is not true as I found out the hardway that it even compiles methods or objects
that are residing in some other Projects which are not even supplier to the
Project that one had made changes to.
Please let me know what the criteria that Forte uses to decide whether a
methods needs to be complied runtime or not. Is there any way to stop run-time
compilation?
Thanks
Mihir Chitre

Example?
var myFunc:Function;
myFunc = function()
var i:int = 5;
trace(i);
//works fine
myFunc = "function(){ var i:int = 5; trace(i);}";
//TypeError: Error #1034: Type Coercion failed: cannot
convert "function(){ var i:int = 5; trace(i);}" to Function.
// at Sandbox_fla::MainTimeline/Sandbox_fla::frame1()
myFunc = (Function)("function(){ var i:int = 5; trace(i);}");
//EvalError: Error #1066: The form function('function body')
is not supported.
// at Sandbox_fla::MainTimeline/Sandbox_fla::frame1()
myFunc();

Similar Messages

  • Runtime Compilation to Increase Performance

    Hi everyone,
    I've been struggling with this problem for a few days now and would be glad if you could help. I'm working on a neural networks project. I've written a GUI to edit and train neural networks for a certain task. In order to be able to play with the network architecture in a flexible manner I've exploited the OOP concepts generously. But once the network architecture is set I don't need this flexibility anymore and I want to compile a specific class that has the same functionality as that network where all the computation is carried out over local variables (I even made them static) instead of array elements and object references. I've successfully written this code that generates a string where loops are unrolled and all the if, switch statements are resolved and the variables that are not supposed to vary at this point are inserted as constants at the (runtime) compile time.This should speed up right? Especially considering all the array bounds checking and stuff java is doing.
    When I try to compile this string, everything is fine and the mathematical functionality is perfectly imitated. But the problem is, for small networks, the code works twice as fast, as I would expect but for large networks the speed drops to something like 4 times slower! For a typical large network the resulting binary is 80k, so I wouldnt expect it to fill the cache (or should I?) anyway, even if it did fill the cache that shouldnt slow it down by a factor of 8. The slowdown sounds more like the difference between JITted and interpreted code. I suspect that as that single method is 80k long it might not be JITted (sorry if I annoy you with that crappy term). If you think this is the case, is there any way to bypass that? Or what do you think the reason could be. I already tried to decrease the number of method calls before compilation to 1 (with the command line argument -XX:CompileThreshold:1) just to try, but it didnt help.
    I converted the resulting string also to C++ and it runs 4 times faster than the unrolled original method(Even for large networks). (It serves also as a nice test showing that java is half as fast as such an arithmetic and trigonometric intensive task)
    I would be so glad if you could help me attain the x2 performance I obtain with the small networks in the general case. And I would be super duper glad if you could suggest a way I could runtime compile it in C++ and attach it to my program through JNI. Runtime compiling C++ code sounds messy but I keep some hope since the operations are purely mathematical and they don't need any platform specific thing.
    Thanks a lot
    Edited by: enobayram on Mar 5, 2009 5:51 AM

    Thanks for your answer, I was thinking about the same thing, but I am not exactly trying to out-smart it. During that runtime compilation I know much more than the VM does. I know that the neuron axon function family is constant, so I bypass a switch statement. I know that function flatness will not change after that point so I insert it as a constant. I also avoid using arrays since I know how many elements there should be, and I can use individual local variables instead. This also explains the speed increase in small networks and also in the C++ experiment.
    I've checked those options, and the only relevant one I could find is that XX:CompileThreshold. By the way, why do you think runtime compiling C++ is less messy? With java everything needed is included in the standard library. JavaCompiler class and the ClassLoader class are sufficient. With C++ I guess I would have to excite some C++ compiler through a system call so that it generates a .dll (or .so) then I would have to have it loaded to memory and interface it to my program. It could even get messier if I tried to recompile it when the network changes as then I would have to unload the dll and rebuild it. If you had an easier way in mind I would be so glad to hear.

  • Runtime compile question

    Hi,
    Is it possible for me to generate, compile, and execute Java code at runtime? In other words can program A, when invoked, generate B, compile B, and run the resulting class? A will need to call methods on B, pass parameters, and the like.
    I have to do something along these lines and am curious as to how this might be approached. The "Loader" type classes seem to work on existing class files - not .java files that need to be compiled.
    Thank you

    Check out java.lang.reflect. There's ways around these problems. Relefection is admittedly difficult, but it seems to be the only solution to your problem. You can use relfection to obtain the methods of the new class once the class is loaded and then invoke them. Constructors and fields, too.

  • Runtime compilation problem with java7

    Since switching from Java 6 to Java 7 our application's memory foot print has increased significantly. Diagnosing the problem lead us to the java compiler. Our application generates, compiles and accesses source code at run-time via the JSR-000199 compiler API. We create a new instance of the compiler and class loader for every compilation, which may be sub-optimal but that is the way it is for now.
    The behaviour we observer is:
    in Java 6 our application uses under 300MB of memory and runs consistent.
    in Java 7 the application uses as much memory as is available, plus a little bit extra outside the heap. For example on a 7.5GB heap on a 8GB system, the java process is killed by oom-killer after allocating over 8.8GB (8GB physical +1 GB swap).
    The main object using up the space is the SharedNameTable object. One of the theories we were throwing around was that between Java 6 to Java 7 a week reference was changed to a soft reference, resulting in object being kept in memory for longer.
    We are looking for any pointers which could explain our observation and maybe even some suggested option to get Java 7 to free up resources and utilise less memory. I fully appreciate that what we are doing is quite non-standard and would like to avoid getting into the reasons of how we got there.

    The reason oom-killer kills my java process is because the process is using more than all the available memory. The system has got 8GB or RAM and 1GB of swap space. I set the heap to 7.5GB and 256MB permgen, leaving me with 256MB for the OS and 1GB of swap space for just in case. I appreciate the Java process will allocate more than the heap and permgen combined, but I didn't expect it to go over by 1.3 GB. Shortly before oom-killer did its job the java process was using around 8.8GB.
    Maybe you can shed some light on how best to size the heap in this configuration.

  • Help needed on runtime compiling...

    hi,
    i haf a program...when i run it..it will show mi err on javaw. It state that i am operating an illegal operation. why is this so??? I check the compiler..it indicate no err.
    christopher

    What version are you running?
    Seems like a bug in the java virtual machine. Look it up in the bug database.
    /Michael

  • NWDI - Runtime error while compiling JSPs (PAR DC)

    Hello
    I am creating a PAR DC that needs to use some in house developed
    ValueObjects (accessed through a J2EE server library).
    Though my developed JSPDynPage is able to access the ValueObjects, when I try to use it in a JSP, I get a runtime compilation error.
    According to my understanding, setting the PrivateSharingReference helps the controller (jspdynpage) find the classes it needs at runtime,
    But the JSP Compiler does not have access to those classes.
    Can anyone suggest a solution that does not include copying jar files
    manually?
    I have an open CSN about this, but no answer there yet...
    <a href="https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/smp_custmsg/main.do?event=LOAD&smpsrv=h">CSN 0120025231 0001708061 2005</a>

    <a href="https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/smp_custmsg/main.do?event=LOAD&smpsrv=h">updated link to CSN 0120025231 0001708061 2005</a>
    full stack trace:
    Exception ID:10:40_27/12/05_0011_2189050
    [EXCEPTION]
    com.sapportals.portal.prt.component.PortalComponentException: Error in service call of Resource
    Component : pcd:portal_content/zachrefs/com.checkpoint.ReferencingIview
    Component class : com.cp.test.references.ReferencingIview
    User : Administrator
                at com.sapportals.portal.prt.core.PortalRequestManager.handlePortalComponentException(PortalRequestManager.java:969)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:444)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:527)
                at com.sapportals.portal.prt.component.AbstractComponentResponse.include(AbstractComponentResponse.java:89)
                at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:232)
                at com.sapportals.portal.htmlb.page.JSPDynPage.doOutput(JSPDynPage.java:76)
                at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:129)
                at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
                at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
                at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
                at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
                at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
                at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:646)
                at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
                at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
                at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:232)
                at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
                at java.security.AccessController.doPrivileged(Native Method)
                at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:153)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:385)
                at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:340)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:318)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:821)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:239)
                at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
                at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147)
                at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
                at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
                at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
                at java.security.AccessController.doPrivileged(Native Method)
                at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
                at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
    Caused by: com.sapportals.portal.prt.component.PortalComponentException: PortalComponentException
                at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.run(JSPCompiler.java:127)
                at com.sapportals.portal.prt.core.broker.JSPComponentItem.compileJSP(JSPComponentItem.java:279)
                at com.sapportals.portal.prt.core.broker.JSPComponentItem.getComponentInstance(JSPComponentItem.java:129)
                at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.service(PortalComponentItemFacade.java:355)
                at com.sapportals.portal.prt.core.broker.PortalComponentItem.service(PortalComponentItem.java:934)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:435)
                ... 38 more
    Caused by: com.sapportals.portal.prt.servlets_jsp.server.compiler.CompilingException: Error in executing a process for compilation, D:/usr/sap/ZAK/JC00/j2ee/cluster/server0/apps/sap.com/irj/servlet_jsp/irj/root/web-inf/portal/portalapps/appl.test2.runtimereferencingpar/work/pagelet/_sapportalsjsp_referencingiview.java:18: package com.cp.test2.references.vo does not exist
    import com.cp.test2.references.vo.IMyValueObject;
                                      ^
    1 error
                at com.sapportals.portal.prt.servlets_jsp.server.compiler.impl.J2eeCompiler_6_30.launchCompilerProcess(J2eeCompiler_6_30.java:562)
                at com.sapportals.portal.prt.servlets_jsp.server.compiler.impl.J2eeCompiler_6_30.compileExternal(J2eeCompiler_6_30.java:370)
                at com.sapportals.portal.prt.servlets_jsp.server.compiler.impl.J2eeCompiler_6_30.compile(J2eeCompiler_6_30.java:672)
                at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPParser.parse(JSPParser.java:2143)
                at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.compile(JSPCompiler.java:76)
                at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.run(JSPCompiler.java:122)
                ... 43 more
    >>> JSPCompiler >>> error  [email protected]a27
    [EXCEPTION]
    com.sapportals.portal.prt.servlets_jsp.server.compiler.CompilingException: Error in executing a process for compilation, D:/usr/sap/ZAK/JC00/j2ee/cluster/server0/apps/sap.com/irj/servlet_jsp/irj/root/web-inf/portal/portalapps/appl.test2.runtimereferencingpar/work/pagelet/_sapportalsjsp_referencingiview.java:18: package com.cp.test2.references.vo does not exist
    import com.cp.test2.references.vo.IMyValueObject;
                                      ^
    1 error
                at com.sapportals.portal.prt.servlets_jsp.server.compiler.impl.J2eeCompiler_6_30.launchCompilerProcess(J2eeCompiler_6_30.java:562)
                at com.sapportals.portal.prt.servlets_jsp.server.compiler.impl.J2eeCompiler_6_30.compileExternal(J2eeCompiler_6_30.java:370)
                at com.sapportals.portal.prt.servlets_jsp.server.compiler.impl.J2eeCompiler_6_30.compile(J2eeCompiler_6_30.java:672)
                at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPParser.parse(JSPParser.java:2143)
                at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.compile(JSPCompiler.java:76)
                at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.run(JSPCompiler.java:122)
                at com.sapportals.portal.prt.core.broker.JSPComponentItem.compileJSP(JSPComponentItem.java:279)
                at com.sapportals.portal.prt.core.broker.JSPComponentItem.getComponentInstance(JSPComponentItem.java:129)
                at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.service(PortalComponentItemFacade.java:355)
                at com.sapportals.portal.prt.core.broker.PortalComponentItem.service(PortalComponentItem.java:934)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:435)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:527)
                at com.sapportals.portal.prt.component.AbstractComponentResponse.include(AbstractComponentResponse.java:89)
                at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:232)
                at com.sapportals.portal.htmlb.page.JSPDynPage.doOutput(JSPDynPage.java:76)
                at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:129)
                at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
                at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
                at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
                at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
                at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
                at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:646)
                at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
                at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
                at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:232)
                at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
                at java.security.AccessController.doPrivileged(Native Method)
                at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:153)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:385)
                at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:340)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:318)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:821)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:239)
                at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
                at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147)
                at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
                at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
                at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
                at java.security.AccessController.doPrivileged(Native Method)
                at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
                at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
    >>> JSPCompiler >>> ERROR in Compiling :JSPFileInfo :29823520
    JSP File : D:usrsap AKJC00j2eeclusterserver0appssap.comirjservlet_jspirj
    ootWEB-INFportalportalappsappl.test2.runtimereferencingparpageletReferencingIview.jsp
    Class Name: sapportalsjspReferencingIview
    Java File : D:usrsap AKJC00j2eeclusterserver0appssap.comirjservlet_jspirj
    ootWEB-INFportalportalappsappl.test2.runtimereferencingparworkpagelet\_sapportalsjsp_ReferencingIview.java
    Package Name : pagelet
    Class File : D:usrsap AKJC00j2eeclusterserver0appssap.comirjservlet_jspirj
    ootWEB-INFportalportalappsappl.test2.runtimereferencingparworkpagelet\_sapportalsjsp_ReferencingIview.class
    Is out dated : false [email protected]a27
    [EXCEPTION]
    com.sapportals.portal.prt.servlets_jsp.server.compiler.CompilingException: Error in executing a process for compilation, D:/usr/sap/ZAK/JC00/j2ee/cluster/server0/apps/sap.com/irj/servlet_jsp/irj/root/web-inf/portal/portalapps/appl.test2.runtimereferencingpar/work/pagelet/_sapportalsjsp_referencingiview.java:18: package com.cp.test2.references.vo does not exist
    import com.cp.test2.references.vo.IMyValueObject;
                                      ^
    1 error
                at com.sapportals.portal.prt.servlets_jsp.server.compiler.impl.J2eeCompiler_6_30.launchCompilerProcess(J2eeCompiler_6_30.java:562)
                at com.sapportals.portal.prt.servlets_jsp.server.compiler.impl.J2eeCompiler_6_30.compileExternal(J2eeCompiler_6_30.java:370)
                at com.sapportals.portal.prt.servlets_jsp.server.compiler.impl.J2eeCompiler_6_30.compile(J2eeCompiler_6_30.java:672)
                at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPParser.parse(JSPParser.java:2143)
                at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.compile(JSPCompiler.java:76)
                at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.run(JSPCompiler.java:122)
                at com.sapportals.portal.prt.core.broker.JSPComponentItem.compileJSP(JSPComponentItem.java:279)
                at com.sapportals.portal.prt.core.broker.JSPComponentItem.getComponentInstance(JSPComponentItem.java:129)
                at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.service(PortalComponentItemFacade.java:355)
                at com.sapportals.portal.prt.core.broker.PortalComponentItem.service(PortalComponentItem.java:934)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:435)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:527)
                at com.sapportals.portal.prt.component.AbstractComponentResponse.include(AbstractComponentResponse.java:89)
                at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:232)
                at com.sapportals.portal.htmlb.page.JSPDynPage.doOutput(JSPDynPage.java:76)
                at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:129)
                at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
                at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
                at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
                at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
                at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
                at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:646)
                at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
                at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
                at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:232)
                at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
                at java.security.AccessController.doPrivileged(Native Method)
                at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:153)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:385)
                at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:340)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:318)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:821)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:239)
                at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
                at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147)
                at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
                at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
                at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
                at java.security.AccessController.doPrivileged(Native Method)
                at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
                at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)

  • Runtime error in Visual Composer

    I'm develping a Composite View in Visual Composer using BAPIs. I'm using BAPIs just because my SLD isn't ready to publish the enterprise services from ECC and SCM/APO. The main objective is learn how to use VC to create applications consuming data from BAPIs, Web Services, BI Query etc...
    I developed a simple application using the bapi: BAPI_LOCSVAPS_GETLIST2 from sap APO.
    Inputs ports:
            LOCATION_SELECTION - TABLE
            Input: LOGICAL_SYSTEM and MAX_NUMBER_OF_LOCATIONS - signal
    The problem is the following: when only the out port ouput is used, there isn't any problem, and is possible to compile and deploy the Composite View and the output (NUMBER OF LOCATIONS FOUND) is correct.
    But if I try to select some TABLE out port like LOCATION_TEXT, an error occurs in runtime (compile and deploy without problems): Connection Error: contact your system administrator: HTTP request error.
    I tested the RFC Connections and also, tested the BAPI using the Test Data Service and all the tests were ok and that's why I don't know what is wrong. In design time there isn't any problem, instead in runtime the error mentioned above occurs.
    EHP1 SP1 for SAP Netweaver 7.1
    IE Version 7.0.6001.18000
    Data Source :ECC and SAP APO u2013 In VC is used BAPIs, configured via RFC Destination
    Thanks...
    Edited by: Dario Oliveira on Apr 8, 2009 7:42 PM

    Hi,
    I think "Implementing a GP Interface" makes no sense in this case. Take a look at <a href="https://www.sdn.sap.com/irj/sdn/wiki?path=/display/vc/limitationsofWeb+Dynpro&">VC: Limitations of Web Dynpro</a>.
    It seems that Web Dynpro in VC is not supporting all kinds of services and functions.
    Regards,
    Christian

  • Is there any java runtime for this pocket PC?

    Hello all,
    Is there any java runtime/compiler for compaq pocket pc with ARM SA1110 processor??
    Can i use the personaljava Version 1.1, Beta 1 ??
    Is it possible to run XML api on pocket pc with the above config?
    Thanks.

    You can also use the kXML parser from the Enhydra organization (http://kxml.enhydra.org/). This is a package of XML parsing and DOM generation utilities specifically designed to run on small devices. Note, however, that to make it efficient for small devices, they are not W3C compliant.

  • Dynamic Proxies

    I'm trying to implement a way of monitoring method calls on certain objects so that I am able of enforcing security constraints on these calls.
    Considering the functionality provided by the reflection API, I thought that dynamic proxies would be a viable solution.
    But they have one major restriction:
    A dynamic proxy implements interfaces and thus can only be casted to one of these interfaces.
    So what can I do if I need a proxy on class instances which do not implement any interface?
    I have read a few older threads dealing with this problem, but I couldn't find any satisfying solution.
    There where some ideas of runtime creation of byte code and creating classes from it.
    Another way would possibly be runtime compilation of dynamically created code.
    But aren't there any less cumbersome ways for implementation?
    Regards,
    Volker.

    The idea with the class loader sounds interesting. Although I would have to implement it in a way so that it creates proxies for all classes ever loaded into the JVM. What I am trying to prevent is the following:
    Let's say there is an object "secure" which needs access control and there is another object "caller"with a reference to a "proxy" object monitoring the "secure" instance.
    The initial creation of proxies would be no problem since the critical objects are stored in a object database where they can only be retrieved from by explicit query calls. Implementing my own query method allows me to exchange the result of the query with proxy objects which then are returned to the caller.
    Now "caller" invokes a method on proxy, let's say proxy.doSomething(this) and passes itself as a parameter to the call. Now let's assume "caller" is granted access to the method and the call is delegated to "secure".
    In the process of method execution a method of "caller" is invoked (e.g. the equals method to check if the passed parameter is contained in a Collection) which is possible since "caller" has been passed in as a parameter.
    Now the caller.equals(Object o) method could possibly recieve an unprotected instance of the secure object or any other unprotected object which requires access control via the parameter o.
    Thus I need some way to dynamically generate a proxy class for "caller" which monitors access to its methods and checks if there are any unprotected instances passed as parameters to it and then exchange these instances with another proxy object.
    This is exactly the reason why I need to generate proxies for arbitrary classes (not interfaces) dynamically.
    Trying to solve the problem with my own class loader would require me to create proxy objects for all classes, even those from the Java API. I am not sure if this effort pays. Anyway it would probably cause severe performance problems.
    Another solution would be dynamically subclassing objects and overwriting each method to perform security checks. But this is inconvenient since it is not guaranteed that i can subclass a given class and furthermore I couldn't prevent access to public fields which may exist.
    Perhaps there is another solution to the problem.

  • Help with "owned" variables concept in WPF

    I'm trying to move from WinForms to WPF and so far it's been going well. I'm struggling with the concept of updating variables from events in my code behind. It says that it was created or owned by another thread. Basically in my code all over the place I am
    having to put:
    this.Dispatcher.Invoke((Action)(() => { //Code Here }));
    Generally this is happening from an async call to update some data.
    Am I doing something fundamentally wrong in my design?
    If this snippet of code is the solution, how do I understand without the runtime compiler telling me, when I should be doing it?
    Can you explain what is happening with the Dispatcher.Invoke ((Action)(() =>{}));
    My thinking so far
    (Action) is casting the (() => {}) to an action object
    () is creating a nameless function?
    => {} define the function right here, we could have pointed to a real function if we wanted.
    Thanks for any education you can give me.

    The thing is that you can only update a UI element on the thread on which it was created. This rule applies to both Windows Forms and WPF. Please refer to the following great article for more information about the threading model in WPF:
    https://msdn.microsoft.com/en-us/magazine/cc163328.aspx. You should only create UI elements (TextBoxes, Buttons, etc.) on the UI thread and not on any background thread.
    >>Can you explain what is happening with the Dispatcher.Invoke ((Action)(() =>{}));
    The delegate (Action) that you pass to the Invoke method will be executed on the UI (or dispatcher) thread. Please refer to the above article for more information.
    >>If this snippet of code is the solution, how do I understand without the runtime compiler telling me, when I should be doing it?
    The Dispatcher has a CheckAccess() method that returns false if you are required to call the Invoke method, i.e. if the current thread doesn't have access to the UI object. You could just call this one before you call the Invoke method:
    if (!Dispatcher.CheckAccess())
    Dispatcher.Invoke(new Action(() => { }));
    Hope that helps.
    Please remember to close your threads by marking helpful posts as answer and then start a new thread if you have a new question. Please don't post several questions in the same thread.

  • Error in Adapter module on decentral Adapter engine

    Hi,
    I have configured a scenario file to file for picking a xml file and then converting it to corresponding edifact file,using an adapter module at the receiver side.The adapter module is getting executed but i am getting this error
    Message processing failed. Cause: java.lang.ClassCastException: class Xml_To_Edi.XML2EdifactLocalHomeImpl0_0 can not be casted to ModuleLocalHome or SModuleLocalHome
    Can you all tell what is this error and how to rectify it.
    regards,
    ujjwal kumar

    Hi Ujjawal,
    Do the following steps...
    1.created EJB of type StatelessSession Bean
    2.Dont uncheck generate default interfaces
    3. Fininsh.
    Later in ejb-jar.xml file, modify Home,Remote,Local,LocalHome entries.
    and for more info
    I refered a blog ,in that its given as:
    You need references to connector.jar file which has the classes required at compile time and runtime
    Compile time :
    From the context menu of the EJB project , follow the path Properties -> Java Build Path -> Libraries.
    Click on Add variable and select TSSAP_JAVAX_HOME and click on Extend and select connector.jar from the list displayed.
    Run time :
    Navigate to the application-j2ee-engine.xml in your EAR project.
    Select References on the General tab and click on Add.
    Select Select library/interface/service as shown in the snapshot and select j2eeca as in the next snapshot.
    Check this blog:
    /people/amol.joshi2/blog/2006/11/28/alerts-from-adapter-modules--the-jra-way-part-ii
    see the comments in the blog who faced same error.may this helps or gives an idea
    Searched lot for this,dont forget to reward points
    Regards
    Pragathi.
    Edited by: Pragathi on May 23, 2008 5:15 AM

  • JVM 1.4.2 crash "access violation" Tomcat

    Hi
    We're getting nasty crashes with JVM 1.4.2_03 (other versions not yet been able to test) and cannot seem to find any log file with more information. However, I do have a DrWatson log which states among other things "access violation".
    Situation: We're testing a webapplication on Tomcat (runs as a Windows service (Tomcat.exe) ). During testing the Tomcat-service suddenly ends, the Windows eventlog logs states something like: "...service ended unexpectedly..."
    Environment: Tomcat 4.1.29, JDK 1.4.2_03, Windows 2000ProSP4, bi-processor Xeon machine.
    While analyzing the DrWatson log file, I can always find the same important (I think) information in the same order:
    - function: NtReadFile
    - a bit further on: function: NtWaitForMultipleObjects
    - function: NtWaitForSingleObject
    - etc..
    Other snippets I can also find every time are texts like these, they appear in the so called "Stack Back Trace"-sections of the drwtsn32.log:
    !JVM_RegisterUnsafeMethods,
    !JVM_RegisterPerfMethods,
    ntdll!NtDelayExecution,
    kernel32!Sleep,
    !JVM_Sleep,
    msafd!WSPSetSockOpt,
    ws2_32!WSAAccept,
    ws2_32!accept,
    ws2_32!recv,
    !Java_java_net_SocketInputStream_socketRead0.
    If needed I can post the complete drwtsn32.log file, I only left it out because it's a bad practice to dump long texts. So if you want to take a look, please don't hesitate to ask !
    The problem only seems to occur when the servermachine is completely left alone (and not logged in or in locked state) Additionally, it usually occurs after between 30-60 minutes or so. When I keep monitoring (logged in) the machine while the tests are running the crash doesn't seem to occur ?! This makes me think it could be an issue with power-saving that kicks in, like e.g. with the network-adaptor ?
    If we don't use JNI, and "access violation"s are stated, does this mean it's a JVM-issue or ... ? Or is it more likely it's an issue of this Tomcat.exe ?
    On a sidenote, does anyone know why a logfile might not be produced, and if there is anything i could try to make the jvm produce some intelligable output upon crashing?
    Kind regards,
    David

    Hi again,
    First of all thanks for the valuable help so far !
    As I'm still searching an anwser for the problem, I noticed the drwtsn32.log file also (sometimes) mentions HotSpot, this is a line from my drwtsn32.log file:
    mov ecx,[gHotSpotVMLongConstantEntryValueOffset+0x13f48[/i]
    Now, I'm not an expert on HotSpot, but I too know there have been numerous problems reported before with this technology.
    Ramesh, it sure looks like your hypothesis about the runtime compilation corresponds to this problem a lot.
    Additionally, I must also mention the fact that the problem only seems to occur during stress-tests (concurrency-problem?) and is NOT reproducable reliably. All of this makes me think even more that it's a JVM problem of some kind, what is your (anyone) opinion about this ?
    Again, thanks for your support, it sure helps a lot !
    Kind regards,
    David

  • Problem sync Satellite Forms data with Oracle 8i Lite through iConnect Consolidator.

    I receive following exception in the hotsync log:
    java.lang.Exception: Compose raw metadata not implemented for SMSE
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at oracle.lite.sync.palm.SMRL4PRecord.composeRawMetaData(SMRL4PRecord.java:126)
    at oracle.lite.sync.HeliosSession.<init>(Compiled Code)
    at oracle.lite.sync.HotSyncSession.RunTime(Compiled Code)
    OK Oracle with 1 message(s)
    This is when I after installed the satellite forms performes a sync.
    I use PalmV with PalmOS 3.3, performes the sync with HotSync through iConnect Consolidator for Oracle 8i Lite 4.0.0.2.0
    In the Satellite Forms App Designer I have check the Oracle Lite option in the property form.
    This happends for both the sample forms and the one I have created.
    I use the Satellite Form 3.0 beta 2, is there a new release and where can I find it ?
    Anyone with any ideas to solve this ?
    Thanks in advance !
    /Patrik

    Hello Patrik,
    Did you resolved this problem ? I have the same error message. Please, let me know what i can do.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Patrik Strid ():
    I receive following exception in the hotsync log:
    java.lang.Exception: Compose raw metadata not implemented for SMSE
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at oracle.lite.sync.palm.SMRL4PRecord.composeRawMetaData(SMRL4PRecord.java:126)
    at oracle.lite.sync.HeliosSession.<init>(Compiled Code)
    at oracle.lite.sync.HotSyncSession.RunTime(Compiled Code)
    OK Oracle with 1 message(s)
    <HR></BLOCKQUOTE>
    null

  • Storing an Array in the EncryptedLocalStore

    <!-- Fist of all, excuse my poor English, I'm doing my best. -->
    Hi ppl!
    I'm trying to store an array plenty of strings in the EncryptedLocalStore but it doesn't work. I think there is some kind of problem when retrieving data from the store and casting it into an array.
    There are no runtime/compilation errors but I can't read the strings I used to store.
    Here is the code I'm using to store the array:
    bytes = new ByteArray();
    bytes.writeObject(myArray) as Array;
    EncryptedLocalStore.setItem("arrayStored", bytes);
    And here, the code to read it:
    readArray = EncryptedLocalStore.getItem("arrayStored").readObject() as Array;
    Can someone help me? Thanks!

    Please, any trails or ideas?

  • A question occured when i created a vc4wd file.

    Hi, all.
    I tried to implement a exercise "Creating a Bank Information iView  " from library.
    Everything was fine and I finished successfully.
    In order to use this file in GP, I tried to change compiler`s option.
    When I changed "compiler runtime" from "flash" to "web dynpro", it also could be deployed successfully. The proplem occured during runtime.
    There were two actions in this case. The first action was calling "BAPI_BANK_GETLIST" and the second one was calling "BAPI_BANK_GETDETAILS". My first action could be executed successfully, but my second acton couldn`t. My click button  even disappeared. I tried to figure out what happened, but I got nothing. There is no difference between flash-typed one and webdynpro-typed one, beside the compiler`s runtime option.
    Does there anyone experience this situation? Thx ^^

    Runtime compiler is the reason.

Maybe you are looking for

  • DMS Document Name

    Hi guys.. How can i create an DVS Document (CV01N) and keep the Filename after checking the document in alive? The Doc Name is only visible before Chekcing in!

  • Need help with merging itunes accounts.

    Hello.  I was wondering if any of you mac experts can help me.  My husband and I recently purchased a new mac and are having trouble figuring out how to merge our information into our computer's itunes.  I set up the computer under my apple ID/email.

  • My computer is no longer responding to my iPod && my iPod is not charging.

    Please help me. I don't know why, but on the 26th, I downloaded songs onto my iPod, but today, my iPod won't charge, my computer won't respond to my iPod, and under devices on iTunes, my iPod is no longer there. Also, this question is all over the bo

  • Event Handler status update

    Hi all, We have created an Event handler using the Status Attribut profile attach to it. Now i am posting an Event using Idoc to Change the status of it. Could you pls advice Why status is not getting changed. Regards, Vikram

  • Best Way To speed up stereo mix 2bpm

    i tried universal and didn't do very well. i'm assuming the rest won't do much better. so is there another program that could do a better job at time and pitch? also could i make the whole mix into a apple loop and speed it up that way? can never fig