qiulong / jupiter-eclipse-plugin

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

"Could not create review id" with Jupiter 3.4.1 #53

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try to create a new Review of any kind with Jupiter 3.4.1 (note that 
3.4.0 worked fine)

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

Expected: review created
What happens: "Could not create review id" with an internal error logged in 
the error log that the encoding stream was not "Cp1252" but "UTF-8"

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

3.4.1, Windows Server 2003, Eclipse 3.4

Please provide any additional information below.

Here's the internal stack trace:
edu.hawaii.ics.csdl.jupiter.ReviewException: XMLStreamException: Underlying 
stream encoding 'Cp1252' and input paramter for writeStartDocument() method 
'UTF-8' do not match.
at 
edu.hawaii.ics.csdl.jupiter.file.PropertyXmlSerializer.serializeProperty(Pr
opertyXmlSerializer.java:147)
at 
edu.hawaii.ics.csdl.jupiter.file.PropertyResource.addReviewResource(Propert
yResource.java:326)
at 
edu.hawaii.ics.csdl.jupiter.ui.wizard.ReviewIdNewWizard.performFinish(Revie
wIdNewWizard.java:99)
at 
org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:742)
at 
org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:373)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
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.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at 
edu.hawaii.ics.csdl.jupiter.util.ReviewDialog.processConfigWizardDialog(Rev
iewDialog.java:72)
at 
edu.hawaii.ics.csdl.jupiter.ui.property.ReviewPropertyPage.addReviewId(Revi
ewPropertyPage.java:270)
at 
edu.hawaii.ics.csdl.jupiter.ui.property.ReviewPropertyPage.access$1(ReviewP
ropertyPage.java:269)
at 
edu.hawaii.ics.csdl.jupiter.ui.property.ReviewPropertyPage$3.handleEvent(Re
viewPropertyPage.java:190)
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.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at 
org.eclipse.ui.dialogs.PropertyDialogAction.run(PropertyDialogAction.java:1
57)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at 
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(Actio
nContributionItem.java:583)
at 
org.eclipse.jface.action.ActionContributionItem.access$2(ActionContribution
Item.java:500)
at 
org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContrib
utionItem.java:411)
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
(EclipseAppLauncher.java:110)
at 
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseA
ppLauncher.java:79)
at 
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382
)
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: Underlying stream encoding 
'Cp1252' and input paramter for writeStartDocument() method 'UTF-8' do not 
match.
at 
com.sun.xml.internal.stream.writers.XMLStreamWriterImpl.writeStartDocument(
Unknown Source)
at 
javanet.staxutils.IndentingXMLStreamWriter.writeStartDocument(IndentingXMLS
treamWriter.java:142)
at 
edu.hawaii.ics.csdl.jupiter.file.PropertyXmlSerializer.serializeProperty(Pr
opertyXmlSerializer.java:132)
... 51 more

Original issue reported on code.google.com by johnste...@gmail.com on 29 Oct 2008 at 10:16

GoogleCodeExporter commented 9 years ago
Ouch.  Ok I'll have to look into this.  Cp1252 is an old windows encoding.  I 
will
make sure I explicitly make everything UTF-8.

Original comment by jsakuda on 29 Oct 2008 at 6:26

GoogleCodeExporter commented 9 years ago
I have fixed this by specifying that XML stream readers should use UTF-8.

Original comment by jsakuda on 30 Oct 2008 at 9:56

GoogleCodeExporter commented 9 years ago
cool, thanks. but i have to wait for 3.4.2 to get this fix, is that right?

Original comment by johnste...@gmail.com on 30 Oct 2008 at 12:09

GoogleCodeExporter commented 9 years ago
This issue was addressed and released in Jupiter 3.4.1.1 which is already up on 
the
update site.

Original comment by jsakuda on 30 Oct 2008 at 5:52