Opened 13 years ago

Closed 13 years ago

#1126 closed defect (duplicate)

Illegal charset exception when I try to import new BASE1 configuration

Reported by: Jari Häkkinen Owned by: everyone
Priority: major Milestone:
Component: core Version: trunk
Keywords: Cc:

Description

During upload of the configuration I do not select a charset ... shouldn't there be a default selection. I have no project selected.

Version: BASE 2.9.0pre (build #4537; schema #64)

Change History (7)

comment:1 Changed 13 years ago by Nicklas Nordborg

Stacktrace?

comment:2 Changed 13 years ago by Jari Häkkinen

Of course. Some more details. After the upload clicking on Edit shows that no charset is selected. Changing this to n/a make the reading of the file possible, i.e. no stack trace.

java.nio.charset.IllegalCharsetNameException: 
...at java.nio.charset.Charset.checkName(Charset.java:274)
...at java.nio.charset.Charset.lookup2(Charset.java:459)
...at java.nio.charset.Charset.lookup(Charset.java:438)
...at java.nio.charset.Charset.forName(Charset.java:503)
...at net.sf.basedb.util.parser.FlatFileParser.setInputStream(FlatFileParser.java:534)
...at net.sf.basedb.plugins.Base1PluginExecuter.getInitializedFlatFileParser(Base1PluginExecuter.java:1330)
...at net.sf.basedb.plugins.Base1PluginExecuter.getParametersFromBaseFile(Base1PluginExecuter.java:991)
...at net.sf.basedb.plugins.Base1PluginExecuter.configure(Base1PluginExecuter.java:387)
...at net.sf.basedb.core.PluginConfigurationRequest.invoke(PluginConfigurationRequest.java:114)
...at org.apache.jsp.common.plugin.index_jsp._jspService(index_jsp.java:485)
...at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
...at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
...at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
...at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
...at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
...at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
...at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
...at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
...at net.sf.basedb.clients.web.servlet.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:70)
...at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
...at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
...at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
...at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
...at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
...at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
...at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
...at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
...at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
...at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
...at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
...at java.lang.Thread.run(Thread.java:637)

comment:3 Changed 13 years ago by Nicklas Nordborg

(In [4540]) References #425, #1126. Now sets character set correctly when file upload.

comment:4 Changed 13 years ago by Nicklas Nordborg

Milestone: BASE 2.9
Resolution: duplicate
Status: newclosed

Part of #425.

comment:5 Changed 13 years ago by Nicklas Nordborg

Resolution: duplicatefixed

(In [4714]) Fixes #1126: The "Share new files and subdirectories automatically" option causes ConnectionClosedException? in Base1PluginExecuter

comment:6 Changed 13 years ago by Nicklas Nordborg

Resolution: fixed
Status: closedreopened

Ignore last comment. It belongs to ticket #1226.

comment:7 Changed 13 years ago by Nicklas Nordborg

Resolution: duplicate
Status: reopenedclosed
Note: See TracTickets for help on using tickets.