zhenyajiang / jupiter-eclipse-plugin

Automatically exported from code.google.com/p/jupiter-eclipse-plugin
0 stars 0 forks source link

Version 3.4.1 wipes old issue file when editing an issue #52

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Start Eclipse (Version: 3.4.1 Build id: M20080911-1700)
1a. Java JRE version 1.6.10
2. Open pre-existing Jupiter issue file (Jupiter version 3.4.1)
3. Edit an existing issue and save it
4. The .review file is reset to 0 bytes

What is the expected output? What do you see instead?

I expect the issue to update and be able to continue.  The file on disk 
is reset and all issues are gone.  However, the issues present at issue
file open are still visible in the review table window.

What version of the product are you using? On what operating system?

Jupiter 3.4.1 on
Windows XP Professional SP2 Build 2600.xpsp_sp2_qfe.070227-2300

If applicable, what editor does the problem occur in (Jupiter is tested
against the 'Eclipse for RCP/Plug-in Developers' so the editors may vary)?

I am using the Text editor as the source is a VB6 user control (.ctl) file

Please provide any additional information below.

The contents of the .log file are:

!SESSION 2008-10-28 16:22:43.234
-----------------------------------------------
eclipse.buildId=M20080911-1700
java.version=1.6.0_10
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments:  -os win32 -ws win32 -arch x86

!ENTRY edu.hawaii.ics.csdl.jupiter 1 0 2008-10-28 16:22:50.452
!MESSAGE Jupiter Review Plugin is up.

!ENTRY edu.hawaii.ics.csdl.jupiter 4 0 2008-10-28 16:24:44.439
!MESSAGE 
!STACK 0
edu.hawaii.ics.csdl.jupiter.ReviewException: XMLStreamException: ParseError
at [row,col]:[1,1]
Message: Premature end of file.
    at
edu.hawaii.ics.csdl.jupiter.file.ReviewIssueXmlSerializer.isReviewIdAssociatedFi
le(ReviewIssueXmlSerializer.java:591)
    at
edu.hawaii.ics.csdl.jupiter.file.FileResource.getReviewIFiles(FileResource.java:
357)
    at
edu.hawaii.ics.csdl.jupiter.model.reviewissue.ReviewIssueModelManager.getModel(R
eviewIssueModelManager.java:51)
    at
edu.hawaii.ics.csdl.jupiter.ui.menu.PhaseSelectionMenu.doSelectionMenuCommand(Ph
aseSelectionMenu.java:208)
    at
edu.hawaii.ics.csdl.jupiter.ui.menu.PhaseSelectionMenu.access$0(PhaseSelectionMe
nu.java:143)
    at
edu.hawaii.ics.csdl.jupiter.ui.menu.PhaseSelectionMenu$2.widgetSelected(PhaseSel
ectionMenu.java:126)
    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:3823)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
    at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
    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:193)
    at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Ecli
pseAppLauncher.java:110)
    at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLau
ncher.java:79)
    at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
    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:549)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1]
Message: Premature end of file.
    at
com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(Unknown
Source)
    at
edu.hawaii.ics.csdl.jupiter.file.StaxReviewXmlUtil.parseReviewFile(StaxReviewXml
Util.java:172)
    at
edu.hawaii.ics.csdl.jupiter.file.ReviewIssueXmlSerializer.isReviewIdAssociatedFi
le(ReviewIssueXmlSerializer.java:588)
    ... 30 more

Original issue reported on code.google.com by Michael....@tcomlp.com on 28 Oct 2008 at 8:41

Attachments:

GoogleCodeExporter commented 8 years ago
Would you happen to know what version of Jupiter created the .review file that 
was
erased?

Thanks.

Original comment by jsakuda on 28 Oct 2008 at 9:19

GoogleCodeExporter commented 8 years ago
Fixed in service release 3.4.1.1.  I will leave it filed under 3.4.2 since this
release was unplanned.

I found an error in the XML that was most likely causing strange XML errors to
happen.  Once fixing this the problem seems to have gone away.

Original comment by jsakuda on 31 Oct 2008 at 10:14