ravi991
(Ravi singh)
April 6, 2020, 8:01am
1
I am on mac and cloned open mrs for tag 2.3.0
git clone https://github.com/openmrs/openmrs-core.git
git checkout -b testing-2.3.0 2.3.0
I am getting following issues after hitting th URL :-
**java.lang.IllegalArgumentException** : **Locale part "en-GB" contains invalid characters**
**at** org.springframework.util.StringUtils.validateLocalePart ( **StringUtils.java:710** )
**at** org.springframework.util.StringUtils.parseLocaleString ( **StringUtils.java:690** )
**at** org.springframework.web.servlet.i18n.CookieLocaleResolver.parseLocaleCookieIfNecessary ( **CookieLocaleResolver.java:164** )
**at** org.springframework.web.servlet.i18n.CookieLocaleResolver.resolveLocaleContext ( **CookieLocaleResolver.java:136** )
**at** org.springframework.web.servlet.DispatcherServlet.buildLocaleContext ( **DispatcherServlet.java:1043** )
**at** org.springframework.web.servlet.FrameworkServlet.processRequest ( **FrameworkServlet.java:955** )
**at** org.springframework.web.servlet.FrameworkServlet.doGet ( **FrameworkServlet.java:857** )
**at** javax.servlet.http.HttpServlet.service ( **HttpServlet.java:687** )
**at** org.springframework.web.servlet.FrameworkServlet.service ( **FrameworkServlet.java:842** )
**at** javax.servlet.http.HttpServlet.service ( **HttpServlet.java:790** )
**at** org.eclipse.jetty.servlet.ServletHolder.handle ( **ServletHolder.java:816** )
Environment :-
Java version: 1.8.0_242,
Default locale: en_GB,
platform encoding: UTF-8
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
@ibacher @dkayiwa Could you please help me out with the issue.
sharif
(Sharif Magembe)
April 6, 2020, 8:09am
2
What is your Java -version, and maven version
sharif
(Sharif Magembe)
April 6, 2020, 8:37am
4
What java version are you using currently, what is java -version and mvn -v on command line
ravi991
(Ravi singh)
April 6, 2020, 8:40am
5
java -version
openjdk version "1.8.0_242"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_242-b08)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.242-b08, mixed mode)
mvn -v
**Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)**
Java version: 1.8.0_242, vendor: AdoptOpenJDK, runtime: /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/jre
Default locale: en_GB, platform encoding: UTF-8
OS name: "mac os x", version: "10.15.3", arch: "x86_64", family: "mac"
sharif
(Sharif Magembe)
April 6, 2020, 8:46am
6
Can you try cloning openmrs core 2.4.0-snapshot which is the current version
ravi991
(Ravi singh)
April 6, 2020, 8:48am
7
you mean checking out from master. Right?
sharif
(Sharif Magembe)
April 6, 2020, 8:55am
8
Yes, getting full openmrs-core master from git
ravi991
(Ravi singh)
April 6, 2020, 9:12am
9
I tried with that as well. However, there are lot more issues with that in comparison.
https://pastebin.com/zHemNpGh
dkayiwa
(Daniel Kayiwa)
April 6, 2020, 9:20am
10
spring-beans-5.2.4.RELEASE means you are running the master changes. 2.3.0 has https://github.com/openmrs/openmrs-core/blob/2.3.0/pom.xml#L1060
ravi991
(Ravi singh)
April 6, 2020, 9:25am
11
@dkayiwa Yeah I know that. So, I started this thread with issue I was facing on 2.3.0
It was just on the suggestion of @sharif that I tried with master.
So, issue at the top is with 2.3.0
dkayiwa
(Daniel Kayiwa)
April 6, 2020, 9:47am
12
I have made some more commits to the master branch and a couple of modules, as a result of your reports. So if you are doing all this for learning purposes, i would be glad if you can give me a helping hand by simply trying the master branch again. It greatly helps to have more than one pair of eyes.
1 Like
ravi991
(Ravi singh)
April 6, 2020, 9:53am
13
I already have the changes you committed 12 hours ago. I can help with this thing, it’s not an issue. However, I need at least one version running for development and testing workflow of open mrs. So, if you could please provide me with specific branch/tag which will work fine (along with other dependent modules like registration core, legacy ui etc) I would be glad.
dkayiwa
(Daniel Kayiwa)
April 6, 2020, 10:04am
14
The easiest way of doing that is use the OpenMRS SDK https://wiki.openmrs.org/display/docs/OpenMRS+SDK
Choose Distribution
and then select reference application version 2.9.0
ravi991
(Ravi singh)
April 6, 2020, 10:16am
15
Well I’ve tried that as well. The issue I was getting was
ravi991
(Ravi singh)
April 6, 2020, 10:34am
16
This locale issue… Is this with mac only?
dkayiwa
(Daniel Kayiwa)
April 6, 2020, 12:23pm
17
Which browser are you using?
1 Like
ravi991
(Ravi singh)
April 6, 2020, 12:25pm
18
Chrome. Should it affect?
dkayiwa
(Daniel Kayiwa)
April 6, 2020, 12:28pm
19
Do you get the same exact error if you try another browser?
ravi991
(Ravi singh)
April 6, 2020, 12:31pm
20
Well there you got it . No I am not getting that error with Safari.