java.io.UnsupportedEncodingException: ${P_ENCODING}

Pentaho BI Platform Tracking | John Dorlus | 3 years ago
  1. 0

    When you are using the CSV input step, an I/O error is thrown if you have a parameter in the File Encoding field when you click get fields. Steps to reproduce 1.) Create a new transformation in Spoon 2.) Add a CSV file Input Step 3.) Add a Dummy Step 4.) Add a hop between the two. 5.) Right click on the canvas and go to Transformation Settings 6.) Go to the parameters tab and add a parameter ${P_ENCODING} and give it a value of UTF-8 7.) Open the CSV File input step and open the attached CSV file 8.) In the File Encoding area, use the same parameter you added ${P_ENCODING} 9.) Click GetFields Expected Result: Get fields operation performs correctly and you are able to import them. Actual Report: There is an I/O Error thrown with the stack trace: java.io.UnsupportedEncodingException: ${P_ENCODING} at sun.nio.cs.StreamDecoder.forInputStreamReader(Unknown Source) at java.io.InputStreamReader.<init>(Unknown Source) at org.pentaho.di.ui.trans.steps.csvinput.CsvInputDialog.getCSV(CsvInputDialog.java:800) at org.pentaho.di.ui.trans.steps.csvinput.CsvInputDialog.access$800(CsvInputDialog.java:91) at org.pentaho.di.ui.trans.steps.csvinput.CsvInputDialog$8.handleEvent(CsvInputDialog.java:553) at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at org.pentaho.di.ui.trans.steps.csvinput.CsvInputDialog.open(CsvInputDialog.java:623) at org.pentaho.di.ui.spoon.delegates.SpoonStepsDelegate.editStep(SpoonStepsDelegate.java:136) at org.pentaho.di.ui.spoon.Spoon.editStep(Spoon.java:7840) at org.pentaho.di.ui.spoon.trans.TransGraph.editStep(TransGraph.java:2753) at org.pentaho.di.ui.spoon.trans.TransGraph.mouseDoubleClick(TransGraph.java:705) at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source) at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1219) at org.pentaho.di.ui.spoon.Spoon.waitForDispose(Spoon.java:7049) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:8309) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:578) 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.pentaho.commons.launcher.Launcher.main(Launcher.java:134)

    Pentaho BI Platform Tracking | 3 years ago | John Dorlus
    java.io.UnsupportedEncodingException: ${P_ENCODING}
  2. 0

    When you are using the CSV input step, an I/O error is thrown if you have a parameter in the File Encoding field when you click get fields. Steps to reproduce 1.) Create a new transformation in Spoon 2.) Add a CSV file Input Step 3.) Add a Dummy Step 4.) Add a hop between the two. 5.) Right click on the canvas and go to Transformation Settings 6.) Go to the parameters tab and add a parameter ${P_ENCODING} and give it a value of UTF-8 7.) Open the CSV File input step and open the attached CSV file 8.) In the File Encoding area, use the same parameter you added ${P_ENCODING} 9.) Click GetFields Expected Result: Get fields operation performs correctly and you are able to import them. Actual Report: There is an I/O Error thrown with the stack trace: java.io.UnsupportedEncodingException: ${P_ENCODING} at sun.nio.cs.StreamDecoder.forInputStreamReader(Unknown Source) at java.io.InputStreamReader.<init>(Unknown Source) at org.pentaho.di.ui.trans.steps.csvinput.CsvInputDialog.getCSV(CsvInputDialog.java:800) at org.pentaho.di.ui.trans.steps.csvinput.CsvInputDialog.access$800(CsvInputDialog.java:91) at org.pentaho.di.ui.trans.steps.csvinput.CsvInputDialog$8.handleEvent(CsvInputDialog.java:553) at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at org.pentaho.di.ui.trans.steps.csvinput.CsvInputDialog.open(CsvInputDialog.java:623) at org.pentaho.di.ui.spoon.delegates.SpoonStepsDelegate.editStep(SpoonStepsDelegate.java:136) at org.pentaho.di.ui.spoon.Spoon.editStep(Spoon.java:7840) at org.pentaho.di.ui.spoon.trans.TransGraph.editStep(TransGraph.java:2753) at org.pentaho.di.ui.spoon.trans.TransGraph.mouseDoubleClick(TransGraph.java:705) at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source) at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1219) at org.pentaho.di.ui.spoon.Spoon.waitForDispose(Spoon.java:7049) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:8309) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:578) 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.pentaho.commons.launcher.Launcher.main(Launcher.java:134)

    Pentaho BI Platform Tracking | 3 years ago | John Dorlus
    java.io.UnsupportedEncodingException: ${P_ENCODING}
  3. 0

    A mailing list for discussion of the JavaMail(tm) API

    gmane.org | 2 years ago
    java.io.UnsupportedEncodingException: auto
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    java.io.UnsupportedEncodingException

    Stack Overflow | 4 years ago | user2133558
    java.io.UnsupportedEncodingException: iso-0621-9
  6. 0

    UnsupportedEncodingException for charset _iso-2022-jp$ESC when parsing eml file

    Kenai Bugzilla | 4 years ago | Brian_S
    java.io.UnsupportedEncodingException: _iso-2022-jp$ESC

  1. serious2monkeys 32 times, last 3 months ago
  2. rp 1 times, last 9 months ago
3 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.UnsupportedEncodingException

    ${P_ENCODING}

    at sun.nio.cs.StreamDecoder.forInputStreamReader()
  2. Java RT
    InputStreamReader.<init>
    1. sun.nio.cs.StreamDecoder.forInputStreamReader(Unknown Source)
    2. java.io.InputStreamReader.<init>(Unknown Source)
    2 frames
  3. org.pentaho.di
    CsvInputDialog$8.handleEvent
    1. org.pentaho.di.ui.trans.steps.csvinput.CsvInputDialog.getCSV(CsvInputDialog.java:800)
    2. org.pentaho.di.ui.trans.steps.csvinput.CsvInputDialog.access$800(CsvInputDialog.java:91)
    3. org.pentaho.di.ui.trans.steps.csvinput.CsvInputDialog$8.handleEvent(CsvInputDialog.java:553)
    3 frames
  4. RWT
    Display.readAndDispatch
    1. org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
    2. org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
    3. org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
    4. org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
    4 frames
  5. org.pentaho.di
    TransGraph.mouseDoubleClick
    1. org.pentaho.di.ui.trans.steps.csvinput.CsvInputDialog.open(CsvInputDialog.java:623)
    2. org.pentaho.di.ui.spoon.delegates.SpoonStepsDelegate.editStep(SpoonStepsDelegate.java:136)
    3. org.pentaho.di.ui.spoon.Spoon.editStep(Spoon.java:7840)
    4. org.pentaho.di.ui.spoon.trans.TransGraph.editStep(TransGraph.java:2753)
    5. org.pentaho.di.ui.spoon.trans.TransGraph.mouseDoubleClick(TransGraph.java:705)
    5 frames
  6. RWT
    Display.readAndDispatch
    1. org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)
    2. org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
    3. org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
    4. org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
    5. org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
    5 frames
  7. org.pentaho.di
    Spoon.main
    1. org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1219)
    2. org.pentaho.di.ui.spoon.Spoon.waitForDispose(Spoon.java:7049)
    3. org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:8309)
    4. org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:578)
    4 frames
  8. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    4. java.lang.reflect.Method.invoke(Unknown Source)
    4 frames
  9. org.pentaho.commons
    Launcher.main
    1. org.pentaho.commons.launcher.Launcher.main(Launcher.java:134)
    1 frame