Forum Discussion

josepaul's avatar
josepaul
New Contributor
12 years ago

Failed to load project from file

Hi there,
i am unable to reload saved projects into soapUI. Beacuse of this i need to configure the project every time i restart soapUI. I tried saving different projects but no luck.For my collecgues its working all fine. I wont be able to share the project xml becuse of security concerns.
Thanks in advance.
Please find the error log from soapUI below

Tue Sep 24 14:50:54 IST 2013:ERROR:com.eviware.soapui.support.SoapUIException: Failed to load project from file [file:/C:/Users/a-5353/Documents/CapacityBookingExtService-soapui-project.xml]
com.eviware.soapui.support.SoapUIException: Failed to load project from file [file:/C:/Users/a-5353/Documents/CapacityBookingExtService-soapui-project.xml]
at com.eviware.soapui.impl.wsdl.WsdlProject.loadProject(WsdlProject.java:426)
at com.eviware.soapui.impl.wsdl.WsdlProject.<init>(WsdlProject.java:244)
at com.eviware.soapui.impl.wsdl.WsdlProjectFactory.createNew(WsdlProjectFactory.java:62)
at com.eviware.soapui.impl.wsdl.WsdlProjectFactory.createNew(WsdlProjectFactory.java:24)
at com.eviware.soapui.impl.WorkspaceImpl.reloadProject(WorkspaceImpl.java:539)
at com.eviware.soapui.impl.wsdl.WsdlProject.reload(WsdlProject.java:1337)
at com.eviware.soapui.impl.wsdl.actions.project.ReloadProjectAction.perform(ReloadProjectAction.java:62)
at com.eviware.soapui.impl.wsdl.actions.project.ReloadProjectAction.perform(ReloadProjectAction.java:28)
at com.eviware.soapui.support.action.swing.SwingActionDelegate.actionPerformed(SwingActionDelegate.java:89)
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 javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.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.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(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$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.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$1.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)
Caused by: java.io.CharConversionException: Malformed UTF-8 character: 0xe2 0x80 0x3f
at org.apache.xmlbeans.impl.piccolo.xml.UTF8XMLDecoder.decode(UTF8XMLDecoder.java:108)
at org.apache.xmlbeans.impl.piccolo.xml.XMLStreamReader$FastStreamDecoder.read(XMLStreamReader.java:762)
at org.apache.xmlbeans.impl.piccolo.xml.XMLStreamReader.read(XMLStreamReader.java:162)
at org.apache.xmlbeans.impl.piccolo.xml.PiccoloLexer.yy_refill(PiccoloLexer.java:3474)
at org.apache.xmlbeans.impl.piccolo.xml.PiccoloLexer.yynextChar(PiccoloLexer.java:3721)
at org.apache.xmlbeans.impl.piccolo.xml.PiccoloLexer.parseCdataSection(PiccoloLexer.java:2671)
at org.apache.xmlbeans.impl.piccolo.xml.PiccoloLexer.yylex(PiccoloLexer.java:4850)
at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.yylex(Piccolo.java:1290)
at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.yyparse(Piccolo.java:1400)
at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:714)
at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3454)
at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1276)
at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1263)
at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345)
at com.eviware.soapui.config.SoapuiProjectDocumentConfig$Factory.parse(Unknown Source)
at com.eviware.soapui.impl.wsdl.WsdlProject.loadProject(WsdlProject.java:333)
... 46 more
  • The problem seems to be resolved. I did converted the project.xml file to UTF-8 using notepad++. It worked like a charm.
    Is there an option to make the default encoding to UTF-8 in SoapUI settings?
  • josepaul's avatar
    josepaul
    New Contributor
    The problem seems to be resolved. I did converted the project.xml file to UTF-8 using notepad++. It worked like a charm.
    Is there an option to make the default encoding to UTF-8 in SoapUI settings?
  • nmrao's avatar
    nmrao
    Champion Level 3
    Hmm.. strange.
    From the log, looks your using Windows family OS. Not sure if soapui version is same yours vs your team mates.
    If so, may be you can try re-installing it.
  • josepaul's avatar
    josepaul
    New Contributor
    Thanks for the response.
    But my colleagues are using same OS as mine. Besides this was working for me some time back and one fine day (actually a bad day!) it all went wrong!!
    Any other suggestions. I even tried copying their installation folder without luck.

    Regards
    Jose
  • nmrao's avatar
    nmrao
    Champion Level 3
    Thank you for sharing.
    I think that is subjective, and depends on request/case basis - people might use different encodings for diferent requests or tests. Are you talking about default value?
  • josepaul's avatar
    josepaul
    New Contributor
    Yes.
    Is there any way to set default encoding to UTF-8 in SoapUI?
    • emduve's avatar
      emduve
      New Member

      I have the same problem. The XML file of the project is, in my case, already saved using UTF8 encoding (going by what I can see when editing it with Notepad++), but I cannot reload it.

      I need to edit the XML with Notepad++, encode it in ANSI and encode it another time in UTF8 to be able to load it again in SoapUI...