Why cannot run the JNI application(which create a JVM) in debug mode

Hi all friend,
I have a JNI app which create a JavaVM and I want to add the option( "-Xrunjdwp:transport=dt_socket,address=8888,server=y,suspend=y") to created JVM ,I could run release modle under VC++6.0,but when I run this jni application as Debug model under VC++6.0,it throw Exception:
"Unhandled exception in invokeJVMD.exe(JVM.DLL): 0xC0000005:Access Violation".
Code as following:
invoke.c
#include <stdio.h>
#include <stdlib.h>
#include <jni.h>
#include "memory.h"
#define PATH_SEPARATOR ';' /* define it to be ':' on Solaris */
#define USER_CLASSPATH "." /* where Prog.class is */
#define JVM_ARGS_SIZE 7
main() {
     JNIEnv *env;
     JavaVM *jvm;
     jint res;
     jclass cls;
     jmethodID mid;
     jstring jstr;
     jclass stringClass;
     jobjectArray args;
     JavaVMInitArgs vm_args;
      JavaVMOption options[JVM_ARGS_SIZE];
      options[0].optionString = "-Djava.class.path= " USER_CLASSPATH;
      options[1].optionString = "-Xdebug";
      options[2].optionString = "-Xnoagent";
      options[3].optionString = "-Djava.compiler=NONE";
      options[4].optionString = "-Xrunjdwp:transport=dt_socket,address=8888,server=y,suspend=y";
      options[5].optionString = "-verbose:jni";
      options[6].optionString = "-Xcheck:jni";
     vm_args.version = JNI_VERSION_1_4;
     vm_args.options = options;
     vm_args.nOptions = JVM_ARGS_SIZE;
     vm_args.ignoreUnrecognized = JNI_TRUE;
     /* Create the Java VM */
     res = JNI_CreateJavaVM(&jvm, (void**)&env, &vm_args);
     if (res < 0) {
         fprintf(stderr, "Can't create Java VM\n");
         exit(1); /*exit(1);*/
     cls = (*env)->FindClass(env, "Prog");
     if (cls == NULL) {
         goto destroy;
     mid = (*env)->GetStaticMethodID(env, cls, "main",
                                     "([Ljava/lang/String;)V");
     if (mid == NULL) {
         goto destroy;
     jstr = (*env)->NewStringUTF(env, " from C!");
     if (jstr == NULL) {
         goto destroy;
     stringClass = (*env)->FindClass(env, "java/lang/String");
     args = (*env)->NewObjectArray(env, 1, stringClass, jstr);
     if (args == NULL) {
         goto destroy;
     (*env)->CallStaticVoidMethod(env, cls, mid, args);
destroy:
     if ((*env)->ExceptionOccurred(env)) {
         (*env)->ExceptionDescribe(env);
     (*jvm)->DestroyJavaVM(jvm);
      exit(0);
}Prog.java:
public class Prog {
    public static void main(String[] args) {
         int i = 0;
         int j = 10;
         i += j;
         System.out.println("Hello World " + args[0]);
        new HelloWorld().displayHelloWorld();
}Any help?Thanks

Sounds like this old problem, and workaround:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4335526
-slj-

Similar Messages

  • Cannot run the JNI application in debug mode in eclipse

    Hi ,
    I have created a C++/Java project in Eclipse on windows XP.
    I can run the app. but I cannot debug it. I get the following error.
    Failed to connect to remote VM. Connection refused.
    java.net.ConnectException: Connection refused: connect
    java.net.PlainSocketImpl.socketConnect(Native Method)
    java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
    java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
    java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
    java.net.Socket.connect(Socket.java:452)
    java.net.Socket.connect(Socket.java:402)
    java.net.Socket.<init>(Socket.java:309)
    java.net.Socket.<init>(Socket.java:124)
    org.eclipse.jdi.internal.connect.SocketTransportImpl.attach(SocketTransportImpl.java:47)
    org.eclipse.jdi.internal.connect.SocketAttachingConnectorImpl.attach(SocketAttachingConnectorImpl.java:103)
    org.eclipse.jdt.internal.launching.SocketAttachConnector.connect(SocketAttachConnector.java:131)
    org.eclipse.jdt.internal.launching.JavaRemoteApplicationLaunchConfigurationDelegate.launch(JavaRemoteApplicationLaunchConfigurationDelegate.java:75)
    org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:569)
    org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:788)
    org.eclipse.debug.internal.ui.DebugUIPlugin$6.run(DebugUIPlugin.java:955)
    org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)
    I compiled my C program with :
         options[0].optionString = "-Xdebug";
         options[1].optionString = "-Xnoagent";
         options[2].optionString = "-Djava.compiler=NONE";
         options[3].optionString = "-Djava.class.path=.";
         options[4].optionString = "-Xrunjdwp:transport=dt_socket,address=8888,server=y,suspend=y";
    In the debug window in eclipse i have created a new config. under remote java application. I have set the connect tab = myproject.
    Connection type = Standard(socket attach) and connection properties: host = localhost , port=8888.
    Any help?

    It looks like you are doing basically the same thing as we are doing, and it seems to work for us. Do you see a message from the JVM that says:
    Listening for transport dt_socket at address: 8888
    The one strange thing that we are seeing is if we throw an exception in Java and clear it in C++ (using ExceptionClear) the subsequent entry into the eclipse debug session behaves very strange.
    Anyway, here is what we are doing:
    J2SE 5.0
    Eclipse Version: 3.1.0 Build id: I20050401-1645
    jvmOptions[0].optionString = "-Djava.compiler=NONE";
    jvmOptions[1].optionString = (char *)classPath.c_str();
    jvmOptions[2].optionString = "-Xdebug";
    jvmOptions[3].optionString = "-Xnoagent";
    jvmOptions[4].optionString = "-Xrunjdwp:transport=dt_socket,address=8888,server=y,suspend=n";
    jvmOptions[5].optionString = "-verbose:jni";
    memset(&vm_args, 0, sizeof(vm_args));
    vm_args.version = JNI_VERSION_1_4;
    vm_args.nOptions = JNI_ARG_SIZE;
    vm_args.options = jvmOptions;
    vm_args.ignoreUnrecognized = JNI_TRUE;
    The eclipse remote java application is the same as your:
    Connection type = Standard(socket attach)
    Connection properties: host = localhost , port=8888.

  • How to run the VC application which is deployed

    Hi  All,
    I am new to the VC. I created one model, and i have added some data service and view. and i compiled and deployed. I am not able to find , how to run that deployed application.
    Can any body tell me how to run the deployed VC application.
    Regards
    Vijay

    Hi Vijay,
    go after you have deployed to Deploy on the right side of the VC. There you have to see "see source code" and "Run name of your application". Put your mouse at run and the application will start.
    Another way ist to put the Button "Deploy Model " (it is the picture with the running man) in the 2second menu line. If you do this, the modell will start automatically, if it has no errors.
    Regards
    Thomas

  • Why we cannot view the move orders which are created by the other user?

    Hi,
    Can any one explain me the below point.
    Why we cannot view the move orders which are created by the other user.
    Ex: From ABC user I have created a Move Order: 123456 in M1 Org If I login to the other user BCD I cannot view the same move order in the same ORG i..e M1 ORG.
    But we can perform the transact move orders for move orders which is created by the other user.
    What could be the reason? Why the system is restricting this? Is this the standard functionality of oracle?
    Can any one explain?
    Regards,
    Kv.

    This is due to a security function which allows to see the move orders created by the user only.
    Please refer to the meta link document ID 280131.1 for detailed description.
    I have tried these steps in one of my test instances long back and was able to see move orders created by other users.
    Thanks
    Karthik.

  • I have an old iMac version 10. 4.11 and I have the iPhone 3GS which I cannot upgrade the latest applications I want to buy the iPhone 4S but I need to back up all the information on my iMac and move it to a different computer contacts songs etc which is t

    I have an old iMac version 10. 4.11 and I have the iPhone 3GS which I cannot upgrade the latest applications I want to buy the iPhone 4S but I need to back up all the information on my iMac and move it to a different computer contacts songs etc which is the easiest way to do this

    Glenn,
    I tried upgrading to leopard, even bought the software and brought it home but it wouldn't let me. So i went back to apple, gave them the specifications of the machine and been told my machine is simply too old for leopard. This is incredible to me because it really isn't THAT old (i think just a little over 6 years maybe) and yet i'm left out on the curb when it comes to using newer apple products. I understand technology moves on but the mindset that i am supposed to dump a perfectly working machine after a couple of years or face not being able to use any other apple product is counter to what thought apple was about.

  • Could not edit original smart object because the application which created the smart object could not be launched

    could not edit original smart object because the application which created the smart object could not be launched

    Hi there,
    I got this problem when I installed Adob master collection Over CS 5.
    I had children book story storis which created in Adobe illustrator CS 5 and I created art boards in Adobe photoshop cs 5.
    After installting CS 6 i tried to edit the smart objects and it was not opeinging the smart object file in Illustrator.
    I did some tests.
    1) Right click on smart object layer and click export contents. Save on desktopp or anywhere you want. (I saved on desktop)
    2) I had this file on my desktop (Vector Smart Object10.ai) but it didn't show any icon, which program should open this type of file.
    3) Double click on the file and it pop up a extension window 'Click on change and select adobe illustrator' and press OK.
    4) Go back to your photoshop file and right click on smart object layer and click dit content. now this time it opens up assets in illustrator.
    ENJOY!
    Thanks
    Haroon
    www.4d-studios.co.uk

  • I have installed Lion and Microsoft Office 2011.  I want to uninstall Office 2004, but of course I cannot run the application to uninstall, because I get the "PowerPC applications are no longer supported" message.  Suggestions?

    I have installed Lion and Microsoft Office 2011.  I want to uninstall Office 2004, but of course I cannot run the application to uninstall, because I get the "PowerPC applications are no longer supported" message.  Suggestions?

    Go to this microsoft site http://support.microsoft.com/kb/312172 and/or this microsoft site http://support.microsoft.com/kb/2398768.  I would suggest removing both to start with a clean slate.  I had some problems with installing Office for Mac 2011 over 2008 and found out that by completely removing both and starting from a clean slate provided the best solution.  Kappy is correct but some sniglets do get left behind.  Hope this helps.  Cheers.

  • Error While Running the Mobile Application.

    Hi friends,
    In SAP MI 7.1 I have Successfully done the following steps:-
    1. Created and build the service.
    2. Created and build the UI.
    3. Created and Build the application.
    as per the tutorial available in the link
    http://help.sap.com/saphelp_nwmobile71/helpdata/en/45/e5f99c6f472e98e10000000a155369/frameset.htm
    After deploying , When I am trying to run the mobile application . I am getting the below shown error.
    java.lang.IllegalStateException: com/sap/sdb/minDB/DriverEmbeddedMinDB (Unsupported major.minor version 48.0)
         at com.sap.tc.mobile.cfs.compat.Context.getPersistenceManager(Context.java:41)
         at com.sap.tc.mobile.cfs.compat.Context.getPersistenceManager(Context.java:28)
         at com.sap.tc.mobile.cfs.init.FrameworkInitializer.init(FrameworkInitializer.java:76)
         at java.lang.reflect.Method.invoke(Native Method)
         at com.sap.tc.mobile.cfs.startup.pda.Startup.main(Unknown Source)
    Error starting the framework
    java.lang.reflect.InvocationTargetException: java.lang.IllegalStateException: Cannot initialize framework
         at com.sap.tc.mobile.cfs.init.FrameworkInitializer.init(FrameworkInitializer.java:146)
         at java.lang.reflect.Method.invoke(Native Method)
         at com.sap.tc.mobile.cfs.startup.pda.Startup.main(Unknown Source)
    Also in the Netweaver prefrences /Mobile/handhelds/runtime settings/ when I click on launch simulator . It gives the same error.
    Please Suggest.
    Regards
    Nitesh.

    <br>Thanks a lot Alen . The reply was usefull. <br><br>
    Now after deploying when I am running the application in mobile handheld Simulator . It gives the below shown exception<br><br>
    2009-11-04 13:39:40 ...  (com.sap.tc.mobile.wdlite.renderer.exception.OCAExceptionLocalizeHelper:) Thread: main Error: <br>Resourcebundle sap.comtcmobilewdlitecontainer could not be found. Trying to use the default bundle.<br>
    2009-11-04 13:39:40 ...  (com.sap.tc.mobile.cfs.pers.PersistenceManager:release resultset) Thread: Finalizer Error: <br>java.sql.SQLException: Result set is closed<br>
    2009-11-04 13:39:40 ...  Thread: main Error: Internal Error. Please check the log file. --> <br>
    2009-11-04 13:39:40 ...  (com.sap.tc.mobile.wdlite.renderer.exception.OCAExceptionHandler:) Thread: main Error: Internal <br>Error. Please check the log file.<br>
    2009-11-04 13:39:40 ...  (com.sap.tc.mobile.wdlite.renderer.exception.OCAExceptionLocalizeHelper:) Thread: main Error: <br>Resourcebundle sap.comtcmobilewdlitecontainer could not be found. Trying to use the default bundle.<br>
    2009-11-04 13:39:40 ...  Thread: main Error: Internal Error. Please check the log file. --> <br>
    2009-11-04 13:39:40 ...  (com.sap.tc.mobile.wdlite.renderer.exception.OCAExceptionHandler:) Thread: main Error: Internal <br>Error. Please check the log file.<br>
    2009-11-04 13:39:40 ...  (com.sap.tc.mobile.wdlite.renderer.exception.OCAExceptionLocalizeHelper:) Thread: main Error: <br>Resourcebundle sap.comtcmobilewdlitecontainer could not be found. Trying to use the default bundle.
    java.lang.NullPointerException<br>
         at com.sap.tc.mobile.wdlite.progmodel.core.WDLite.launchApplication(WDLite.java:77)<br>
         at com.sap.tc.mobile.wdlite.progmodel.core.WDLite.launchApplication(WDLite.java:85)<br>
         at com.sap.tc.mobile.wdlite.container.AppMenuView.startApp(AppMenuView.java:561)<br>
         at com.sap.tc.mobile.wdlite.container.AppMenuView.onActionLaunchApp(AppMenuView.java:325)<br>
         at com.sap.tc.mobile.wdlite.container.AppMenuView.invokeEventHandler(AppMenuView.java:368)<br>
         at com.sap.tc.mobile.wdlite.progmodel.core.AbstractViewElement.doHandleEvent(AbstractViewElement.java:199)<br>
         at com.sap.tc.mobile.wdlite.renderer.api.UIElement.doHandleEvent(UIElement.java:353)<br>
         at com.sap.tc.mobile.wdlite.renderer.api.UIImageButton.mouseReleased(UIImageButton.java:152)<br>
         at com.sap.tc.mobile.wdlite.renderer.api.UIElement.dispatchMouseReleasedWidgetEvent(UIElement.java:396)<br>
         at com.sap.tc.mobile.wdlite.renderer.api.UIElement$1.mouseReleased(UIElement.java:439)<br>
         at com.sap.tc.mobile.wdlite.renderer.swt.MouseEventDispatcher.mouseUp(SWTControl.java:372)<br>
         at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:137)<br>
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)<br>
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)<br>
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)<br>
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)<br>
         at com.sap.tc.mobile.wdlite.renderer.swt.container.WorkingArea.refresh(WorkingArea.java:129)<br>
         at com.sap.tc.mobile.wdlite.renderer.api.RenderingManager.refresh(RenderingManager.java:231)<br>
         at com.sap.tc.mobile.wdlite.progmodel.core.Application.refresh(Application.java:24)<br>
         at com.sap.tc.mobile.wdlite.progmodel.core.Application.navigate(Application.java:176)<br>
         at com.sap.tc.mobile.wdlite.progmodel.core.Application.enter(Application.java:19)<br>
         at com.sap.tc.mobile.wdlite.progmodel.core.WDLite.setCurrentApplication(WDLite.java:148)<br>
         at com.sap.tc.mobile.wdlite.progmodel.core.WDLite.launchApplication(WDLite.java:80)<br>
         at com.sap.tc.mobile.wdlite.framework.ApplicationLauncher.start(ApplicationLauncher.java:101)<br>
         at com.sap.tc.mobile.wdlite.framework.Start.runOnContext(Start.java:576)<br>
         at com.sap.tc.mobile.wdlite.framework.Start.startApplication(Start.java:600)<br>
         at com.sap.tc.mobile.wdlite.framework.Start.startContainer(Start.java:637)<br>
         at com.sap.tc.mobile.cfs.framework.spi.FrameworkManager.startContainer(FrameworkManager.java:261)<br>
         at com.sap.tc.mobile.cfs.init.FrameworkInitializer.init(FrameworkInitializer.java:139)<br>
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br>
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>
         at java.lang.reflect.Method.invoke(Method.java:324)<br>
         at com.sap.tc.mobile.cfs.startup.pda.Startup.main(Unknown Source)<br>
    2009-11-04 13:39:40 ...  (com.sap.tc.mobile.wdlite.renderer.exception.OCAExceptionLocalizeHelper:) Thread: main Error: <br>Resourcebundle sap.comtcmobilewdlitecontainer could not be found. Trying to use the default bundle.<br>
    2009-11-04 13:39:40 ...  Thread: main Error: Application launch failed. --> <br>
    2009-11-04 13:39:40 ...  (com.sap.tc.mobile.wdlite.renderer.exception.OCAExceptionHandler:) Thread: main Error: Application <br>launch failed.<br>
    2009-11-04 13:39:40 ...  (com.sap.tc.mobile.wdlite.renderer.exception.OCAExceptionLocalizeHelper:) Thread: main Error: <br>Resourcebundle sap.comtcmobilewdlitecontainer could not be found. Trying to use the default bundle.<br>
    java.lang.ClassCastException<br>
         at com.sap.demo.order_sv.service.impl.OrderService.generateTestData(OrderService.java:52)<br>
         at com.sap.orderapp.comp.OrderComp.generateTestData(OrderComp.java:175)<br>
         at com.sap.orderapp.comp.OrderComp.wdDoInit(OrderComp.java:73)<br>
         at com.sap.tc.mobile.wdlite.progmodel.core.Controller.enter(Controller.java:21)<br>
         at com.sap.tc.mobile.wdlite.progmodel.core.Component.enter(Component.java:24)<br>
         at com.sap.tc.mobile.wdlite.progmodel.core.Application.setCurrentComponent(Application.java:125)<br>
         at com.sap.tc.mobile.wdlite.progmodel.core.Application.navigate(Application.java:155)<br>
         at com.sap.tc.mobile.wdlite.progmodel.core.Application.enter(Application.java:19)<br>
         at com.sap.tc.mobile.wdlite.progmodel.core.WDLite.setCurrentApplication(WDLite.java:148)<br>
         at com.sap.tc.mobile.wdlite.progmodel.core.WDLite.launchApplication(WDLite.java:80)<br>
         at com.sap.tc.mobile.wdlite.container.AppMenuView.startApp(AppMenuView.java:561)<br>
         at com.sap.tc.mobile.wdlite.container.AppMenuView.onActionLaunchApp(AppMenuView.java:325)<br>
         at com.sap.tc.mobile.wdlite.container.AppMenuView.invokeEventHandler(AppMenuView.java:368)<br>
         at com.sap.tc.mobile.wdlite.progmodel.core.AbstractViewElement.doHandleEvent(AbstractViewElement.java:199)<br>
         at com.sap.tc.mobile.wdlite.renderer.api.UIElement.doHandleEvent(UIElement.java:353)<br>
         at com.sap.tc.mobile.wdlite.renderer.api.UIImageButton.mouseReleased(UIImageButton.java:152)<br>
         at com.sap.tc.mobile.wdlite.renderer.api.UIElement.dispatchMouseReleasedWidgetEvent(UIElement.java:396)<br>
         at com.sap.tc.mobile.wdlite.renderer.api.UIElement$1.mouseReleased(UIElement.java:439)<br>
         at com.sap.tc.mobile.wdlite.renderer.swt.MouseEventDispatcher.mouseUp(SWTControl.java:372)<br>
         at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:137)<br>
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)<br>
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)<br>
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)<br>
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)<br>
         at com.sap.tc.mobile.wdlite.renderer.swt.container.WorkingArea.refresh(WorkingArea.java:129)<br>
         at com.sap.tc.mobile.wdlite.renderer.api.RenderingManager.refresh(RenderingManager.java:231)<br>
         at com.sap.tc.mobile.wdlite.progmodel.core.Application.refresh(Application.java:24)<br>
         at com.sap.tc.mobile.wdlite.progmodel.core.Application.navigate(Application.java:176)<br>
         at com.sap.tc.mobile.wdlite.progmodel.core.Application.enter(Application.java:19)<br>
         at com.sap.tc.mobile.wdlite.progmodel.core.WDLite.setCurrentApplication(WDLite.java:148)<br>
         at com.sap.tc.mobile.wdlite.progmodel.core.WDLite.launchApplication(WDLite.java:80)<br>
         at com.sap.tc.mobile.wdlite.framework.ApplicationLauncher.start(ApplicationLauncher.java:101)<br>
         at com.sap.tc.mobile.wdlite.framework.Start.runOnContext(Start.java:576)<br>
         at com.sap.tc.mobile.wdlite.framework.Start.startApplication(Start.java:600)<br>
         at com.sap.tc.mobile.wdlite.framework.Start.startContainer(Start.java:637)<br>
         at com.sap.tc.mobile.cfs.framework.spi.FrameworkManager.startContainer(FrameworkManager.java:261)<br>
         at com.sap.tc.mobile.cfs.init.FrameworkInitializer.init(FrameworkInitializer.java:139)<br>
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br>
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>
         at java.lang.reflect.Method.invoke(Method.java:324)<br>
         at com.sap.tc.mobile.cfs.startup.pda.Startup.main(Unknown Source)<br>
    Please Suggest<br>
    <br>
    <br>
    It will be a great help.<br>
    Regards
    Nitesh.
    Edited by: Nitesh Harit on Nov 4, 2009 2:22 PM

  • Running the same application in different database table- giving error:

    Hi All,
    I m new to JSF, spring and Hibernate web application. I have done a web project using JSF, Hibernate and Spring. We have to maintain the Data records which is stored in mysql db. Now there are different table is there such as example Employee Details and Company Details. So we created two seperate application o tomacat, For both Application we use same functionality except the JSP FILE Name and table name (Which is changed according to Application).
    In the employee.hbm.xml
    I changed the table name according to application. Two table (Company Details & Employee Details)...
    Now while running the application on the tomcat server, only one application is running at a time. if we start running the Employee Application, then Company Application is giving the below error,
    Error in Log:
    The resourse is already in used/busy.
    Interesting thing is only one Application is running at a time and other is in stop status.
    Could you please help us, how to overcome the error,
    Is it not possible to run both the application on different browsers.
    In logs the below error is showing:
    java.lang.Exception: Socket bind failed: [730048] Only one usage of each socket address (protocol/network address/port) is normally permitted.
    Could you please give some idea to sort out the below issue.
    Thanks in advance.

    Yes, I've changed the DynamicJDBCBindingFilter Class in this way:
    method doFiletr
    String usrName = request.getParameter(USERNAME_PARAM);
    String pswd = request.getParameter(PASSWORD_PARAM);
    String URL = request.getParameter(URL_PARAM);
    session.setAttribute(Configuration.DB_USERNAME_PROPERTY, usrName);
    session.setAttribute(Configuration.DB_PASSWORD_PROPERTY, pswd);
    session.setAttribute(Configuration.DB_CONNECT_STRING_PROPERTY,URL);//
    This is for retrieve the JDBC URL from the login page
    Then i've modified the DynamicJDBCEnvInfoProvider to accept this new parameter
    if(mJDBCURL!=null)
    ((Hashtable) connEnvironment).put(Configuration.DB_CONNECT_STRING_PROPERTY,mJDBCURL);
    Finally i modifed the DynamicJDBCSessionCookieFactory
    tho put this new parameter in DynamicJDBCEnvInfoProvider class
    EnvInfoProvider provider = new DynamicJDBCEnvInfoProvider(
    (String)session.getAttribute(Configuration.DB_USERNAME_PROPERTY),
    (String)session.getAttribute(Configuration.DB_PASSWORD_PROPERTY),
    (String)session.getAttribute[b](Configuration.DB_CONNECT_STRING_PROPERTY));
    cookie.setEnvInfoProvider(provider);
    But when I test the application it doesn't works.
    With the correct parameter the login fails.
    I'm not using a DB on my local machine, but one on another machine which has not the Dept table.
    thanks for help

  • Cannot run the macro 'YIELD'. The macro may not be available in this workbook or all macros may be disabled.

    Dear Sir,
              While i am calling Excel function through asp.net  using Excel 2003 i  was not facing any kind of issue it's working fine but while i am calling  Excel functions through asp.net using 
    Excel 2010  i am facing an issue even after enabling the micro in settings . issue is 
    "Cannot run the macro 'YIELD'. The macro may not be available in this workbook or all macros may be disabled." please solve this as soon as possible .
    Thanks & Regards
      Sanjeev

    // I made a singleton class and calling that class to access Excel functions
    Public Class Singleton
        Private Shared objexcel As Excel.Application
        Private Shared lock As New Object
        Private Sub New()
            System.Console.WriteLine("Instance of Singleton class created at : " & Now())
        End Sub
        Public Shared Function GetInstance() As Excel.Application
            SyncLock lock
                If objexcel Is Nothing Then
                    objexcel = New Excel.Application
                    objexcel.RegisterXLL(objexcel.LibraryPath & "\Analysis\ANALYS32.XLL")
                End If
                Return objexcel
            End SyncLock
        End Function
    End Class
    // Common Function for yield 
    Public Sub CalculateYield( _
               ByVal YTMDate As Date, ByVal FaceValue As Double, ByVal Rate As Double, _
               ByVal NonGovernmentFlag As Boolean, ByVal RateActualFlag As Boolean, _
               ByVal MaturityDate As Date, ByVal MaturityAmt As Double, _
               ByVal CouponDate As Date, ByVal CouponRate As Double, _
               ByVal CallDate As Date, ByVal CallAmt As Double, _
               ByVal PutDate As Date, ByVal PutAmt As Double, ByVal intFrequency As Int16, _
               ByVal strOption As String, ByVal dblResult As Double, ByVal strSemiAnnFlag As String)
            Try
                Dim decMarketValue As Double
                Dim intBasis As Int16
                decMarketValue = IIf(RateActualFlag = True, Rate * FaceValue / 100, Rate)
                decMarketValue = decMarketValue * 100 / FaceValue
                decMarketValue = objCommon.DecimalFormat(decMarketValue)
                MaturityAmt = MaturityAmt * 100 / FaceValue
                MaturityAmt = objCommon.DecimalFormat(MaturityAmt)
                CallAmt = CallAmt * 100 / FaceValue
                CallAmt = objCommon.DecimalFormat(CallAmt)
                PutAmt = PutAmt * 100 / FaceValue
                PutAmt = objCommon.DecimalFormat(PutAmt)
                intBasis = IIf(NonGovernmentFlag = True, 3, 4)
                If strOption = "Y" Then
                    With Singleton.GetInstance
                        If MaturityDate <> Date.MinValue And MaturityDate > YTMDate Then
                            dblYield = CType(Singleton.GetInstance.Run("YIELD", YTMDate, MaturityDate, CouponRate / 100, decMarketValue, MaturityAmt,
    intFrequency, intBasis), Double)
                            dblYTMAnn = CType(Singleton.GetInstance.Run("EFFECT", dblYield, intFrequency), Double)
                            dblYTMSemi = CType(Singleton.GetInstance.Run("NOMINAL", dblYTMAnn, 2), Double)
                            'End If
                            dblYTMAnn = dblYTMAnn * 100
                            dblYTMSemi = dblYTMSemi * 100
                        Else
                            dblYTMAnn = 0
                            dblYTMSemi = 0
                        End If
                        If CallDate <> Date.MinValue And CallDate > YTMDate Then
                            dblYield = CType(Singleton.GetInstance.Run("YIELD", YTMDate, MaturityDate, CouponRate / 100, decMarketValue, MaturityAmt,
    intFrequency, intBasis), Double)
                            dblYTCAnn = CType(Singleton.GetInstance.Run("EFFECT", dblYield, intFrequency), Double)
                            dblYTCSemi = CType(Singleton.GetInstance.Run("NOMINAL", dblYTMAnn, 2), Double)
                            'End If
                            dblYTCAnn = dblYTCAnn * 100
                            dblYTCSemi = dblYTCSemi * 100
                        Else
                            dblYTCAnn = 0
                            dblYTCSemi = 0
                        End If
                        If PutDate <> Date.MinValue And PutDate > YTMDate Then
                            dblYield = CType(Singleton.GetInstance.Run("YIELD", YTMDate, MaturityDate, CouponRate / 100, decMarketValue, MaturityAmt,
    intFrequency, intBasis), Double)
                            dblYTPAnn = CType(Singleton.GetInstance.Run("EFFECT", dblYield, intFrequency), Double)
                            dblYTPSemi = CType(Singleton.GetInstance.Run("NOMINAL", dblYTMAnn, 2), Double)
                            dblYTPAnn = dblYTPAnn * 100
                            dblYTPSemi = dblYTPSemi * 100
                        Else
                            dblYTPAnn = 0
                            dblYTPSemi = 0
                        End If
                    End With
                End If
            Catch ex As Exception
                Throw ex
            End Try
        End Sub
    // call  yield function
    GlobalFuns.CalculateYield(datYTM, decFaceValue, decRate, blnNonGovernment, blnRateActual, datMaturity, decMaturityAmt, _
                                   datCoupon, decCouponRate, datCall, decCallAmt, datPut, decPutAmt, Val(Hid_Frequency.Value
    & ""), "Y", 0, "")
    this code  is working in Excel 2003 but it's not working in Excel 2010
    //Error is
    Cannot run the macro 'YIELD'. The macro may not be available in this workbook or all macros may be disabled.

  • Cannot start the source application for this object - Embedded PDF in Excel 2007

    I am having a real issue which unfortunately is intermittant and I cannot pinpoint what is causing the problem. Basically I am inserting a PDF object into an Excel worksheet and immediately after I insert it, it will open fine. If you click off into another cell and save the sheet, then try to reopen the embedded PDF, you get the error "cannot start the source application for this object".
    Any help would be very much appreciated! Has anyone else run into this?

    I got that problem with one of my client after updating from Adobe  Reader 8.2 to 9.3.1. Excel version was 2002 and not 2007 but this is Adobe problem.
    Check that registry key for you Acrobat  Document key points to right AcroRead32.exe path at  HKEY_CLASSES_ROOT\CLSID\{B801CA65-A1FC-11D0-85AD-444553540000}\LocalServer32
    of  whatever key points to your Acrobat Document.
    I used  Sysinternals Procmon to monitor registry activity and found a line and  opened that registry location and found out Adobe Reader 8.0 path there.
    9:55:56,9021789     EXCEL.EXE    3236    RegOpenKey     HKCR\CLSID\{B801CA65-A1FC-11D0-85AD-444553540000}\LocalServer32     SUCCESS    Desired Access: Maximum Allowed
    I have seen that Adobe  Reader 9.3 doesn't update that registry and leaves Adobe Reader 8.0  values there. Same problem may be in other upgrade scenarios too.
    In addition to that my Windows 7 with Office 2007 that has never had anything but Adobe Reader 9.x versions didn't had anything on that registry location and it gave me same "cannot start the source application for this object" error. Putting that path "C:\Program Files\Adobe\Reader 9.0\Reader\AcroRd32.exe" to LocalSever Default value fixed that too. Maybe Adobe should do something with this issue?

  • Cannot run the macro SOLVER.XLAM!MainEx error message

    Ive had this problem for awhile but am now needing to use solver for my schoolwork. 
    Anytime i try to use the solver function under the data tab this error message pops up. 
    I have tried taking off and readding the add-in under options. 
    when i try to access solver in the visual basic panel it asks for a password which i have never set
    Im running excel 2013 on windows 7
    I have tried many things and am exhausted. No solution has been posted to this problem on the site or anywhere on the web 
    THIS IS NOT WHEN IM TYPING MACRO CODE IN VBA. its just when i try to use solver for simple spreadsheet calculations. 
    when i click solver i get the error cannot run module: SolverCode
    when i try to access the solver code in vba a password is required 

    Hi,
    As far as I know,  the Solver add-in code has the password by design, it is protected on purpose and copyrighted. They are designed for use from the spreadsheet only. 
    Then, as the error message:" Cannot run the macro SOLVER.XLAM!MainEx error message." Please try to do the following methods to fix the issue:
    1. Open VBE (Alt+F11)>Click Tools> References>set to SOLVER>Show immediate code pane (Ctrl+G)>Copy/paste (or write): application.run "solver.xlam!auto_open"
    2. Disable the other Excel add-ins, such as
    Adobe PDFMaker.
    3. Repair Office 2013.
    Regards,
    George Zhao
    TechNet Community Support

  • Error while running the vsm application

    Hi,
    I am trying to deploy the virtual shopping mall application. But during the server start up the below error is thrown.
    Warning: Error creating table: Io exception: The Network Adapter could not establish the connection.
    I searched the forum for this exception and came to know that this is due to some configuration error. I have tried all option but with no success.
    I am deploying this application in the OC4J bundled with the Oracle9ias infrastructure. Is this fine? Do I need to install the Oracle9i database for this application. I am able to successfully run the petstore application in this set up.
    I am able to connect to the database through SQL Plus as well as from the standalone code.
    Any thoughts on this would be of great help.
    You can also mail me at [email protected]
    Thanks

    Hi,
    Below is the entry in the data-sources.xml
    <data-source
         class="oracle.jdbc.pool.OracleConnectionPoolDataSource"
         name="OracleDS"
         location="jdbc/OracleCoreDS"
         xa-location="jdbc/xa/OracleXADS"
         ejb-location="jdbc/OracleDS"
         connection-driver="oracle.jdbc.driver.OracleDriver"
         username="webstore"
         password="welcome"
         url="jdbc:oracle:thin:@jagannath:1521:MyDB"
         min-connections="1"
         max-connections="10"
         inactivity-timeout="20"
    />
    I am able to connect to this database with the above username and password from SQL Plus.
    Also is the data source class mentioned above correct.
    For petstore the datasource class is specified as com.evermind.sql.ConnectionDataSource instead of oracle.jdbc.pool.OracleConnectionPoolDataSource and everything is working fine.
    Thanks

  • I have updated to Keynote 6.1, but I still have 5.3 and I cannot open the file I just created in 6.1.

    I have updated to Keynote 6.1, my App Store says I did it 2/1/14, I just created a new slideshow in 6.1 tonight, saved it all the way through while creating it, and when finished, saved it one more time, and closed the file. I treid to open it again, but I get an error message stating I need a newer version of Keynote to open the presentation. I check the "About Keynote", and apparently I still have 5.3 and I cannot open the file I just created in 6.1. I try changing the file to open with 5.3, but it won't do that either! The App Store won't let me re-download it. How do I get 6.1 back??? I need to reopen the file I just created.

    I am finding that when I launch keynote from the Docking Station and it opens Keynote 5.3, so I command Q and close it. I then go to Finder, go to the Keynote slideshow I created in 6.1 and now cannot open, and CAN open the slideshow from Finder, which it actually open the file in Keynote 6.1.
    I emptied my Trash.
    What the heck is up with this???? And how do I fix it??

  • Why cannot get the LR app in Adobe creative cloud? Now LR is a trial on my laptop and I am paying every month for CC. I am desperate, becaus I didn't get the solution. Also LR mobile I cannot intall it anymore.

    I hope I get the solution now after trying days and days  I am a member of CC and I pay every month. So why there is not a good helpdesk to communicate with.

    Thans alle. I will try this Tomorrowland
    Verstuurd vanaf mijn iPhone
    Op 10 mei 2014 om 19:10 heeft Simon G E Garrett <[email protected]> het volgende geschreven:
    Why cannot get the LR app in Adobe creative cloud? Now LR is a trial on my laptop and I am paying every month for CC. I am desperate, becaus I didn't get the solution. Also LR mobile I cannot intall it anymore.
    created by Simon G E Garrett in Photoshop Lightroom - View the full discussion
    Try this:
    Go to http://prodesigntools.com/adobe-cc-direct-download-links.html and download and install LR5.4 from there.
    You MUST follow the instruction under the heading "Note: Very Important Instructions".
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6371505#6371505
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Photoshop Lightroom by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

Maybe you are looking for

  • SAP customer number unknown for installation number

    Hi There, We're facing some problems after a reconfiguration of some things in Solution Manager. We have SAP EHP 1 for SAP Solution Manager 7.0. Have made two days ago the installation of the latest SP, but not the kernel yet. The problem is in the j

  • Workflow for Relese Purchase Order ....??

    Hi experts, I did Relese procedure for Purchase order . its working through ME29N for relese PO. there was a 2 leves to relese PO 100 euro - 1000 2nd leves for relese 1000 Euro - 10000 Euros after relesing first level system has to send mail or popup

  • SQL Injection with CF7 and MS SQL 2005

    I looked through a bunch of SQL injection posts and couldn't find a definitive answer to this... Let me introduce this by saying that I know I should be using CFQUERYPARAM with EVERY CF variable in a CFQUERY tag. No excuses. But for a necessary quick

  • Missing my 10% extra bonus trade in credit yet again.

    I traded in Wolfenstein: The New Order today for PS4. I was supposed to get an extra 10% bonus, but surpise..it was not added again. Every time I ask the employees to make sure my 10% is added, they give me a deer in the headlights look. It's a bit a

  • Manual for rsync?

    Can someone, in simple terms, explain how I can use rsync within Terminal, to make a back-up of a folder for me. I have an external hard drive, and on there I've made a folder and all my music is on there. All my music is also on my Macbook Pro, and