We migrated our project to JDK 1.7 from 1.6. Getting below run time exception for few JUNITS which worked fine with JDK 1.6.
Found that we may be hitting below bugs in JDK 1.7 related to specifying file.encoding=UTF-8 while running java.
Does any one have hit this issue? Looking for any workaround and possible solutions.
7181721,7050570
java.lang.ExceptionInInitializerError
at java.nio.file.FileSystems.getDefault(FileSystems.j ava:176)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.TimeZone.getTimeZone(TimeZone.java:571)
at java.util.TimeZone.setDefaultZone(TimeZone.java:66 8)
at java.util.TimeZone.getDefaultRef(TimeZone.java:635 )
at java.util.Calendar.getInstance(Calendar.java:968)
at org.eclipse.persistence.internal.helper.Helper.ini tCalendarCache(Helper.java:165)
at org.eclipse.persistence.internal.helper.Helper.<cl init>(Helper.java:81)
at org.eclipse.persistence.descriptors.ClassDescripto r.getAlias(ClassDescriptor.java:1902)
at org.eclipse.persistence.sessions.Project.addDescri ptor(Project.java:371)
at org.eclipse.persistence.sessions.Project.addDescri ptor(Project.java:1)
at org.eclipse.persistence.jaxb.compiler.MappingsGene rator.generateDescriptor(MappingsGenerator.java:51 5)
at org.eclipse.persistence.jaxb.compiler.MappingsGene rator.generateProject(MappingsGenerator.java:231)
at org.eclipse.persistence.jaxb.compiler.Generator.ge nerateProject(Generator.java:188)
at org.eclipse.persistence.jaxb.JAXBContext$ContextPa thInput.createContextState(JAXBContext.java:883)
at org.eclipse.persistence.jaxb.JAXBContext$ContextPa thInput.createContextState(JAXBContext.java:876)
at org.eclipse.persistence.jaxb.JAXBContext$ContextPa thInput.createContextState(JAXBContext.java:812)
at org.eclipse.persistence.jaxb.JAXBContext.<init>(JA XBContext.java:174)
at org.eclipse.persistence.jaxb.JAXBContextFactory.cr eateContext(JAXBContextFactory.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at java.lang.reflect.Method.invoke(Method.java:601)
at javax.xml.bind.ContextFinder.newInstance(ContextFi nder.java:172)
at javax.xml.bind.ContextFinder.newInstance(ContextFi nder.java:132)
at javax.xml.bind.ContextFinder.find(ContextFinder.ja va:294)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext .java:431)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext .java:394)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext .java:298)
at com.cisco.ccbu.uccx.adminapi.common.Util.getContex t(Util.java:47)
<---our project source calls JAXBContext.newInstance()---->