Page 1 of 1

Project file broken: "No scenario in specified file."

Posted: Wed Sep 06, 2017 4:14 pm
by Frank Ralf
Hi,

Trying to open an existing project file in oXygen 18.1 fails with the following error message. The project file looks okay so I suppose this might be a caching issue? I have been switching between oXygen 16.1 and 18.1 on the same machine. Any pointers welcome.

Best regards,
Frank

Code: Select all

java.io.IOException: No scenario in specified file.
at ro.sync.options.k.load(Unknown Source)
at ro.sync.exml.options.Options.loadProjectOptions(Unknown Source)
at ro.sync.exml.project.c$6.run(Unknown Source)
at ro.sync.ui.m$1.run(Unknown Source)
at ro.sync.ui.m.h(Unknown Source)
at ro.sync.exml.project.c.opi(Unknown Source)
at ro.sync.exml.project.c.eqi(Unknown Source)
at ro.sync.exml.project.c.jpi(Unknown Source)
at ro.sync.exml.project.c.fqi(Unknown Source)
at ro.sync.exml.project.c.ooi(Unknown Source)
at ro.sync.exml.project.f.ic.foe(Unknown Source)
at ro.sync.ui.application.action.q.actionPerformed(Unknown Source)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at com.jidesoft.plaf.vsnet.VsnetMenuItemUI.doClick(Unknown Source)
at com.jidesoft.plaf.vsnet.VsnetMenuItemUI$MouseInputHandler.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(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.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(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)

Re: Project file broken: "No scenario in specified file."

Posted: Wed Sep 06, 2017 5:28 pm
by adrian
Hi,

What build number of Oxygen 18.1 are you running (Help > About)?
Would it be possible to send us the project file (just the .xpr file) to support@oxygenxml.com ?

Regards,
Adrian

Re: Project file broken: "No scenario in specified file."

Posted: Wed Sep 06, 2017 7:11 pm
by Frank Ralf
Hi Adrian,

Thanks for the quick reply. The build number is 2016102619. I will send you the project file but I have to anonymize some customer data beforehand.

Best regards,
Frank

Re: Project file broken: "No scenario in specified file."

Posted: Tue Sep 12, 2017 1:32 pm
by Frank Ralf
Hi Adrian,

I've sent you the broken project file by e-mail.

Best regards,
Frank

Re: Project file broken: "No scenario in specified file."

Posted: Thu Sep 14, 2017 4:16 pm
by adrian
Hi,

In case someone else encounters this issue. This is caused by an Oxygen bug that leads to a broken .xpr file that looks like this (missing project options):

Code: Select all

<project version="18.1">
<meta>
<filters directoryPatterns="" filePatterns="" positiveFilePatterns="" showHiddenFiles="false" />
<options>
<serialized version="18.1" xml:space="preserve">
<serializableOrderedMap />
</serialized>
</options>
</meta>
...
The solution is to remove the serialized element and what's left in it. So you end up with:

Code: Select all

<project version="18.1">
<meta>
<filters directoryPatterns="" filePatterns="" positiveFilePatterns="" showHiddenFiles="false" />
<options/>
</meta>
This bug has been resolved in the current development stream and the bugfix will be included starting with v19.1.

Regards,
Adrian

Re: Project file broken: "No scenario in specified file."

Posted: Wed Sep 27, 2017 2:50 pm
by Frank Ralf
Thanks for the fix, Adrian.

Frank

Re: Project file broken: "No scenario in specified file."

Posted: Thu Nov 16, 2017 4:20 pm
by adrian
Hi,

I just wanted to mention that in v19.1 and later, this message can be resolved by saving the project manually with the same name (Project > Save Project As, replace existing file).

Regards,
Adrian