Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

BadLocationException when clicking BACK after setting CSV header #50

Open
johnjohndoe opened this issue Jul 30, 2015 · 0 comments
Open

Comments

@johnjohndoe
Copy link

I noticed a BadLocationException while using the importer. It is already catched here.

Steps to reproduce

  1. Start the importer from the shell via java -jar ./wizard/target/52n-sos-importer-wizard-bin.jar

  2. Select a .csv file, press Next

  3. Configure the .csv header: set Ignore data until line to 1, press Next

  4. Press Back

  5. Find the following stacktrace in the shell

    [AWT-EventQueue-0] ERROR Step2Panel - Exception thrown: No such line
    javax.swing.text.BadLocationException: No such line
    
        at javax.swing.JTextArea.getLineStartOffset(JTextArea.java:409) ~[na:1.7.0_79]
        at org.n52.sos.importer.view.Step2Panel.setCSVFileHighlight(Step2Panel.java:543) [52n-sos-importer-wizard-bin.jar:0.5.0-SNAPSHOT]
        at org.n52.sos.importer.view.Step2Panel$5.stateChanged(Step2Panel.java:362) [52n-sos-importer-wizard-bin.jar:0.5.0-SNAPSHOT]
        at javax.swing.JSpinner.fireStateChanged(JSpinner.java:457) [na:1.7.0_79]
        at javax.swing.JSpinner$ModelListener.stateChanged(JSpinner.java:385) [na:1.7.0_79]
        at javax.swing.AbstractSpinnerModel.fireStateChanged(AbstractSpinnerModel.java:119) [na:1.7.0_79]
        at javax.swing.SpinnerNumberModel.setValue(SpinnerNumberModel.java:447) [na:1.7.0_79]
        at org.n52.sos.importer.view.Step2Panel.setFirstLineWithData(Step2Panel.java:563) [52n-sos-importer-wizard-bin.jar:0.5.0-SNAPSHOT]
        at org.n52.sos.importer.controller.Step2Controller.loadSettings(Step2Controller.java:141) [52n-sos-importer-wizard-bin.jar:0.5.0-SNAPSHOT]
        at org.n52.sos.importer.controller.MainController.setStepController(MainController.java:86) [52n-sos-importer-wizard-bin.jar:0.5.0-SNAPSHOT]
        at org.n52.sos.importer.controller.BackNextController.backButtonClicked(BackNextController.java:96) [52n-sos-importer-wizard-bin.jar:0.5.0-SNAPSHOT]
        at org.n52.sos.importer.view.BackNextPanel$BackButtonClicked.actionPerformed(BackNextPanel.java:129) [52n-sos-importer-wizard-bin.jar:0.5.0-SNAPSHOT]
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018) [na:1.7.0_79]
    ...
    

Related

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant