Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with lib jetbrains and Java 7 #58

Closed
tfinez opened this issue Aug 26, 2016 · 7 comments
Closed

Problems with lib jetbrains and Java 7 #58

tfinez opened this issue Aug 26, 2016 · 7 comments

Comments

@tfinez
Copy link

tfinez commented Aug 26, 2016

Plugin jetbrains is not compatible with a system running Java 7. We have the version 2013 sp1 then we can't update to Java 8, because we will lost the support from sdl Tridion if we have any issue. Please keep compatible with both products: 2013 sp1 and web8. The master version is not working with java 7.

@bkoopman
Copy link
Contributor

bkoopman commented Aug 26, 2016

Can you provide a bit more detail on where you encounter this issue exactly? Please also note that for 2013 SP1, Java 8 is the advised prerequisite as documented http://docs.sdl.com/LiveContent/content/en-US/SDL%20Tridion%20full%20documentation-v1/GUID-DBBDB18C-93AC-4E8E-B529-A9321E706C9A

Java 7 is only required when using an IBM DB2 broker database.

@tfinez
Copy link
Author

tfinez commented Aug 26, 2016

When trying to start the app with JBoss EAP + jdk 1.7, we get the following error:

java.lang.UnsupportedClassVersionError: org/jetbrains/annotations/Nullable : Unsupported major.minor version 52.0

When it's trying to load the beans in the classes that are using this lib.

I add the full stacktrace error:

dxa-common-impl-1.6.0-SNAPSHOT.jar/com/sdl/webapp/common/impl/contextengine/DeviceFamiliesEvaluator.class"; nested exception is java.lang.UnsupportedClassVersionError: org/jetbrains/annotations/Nullable : Unsupported major.minor version 52.0
at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.findCandidateComponents(ClassPathScanningCandidateComponentProvider.java:262) [spring-context-3.1.4.RELEASE.jar:3.1.4.RELEASE]
at org.springframework.context.annotation.ClassPathBeanDefinitionScanner.doScan(ClassPathBeanDefinitionScanner.java:242) [spring-context-3.1.4.RELEASE.jar:3.1.4.RELEASE]
at org.springframework.context.annotation.ComponentScanBeanDefinitionParser.parse(ComponentScanBeanDefinitionParser.java:84) [spring-context-3.1.4.RELEASE.jar:3.1.4.RELEASE]
at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:73) [spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]
at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1423) [spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]
at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1413) [spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:184) [spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:140) [spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:111) [spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:493) [spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:390) [spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334) [spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302) [spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocumentReader.java:255) [spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]
... 30 more
Caused by: java.lang.UnsupportedClassVersionError: org/jetbrains/annotations/Nullable : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.7.0_79]
at java.lang.ClassLoader.defineClass(ClassLoader.java:800) [rt.jar:1.7.0_79]
at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:361) [jboss-modules.jar:1.3.6.Final-redhat-1]
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:482) [jboss-modules.jar:1.3.6.Final-redhat-1]
at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:277) [jboss-modules.jar:1.3.6.Final-redhat-1]
at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:92) [jboss-modules.jar:1.3.6.Final-redhat-1]
at org.jboss.modules.Module.loadModuleClass(Module.java:568) [jboss-modules.jar:1.3.6.Final-redhat-1]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205) [jboss-modules.jar:1.3.6.Final-redhat-1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.6.Final-redhat-1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.6.Final-redhat-1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.6.Final-redhat-1]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.6.Final-redhat-1]
at org.springframework.core.type.classreading.RecursiveAnnotationAttributesVisitor.visitEnd(AnnotationAttributesReadingVisitor.java:163) [spring-core-3.1.4.RELEASE.jar:3.1.4.RELEASE]
at org.springframework.asm.ClassReader.a(Unknown Source) [spring-asm-3.1.4.RELEASE.jar:3.1.4.RELEASE]
at org.springframework.asm.ClassReader.accept(Unknown Source) [spring-asm-3.1.4.RELEASE.jar:3.1.4.RELEASE]
at org.springframework.asm.ClassReader.accept(Unknown Source) [spring-asm-3.1.4.RELEASE.jar:3.1.4.RELEASE]
at org.springframework.core.type.classreading.SimpleMetadataReader.(SimpleMetadataReader.java:59) [spring-core-3.1.4.RELEASE.jar:3.1.4.RELEASE]
at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:80) [spring-core-3.1.4.RELEASE.jar:3.1.4.RELEASE]
at org.springframework.core.type.classreading.CachingMetadataReaderFactory.getMetadataReader(CachingMetadataReaderFactory.java:101) [spring-core-3.1.4.RELEASE.jar:3.1.4.RELEASE]
at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.findCandidateComponents(ClassPathScanningCandidateComponentProvider.java:238) [spring-context-3.1.4.RELEASE.jar:

@tfinez
Copy link
Author

tfinez commented Aug 26, 2016

Thank you Bart. Then we will have to use the version 13.0 which is compatible until we migrate to java 8.

@tfinez tfinez closed this as completed Aug 26, 2016
@bkoopman
Copy link
Contributor

Please note you are using the unreleased 1.6 snapshot versions there, you might want to stick with the release/1.5 branch since you won't have the CM version of 1.6 until that is released.

@NunoLinhares
Copy link

we can't update to Java 8, because we will lost the support from sdl Tridion

This is not true. It was announced in the support newsletter and the documentation was updated - we support Java 8 on SDL Tridion 2013 SP1 (both CM and CD) with no code changes. See http://docs.sdl.com/LiveContent/content/en-US/SDL%20Tridion%20full%20documentation-v1/GUID-DBBDB18C-93AC-4E8E-B529-A9321E706C9A for more info.

@bkoopman
Copy link
Contributor

Also we compile our framework against Java 1.7 for compatibility reasons, as you can see in https://github.com/sdl/dxa-web-application-java/blob/master/dxa-framework/pom.xml when building we use 1.7

@tfinez
Copy link
Author

tfinez commented Aug 26, 2016

We don't have any compilation issue, but runtime issue.

2016-08-26 10:10 GMT+02:00 Bart Koopman notifications@github.com:

Also we compile our framework against Java 1.7 for compatibility reasons,
as you can see in https://github.com/sdl/dxa-web-application-java/blob/
master/dxa-framework/pom.xml when building we use 1.7


You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
#58 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEs4gTSKCt5U9c3pFAsfePm1qumtfyeMks5qjp99gaJpZM4JtzdS
.

Teresa Fínez

rpannekoek pushed a commit that referenced this issue Aug 28, 2017
rpannekoek pushed a commit that referenced this issue Oct 5, 2017
…76 to develop

* commit '057cdb0524c187a23696ca59c29893d2913774c3':
  Added base URL to urls in sitemap. Restored leading slash
  Added base URL to urls in sitemap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants