jira error, encoding trouble

Alex Dobrinin December 22, 2014

after change the java encoding by adding the code below to to"setenv.sh".

JVM_SUPPORT_RECOMMENDED_ARGS="-Dfile.encoding=utf-8

-Dsun.jnu.encoding=utf-8", JIRA does not start.

5 answers

0 votes
Jānis Vītums December 9, 2016

Inside error message the first line is:

java.nio.charset.IllegalCharsetNameException: utf-8-Dsun.jnu.encoding=utf-8

and it says that Java can't find charset "utf-8-Dsun.jnu.encoding=utf-8" because it does not exist. The root cause is that you missed space before the second option and this option was used part of charset name.

You should type like this:

JVM_SUPPORT_RECOMMENDED_ARGS="-Dfile.encoding=utf-8 -Dsun.jnu.encoding=utf-8"
0 votes
Alex Dobrinin January 22, 2015

logs

/opt/atlassian/jira/logs/catalina.out:

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=384m; support was removed in 8.0
Error occurred during initialization of VM
java.nio.charset.IllegalCharsetNameException: utf-8-Dsun.jnu.encoding=utf-8
    at java.nio.charset.Charset.checkName(Unknown Source)
    at java.nio.charset.Charset.lookup2(Unknown Source)
    at java.nio.charset.Charset.lookup(Unknown Source)
    at java.nio.charset.Charset.defaultCharset(Unknown Source)
    at sun.nio.cs.StreamEncoder.forOutputStreamWriter(Unknown Source)
    at java.io.OutputStreamWriter.<init>(Unknown Source)
    at java.io.PrintStream.<init>(Unknown Source)
    at java.io.PrintStream.<init>(Unknown Source)
    at java.lang.System.newPrintStream(Unknown Source)
    at java.lang.System.initializeSystemClass(Unknown Source)

 

nothing more output

0 votes
Alex Dobrinin January 11, 2015

Hi!

https://yadi.sk/d/3RbQ16aBdujRh         my "setenv.sh"

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 11, 2015

Looks like a standard setenv.sh to me. No sign of your extra flags, so I assume this one is working ok.

Alex Dobrinin January 12, 2015

yes, but if you add a flag: JVM_SUPPORT_RECOMMENDED_ARGS="-Dfile.encoding=utf-8-Dsun.jnu.encoding=utf-8" does not start, flag needed to properly launch the plugin

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 12, 2015

So, we come back to the question I asked before 1. Why are you adding these flags? You probably don't need them 2. What does the log file say?

0 votes
Matheus Fernandes
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 23, 2014

Hi Alex,

Try reverting the change so you can start JIRA, but if possible attach here the setenv file that wasn't working so we can take a look.

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 23, 2014

Then take the flags out.  

There are two things here:

  1.  Why are you adding these flags?  You probably don't need them
  2. What does the log file say?

 

Suggest an answer

Log in or Sign up to answer