Code Monkey home page Code Monkey logo

Comments (5)

jgritman avatar jgritman commented on May 29, 2024

This is a know issue with Java 7 and Asgard. We checked in a fix (#246) last week.

For now, you can either switch to Java 6 or build Asgard from source. We'll try to have new release version of Asgard published by the end of the week containing the fix.

from asgard.

danielhunt avatar danielhunt commented on May 29, 2024

Ah - thanks for the detail.
I'm happy to wait for the next release - it's not critical for me right now.

If that changes, I'll just grab the source and build it myself.

from asgard.

phstc avatar phstc commented on May 29, 2024

I'm having a similar error using Java "1.6.0_24". I get the error bellow trying to create an autoscaling policy or trying to access an already created. Even with an error, the policy is created.

Error 500: Executing action [show] of controller [com.netflix.asgard.ScalingPolicyController] caused exception: Runtime error executing action
Servlet: grails
URI: /asgard/grails/scalingPolicy/show.dispatch
Exception Message: 
Caused by: 
Class: ScalingPolicyController 
At Line: [83] 
Code Snippet:


java.lang.NullPointerException

    at com.sun.beans.TypeResolver.resolve(TypeResolver.java:321)

    at com.sun.beans.TypeResolver.resolve(TypeResolver.java:351)

    at com.sun.beans.TypeResolver.resolve(TypeResolver.java:172)

    at com.sun.beans.TypeResolver.resolveInClass(TypeResolver.java:93)

    at java.beans.FeatureDescriptor.getParameterTypes(FeatureDescriptor.java:385)

    at java.beans.MethodDescriptor.setMethod(MethodDescriptor.java:116)

    at java.beans.MethodDescriptor.<init>(MethodDescriptor.java:74)

    at java.beans.MethodDescriptor.<init>(MethodDescriptor.java:58)

    at java.beans.Introspector.getTargetMethodInfo(Introspector.java:1200)

    at java.beans.Introspector.getBeanInfo(Introspector.java:424)

    at java.beans.Introspector.getBeanInfo(Introspector.java:190)

    at com.netflix.asgard.CachedMap.putAllAndRemoveMissing(CachedMap.groovy:256)

    at com.netflix.asgard.AwsCloudWatchService.getAlarms(AwsCloudWatchService.groovy:103)

    at com.netflix.asgard.ScalingPolicyController$_closure4.doCall(ScalingPolicyController.groovy:83)

    at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)

    at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)

    at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)

    at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)

    at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:380)

    at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)

    at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)

    at org.apache.shiro.grails.SavedRequestFilter.doFilter(SavedRequestFilter.java:55)

    at com.planetj.servlet.filter.compression.CompressingFilter.doFilter(CompressingFilter.java:270)

    at de.javakaffee.web.msm.SessionTrackerValve.invoke(SessionTrackerValve.java:126)

    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)

    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)

    at java.lang.Thread.run(Thread.java:679)

from asgard.

joesondow avatar joesondow commented on May 29, 2024

@phstc Do you know if you were running OpenJDK or Oracle JDK when you saw the NullPointerException in TypeResolver? I've seen TypeResolver errors in the past when running on OpenJDK 6. Switching to Oracle JDK 6 fixed the problem at the time.

It's also possible that some of your Asgard files were cached in Tomcat's work directory, so replacing the Asgard war file wasn't sufficient for a complete upgrade. If you still the see the problem, try stopping Tomcat, replacing the Asgard war with the latest release, then deleting Tomcat's work directory, then restarting Tomcat.

from asgard.

phstc avatar phstc commented on May 29, 2024

I got these errors running Oracle JDK. Now, I'm using only the standalone version, it is working well.

from asgard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.