Problems running code from IDE

Hi
recently installed eclipse mars for cpp. I wrote a program , which was succesfully compiled. But running the same from IDE doesnt give expected results . I ran the generated exe file from windowsexplorer , it works wine .I cant see the output from console screen in IDE any suggestions,
thanks in advance

What happens when you right click on the project in the project explorer, point to "Run as" and click on Local C/C++ Application?
-- L. James
L. D. James
[email protected]
www.apollo3.com/~ljames
aswin ajayan wrote on Fri, 31 July 2015 03:01Hi
recently installed eclipse mars for cpp. I wrote a program , which was succesfully compiled. But running the same from IDE doesnt give expected results . I ran the generated exe file from windowsexplorer , it works wine .I cant see the output from console screen in IDE any suggestions,
thanks in advance

Similar Messages

  • Problem in running code from web service

    All,
    We are experiencing a problem while running a code from a web service. The code based on ecliselink. The same code works from JUnit. When running from webservice, we observed the the following warning
    *0 WARN [[ACTIVE] ExecuteThread: '20' for queue: 'weblogic.kernel.Default (self-tuning)'] openjpa.Runtime - The configuration property named "openjpa.Id" was not recognized and will be ignored, although the name closely matches a valid property called "openjpa.Id".*
    *0 INFO [[ACTIVE] ExecuteThread: '20' for queue: 'weblogic.kernel.Default (self-tuning)'] openjpa.Runtime - Starting BEA Kodo 4.2.0*
    Does this mean it is picking kodo implementation? Our expectation is to use eclipselink implementation. What could this warning? Any pointers would be of great help.
    Thanks,

    Sounds like it is using Kodo, is anything from EclipseLink logged?
    Have you configured your JPA provider in your persistence.xml? If you have not, then you will just get the default.
    James : http://ww.eclipselink.org

  • Trying to run code from this weeks question of the  week

    i've copied the code from this weeks question of the week "sending an http req from a normal class." when i compile it everything looks fine. i've installed tomcat and it works. so i guess i am confused as to where i put the servlet class file??? and do i need to change a web.xml file?
    any help would be appreciated,
    erik

    for simplicity i just put Hello.class and HelloServlet.class in C:\tomcat\webapps\ROOT\WEB-INF\classes. i still cannot get this to work. here are my source files:
    Hello.java:
    import java.net.*;
    import java.util.*;
    import java.io.*;
    public class Hello {
    public static void main(String args[]) {
    ObjectInputStream is;
    URL url;
    String uri =
    "http://localhost:8080/HelloServlet";
    HashMap hash = new HashMap();
    try {
    //calling the servlet by passing params
    url = new URL(uri + "?&name=MyName&age=25");
    // open input stream and read the hashmap
    // returned by the servlet
    is = new ObjectInputStream(url.openStream());
    hash = (HashMap) is.readObject();
    // print it out
    System.out.println(hash);
    } catch (Exception e) {
    e.printStackTrace(System.err);
    HelloServlet.java:
    import java.util.HashMap;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class HelloServlet extends HttpServlet {
    public void service(HttpServletRequest request,
    HttpServletResponse response)
    throws ServletException, IOException {
         // getting the parameters
    String name = request.getParameter("name");
    String age = request.getParameter("age");
         //putting them in a hashmap
    HashMap hm = new HashMap();
    hm.put("name", name);
    hm.put("age", age);
         //returning them
    try {
    ObjectOutputStream p = new                                    
         ObjectOutputStream(response.getOutputStream());
    p.writeObject(hm);
    p.flush();
    p.close();
    }catch (Exception e) {
    e.printStackTrace();
    can anyone see a problem. this code is supposed to be run from the command line. and i am doing that.
    thanks for the help,
    erik

  • I Got a new IPad Air and have problems running videos from the internet

    i'm having problem to run videos from internet news's site

    If you are running from Safari, it may be the site requires Flash player which most mobile devices don't have.
    Try downloading a mobile news app for your local network TV station.

  • Problems running code on a different PC, Executable runs on both PCs

    We recently transferred a LV 2010 license from one workstation to another one and tried running some LV code (LV 2010 code) and an executable made from the code at the "new" code development station.
    The executable runs without issues. The code won't initialize one of the two devices on a SBS MIL-STD-1553 interface card that's installed in the workstation.
    Why would the executable work so flawlessly while the code from which the executable was generated has issues? Seems it would have to be something to do with the new workstation and/or its SBS card.
    Any experience with these types of issues when migrating to a new development workstation (mine is running Win XP and LV2010) are much appreciated.
    Thanks,
    Jeffrey Bledsoe
    Electrical Engineer
    Solved!
    Go to Solution.

    I was using the F067L1 microcode in the PASS 3200 card. GE support said that version of microcode is for the PASS 3200 app and not the Integrated Avionics Avionics Library (i.e., the library of the functions in their DLL).
    I updated the microcode to the F040M8 version GE provided. The LV code works now.
    The DLL is an older version, dated 12/18/2002. It's working with the LV code but we'll consider updating the DLL in the future.
    Thanks,
    Jeffrey Bledsoe
    Electrical Engineer

  • Problems Running out of IDE (Netbeans) LDAP SSL

    I am kind of new to Java and I have a problem with a code that is using a TrustStore. Basically if I run the code within Netbeans everything work but if I do the "Clean and Build" and execute the JAR file when I check my logger out when running out of the IDE I am getting the following exception.
    Mar 06, 2015 9:40:58 AM ad_pass_reset.AD_Pass_reset INFO: Bind error: javax.naming.CommunicationException: WIN-A321J1VGM4K:636 [Root exception is java.lang.ExceptionInInitializerError]
    Which is caused by this part
    public AD_Pass_reset() {   
                Logger logger = Logger.getLogger("MyLog"); 
                try {
                    Hashtable ldapEnv = new Hashtable();
                    ldapEnv.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
                    ldapEnv.put(Context.PROVIDER_URL, "ldap://" + serverIP + ":636");
                    ldapEnv.put(Context.SECURITY_AUTHENTICATION, "simple");
                    ldapEnv.put(Context.SECURITY_PRINCIPAL, DAUser);
                    ldapEnv.put(Context.SECURITY_CREDENTIALS, DAPass);
                    ldapEnv.put(Context.SECURITY_PROTOCOL, "ssl");
                    ldapContext = new InitialDirContext(ldapEnv);
                catch (Exception e) {
                    logger.info("Bind error: " + e);
                    System.exit(-1);
    And from what I have found the Bind error could be caused because the code is not able to use the Certificate, here is how I call the truststore
         String keystore = "C:\\Program Files\\Java\\jre7\\lib\\security\\securitycacerts";
         System.setProperty("javax.net.ssl.trustStore",keystore);
         System.setProperty("javax.net.ssl.keyStorePassword", "12345!");
         System.setProperty("javax.net.debug", "all");
    I know that my LDAP is works with the SSL because I can connect using the LDP.exe and in fact if I run my application using netbeans everything works.
    Does anybody know how to get around this?
    Thank you

    I am kind of new to Java and I have a problem with a code that is using a TrustStore. Basically if I run the code within Netbeans everything work but if I do the "Clean and Build" and execute the JAR file when I check my logger out when running out of the IDE I am getting the following exception.
    Mar 06, 2015 9:40:58 AM ad_pass_reset.AD_Pass_reset INFO: Bind error: javax.naming.CommunicationException: WIN-A321J1VGM4K:636 [Root exception is java.lang.ExceptionInInitializerError]
    Which is caused by this part
    public AD_Pass_reset() {   
                Logger logger = Logger.getLogger("MyLog"); 
                try {
                    Hashtable ldapEnv = new Hashtable();
                    ldapEnv.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
                    ldapEnv.put(Context.PROVIDER_URL, "ldap://" + serverIP + ":636");
                    ldapEnv.put(Context.SECURITY_AUTHENTICATION, "simple");
                    ldapEnv.put(Context.SECURITY_PRINCIPAL, DAUser);
                    ldapEnv.put(Context.SECURITY_CREDENTIALS, DAPass);
                    ldapEnv.put(Context.SECURITY_PROTOCOL, "ssl");
                    ldapContext = new InitialDirContext(ldapEnv);
                catch (Exception e) {
                    logger.info("Bind error: " + e);
                    System.exit(-1);
    And from what I have found the Bind error could be caused because the code is not able to use the Certificate, here is how I call the truststore
         String keystore = "C:\\Program Files\\Java\\jre7\\lib\\security\\securitycacerts";
         System.setProperty("javax.net.ssl.trustStore",keystore);
         System.setProperty("javax.net.ssl.keyStorePassword", "12345!");
         System.setProperty("javax.net.debug", "all");
    I know that my LDAP is works with the SSL because I can connect using the LDP.exe and in fact if I run my application using netbeans everything works.
    Does anybody know how to get around this?
    Thank you

  • Problem Running Code Behind JOptionPane

    I'm writing a program that automatically copies some files for me from different directories.
    What I want is as files are being copied, a dialog box that says "Currently moving file <filename>" and this message would update every time a new file is being moved. The problem I'm having is that the JOptionPane stops code until it gets closed so basically it'll pop up saying "Currently copying file file1" but then it won't actually copy the file (or any other file) until I close the JOptionPane window.
    Is there a way that I can get code to run in the background while keeping the JOptionPane window open?

    I discovered that the dialog isn't being updated because it is inside a loop and is being blocked by the thread. I found that the solution is to use the invokeLater() method. Even though it seems I've followed the syntax correctly, it is not running properly. Instead, it updates to "Currently copying <filename>" AFTER the files have copied.
    This is the code:
    for(int j = 0; j < files.length; j++)
         // get current file for moving
         final File file = new File(files[j].toString());
         // move the file
         File destDir = new File(showsTable.getModel().getValueAt(i, 2).toString());
         SwingUtilities.invokeLater(new Runnable()
              public void run()
                   statusPane.setMessage("Moving file " + file.getName());
         if(!file.renameTo(new File(destDir, file.getName())))
              System.err.println("Error moving file " + file.getName());
         else
              filesMoved = true;
    }Edited by: hiddens3crets on Oct 26, 2009 6:28 PM

  • Safari font(?) problem - running out of ideas!

    Hi,
    I'm having some Safari issues. I've been through the forums, and tried everything, but it's still happening.
    The problem: certain pages are all jumbled, links aren't... well, aren't links. And some pages don't show text at all. Here's an example from my work email:
    What I've tried already:
    font finagler
    font smasher
    cleared the font cache
    never had Times Phonetic or Helvetica Fractions
    Disabled Helvetica Neue
    fixed duplicate fonts
    never use font sizes smaller than 9 in Safari advanced preferences
    no user-specified style sheet
    no safari enhancing programs (actually, I have Inquisitor, but the problem existed prior to installing it)
    it's happened both on the new safari beta and the latest official release
    Have tried both Western (ISO Latin 1) and Mac OS Roman Default Encoding.
    I've restarted after making each of these changes.
    Help! I'm sick of going back to Firefox every time I run into one of these sites!
    many thanks.

    Hi Lili and welcome to the forums!
    Can't guarantee that it will work, but it would do no harm to try this:
    Empty Safari's cache (from the Safari menu), then close Safari.
    Go to Home/Library/Safari and delete the following files:
    form values
    download.plist
    Then go to Home/Library/Preferences and delete
    com.apple.Safari.plist
    Repair permissions.
    Start up Safari again, and things should have improved.

  • Problem running Itunes from external hard drive- Please Help!

    So, last night I transferred my entire music folder over to an external hard drive. It copied all the files and I then proceeded to tell itunes where my new music folder was located. The problem I ran into was when I actually deleted the music files from my internal hard drive my library won't automatically find the files. When I click on a song it comes up with an error message saying, "original file cannot be found, would you like to locate file?". If I tell it yes, I can then manually tell it where the file is, and it will play. I'm really hoping there is an easier way around this issue because going in and doing this for every song in my library would take years. Should I clear out the library and then drag it from the external hard drive? Any help would be greatly appreciated. Thanks a lot.
    Sean

    I am experiencing a similar problem. I already had all my files on an external drive, where I had transfered them a few months back, and everything was working fine. I have now moved them, again, to a larger external drive, did everything the same, but now receive the message "original file cannot be found, would you like to locate file?" I was advised to use the "add to library" button under "FILE" in the menu bar and all the music was finally imported into iTunes, but the problem now is that the new data on the music files is missing all the metadata, and I am still stuck with all the original files with the "!" in front of each file that is going to have to be manually deleted one file at a time, all 30,000 of them. I would like a way to start over and get it right the first time. Anyone have any solutions? I have found a program, "Super Remove Dead Tracks" which should solve the problem of eliminating the "!" tracks, but so too all the metadata. Ideally I'd like to be able to locate the original files with all the attached metadata and get back to where I was 24 hours ago.

  • Problem viewing code from the SQL tab.

    I keep getting Oracle error messages ORA-31603 and ORA-06512 in the Logging Page when I try to view the SQL code of a view or stored procedure. The tables are there along with the data. I can write SQL code and pull/update/insert/delete from my tables so my connection appears to be good. Is there any settings I might be missing on SQL Developer properties? ANy and all help would greatly be appreciated. Also, I use to be able to see SQL code in an earlier version of SQL Developer.

    Burleson know:
    http://www.dba-oracle.com/sf_ora_31603_object_string_of_type_string_not_found_in_schema_string_bc1.htm

  • Problem run command from window

    Hello,
    I make a script for Indesign.
    I add menu with two item.
    First item opens a Dialog and it runs function, after click Save, that it add or modify xmlAttributes. It works !!
    Second item opens a Window and run function, after click Buttom element Save, that it add or modify xmlAttributes. It not works.
    I need to create a window, because I need to create dynamic dropdown with onChange event..
    Thanks for help!

    Making sqlplus work is one thing, but cloning a complete database is accelerating from 0 to 100 at the speed of a wink. I suggest you to get involved with recovery manager and recovery concepts. Once you understand how a recovery process is being carried out I suggest you this link: --> Clone a Database Using RMAN
    ~ Madrid
    http://hrivera99.blogspot.com/

  • Problems downloading and installing OS X Yosemite An error occurred while running scripts from the package

    Hi! I have problems downloading and installing OS X Yosemite.
    While downloading this message pops up:
    An error occurred while running scripts from the package \U201cwct8079783343594854923.pkg\U201d.
    and in /var/log/install.log i can see:
    MacBook-Pro installd[1086]: PackageKit: Install Failed: PKG: pre-install scripts for "com.apple.pkg.InstallMacOSX"\nError Domain=PKInstallErrorDomain Code=112 UserInfo=0x100193c00 "An error occurred while running scripts from the package “wct8079783343594854923.pkg”." {\n    NSFilePath = preinstall;\n    NSLocalizedDescription = "An error occurred while running scripts from the package \U201cwct8079783343594854923.pkg\U201d.";\n    NSURL = "#InstallMacOSX.pkg -- file://localhost/Users/username/Library/Application%20Support/AppStore/91504108 2/wct8079783343594854923.pkg#Distribution";\n    PKInstallPackageIdentifier = "com.apple.pkg.InstallMacOSX";\n}
    does anyone have an idea about this?
    thank you very much

    Mucked up installation. If the installer app is still in /Applications, delete it and start over.
    27" i7 iMac (Mid 2011) refurb, OS X Yo (10.10.2), Mavs, ML & SL, G4 450 MP w/10.5 & 9.2.2

  • Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbenc

    I get error when using jsp editor,
    I have debugged as what is causing the error
    and
    I found out that when I use jstl
    <c:forEach var="anything" varStatus="index">
    *${index.count}*
    </c:forEach>
    The code ${index.count} is causing the follwoing error
    !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
    !STACK 0
    java.lang.NullPointerException
         at oracle.eclipse.tools.common.services.ui.refactor.internal.ArtifactRefactoringEnablementTester.hasArtifactDefinitionAtOffset(ArtifactRefactoringEnablementTester.java:73)
         at oracle.eclipse.tools.common.services.ui.refactor.internal.ArtifactRefactoringEnablementTester.test(ArtifactRefactoringEnablementTester.java:60)
         at org.eclipse.core.internal.expressions.Property.test(Property.java:58)
         at org.eclipse.core.internal.expressions.TestExpression.evaluate(TestExpression.java:99)
         at org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:53)
         at org.eclipse.core.internal.expressions.WithExpression.evaluate(WithExpression.java:72)
         at org.eclipse.ui.internal.services.EvaluationResultCache.evaluate(EvaluationResultCache.java:74)
         at org.eclipse.ui.internal.services.ExpressionAuthority.evaluate(ExpressionAuthority.java:165)
         at org.eclipse.ui.internal.services.EvaluationAuthority.addEvaluationListener(EvaluationAuthority.java:79)
         at org.eclipse.ui.internal.services.EvaluationService.addEvaluationListener(EvaluationService.java:47)
         at org.eclipse.ui.internal.menus.WorkbenchMenuService.registerVisibleWhen(WorkbenchMenuService.java:884)
         at org.eclipse.ui.internal.menus.ContributionRoot.addContributionItem(ContributionRoot.java:60)
         at org.eclipse.ui.internal.menus.MenuAdditionCacheEntry.createContributionItems(MenuAdditionCacheEntry.java:188)
         at org.eclipse.ui.internal.menus.WorkbenchMenuService$5.run(WorkbenchMenuService.java:584)
         at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
         at org.eclipse.ui.internal.menus.WorkbenchMenuService.processAdditions(WorkbenchMenuService.java:656)
         at org.eclipse.ui.internal.menus.WorkbenchMenuService.addContributionsToManager(WorkbenchMenuService.java:744)
         at org.eclipse.ui.internal.menus.WorkbenchMenuService.populateContributionManager(WorkbenchMenuService.java:730)
         at org.eclipse.ui.internal.menus.WorkbenchMenuService.addContributionsToManager(WorkbenchMenuService.java:782)
         at org.eclipse.ui.internal.menus.WorkbenchMenuService.populateContributionManager(WorkbenchMenuService.java:730)
         at org.eclipse.ui.internal.menus.SlaveMenuService.populateContributionManager(SlaveMenuService.java:203)
         at org.eclipse.ui.internal.menus.SlaveMenuService.populateContributionManager(SlaveMenuService.java:76)
         at org.eclipse.ui.internal.PopupMenuExtender.addMenuContributions(PopupMenuExtender.java:357)
         at org.eclipse.ui.internal.PopupMenuExtender.menuAboutToShow(PopupMenuExtender.java:335)
         at org.eclipse.jface.action.MenuManager.fireAboutToShow(MenuManager.java:342)
         at org.eclipse.jface.action.MenuManager.handleAboutToShow(MenuManager.java:473)
         at org.eclipse.jface.action.MenuManager.access$1(MenuManager.java:469)
         at org.eclipse.jface.action.MenuManager$2.menuShown(MenuManager.java:495)
         at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:247)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1058)
         at org.eclipse.swt.widgets.Control.WM_INITMENUPOPUP(Control.java:4881)
         at org.eclipse.swt.widgets.Control.windowProc(Control.java:4557)
         at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
         at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1610)
         at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2061)
         at org.eclipse.swt.widgets.Display.windowProc(Display.java:4972)
         at org.eclipse.swt.internal.win32.OS.TrackPopupMenu(Native Method)
         at org.eclipse.swt.widgets.Menu._setVisible(Menu.java:256)
         at org.eclipse.swt.widgets.Display.runPopups(Display.java:4206)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3748)
         at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
         at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
         at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
         at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
         at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
         at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
         at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
         at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
         at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
         at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
         at org.eclipse.equinox.launcher.Main.run(Main.java:1410)

    Thanks for the post. This issue was noted recently, a bug was logged, and a fix has been made that will be part of the upcoming release of OEPE. Appreciate your support in reporting this issue.
    Kind regards,
    Carlin

  • Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".

    Hi experts,
    We are tryign to configure the server via sap as java in nwds 7.3 , and im getting the error as shown , not able to add the server  to my nwds .
    Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
    java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String
    at com.sap.sapmc.preference.Activator$2.propertyChange(Activator.java:107)
    at org.eclipse.ui.preferences.ScopedPreferenceStore$3.run(ScopedPreferenceStore.java:375)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.ui.preferences.ScopedPreferenceStore.firePropertyChangeEvent(ScopedPreferenceStore.java:372)
    at org.eclipse.ui.preferences.ScopedPreferenceStore.setValue(ScopedPreferenceStore.java:813)
    at com.sap.sapmc.preference.PreferencePageStorage.store(PreferencePageStorage.java:241)
    at com.sap.sapmc.preference.SAPSystemsPreferencePage.performOk(SAPSystemsPreferencePage.java:356)
    at org.eclipse.jface.preference.PreferenceDialog$13.run(PreferenceDialog.java:964)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.core.runtime.Platform.run(Platform.java:888)
    at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
    at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
    at org.eclipse.jface.preference.PreferenceDialog.okPressed(PreferenceDialog.java:944)
    at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.okPressed(FilteredPreferenceDialog.java:453)
    at org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.okPressed(WorkbenchPreferenceDialog.java:169)
    at org.eclipse.jface.preference.PreferenceDialog.buttonPressed(PreferenceDialog.java:233)
    at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3910)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3503)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
    at org.eclipse.jface.window.Window.open(Window.java:801)
    at org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.open(WorkbenchPreferenceDialog.java:211)
    at org.eclipse.ui.internal.OpenPreferencesAction.run(OpenPreferencesAction.java:65)
    at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
    at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3910)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3503)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
    Regards
    Govardan

    Hi Govardan,
    does this help to you?
    See the topmost entry at
    NWDS Troubleshooting - Java Development - SCN Wiki
    Regards,
    Ervin

  • How to change Crystal Reports XI database name at run time from ASP code using ADO

    Dear All,
    I need advises regarding to my problem below
    I have two database in same SQL 2005 SERVER for TEST01 and LIVE01 Environtment, and I've created more than 100 reports with Crystal Reports 11 and call it from ASP classic page.
    The problem is how can I change a database from TEST01 to LIVE01 at the run time from ASP code as I already using TEST01 database on Crystal Reports and I do not want to set a new database location inside crystal for each reports
    Thanks and wait for your reply soon.
    Below is my code, which has no effect to crystal reports although I've change the database from TEST01 to LIVE01:
    <%
    Dim oADOConnection, oRptTable, oADORecordset, sql
    Dim struser, strpwd, strdriver, dblocation, dbname, strConnect
    struser = "sa"
    strpwd = ""     
    strdriver = "{SQL SERVER}" 
    dblocation = "SQL200501"     
    dbname = "LIVE01"    ' Changed from TEST01 to LIVE01
    strConnect = "User Id=" & strUser & ";"
    strConnect = strConnect & "PWD=" & strPwd & ";"
    strConnect = strConnect & "DRIVER=" & StrDriver & ";"
    strConnect = strConnect & "SERVER=" & DBLocation & ";"
    strConnect = strConnect & "DATABASE=" & dbName
    sql="Select * from Employee"
    Set session("oApp") = Server.CreateObject("CrystalRuntime.Application.11")
    Set session("oRpt") = session("oApp").OpenReport("C:\REPORTS\RPT01.RPT", 1) 'USING TEST01 DATABASE
    session("oRpt").MorePrintEngineErrorMessages = False
    session("oRpt").EnableParameterPrompting = False
    session("oRpt").DiscardSavedData
    Set oADOConnection = Server.CreateObject("ADODB.Connection")
    oADOConnection.Open (strConnect)
    Set oADORecordset = Server.CreateObject("ADODB.Recordset")
    Set oRptTable = session("oRpt").Database.Tables.Item(1)
    oRptTable.SetDataSource oADORecordset, 3
    session("oRpt").SQLQueryString = CStr(sql)
    session("oRpt").ReadRecords
    %>

    Did you ever find a solution to this problem?  I have the same problem when moving reports from development to Test to Production environments.  If the DBName is not the same the report ignores the name provided at runtime.

Maybe you are looking for