I am trying to migrate my application grails2.x to grails 5.x I have upgraded all the dependencies as per the grails5. After resolving all the errors while running grails app using grails run -app I am getting "unable to compile s2-create-role-hierarchy-entry.groovy" unable to find org.grails.web.mime.httpresponse" in grails/config/Config
Could someone help on this.
Tried to find the dependency for missing class but couyfind it in grails5
Related
Hi I have build my plugin which fails to start with error as
Failed to parse configuration class
[com.q.plugins.config.MyPluginJavaConfig]; nested exception is java.io.FileNotFoundException: OSGi resource[classpath:com/atlassian/plugins/osgi/javaconfig/configs/beans/ModuleFactoryBean.class|bnd.id=187|bnd.sym=com.q.plugins.jira_dc_plugin] cannot be resolved to URL because it does not exist
[INFO] [talledLocalContainer] OSGi resource[classpath:com/atlassian/plugins/osgi/javaconfig/configs/beans/ModuleFactoryBean.class|bnd.id=187|bnd.sym=com.q.plugins.jira_dc_plugin] cannot be resolved to URL because it does not exist
My Setup
<jira.version>8.20.2</jira.version>
<platform.version>5.2.0</platform.version>
<refapp.version>5.3.0</refapp.version>
<amps.version>8.1.2</amps.version>
<plugin.testrunner.version>2.0.2</plugin.testrunner.version>
<osgi.javaconfig.version>0.5.0</osgi.javaconfig.version>
<spring.version>5.0.10.RELEASE</spring.version>
with OpenJDK 1.8 (java version "1.8.0_281")
My findings
Using atlasian SDK maven and repository
tried on clean start up using atlas- commands
same error when manually deployed to running Jira instance in docker
Followed - https://bitbucket.org/atlassian_tutorial/atlassian-plugins-osgi-javaconfig-demo/src/master/
Found similar question here but has no proper pointers to answer.
Thanks in advance.
I am using azure-cosmosdb 2.6.1 version dependency to connect to cosmosdb from spring boot application.
When i try to initialize asyncdocumentclient, I am getting the error
java.lang.NoSuchFieldError: ALLOW_TRAILING_COMMA and the client is not getting initialized. Can u plz help me in fixing this issue
The same is working when i run the application from commandline, but when I use IntellijIDEA IDE its not working. I tried reimporting the dependencies but it is not working.
Stacktrace:
1 = {StackTraceElement#11191} "com.microsoft.azure.cosmosdb.rx.internal.RxDocumentClientImpl.<clinit>(RxDocumentClientImpl.java:132)"
2 = {StackTraceElement#11192} "com.microsoft.azure.cosmosdb.rx.AsyncDocumentClient$Builder.build(AsyncDocumentClient.java:224)"```
I upgraded Spring Boot from 1.1.5 to 1.1.6, and after that, my (multi-project) build fails with:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':admin:bootRepackage'.
> Duplicate library commons-io-1.3.2.jar
All other tasks seem to have been successful (compileJava, compileGroovy, processResources, classes, jar, and distJar). I have one explicit dependency on the Commons I/O library in my build.gradle file:
compile group: 'org.apache.commons', name: 'commons-io', version: '1.3.2'
I'm using Gradle 2.1, but trying the build with 2.0 makes no difference. I ran gradle dependencies but it didn't reveal anything particularly interesting. Has anyone else seen this since upgrading? Reverting back to 1.1.5 solves the issue, so I'm guessing it's related to a new dependency in the Spring Boot jar(s) for 1.1.6. Any hints to a resolution are appreciated.
It sounds like you've found a bug caused by the fix for this issue. Can you please open an issue with the details of your dependencies so that we can track it down?
I have Grails 2.0.4 application that depends on a jar that depends on org.apache.httpcomponents:httpcore:4.3.1
I'm getting a NoSuchField exception which I managed to track down to org.apache.http.impl.conn.BasicLineParser.INSTANCE.
This field is only present from httpcore 4.3, before this version the field was BasicLineParser.DEFAULT instead
My BuildConfig.groovy is like:
dependencies {
runtime 'mysql:mysql-connector-java:5.1.16'
runtime 'org.apache.httpcomponents:httpclient:4.3.1'
runtime 'org.apache.httpcomponents:httpcore:4.3.1'
}
Running the dependecy report I found out the there is a signpost-commonshttp4 by oauth.signpost that depends on httpcore:4.0.1 which is probably the root cause of my issue, because it doesn't have the INSTANCE property.
I've tried to exclude this dependency adding
runtime('oauth.signpost:signpost-commonshttp4:1.2.1.1'){
excludes 'httpcore'
}
with no success.
Is there any other way to prevent the code to use the older library version?
Regards
RESOLVED
I managed to resolve this issue adding an extra dependecies configuration
build 'org.apache.httpcomponents:httpclient:4.3.1'
build 'org.apache.httpcomponents:httpcore:4.3.1'
along with the runtime
Thank you all
Using Maven to build my project under windows works fine, but when I build it under Linux I get a NoSuchMethodError regarding one of the spring libs.
I am guessing it is something to do with class loader differences cross-platform and somewhere in my dependencies and I may have the same class twice but windows is loading one while linux loads the other?
Has anyone come across this problem before, or have any advice on how I can debug this error further?
nested exception is java.lang.NoSuchMethodError:
org.springframework.aop.config.AopNamespaceUtils.registerAutoProxyCreatorIfNecessary(Lorg/springframework/beans/factory/xml/ParserContext;Lorg/w3c/dom/Element;)V:
java.lang.NoSuchMethodError:
org.springframework.aop.config.AopNamespaceUtils.registerAutoProxyCreatorIfNecessary(Lorg/springframework/beans/factory/xml/ParserContext;Lorg/w3c/dom/Element;)V
at org.springframework.transaction.config.AnnotationDrivenBeanDefinitionParser$AopAutoProxyConf
Stack Trace Pastie
POM.xml Pastie
Your spring dependencies have too many different versions:
org.springframework:spring-beans:jar:2.5.6:compile
org.springframework:spring-aop:jar:2.0.8:compile
org.springframework:spring-jms:jar:3.0.5.RELEASE:compile
Make all spring dependencies have the same version (preferably 3.0.5.RELEASE)