Category: | Bug report |
Priority: | Urgent |
Status: | Resolved |
Project: | Severity: | Critical |
Resolution: | Fixed |
|
Component: | Reproducibility: | Always |
Assigned to: |
Just upgraded to JSS 6.0.0 from JSS 5.6.0. and error find: java.lang.RuntimeException: javax.xml.transform.TransformerException: java.io.FileNotFoundException.
The first attempt has failed, the second one was right but when start JSS i get the following error:
javax.xml.transform.TransformerException: java.io.FileNotFoundException: D:\instalarMXXI\JasperReports\Jaspersoft%20Studio\JaspersoftWorkspace\.metadata\.plugins\com.jaspersoft.studio\serverprofiles\serverProfile_0 (El sistema no puede encontrar la ruta especificada) at org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler(TransformerIdentityImpl.java:297) at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:330) at com.jaspersoft.studio.ConfigurationManager.convertPropertyToStorage(ConfigurationManager.java:182) at com.jaspersoft.studio.server.ServerManager.loadServerProfiles(ServerManager.java:184) at com.jaspersoft.studio.server.ServerProvider.getNode(ServerProvider.java:293) at com.jaspersoft.studio.repository.RepositoryView.getResources(RepositoryView.java:357) at com.jaspersoft.studio.repository.RepositoryView.createPartControl(RepositoryView.java:124) at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:386) at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:240) at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595) at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:315) at org.eclipse.ui.internal.ViewPane.setVisible(ViewPane.java:534) at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:180) at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:270) at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65) at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:473) at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1245) at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:662) at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:570) at org.eclipse.ui.internal.PartSashContainer.createControl(PartSashContainer.java:568) at org.eclipse.ui.internal.PerspectiveHelper.activate(PerspectiveHelper.java:272) at org.eclipse.ui.internal.Perspective.onActivate(Perspective.java:981) at org.eclipse.ui.internal.WorkbenchPage.onActivate(WorkbenchPage.java:2727) at org.eclipse.ui.internal.WorkbenchWindow$28.run(WorkbenchWindow.java:3030) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at org.eclipse.ui.internal.WorkbenchWindow.setActivePage(WorkbenchWindow.java:3011) at org.eclipse.ui.internal.WorkbenchWindow$21.runWithException(WorkbenchWindow.java:2297) at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4144) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761) at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:803) at org.eclipse.ui.internal.Workbench$33.runWithException(Workbench.java:1600) at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4144) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2609) 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 com.jaspersoft.studio.rcp.intro.Application.start(Application.java:94) 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(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:629) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584) at org.eclipse.equinox.launcher.Main.run(Main.java:1438) Caused by: java.io.FileNotFoundException: D:\instalarMXXI\JasperReports\Jaspersoft%20Studio\JaspersoftWorkspace\.metadata\.plugins\com.jaspersoft.studio\serverprofiles\serverProfile_0 (El sistema no puede encontrar la ruta especificada) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(Unknown Source) at java.io.FileOutputStream.<init>(Unknown Source) at org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler(TransformerIdentityImpl.java:287) ... 57 more --------- java.io.FileNotFoundException: D:\instalarMXXI\JasperReports\Jaspersoft%20Studio\JaspersoftWorkspace\.metadata\.plugins\com.jaspersoft.studio\serverprofiles\serverProfile_0 (El sistema no puede encontrar la ruta especificada) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(Unknown Source) at java.io.FileOutputStream.<init>(Unknown Source) at org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler(TransformerIdentityImpl.java:287) at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:330) at com.jaspersoft.studio.ConfigurationManager.convertPropertyToStorage(ConfigurationManager.java:182) at com.jaspersoft.studio.server.ServerManager.loadServerProfiles(ServerManager.java:184) at com.jaspersoft.studio.server.ServerProvider.getNode(ServerProvider.java:293) at com.jaspersoft.studio.repository.RepositoryView.getResources(RepositoryView.java:357) at com.jaspersoft.studio.repository.RepositoryView.createPartControl(RepositoryView.java:124) at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:386) at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:240) at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595) at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:315) at org.eclipse.ui.internal.ViewPane.setVisible(ViewPane.java:534) at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:180) at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:270) at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65) at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:473) at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1245) at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:662) at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:570) at org.eclipse.ui.internal.PartSashContainer.createControl(PartSashContainer.java:568) at org.eclipse.ui.internal.PerspectiveHelper.activate(PerspectiveHelper.java:272) at org.eclipse.ui.internal.Perspective.onActivate(Perspective.java:981) at org.eclipse.ui.internal.WorkbenchPage.onActivate(WorkbenchPage.java:2727) at org.eclipse.ui.internal.WorkbenchWindow$28.run(WorkbenchWindow.java:3030) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at org.eclipse.ui.internal.WorkbenchWindow.setActivePage(WorkbenchWindow.java:3011) at org.eclipse.ui.internal.WorkbenchWindow$21.runWithException(WorkbenchWindow.java:2297) at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4144) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761) at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:803) at org.eclipse.ui.internal.Workbench$33.runWithException(Workbench.java:1600) at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4144) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2609) 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 com.jaspersoft.studio.rcp.intro.Application.start(Application.java:94) 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(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:629) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584) at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
10 Comments:
Hi, can't do much without your configuration, can you send me all the content of this folder :\instalarMXXI\JasperReports\Jaspersoft%20Studio\JaspersoftWorkspace\.metadata\.plugins\com.jaspersoft.studio ?
Consider that this folder contains all the configuration of your servers and data adapters connection, so even if you are agree to send them to me please use my personal email: morlandi@tibco.com
Can you try to run jss as administrator? the problem may be that is not able to write inside D:\instalarMXXI\JasperReports\
I've found also a bug (not of JSS) that can raise this error when the workspace path has spaces. Now it is also fixed.
Thank yoy very much for your reply.
I think there was a problem with first unsuccess attempt to upgrade, but i'm not absolutely sure.
In fact, there is no files in these folder.
This is the way I solved my problem:
- Export eclipse preferences
- Rename folder workspace
- Create folder workspace with the same name as renamed one
- Copy all projects from old folder workspace to new folder workspace
- Open JSS
- Import preferences
- Import projects
- Create new Data Adapters like before were.
- Create new JasperReports Server Connections like before were.
After this, everything works fine.
Regards,
Mariano
I run JSS as administrator.
See reply to first comment in thread.
Thanks
I will add this comment to clarify the situation. This error could happen in two scenarios:
- The first one is when JSS can't write inside your workspace, and from this came the suggestion to run it as administrator.
- The second, and most likely this is your case, was when the path to the workspace contains spaces. By the true this is not a bug of JSS but of the class StreamResult when build with the File constructor. However i've done a workaround for it and in the next version this space problem will be fixed. More information about the bug https://issues.apache.org/jira/browse/XALANJ-2386
Probably your procedure to fix this work becuase when you have created the new workspace it has not spaces in the path.
From JSS 5.5.0, the path to workspace has been the same, always containing spaces, and always working fine.
I think that the problem could be in update process rather than JSS itself.
From JSS 5.6 the storage of the configurations has changed and the new process need this path resolution. This was done to improve the performances when using many adapters\server configurations. For this reason in the old version you don't have this space problem. But it's not in the update process, simply we need to include some classes to do this, and one of them has this bug.
OK, thank you very much for your explanations.
I think that the bug could be closed.
Regards,
Mariano