Unsupported major.minor version 51.0 실행 에러가 발생하니다.

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Unsupported major.minor version 51.0 실행 에러가 발생하니다.

쿰람돔람
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/sun/tools/attach/VirtualMachine : Unsupported major.minor version 51.0

이에러가 발생하면서 실행이 안됩니다.
open jdk 지원 안한다고해서 오라클 자바로 설치를 다하였고 javac java java-version으로 java가 정상 설치 된것을 확인 할 수 있었는데요..
/usr/local/ngrinder-core-3.0.3/run_agent.sh

실행 시 실행이 안됩니다. 도와주세요..

Reply | Threaded
Open this post in threaded view
|

Re: Unsupported major.minor version 51.0 실행 에러가 발생하니다.

junoyoon
Administrator
느낌에.. 자바 잘못 설치하신게 맞는것 같습니다.

set 하셔서 환경 변수 리스트와..

java -version 으로 현재 값을 포스팅 해주세요.

그외에도 몇가지 더 잘못되어 있는데요..

3.0.3 은 현재 저희가 지원하는 버전이 아닙니다.

어디서 사용하실려는지 알려주시면 저희가 프로젝트를 유지하는게 큰 도움이 됩니다.
Reply | Threaded
Open this post in threaded view
|

Re: Unsupported major.minor version 51.0 실행 에러가 발생하니다.

쿰람돔람
root@ip-110-0-1-179:/usr/share/tomcat7/webapps# env
SHELL=/bin/bash
TERM=xterm
XDG_SESSION_COOKIE=526e5a0e79c06cadcd6fd124000000ec-1375165238.337050-1556403847
OLDPWD=/usr/share/tomcat7/webapps/ngrinder-controller-3.0.4
USER=root
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:
SUDO_USER=ubuntu
EC2_HOME=/ec2-api-tools-1.6.8.0
SUDO_UID=1000
USERNAME=root
MAIL=/var/mail/root
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/ec2-api-tools-1.6.8.0/bin:/jdk1.7.0_25/bin:/ec2-api-tools-1.6.8.0/bin:/jdk1.7.0_25/bin
PWD=/usr/share/tomcat7/webapps
JAVA_HOME=/jdk1.7.0_25
LANG=en_US.UTF-8
SHLVL=1
SUDO_COMMAND=/bin/su
HOME=/root
LOGNAME=root
CLASSPATH=/jdk1.7.0_25/jre/lib/ext:/jdk1.7.0_25/lib/tools.jar
LESSOPEN=| /usr/bin/lesspipe %s
SUDO_GID=1000
LESSCLOSE=/usr/bin/lesspipe %s %s
_=/usr/bin/env



root@ip-110-0-1-179:/usr/share/tomcat7/webapps# java -version
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)


이렇게 설정했습니다. 제발 자세히좀 알려주세요..환경운 아마존 우분투 12.04lts 입니다.
Reply | Threaded
Open this post in threaded view
|

Re: Unsupported major.minor version 51.0 실행 에러가 발생하니다.

쿰람돔람
아 환경설정은 잡은거 같은데요..

이런 에러가 발생하네요...

2013-07-30 06:42:23,187 ERROR net.grinder.util.NetworkUtil: Error while get localhost address
 
이건 왜이러죠.


2013-07-30 06:42:23,167 INFO  org.ngrinder.NGrinderStarter: Start nGrinder Agent ...
2013-07-30 06:42:23,172 INFO  org.ngrinder.NGrinderStarter: with console: 54.229.119.21:16001
2013-07-30 06:42:23,187 ERROR net.grinder.util.NetworkUtil: Error while get localhost address
java.net.UnknownHostException: ip-110-0-1-179: ip-110-0-1-179: Name or service not known
        at java.net.InetAddress.getLocalHost(InetAddress.java:1466) ~[na:1.7.0_25]
        at net.grinder.util.NetworkUtil.getLocalHostAddress(NetworkUtil.java:62) ~[ngrinder-core-3.0.3.jar:na]
        at org.ngrinder.NGrinderStarter.startAgent(NGrinderStarter.java:161) ~[ngrinder-core-3.0.3.jar:na]
        at org.ngrinder.NGrinderStarter.main(NGrinderStarter.java:341) ~[ngrinder-core-3.0.3.jar:na]
Caused by: java.net.UnknownHostException: ip-110-0-1-179: Name or service not known
        at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method) ~[na:1.7.0_25]
        at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:894) ~[na:1.7.0_25]
        at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1286) ~[na:1.7.0_25]
        at java.net.InetAddress.getLocalHost(InetAddress.java:1462) ~[na:1.7.0_25]
        ... 3 common frames omitted
2013-07-30 06:42:23,187 ERROR org.ngrinder.NGrinderStarter: ERROR: null
Reply | Threaded
Open this post in threaded view
|

Re: Unsupported major.minor version 51.0 실행 에러가 발생하니다.

junoyoon
Administrator
IP6 쓰시나요?

/etc/host 변경하셔서..
ip-110-0-1-179 해당IP

를 직접 기재해 보세요.
Reply | Threaded
Open this post in threaded view
|

Re: Unsupported major.minor version 51.0 실행 에러가 발생하니다.

쿰람돔람
vi /etc/hosts 이렇게 했는데요..
127.0.0.1  54.229.119.21

# The following lines are desirable for IPv6 capable hosts
#::1 ip6-localhost ip6-loopback
#fe00::0 ip6-localnet
#ff00::0 ip6-mcastprefix
#ff02::1 ip6-allnodes
#ff02::2 ip6-allrouters
#ff02::3 ip6-allhosts
~
~
~

2013-07-30 07:01:17,138 ERROR net.grinder.util.NetworkUtil: Error while get localhost address
java.net.UnknownHostException: ip-110-0-1-179: ip-110-0-1-179: Name or service not known
        at java.net.InetAddress.getLocalHost(InetAddress.java:1466) ~[na:1.7.0_25]
        at net.grinder.util.NetworkUtil.getLocalHostAddress(NetworkUtil.java:62) ~[ngrinder-core-3.0.3.jar:na]
        at org.ngrinder.NGrinderStarter.startAgent(NGrinderStarter.java:161) ~[ngrinder-core-3.0.3.jar:na]
        at org.ngrinder.NGrinderStarter.main(NGrinderStarter.java:341) ~[ngrinder-core-3.0.3.jar:na]
Caused by: java.net.UnknownHostException: ip-110-0-1-179: Name or service not known
        at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method) ~[na:1.7.0_25]
        at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:894) ~[na:1.7.0_25]
        at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1286) ~[na:1.7.0_25]
        at java.net.InetAddress.getLocalHost(InetAddress.java:1462) ~[na:1.7.0_25]
        ... 3 common frames omitted

계속 위의 에러가 발생합니다.
Reply | Threaded
Open this post in threaded view
|

Re: Unsupported major.minor version 51.0 실행 에러가 발생하니다.

junoyoon
Administrator
ngrinder ipv6를 지원하지 않습니다.
ip6 엔트리를 모두 지우시고

자신의IP 호스트명

만 하나 추가하세요.