Error: "java.lang.IllegalStateException: AnnotationTransactionAttributeSource is only available on Java 1.5 and higher" Running The Integration API With Java 8 (Doc ID 2096162.1)

Last updated on AUGUST 31, 2016

Applies to:

Primavera P6 Enterprise Project Portfolio Management - Version 8.0 to 8.4.0.0 [Release 8.0 to 8.4]
Information in this document applies to any platform.

Symptoms

When compiling and running the Primavera Integration API with Java 8, the following error occurs:


ERROR
-------
TIMESTAMP INFO - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@724af044: defining beans [metaConfigProvider,settingsManager,adminManager,LogMgr,performanceManager,threadPool,remoteQManager,subSystemInitializer,sqlConnectionPoolManager,registryService,tracer,mailService,systemFacade]; root of factory hierarchy

org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from URL location [classpath:/com/primavera/services/common/commonssconf.xml]

Offending resource: class path resource [/com/primavera/bre/integration/intgssconf.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [com/primavera/services/common/commonssconf.xml]; nested exception is java.lang.IllegalStateException: AnnotationTransactionAttributeSource is only available on Java 1.5 and higher at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)


STEPS TO REPRODUCE:
-------------------------
1. Install Java 8
2. Install the Integration API with Java 8
3. Note the error which occurs when utilizing this version of java

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms