Error updating jars with Eclipse GWT 2.0 plugin - eclipse

Ever since updating our project to the newest version of the Eclipse GWT plugin and GWT 2.0 we get an error when starting Eclipse.
This is the error message:
An internal error occurred during:
"Updating project/war/WEB-INF/lib with
jars from GWT - 2.0.0".
Here is the exception message:
java.lang.IllegalArgumentException:
Attempted to beginRule: R/, does not
match outer scope rule: P/project
Everything works just fine, I just get this error when Eclipse starts up. I've done everything I can think of to fix it, but it still happens.
Any ideas? Is anyone else getting this error?

This was seen when, for instance, using a too old version of subclipse (see this thread, and bug 129045 or bug 128709)
This is linked to a change in the ISchedulingRule modifyRule(IResource resource) of the Resources component.
So are you using a compatible version of eclipse (i.e 3.5x) with GWT2.0?

Related

Security Exception While Running TestNG test in Eclipse

Getting the below error while trying to run the TestNG test in Eclipse Neon . Seems like there is some sort signed content in jar dependency which is blocking this . have no idea what its though ..Any suggestions on how to fix this . Have never faced this before .
java.lang.SecurityException: Invalid signature file digest for Manifest main attributes
at sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:284)
at sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:238)
at java.util.jar.JarVerifier.processEntry(JarVerifier.java:273)
at java.util.jar.JarVerifier.update(JarVerifier.java:228)
at java.util.jar.JarFile.initializeVerifier(JarFile.java:383)
at java.util.jar.JarFile.getInputStream(JarFile.java:450)
at sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.java:162)
at java.net.URL.openStream(URL.java:1045)
at org.testng.remote.RemoteTestNG.getTestNGVersion(RemoteTestNG.java:84)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:39)
[ServiceLoaderHelper] More than one working implementation for 'null', we will use the first one
Exception in thread "main" java.lang.NoSuchMethodError: org.testng.internal.Utils.defaultIfStringEmpty(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
at org.testng.remote.AbstractRemoteTestNG.setHost(AbstractRemoteTestNG.java:59)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:122)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:58)
oh, I sort of got your problem, looks like you're using an pretty old version of testng (probably the 5.x), since TestNG eclipse plugin 6.9.12.201607091356, TestNG versions below 6.5.1 are not supported: https://github.com/cbeust/testng-eclipse/blob/master/CHANGES.md#6910
So please upgrade your testng version.
Edit: since TestNG Eclipse Plugin 6.9.13.201609291640, the whole TestNG 6.x series are supported (including 6.0 to 6.5.1), while the TestNG 5.x still not be supported.

Eclipse : Errors occurred during the build Groovy/Grail Project

I have installed GGTS plugin for eclipse kepler 3.5.1 RELEASE. I created simple grail project. But while building project. Its getting error
Errors occurred during the build.
Errors running builder 'Java Builder' on project 'FirstApp'.
org.codehaus.groovy.runtime.StringGroovyMethods.plus(Ljava/lang/String;Ljava/lang/CharSequence;)Ljava/lang/String;
and if we saw in markers, I found this error
Internal compiler error: java.lang.NoSuchMethodError: org.codehaus.groovy.runtime.StringGroovyMethods.plus(Ljava/lang/String;Ljava/lang/CharSequence;)Ljava/lang/String; at
org.codehaus.groovy.grails.transaction.transform.TransactionalTransform.moveOriginalCodeToNewMethod(TransactionalTransform.groovy:259)
Config.groovy /FirstApp/grails-app/conf line 0 Java Problem
I am using feroda 17. Eclipse Kepler.
We were experiencing the same error today, it turned out that the project created by GGTS had a groovy compiler level of 2.3 but the GGTS plugin only supported up to groovy compiler level 2.1.
The fix was to install the "groovy 2.3 compiler for groovy-eclipse".
The compiler can be found under the "language and support tooling" heading in the extensions browser which is opened by clicking the "IDE extensions" button in the STS dashboard.
Although the compiler states that it will automatically become the default workspace compiler in eclipse this did not happen for us. In fact we needed to set it as the workspace default in "preferrences > groovy > compiler" and then restart eclipse (maybe I restarted twice, cant remember exactly).
we also ended up installing "groovy 2.3 compiler for groovy-eclipse" twice as the first time an eclipse IDE update was installed, I think because our kepler installation was a bit old.
Hope this helps.

GGTS throwing error when building, string index out of range

I am working on a very large project, and am currently tasked to get the project to work correctly using GGTS rather than intelli-j. The project compiles and runs correctly from cygwin. However, when trying to build the project in GGTS an error occurs. The error thrown is as follows:
Errors occurred during the build.
Errors running builder 'Java Builder' on project 'project'.
String index out of range: -23
The error gets highlighted under a src/groovy package. specifically GGTS highlights the "p" in the following:
package com.bussiness.sys.rep
/* CODE */
When looking at the error thrown at this point the following is said.
The type org.joda.convert.FromString cannot be resolved. It is indirectly referenced from required .class files
I have tried multiple grails clean, refresh-dependencies, builds, looking into configuring the build path, and re-importing. I continue to get the same error. Any help would be appreciated.
Edit 1:
Using Grails 2.3.8, and GGTS 3.6.0.M1 based on eclipse 4.4, for Windows.

Using AspectJ/AJDT in RAD 7.5.5

I'm using RAD 7.5.5. I installed AJDT plugin from the download site:
http://archive.eclipse.org/tools/ajdt/34/update/
I converted one of the existing Java projects to an AspectJ project, added an aspect to print log statements on method start and end of a methodA(), rebuilt the project and deployed.
I'm getting the below exception when methodA() is called:
Exception thrown : java.lang.NoSuchMethodError: org/aspectj/runtime/reflect/Factory.makeMethodSig(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lorg/aspectj/lang/reflect/MethodSignature;
I googled and found this could be caused because of an older version of aspectjrt.jar. But RAD extends Eclipse 3.4 and hence I added the version of AJDT plugin that is compatible with Eclipse 3.4 (/RAD 7.5.5). Any pointers to what could be the problem?
Make sure that aspectjrt.jar is on your classpath. Also, make sure that it is the aspectjrt.jar that comes with AJDT.

Eclipse:An internal error occurred during: "Loading Web Service DOM...".

I am using eclipse 3.6 Helios version.I am working on it from last three months.But from last two days I am getting some error.
When eclipse started it is giving an error in this format:An internal error occurred during: "Loading Web Service DOM...".
org.eclipse.emf.ecore.util.EcoreEMap$DelegateEObjectContainmentEList
I am not getting how can suddenly error occurred.
After this if I do Ok and continue with eclipse I am getting error with eclipse import project
for existing work space and svn check out.
Please help me out.Thanks in advance.
After research a lot, I came to know that I my java version is degraded to 1.5.I dont know how it took place.So I updated my java version to 1.7 again.And this error is solved.