Error in coding in Eclipse SDK

I'm getting the following error:
The method setFirewall(Firewall) in the type InternetQuery is not applicable for the arguments (Firewall)
It also happens in these other instances:
The method setInteraction(Interaction2D) in the type Draw2D is not applicable for the arguments (Interaction2D)
Even weirder is there are two copies of this class (Not my code) yet the other identical class doesn't have this problem. The only difference is the package, but dragging one into the other's package doesn't change anything.
My confusion results from me sending the exact object to the method that it's supposed to take as a parameter, yet Eclipse doesn't seem to realize that. I've tried running it through javac as well to see if that helps (I'm on a redhat linux VPM), but that didn't work either.
Any ideas on what to do?
I've tried casting the inputs to see if that would help, and no luck. I also tried Eclipse's recommended fixes, but those created other problems. If you know how to use Eclipse's recommended fixes that could help as well. Thanks in advance for any responses.

This sounds like a very simple problem, made more
difficult by a large number of classes. I'm not sure
that it's something that can really be solved on a
discussion forum, due to the large number of classes.
However, here are some things to think about:
1) Start by understanding your package structure. I
don't know if you're using 3rd-party code from a jar,
or if you've written everything. In the former case,
use "jar tvf" to get a listing of the contents of the
JAR. In the latter, use "find" (on Linux, probably
the search command on Windows) to get a listing of
all your .java file.
Correct, the code is 3rd party. I'll do that once I get the chance, which should be shortly. I can see all the classes as is in the project workspace though.
2) If you're using default packages anywhere (no
"package" statement at the top of the java file),
don't. Put all your code into packages.
I'll check, but I'm pretty sure there isn't. Eclipse shows the default package in the hierarchy, and that's not listed, so it would follow that it doesn't exist. I'll check anyways though.
3) Look at the files that are having problems, and
make sure that you import the proper classes (based
on the inheritance hierarchy in your project).
I'll check about importing the proper files as well.
If all of those are not the case though, is there anything else you could think of that it would be?
Part of the problem with this as well is thatwhile
importing the classes from other packages allowthe
class to be compiled in Eclipse, compiling them ina
terminal using the javac command doesn't work, asit
can't recognize the packages.It sounds like you haven't set up your compile-time
classpath. If you have classfiles in different
directory trees (or JARs) you'll need to specify the
-classpath option to javac. You'll also need to
compile the classes in the order of their
dependencies.
Okay, I'll toy around with that. That would make sense, as each package as its own directory.
As a side note, in the future it will help if you
paste the exact error message, along with the code
that it refers to.
Will do.

Similar Messages

  • Error during installation:"Invalid Eclipse platform version" (have 3.0RC3)

    I saw a new version of bpel designer on otn for download. As I hoped that it would solve my previous problem ('db schema not found') I downloaded and tried to install it.
    Unfortunately I get an error during installation: "Invalid Eclipse platform version". I know that at least version 3 has to be installed. The .eclipseproduct file tells me that it is version 3.0.0. I have downloaded and installed the Eclipse SDK 3.0RC3 version a couple days ago. So it looks like that the version is OK. But I can't get around this error message.
    Any ideas?

    I've downloaded the GA version of Eclipse and it works now.
    During the installations I saw some minor things that I'll share with you:
    - path to the bpel server can be left empty, however there is a '/' already. So you have to chose a directory or delete it before you can go further otherwise an error appears. Maybe it is easier to not have the '/'.
    - I wanted to have the designer and PM in the same directory. But choosing the same dir led to a warning for overwriting the dir. I didn't dare thus now I have 2 dir's. ( 1 for designer and 1 for PM).
    -After installation I don't have entries in 'Start''Programs''oracle' to start the PM. This was also the case with the previous version. I start PM via the 'bat'-files under the PM/bin dir.
    - starting the batch file: startOraBpel.bat starts with an error; "The system cannot find the file C:\WINNT\system32\cmd.exe /e:4096."
    - Last but not least: I hoped that this would solve my re-install problem 'cannot lookup db schema version' but unfortunately that's not the case.

  • Installation error:  Cannot find a J2SE SDK installed at path C:\Program Fi

    I am installing latest version of SQL Developer, Release 1.2. I have Sun Java 2 Standard Edition Version 1.5.0 (build 1.5.0_10-b03). When I browse and select the java.exe found it comes up with error: Cannot find a J2SE SDK installed at patch
    C:\Program Files\Java\jre1.5.0_10
    I am installing the version I downloaded for Windows systems with JDK1.5.
    I have tried on two different machines.
    Any ideas?

    This is going to seem loooong, but comprehensive.
    I'd initially always suggest using the bundled
    package, since that's supposed to be a tested and
    proven combination.You know what, I'm gonna be mighty surprised if you're implying that Oracle hasn't 'tested and proven' the releases at http://www.oracle.com./technology/software/products/sql/index.html other than the first 77 MB download labeled Oracle SQL Developer for Windows... :)
    After having problems with a graphics card for
    example, installing the latest JDK might be
    indicated.Huh?!? Not a clue what you're talkin' 'bout! :S
    It's also easy for users who don't know which Java
    version to download, or even where to find it! You
    guys have proven that: although it's stated you need
    .First of all, it says right there on the download page (http://www.oracle.com./technology/software/products/sql/index.html) that:
    "JDK 1.5 (JDK 5.0) is required. This is the minimum JDK version required"
    And we've "proven that [..] although it's stated you need the JDK, [we]'ve tried running with the JRE" and have NOT been able to run the application. It just presents the user a dialog box to locate the 'SDK' manually and exits gracefully if you try to dismiss it. So, conclusively proven, the JDK (or as SQL Developer puts it, Java SDK) is required- QED.
    And given users might have several versions running
    on the same machine (I have half a dozen), sqldev
    could easily pick up a wrong version.And every JRE installation (atleast all of Sun's) make sure they update the default (via PATH and other required system variables) JRE point to the latest one installed. So if you have anything 1.5+ you're good to go; if not, you've got an incompatile JRE. Doesn't sound that hard to me!
    As for being bulky, even without the bundled JDK, it
    still is.Ya missed the point. Developers are making Java applications bulkier by including the JRE/JDK with their distributions. A SQL Developer release sans JDK is about 46 MB; with JDK that climbs to 77 MB (sizes quoted from download page linked above).
    Imagine what happens when you have, besides SQL Developer (JDK 1.5 included), some-cool-java-app that also includes the JRE/JDK it was built on; and then another-java-app that also includes a JRE/JDK... I bet JDeveloper also comes with a JDK bundled in. So, now you have FOUR copies of JRE/JDK (aside from the "have half a dozen" that probably installed themselves via Java Update Checker)!
    Here's the big picture, the savings in disk space would only be the beginning of your benefits. Here's a few others:
    - Class Data Sharing (http://java.sun.com/javase/6/docs/technotes/guides/vm/class-data-sharing.html) introduced in Java SE 5.0 provides for storing definitions of commonly used classes in a representation closer to machine code, even closer than bytecode, this reducing load and startup time. Plus all VM's launced using that particular distribution get to share the cache- Performace+ !!
    Running each app offa' it's own VM just causes multiple caches to be loaded. You just multiplied your losses! :(
    - Sun is currently working on a way to have applications simply inject into a running JVM. That way, there is no load and startup time for the JVM, just the time to load you app classes. Using different distros would completely defeat this!
    (The reason why this feature isn't out yet is because they're still trying to make it possible to specify hitherto VM configurations like security and logging as application configurations. Then there's also the issue of setting up class loading boundaries between applications.
    You say you don't have to bring over the VB runtime
    for each app? I remember in the 90's doing it all the
    time. Of course, being MS, now that's not necessary
    anymore, since it's "magical" Windows. I don't have
    any machine from Sun, but for sure they've got Java
    bundled with it, right?I don't believe you had to do that since VB 5; and that's because MS realized that they messed up on this very point upto then! Sun worked the simple solution to that into their deployment strategy- install only ONE runtime and run all apps off that. As for you're half-a-dozen, I think you can safely uninstall the five older versions; because, even today, people are running apps developed using JDK1.1 on Java SE 6.0!
    Again, I find the most logical difference between JRE
    and JDK being the debugger. As you say it yourself:
    JRE for end-users, who don't need to do any
    debugging.
    Now, sqldev is not just a table browser, but also for
    debugging PL/SQL. 1 + 1 = 2.I think it's a little naive to differentiate between the JRE and JDK on just the debugger! Aside from the obvious inclusion of a compiler, the JDK has several other tools for monitoring/managing the heap, threads and logging on the fly. There's also the Doclet API and Sun's javadoc implementation, dev interfaces for instrumenting the VM, native interfaces, ...
    And I reiterate, we're talkin' PL/SQL developers here. Why would I want to give a PL/SQL developer a Java Development Kit?!? ;|
    Nevertheless, as said in the other thread, if the
    team discloses how to circumvent the SDK check at
    startup, you can go ahead and use the JRE. In any
    case, you'd have to agree that won't work as
    out-of-the-box solution...You're right, it won't work like a standard Windows OOTB app. But, it WILL work as a Java OOTB that only mandates that there be a JRE available; just like the scores of Java apps out there- from tiny little Pong clones to large IDE's like NetBeans.
    BTW, don't even think about quoting Websphere/Rational/Eclipse as counter-arguments. They are the biggest offenders as far as this issue goes. And jikes is an abomination, a curse Sun must carry as a result to opening the VM Spec. But, I digress...

  • Jre disappeared from C:\Program Files\eclipse-SDK-3.5.1-win32\eclipse\

    Every morning I open Eclipse on the same computer with no problems.
    One morning, jre folder disappeared from C:\Program Files\eclipse-SDK-3.5.1-win32\eclipse\
    As a result, I could not open eclipse, until I have realized, jre is not there anymore...
    Why? Windows updates? I have never pressed "yes" on such updates.....
    I do not know the reason for it and how to prevent it for the future.
    Thanks

    Now that there are pre-combined distributions of AIR 3.5 SDK with ASC 2.0 Preview 4,
    http://labs.adobe.com/technologies/asc2/
    ...you could avoid attempting an overlay. Try:
    1. Closing FB 4.7.
    2. Backing up FB 4.7's old AIRSDK folder by renaming it to something else.
    3. Unzipping the pre-combined AIR 3.5 SDK with ASC 2.0 Preview 4 and putting it in place of the old AIRSDK folder with the exact name.
    4. Starting FB 4.7.
    FB 4.7 does plan to offer in-tool upgrades to official AIR SDK with ASC 2.0 distributions.

  • Seeting up Eclipse SDK for windows

    Hi:
    I downloaded the Eclipse SDK.exe onto my computer and in a folder on desktop.
    The path is c:\windows\desktop\Eclipse.exe. How do I go from here as far as installation and using java?I am new to java.
    Thanks

    1) double-click on eclipse.exe
    2) read the intro and do some tutorials
    3) READ A BOOK ABOUT JAVA or go through the tutorial to your left.
    Cheers, HJK

  • Error while configuring Eclipse SDK for Oracle Utilities SDK 2.2

    Hi.
    I'm installing an Enterprise Taxation Management development workstation. I followed the install guide from top to bottom.
    The application server is ok, the SDK seems to be OK.
    I executed 'configureEclipse.exe' and made manual configurtions -as the install guide reads-. The eclipse project was created, but it has 2 missing libraries.
    When I open eclipse, it shows the following errors:
    Project EclipseProject220 is missing required library: 'lib/ojdbc5-11.1.0.6.0.jar'
    Project EclipseProject220 is missing required library: 'lib/spl-ccb-2.2.0.jar'
    My questions is ¿where do I get those jar files?
    About the environement:
    The develpment workstation is a laptop running Windows 2003 server, with ETM v2.2.0 Application Server installed. 3rd party SW is installed ok (appropiated versions). Web Server is Apache Tomcat v6.0.13. Eclipse v3.2.2. Oracle Utilities SDK v2.2.0.5 installed.
    Database is installed on another computer, running Windows XP with Oracle Database 11i, connected on a LAN.
    Thanks in advance.

    I had these problems too..
    I suppouse you're installind TAX (ETM) so the library you need is lib/spl-tax-2.2.0.jar'
    On the other hand, the othe 'lib/ojdbc5-11.1.0.6.0.jar' eclipse is asking for. I changed it for 'lib/ojdbc5-11.1.0.7.0.jar'
    After change these libs I can run the generator and deploy scripts even when i don't know jet how to develop.
    Dou you have some cookbooks for developing (algorithnms, modify native clases, ect) you'd like to share??
    Thanks a lot.

  • Error Messages/Building Plug-ins with Eclipse SDK or VCExpress 2005

    Hi,
    I am an newbie in building InDesign-Plugins. I have installed the Adobe InDesign Plug-in Editor on my Windows XP PC (InDesign CS3 SDK, Eclipse, JRE 1.5, Visual Studio 2005 (VCExpress Edition for C++)).
    I tried to build one of the example Plug-ins with Eclipse. After startting the build process of the "transparencyeffectui"-example or the "DollyXs"-example the following message appears:
    Buildfile: F:\SDK\workspace\DollyTest\build.xml
    win:
    [echo] Now compiling FR file F:\adobe_indesign_cs3_products_sdk_503win\source\sdksamples\dollytest\Dolly.fr for win
    [delete] Deleting: F:\SDK\workspace\DollyTest\ODFRC.res
    [echo] FR Compilation Complete: Attempting to build C++ files...
    BUILD FAILED
    F:\SDK\workspace\DollyTest\build.xml:66: Execute failed: java.io.IOException: Cannot run program "D:\Programme\Microsoft Visual Studio 5\Common7\IDE\devenv.com": CreateProcess error=2, Das System kann die angegebene Datei nicht finden
    Total time: 485 milliseconds
    The compiler did't start because the file "devenv.com" is missing in the "Microsoft Visual Studio 2005/Common7/IDE"-directory.
    The free "Visual Studio Express Edition" is delivered withot this file.
    Where can i get this file? Or is it possible to change the exec line in the built-xml-file to get the Compiler started?
    So I started the VCExpress-Programm an opened the transparencyeffetui-Project-File to start the build process. But again i got an error message:
    1>------ Erstellen gestartet: Projekt: TransparencyEffectUI, Konfiguration: Debug Win32 ------
    1>Performing Custom Build Step
    1>Compiling...
    1>VCPlugInHeaders.cpp
    1>f:\adobe_indesign_cs3_products_sdk_503win\source\precomp\common\WShukHeaders.h(70) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
    1>Build log was saved at "file://f:\adobe_indesign_cs3_products_sdk_503win\build\win\objD\TransparencyEffectUI\Bui ldLog.htm"
    1>TransparencyEffectUI - 1 error(s), 0 warning(s)
    ========== Erstellen: 0 erfolgreich, Fehler bei 1, 0 aktuell, 0 übersprungen ==========
    There is no "windows.h"-file in the SDK directory. I tried to include all available SDK-"inculde"-directories to the VC++ directories in the option menue in VCExpress but i got the same error message.
    Any ideas how to get the plug-in build with Eclipse or Visual Studio Express 2005 (C++)?
    zaphodbeeblebroxxx

    OK, so first some background:
    1) The basic process goes like this:
    a) one release doc (edited by the developer, presumably) and the
    template docs are copied to the build area
    b) Each doc is unzipped (ODT's are just ZIP files) into a subdir
    c) The doc contents are copied around; this is to allow Ant to
    replace its special @VAR@ variables in the document content
    d) The docs are zipped back up into ODTs
    e) The ODTs are converted into PDFs using OOo's macro functionality
    Here are the troubleshooting steps I would apply:
    1) Make sure the external.odt file exists - check the build area
    (//content/build/<pluginname>/tmp/) and can be opened using normal
    OpenOffice
    2) Check that the release.odt file exists (same location) and can be
    opened using normal OpenOffice
    3) See if you can manually convert the external.odt file into a PDF -
    the command we use is simply:
    soffice -invisible
    macro:///Standard.Collectors.External2PDF(${pkgdir}/tmp/external.odt)
    (replace ${pkgdir} with the build directory path).
    If all that works, then the Ant build process should work.
    Also - what does that OpenOffice error popup say?
    DCorlette
    DCorlette's Profile: http://forums.novell.com/member.php?userid=4437
    View this thread: http://forums.novell.com/showthread.php?t=416875

  • Eclipse SDK 2.2.0.3 Error - ClassNotFoundException

    I am trying to set RMB (Financial Services version of CCB) development environment including Eclipse RMBSDK (ver 2.2.0.3) in a Windows 64 byte machine and are facing an issue while trying to invoke any SPL plugin like New - Batch Control or Page Service or Algorithm Implementation class. The error that we get is as below,
    !SESSION 2013-03-04 05:53:51.018 -----------------------------------------------
    eclipse.buildId=M20120914-1800
    java.version=1.6.0_37
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_GB
    Command-line arguments: -os win32 -ws win32 -arch x86_64
    !ENTRY org.eclipse.ui 4 0 2013-03-04 05:54:21.953
    !MESSAGE Unhandled event loop exception
    !STACK 0
    java.lang.NoClassDefFoundError: com/splwg/tools/artifactgen/utils/StringUtils
         at com.splwg.eclipseEditors.wizards.helpers.AbstractWidgetHelper.addLabelTo(AbstractWidgetHelper.java:79)
         at com.splwg.eclipseEditors.wizards.helpers.AbstractWidgetHelper.addTo(AbstractWidgetHelper.java:104)
         at com.splwg.eclipseEditors.wizards.helpers.WidgetFactory.installPropertyWidget(WidgetFactory.java:107)
         at com.splwg.eclipseEditors.wizards.helpers.WidgetFactory.installWidgetsFor(WidgetFactory.java:93)
         at com.splwg.eclipseEditors.wizards.NewTypeAndAnnotationWizardPage.createAnnotationControls(NewTypeAndAnnotationWizardPage.java:168)
         at com.splwg.eclipseEditors.wizards.NewTypeAndAnnotationWizardPage.createControl(NewTypeAndAnnotationWizardPage.java:142)
         at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:174)
         at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:736)
         at org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:608)
         at org.eclipse.jface.window.Window.create(Window.java:431)
         at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089)
         at org.eclipse.ui.internal.actions.NewWizardShortcutAction.run(NewWizardShortcutAction.java:122)
         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:1053)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
         at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1029)
         at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
         at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:923)
         at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
         at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
         at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
         at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
         at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
         at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
         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:353)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
         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:629)
         at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
         at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
    Caused by: java.lang.ClassNotFoundException: com.splwg.tools.artifactgen.utils.StringUtils
         at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
         at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
         at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
         at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
         ... 41 more
    I have done with number of troubleshooting steps like ensuring spl-tools.2.2.0. jar is present in eclipse project build path / Environment path, etc.

    Thanks for your reply
    All the need information is available doc ID 858420.1 and DOC ID 1210804.1 on oracle support website.
    Regards
    AK

  • Eclipse SDK Extension with DS

    Hi,
    I have installed the SAP DS sdk samples components and eclipse in my machine. I have configured the sample SDK components in Eclipse and i am able to run the eclipse and call the Design studio and the sample components are displayed in the Design studio saved the report in my favorites Bi platform.
    Now closed the eclipse, and opened the design studio and tried to open the report in my favorites which i saved,the reports open but it displayed the error saying that need to install or update the listed extension to see the added sdk sample components.
    Please help me out the steps to install the SDK Sample components in Design Studio directly. I have tried in tools install extension to design studio and the file i have selected is the SDK sample. zipped file(DS_12_SDK_SAMPLES.zip! it throws the error 
    Pop up message : Failed to discover all connectors
    Repository discoverey strategy failed with an error
    failed to proess repository contents
    No repository found at
    jar:file:/C:/Users/E876453/Downloads/Ds_12_SDK_samples.zip!/.
    Regards,
    Ramesh

    Guys.
    This is at least the 5th time I've seen people having this problem.  You cannot ever simply install the SAP SDK .ZIP source files to Design Studio without putting them in an Eclipse Feature Project so that you can bundle them in a bundled, deployable form.
    This means you must do that yourself.  Please review section 3.3 of the SDK Guide which explains step by step how you must do this:
    http://help.sap.com/businessobject/product_guides/AAD13/en/ds13SP01_dev_guide_en.pdf
    Please, please, please read the documentation.
    Depending on who is releasing these SDK extensions, some people choose to provide the source only, and other people will provide the source, and a pre-bundled version.  SAP has only released the source projects so you have more work to do.
    Not everybody is an SDKer so I have opted to pre-bundle anything I give out.  (I'd do it for SAP's examples, too but it's not my work.)

  • Error when running report using SDK

    Hi, I am getting following error when I am running a report  in boxi r2 sp3 on IIS. Infoview and CMC runs fine but SDK application is not able to connect to CMS. This error does not come all the time. It happens intermittently.
    Error in RetrieveReport: Unable to connect to cluster @hisuatcluster to retrieve updated CMS member list. Logon cannot continue.
    Anyone has seen this and any way to pin point the cause. We have used -ns and -port switch in the command line of CMS and all servers.
    Thanks,

    will try that. But we would not be leveraging cluster benefit then. What happens if that particilar CMS in cluster goes down.
    Below is the logic of SDK.
    1.     Create an EnterpriseSession by calling SessionMgr.Login(the credentials we use to connect on in the web.config file).
    2.     Get a reference to the InfoStore with EnterpriseSession.GetService(u201CInfoStoreu201D)
    3.     Get a reference to the report as an InfoObject by querying the InfoStore u2013 InfoStore.Query(u201CSELECT * FROM CI_INFOOBJECTS WHERE u2026u201D)
    4.     Get a reference to the RASReportFactory u2013 EnterpriseSession.GetService(u201Cu201D, u201CRASReportFactoryu201D)
    5.     Open the report using the InfoObject (line 3) and RASReportFactory (line 4) u2013 ReportClientDoc = ReportAppFactory.OpenDocument(InfoObject.ID, 0)
    6.     Manipulate the reportu2019s connection information.
    7.     Set the vieweru2019s report source with the report (this is commented out in the current tests) u2013 CrystalReportViewer.ReportSource = ReportClientDocument
    8.     Close the session u2013 EnterpriseSession.Logoff()

  • XML Parsing Error (that works in Eclipse)

    I have been working on an application using JIDE this afternoon.
    I have been using some of the examples that are provided.
    To start with I did the usual copy and paste action on one of their examples into JDeveloper so I could run it and walkthrough the code.
    Unfortunately it did not run properly and it was throwing the error below (in italics) at this line of code;
    InputStream layoutFileInputStream = (getClass().getClassLoader().getResourceAsStream(nameOfLayoutFile));
    Exception in thread "main" java.lang.IllegalArgumentException: InputStream cannot be null
         at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:94)
         at com.jidesoft.swing.AbstractLayoutPersistence.loadInitialLayout(Unknown Source)
         at project.dev.workbench.view.frame.WorkbenchFrame.loadInitialLayout(WorkbenchFrame.java:77)
         at project.dev.workbench.view.frame.WorkbenchFrame.buildWorkbenchFrame(WorkbenchFrame.java:65)
         at project.dev.workbench.view.DevWorkbench.main(DevWorkbench.java:34)
    I am presuming that it is a conflict with something in JDeveloper, a colleague of mine tried to run the same code in Eclipse and it worked fine.
    I managed to get it to work in JDeveloper by removing the following piece of code
    .getClassLoader()
    Any thoughts would be appreciated.
    Thanks
    David

    Use
    InputStream layoutFileInputStream = Thread.currentThread().getContextClassLoader().getResourceAsStream(nameOfLayoutFile);

  • Error while building  the eclipse using exadel tool

    hi all
    i m facing a problem while building project using eclipse tool called(exadel ).it gives error like "integarted external building tool error - : variable references non existent resource :${workspace_loc:/my project not found}".
    so if anybody have idea about above pls let me know

    This problem come directly from your Exadel or Eclipse IDE itself.
    It means that a directory (which is your project directory) is not available in your worspace dir.
    usually workspace dir is inside your user home dir.
    check to see whether this folder exisits or not.

  • Error while deploying the Eclipse Link Application into Server

    Hi guys,
    i tried to deploy the application using Eclipselink into the server. but i got the following exception:
    Error processing persitence unit EJBModel of module WLEclipseLinkDemo-ejb.jar: Error instantiating the Persistence Provider class org.eclipse.persistence.jpa.PersistenceProvider of the PersistenceUnit EJBModel: java.lang.ClassNotFoundException: org.eclipse.persistence.jpa.PersistenceProvider
    Full StackTrace:
    Failure occurred in the execution of deployment request with ID '1243622816661' for task '1'. Error is: 'weblogic.application.ModuleException: ' weblogic.application.ModuleException: at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:387) at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176) at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93) at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37) at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:58) at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:42) at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:615) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37) at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191) at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:16) at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:155) at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:197) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:89) at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217) at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:723) at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1190) at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:248) at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:12) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:45) at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173) weblogic.deployment.EnvironmentException: Error processing persitence unit EJBModel of module WLEclipseLinkDemo-ejb.jar: Error instantiating the Persistence Provider class org.eclipse.persistence.jpa.PersistenceProvider of the PersistenceUnit EJBModel: java.lang.ClassNotFoundException: org.eclipse.persistence.jpa.PersistenceProvider at weblogic.deployment.PersistenceUnitInfoImpl.createEntityManagerFactory(PersistenceUnitInfoImpl.java:322) at weblogic.deployment.PersistenceUnitInfoImpl.<init>(PersistenceUnitInfoImpl.java:123) at weblogic.deployment.AbstractPersistenceUnitRegistry.storeDescriptors(AbstractPersistenceUnitRegistry.java:331) at weblogic.deployment.AbstractPersistenceUnitRegistry.loadPersistenceDescriptor(AbstractPersistenceUnitRegistry.java:245) at weblogic.deployment.ModulePersistenceUnitRegistry.<init>(ModulePersistenceUnitRegistry.java:63) at weblogic.ejb.container.deployer.EJBModule.setupPersistenceUnitRegistry(EJBModule.java:209) at weblogic.ejb.container.deployer.EJBModule$1.execute(EJBModule.java:310) at weblogic.deployment.PersistenceUnitRegistryInitializer.setupPersistenceUnitRegistries(PersistenceUnitRegistryInitializer.java:62) at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:381) at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176) at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93) at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37) at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:58) at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:42) at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:615) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37) at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191) at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:16) at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:155) at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:197) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:89) at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217) at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:723) at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1190) at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:248) at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:12) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:45) at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    but one thing, same EAR file is working in one server, but in another server it is giving the above exception.
    i copied all the jars to server as same as working server. still i am getting the same error.
    can anyone help me.
    Rajesh

    For WLS 10.3, I think that Kodo is the default JPA provider unless you apply a patch for EclipseLink/TopLink. Perhaps the WLS environments have installed different patches?
    See the comment in this blog: http://msikora.typepad.com/michael_sikora_on_java_ee/2008/10/converting-to-weblogic-103---part-2.html
    I think that it is a public patch when you run Smart Update.
    There's also a detailed explanation here of the classpath options:
    http://wiki.eclipse.org/EclipseLink/Examples/JPA/WebLogic_Web_Tutorial
    You may also get some help in the JPA forum:
    TopLink/JPA

  • Error while debugging in eclipse

    public static void main(String[] args) throws java.io.FileNotFoundException,
          java.io.IOException,
          java.lang.InterruptedException {
        fileName = new String(args[args.length-1]);
        // set up the parser and scanner with the appropriate file
        // name
        FileReader aslFile = new FileReader(fileName);
        NolifeScanner scanner = new NolifeScanner(aslFile);
        NolifeParser parser = new NolifeParser(scanner);hi all,
    I am debugging a java program in Eclipse 3.2.1 in debug perspective.
    When I'm just running the program it's fine. But when I'm launching the debugger, and trying to step into the NoLifeParser() it stops and shows me the error message like this:
    ClassLoader.class
    Source not found
    The source attachment does not contain the source for the ClassLoader.class
    You can change the source attachment by clicking Change Attached Source below:
    BUTTON
    and then the source code for ClassLoader class.
    Please help, I'm struggling =(
    Thanks in advance,....!!

    This NolifeParser is some third party package, right? Do you have the source, I mean do you have in your project the file NolifeParser.java?

  • Errors when starting Java ME SDK 3 - Windows 7 x64

    Hi,
    I am having trouble running the Java ME SDK 3 on a Windows 7 x64 computer. When trying to run the installed SDK using the shortcut link on my desktop, I receive a number of erros such as
    java.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
         at java.net.Socket.connect(Socket.java:525)
         at java.net.Socket.connect(Socket.java:475)
         at java.net.Socket.<init>(Socket.java:372)
         at java.net.Socket.<init>(Socket.java:186)
         at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
         at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
         at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)
    Caused: java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
         java.net.ConnectException: Connection refused: connect
         at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601)
         at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
         at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
         at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)
         at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
         at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:97)
    Caused: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
         java.net.ConnectException: Connection refused: connect]
         at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:101)
         at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:185)
         at javax.naming.InitialContext.lookup(InitialContext.java:392)
         at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1886)
         at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1856)
         at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:257)
    Caused: java.io.IOException: Failed to retrieve RMIServer stub
         at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:338)
         at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)
         at com.sun.jme.toolkit.remoting.client.rmiimpl.ObjectServerConnectionImpl.connect(Unknown Source)
         at com.sun.jme.toolkit.remoting.client.rmiimpl.ObjectServerConnectionImpl.start(Unknown Source)
         at com.sun.jme.toolkit.remoting.client.rmiimpl.ObjectServerConnectionImpl.lookupMBean(Unknown Source)
         at com.sun.jme.toolkit.remoting.client.rmiimpl.ObjectServerConnectionImpl.findObject(Unknown Source)
         at org.netbeans.modules.javame.common.container.devicemanager.DevicemanagerHelper.openConnection(DevicemanagerHelper.java:53)
         at org.netbeans.modules.javame.common.container.devicemanager.DevicemanagerHelper.getDeviceManager(DevicemanagerHelper.java:86)
         at org.netbeans.modules.javame.platform.jme_sdk.autoinstaller.AutoInstaller.ensureDMStarted(AutoInstaller.java:292)
         at org.netbeans.modules.javame.platform.jme_sdk.autoinstaller.AutoInstaller.restored(AutoInstaller.java:63)
         at org.netbeans.core.startup.NbInstaller.loadCode(NbInstaller.java:421)
         at org.netbeans.core.startup.NbInstaller.load(NbInstaller.java:342)
         at org.netbeans.ModuleManager.enable(ModuleManager.java:906)
         at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:428)
         at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:364)
         at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:276)
         at org.netbeans.core.startup.Main.getModuleSystem(Main.java:165)
         at org.netbeans.core.startup.Main.start(Main.java:312)
         at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:110)
    [catch] at java.lang.Thread.run(Thread.java:619)--------------------------------------------------------------------------------------------------
    Does anybody know where this comes from? Is it an incompatibility with Windows 7 x64? I have installed the latest Java SDK for Win64.
    I have another issue consisting in the fact that the Eclipse MJT plug-in is not abel to find any devices in the Java ME SDK 3 folder (see my post in the Eclipse forum [Post in Eclipse MJT forum|http://www.eclipse.org/forums/index.php?t=msg&th=156515&start=0&S=6f25cc6925ad7008453ee93ca55525a2]), does this have anything to do with the problem described above?
    Thanks for your help,
    Markus
    Edited by: acm821 on Oct 28, 2009 2:06 PM

    Edit file "C:\Java_ME_platform_SDK_3.0\bin\java", replace the path of x64 jdk by path of x32 jdk.
    For example, my file contains "C:\Program Files\Java\jdk1.6.0_21" and I change to "C:\Program Files (x86)\Java\jdk1.6.0_21".
    You need have a 32 bits jdk installed. Restart device managar after the change.
    Obs.: This happens because device manager need load a 32 bits DLL. So you need run they with a 32 bits jdk.
    With this method you don't need remove x64 jdk. You can stay with both jdk.

Maybe you are looking for