Need help to solve the issue in windows tester pro for eclipse 4 - junit4

I am getting following error when running windows tester pro in e4 application.
could anyone help me in solve the issue
java.lang.NoClassDefFoundError: org/eclipse/osgi/baseadaptor/loader/BaseClassLoader
at com.windowtester.internal.runtime.bundle.BundleResolver.bundleForClass(BundleResolver.java:18)
at com.windowtester.internal.runtime.bundle.BundleResolver.bundleNameForClass(BundleResolver.java:30)
at com.windowtester.internal.runtime.bundle.BundleClassReference.forBundleClass(BundleClassReference.java:25)
at com.windowtester.internal.runtime.ClassReference.forBundleClass(ClassReference.java:16)
at com.windowtester.runtime.WidgetLocator.<init>(WidgetLocator.java:76)
at com.windowtester.runtime.WidgetLocator.<init>(WidgetLocator.java:105)
at com.windowtester.runtime.swt.locator.SWTWidgetLocator.<init>(SWTWidgetLocator.java:159)
at com.windowtester.runtime.swt.locator.MenuItemLocator.<init>(MenuItemLocator.java:65)
at com.windowtester.runtime.swt.locator.MenuItemLocator.<init>(MenuItemLocator.java:56)
at com.bosch.bdxeditor.abstracts.AbstractTestAction.loadBDXFiles(AbstractTestAction.java:39)
at com.bosch.bdxeditor.action.BackwardactionTest.testBackwardAction(BackwardactionTest.java:30)
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 junit.framework.TestCase.runTest(TestCase.java:176)
at junit.framework.TestCase.runBare(TestCase.java:141)
at com.windowtester.runtime.common.UITestCaseCommon.access$0(UITestCaseCommon.java:1)
at com.windowtester.runtime.common.UITestCaseCommon$2.run(UITestCaseCommon.java:130)
at com.windowtester.runtime.common.UITestCaseCommon$3.run(UITestCaseCommon.java:151)
at com.windowtester.internal.runtime.junit.core.SequenceRunner$1.run(SequenceRunner.java:40)
Caused by: java.lang.ClassNotFoundException: org.eclipse.osgi.baseadaptor.loader.BaseClassLoader cannot be found by com.windowtester.runtime_6.0.0.r36x201009131510
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:439)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:352)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:344)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 21 more

The missing org.eclipse.osgi.baseadaptor.loader.BaseClassLoader class is not part of Eclipse 4 so this code will only run in Eclipse 3.

Related

Getting exception at at com.install4j.runtime.launcher.WinLauncher.main(WinLauncher.java:26)

I have created installers using Install4j. I am able to install the tool with these installers on both windows and linux.
but in windows, I am getting below exception
StartupHandler.initializeActionManager() ... ERROR: occurred while reading action shcema.
ERROR: SAX2 driver class org.apache.xerces.parsers.SAXParser does not implement XMLReader
org.xml.sax.SAXException: SAX2 driver class org.apache.xerces.parsers.SAXParser does not implement XMLReader
java.lang.ClassCastException: org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration
at org.xml.sax.helpers.XMLReaderFactory.loadClass(Unknown Source)
at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(Unknown Source)
at com.appperfect.common.UtilityFunctions.parseXML(UtilityFunctions.java:1981)
at com.appperfect.installer.common.ActionSchemaReader.loadActionConfigFile(ActionSchemaReader.java:74)
at com.appperfect.installer.common.ActionSchemaReader.<init>(ActionSchemaReader.java:65)
at com.appperfect.installer.common.ActionManager.loadActionSchema(ActionManager.java:157)
at com.appperfect.installer.i4j.handlers.StartupHandler.initializeActionManager(StartupHandler.java:308)
at com.appperfect.installer.i4j.handlers.StartupHandler.prepareInstaller(StartupHandler.java:86)
at com.appperfect.installer.i4j.actions.AppStartupAction.install(AppStartupAction.java:43)
at com.install4j.runtime.installer.ContextImpl$7.executeAction(ContextImpl.java:1668)
at com.install4j.runtime.installer.ContextImpl$7.fetchValue(ContextImpl.java:1659)
at com.install4j.runtime.installer.ContextImpl$7.fetchValue(ContextImpl.java:1656)
at com.install4j.runtime.installer.helper.comm.actions.FetchObjectAction.execute(FetchObjectAction.java:14)
at com.install4j.runtime.installer.helper.comm.HelperCommunication.executeActionDirect(HelperCommunication.java:274)
at com.install4j.runtime.installer.helper.comm.HelperCommunication.executeActionInt(HelperCommunication.java:249)
at com.install4j.runtime.installer.helper.comm.HelperCommunication.executeActionChecked(HelperCommunication.java:187)
at com.install4j.runtime.installer.helper.comm.HelperCommunication.fetchObjectChecked(HelperCommunication.java:170)
at com.install4j.runtime.installer.ContextImpl.performActionIntStatic(ContextImpl.java:1656)
at com.install4j.runtime.installer.InstallerContextImpl.performActionInt(InstallerContextImpl.java:151)
at com.install4j.runtime.installer.ContextImpl.performAction(ContextImpl.java:1103)
at com.install4j.runtime.installer.controller.Controller.executeAction(Controller.java:368)
at com.install4j.runtime.installer.controller.Controller.executeActions(Controller.java:334)
at com.install4j.runtime.installer.controller.Controller.handleCommand(Controller.java:195)
at com.install4j.runtime.installer.controller.Controller.handleStartup(Controller.java:116)
at com.install4j.runtime.installer.controller.Controller.start(Controller.java:73)
at com.install4j.runtime.installer.Installer.runInProcess(Installer.java:59)
at com.install4j.runtime.installer.Installer.main(Installer.java:46)
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 com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:65)
at com.exe4j.runtime.WinLauncher.main(WinLauncher.java:101)
at com.install4j.runtime.launcher.WinLauncher.main(WinLauncher.java:26)
I have googled and found that it may be due to incompatible versions of xercesImpl.jar, downloaded latest jars and tried but no help.
removed xercseImpl.jar and xml-apis.jar, added xerces.jar. But the issue persists.
This problem is fixed in install4j 6.1.6.

JasperReports Server - Error generating reports with scheduler

every week on monday we are generating some reports in the morning. We have no problem with the most of them, but 2 are failing sometimes (irregular).
This is the stacktrace of the exception we get with e-mail:
ExceptionConverter: java.io.IOException: No such file or directory
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.checkAndCreate(File.java:1704)
at java.io.File.createTempFile(File.java:1792)
at java.io.File.createTempFile(File.java:1828)
at com.jaspersoft.jasperserver.api.metadata.common.domain.util.FileBufferedOutputStream.ensureFileOutput(FileBufferedOutputStream.java:144)
at com.jaspersoft.jasperserver.api.metadata.common.domain.util.FileBufferedOutputStream.write(FileBufferedOutputStream.java:164)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
at java.io.BufferedOutputStream.write(BufferedOutputStream.java:109)
at com.lowagie.text.pdf.OutputStreamCounter.write(Unknown Source)
at java.io.ByteArrayOutputStream.writeTo(ByteArrayOutputStream.java:109)
at com.lowagie.text.pdf.PdfStream.toPdf(Unknown Source)
at com.lowagie.text.pdf.PdfIndirectObject.writeTo(Unknown Source)
at com.lowagie.text.pdf.PdfWriter$PdfBody.add(Unknown Source)
at com.lowagie.text.pdf.PdfWriter$PdfBody.add(Unknown Source)
at com.lowagie.text.pdf.PdfWriter$PdfBody.add(Unknown Source)
at com.lowagie.text.pdf.PdfWriter.addToBody(Unknown Source)
at com.lowagie.text.pdf.PdfWriter.add(Unknown Source)
at com.lowagie.text.pdf.PdfDocument.newPage(Unknown Source)
at com.lowagie.text.Document.newPage(Unknown Source)
at net.sf.jasperreports.engine.export.JRPdfExporter.exportReportToStream(JRPdfExporter.java:686)
at net.sf.jasperreports.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:396)
at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl.exportToPdf(EngineServiceImpl.java:548)
at com.jaspersoft.jasperserver.api.engine.scheduling.quartz.PdfReportOutput.getOutput(PdfReportOutput.java:95)
at com.jaspersoft.jasperserver.api.engine.scheduling.quartz.ReportExecutionJob.executeAndSendReport(ReportExecutionJob.java:485)
at com.jaspersoft.jasperserver.api.engine.scheduling.quartz.ReportExecutionJob.execute(ReportExecutionJob.java:217)
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557)
Have someone an idea why some are failing and the most of them not?
We are using JasperReports Server 4.7 on a Linuxserver (Debian) with a Tomcat.
I see the error 'No such file or directory' which makes me wonder where you are saving the output? Is it being emailed, saved to the repository, or saved somewhere on the file system?

Can not deploy war file using Struts2 into Geronimo 2.2.1

I try to deploy struts2-showcase.war in Struts2-2.3.1-all.zip into Geronimo 2.2.1.
Geronimo responded the below errors:
011-12-30 15:31:53,294 WARN [TomcatModuleBuilder] Web application . does not contain a WEB-INF/geronimo-web.xml deployment plan. This may or may not be a problem, depending on whether you have things like resource references that need to be resolved. You can also give the deployer a separate deployment plan file on the command line.
Deployer operation failed: org/apache/struts/taglib/html/FormTag
java.lang.NoClassDefFoundError: org/apache/struts/taglib/html/FormTag
at java.lang.ClassLoader.defineClass1(Native Method)
2011-12-30 15:31:56,608 ERROR [Deployer] Deployment failed due to
java.lang.NoClassDefFoundError: org/apache/struts/taglib/html/FormTag
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at org.apache.geronimo.kernel.classloader.JarFileClassLoader.access$200(JarFileClassLoader.java:52)
at org.apache.geronimo.kernel.classloader.JarFileClassLoader$6.run(JarFileClassLoader.java:302)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.geronimo.kernel.classloader.JarFileClassLoader.findClass(JarFileClassLoader.java:254)
at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadOptimizedClass(MultiParentClassLoader.java:401)
at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:257)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.parseTldFile(JspModuleBuilderExtension.java:472)
at org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.getListenerClasses(JspModuleBuilderExtension.java:433)
at org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.createJspClassFinder(JspModuleBuilderExtension.java:189)
at org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.addGBeans(JspModuleBuilderExtension.java:158)
at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.addGBeans(TomcatModuleBuilder.java:513)
at org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.addGBeans(SwitchingModuleBuilder.java:165)
at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:652)
at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:257)
at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:136)
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.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:130)
at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:851)
at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:237)
at org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy(AbstractDeployCommand.java:116)
at org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(DistributeCommand.java:61)
at java.lang.Thread.run(Unknown Source)
Does anybody tell me what's wrong with Geronimo ?
I know Geronimo told me it can not find the class:
org/apache/struts/taglib/html/FormTag object.
But, the object is belongs to Struts1, and my war file use Struts2.
I checked struts2-showcase.war and confirmed that struts2-showcase.war never uses the above object.
Thanks anyway.
never worked with Geronimo but a quick look at the log saying that geronimo-web.xml in not there inside WEB-INF folder.
Check this thread as the person has same issue
How to deploy in Geronimo
Have you tried running web-app? Is It working or not, i am asking these question based on the content of stack trace you have posted

error while loadin applet in web application

I want to run my applet on web application, but i got some error which i mentioned below please help me to get out of this problem
Java Plug-in 1.7.0
Using JRE version 1.7.0-ea-b116 Java HotSpot(TM) Client VM
User home directory = C:\Users\HONEY
----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------
java.lang.RuntimeException: java.lang.NoClassDefFoundError: mp3$1
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: mp3$1
at mp3.<init>(mp3.java:93)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$12.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: mp3$1
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 16 more
Caused by: java.io.IOException: open HTTP connection failed:http://viscous10.webng.com/mp3/mp3$1.class
at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 21 more
Exception: java.lang.RuntimeException: java.lang.NoClassDefFoundError: mp3$1
but it happens only if i run applet with events
and in simple applet i never occurred
This error means the Java runtime cannot find the .class file for an anonymous inner class of your mp3 class. Anonymous inner classes are named OuterClass$1, OuterClass$2, OuterClass$3 and so on. An example of the definition of an anonymous inner class:
button1.addActionListener(
new java.awt.event.ActionListener()
{
public void actionPerformed(java.awt.event.ActionEvent e)
{
// do something
}
}
);
As it seems you are using inner classes, be aware that your mp3.java source file creates various .class files and make sure all of these .class files are available for the runtime environment (via copying, or adding them in a .jar file, etc).
to run the applet on web browser
write java code run the application on java
make the class file by using cmd prompt
give proper path and run your java file on cmd prompt to create class file
make html file add applet code in it <applet code=file.class archive =file.zip/jar></applet>
enabled java console from control panel
run the html file and refresh the window
NOTE: make sure class file, html file,zip or jar file having same name for avoiding any confusion

Error in applet in the navigator with fingerprint reader

First thank you very much for your time, I have a problem with the development of an applet to control users via fingerprint, as developed in eclipse using the DigitalPersona SDK, the problem is when I run it from a web page browser,
Exception in thread "AWT-EventQueue-2" java.lang.RuntimeException: com.digitalpersona.onetouch.jni.JniException
at com.digitalpersona.onetouch.capture._impl.DPFPCaptureFactoryImpl$CaptureImpl.startCapture(DPFPCaptureFactoryImpl.java:187)
at CDesVerifinger.formComponentShown(CDesVerifinger.java:76)
at CDesVerifinger.access$1(CDesVerifinger.java:73)
at CDesVerifinger$1.componentShown(CDesVerifinger.java:64)
at java.awt.Component.processComponentEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: com.digitalpersona.onetouch.jni.JniException
at com.digitalpersona.onetouch.jni.AcquisitionLibrary.getInstance(AcquisitionLibrary.java:50)
at com.digitalpersona.onetouch.jni.Acquisition.<init>(Acquisition.java:45)
at com.digitalpersona.onetouch.capture._impl.DPFPCaptureFactoryImpl$CaptureImpl.startCapture(DPFPCaptureFactoryImpl.java:104)
... 16 more
Thank you very much for any help
good day
You need to add the dptojni.jar to the library of your project, it is in c:/programs files/digital persona/bin/java. Or you can get the class jniException and add it to your project.
Having the same problem, here is someone telling that is necessary put
capturer.setPriority(DPFPCapturePriority.CAPTURE_PRIORITY_LOW);
after calling createCapture to solve it. I will try this answer now.
You have to sign the jar files. That's what I did, and now it's working.
Make sure you have instatiated the DPFPCapture object before calling the setCapturePriority method and also make sure you stop capture after you have finished using the capture object