Menu

#257 Failed to read project containing CodePage 1250 text

v1.0_(example)
closed-fixed
Jon Iles
None
5
2015-01-27
2015-01-15
Peter
No

When reading .mpp project file, I get following error:

java.lang.IllegalArgumentException was unhandled
Message=Unsupported encoding command ansicpg1250
Source=rtfparserkit-1.1.0
StackTrace:
at com.rtfparserkit.parser.standard.StandardRtfParser.processEncoding(Command , Boolean , Int32 )
at com.rtfparserkit.parser.standard.StandardRtfParser.processCommand(Command command, Int32 parameter, Boolean hasParameter, Boolean optional)
at com.rtfparserkit.parser.raw.RawRtfParser.handleCommand(StringBuilder , Int32 , Boolean )
at com.rtfparserkit.parser.raw.RawRtfParser.handleCommand()
at com.rtfparserkit.parser.raw.RawRtfParser.parse(IRtfSource source, IRtfListener listener)
at com.rtfparserkit.parser.standard.StandardRtfParser.parse(IRtfSource source, IRtfListener listener)
at com.rtfparserkit.converter.text.AbstractTextConverter.convert(IRtfSource source)
at com.rtfparserkit.converter.text.StringTextConverter.convert(IRtfSource source)
at net.sf.mpxj.common.RtfHelper.strip(String text)
at net.sf.mpxj.mpp.MPP14Reader.processTaskData()
at net.sf.mpxj.mpp.MPP14Reader.process(MPPReader , ProjectFile , DirectoryEntry )
at net.sf.mpxj.mpp.MPPReader.read(POIFSFileSystem fs)
at net.sf.mpxj.mpp.MPPReader.read(InputStream is)
at net.sf.mpxj.reader.AbstractProjectReader.read(String fileName)
at WindowsFormsApplication1.Form1.button1_Click(Object sender, EventArgs e) in F:\test\mpxj\WindowsFormsApplication1\WindowsFormsApplication1\Form1.cs:line 37
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at WindowsFormsApplication1.Program.Main() in F:\test\MPXJ\WindowsFormsApplication1\WindowsFormsApplication1\Program.cs:line 18
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:

Discussion

  • Jon Iles

    Jon Iles - 2015-01-26

    Could you provide an example file which shows this behaviour?

    Thanks!

     
  • Jon Iles

    Jon Iles - 2015-01-27
    • summary: Project reading --> Failed to read project containing CodePage 1250 text
    • assigned_to: Jon Iles
     
  • Jon Iles

    Jon Iles - 2015-01-27
    • status: open --> closed-fixed
     
  • Jon Iles

    Jon Iles - 2015-01-27

    The code now in Git fixes this issue.

     

Log in to post a comment.

MongoDB Logo MongoDB