在linux下配置nexus后启动出错 -问答-阿里云开发者社区-阿里云

开发者社区> 杨冬芳> 正文

在linux下配置nexus后启动出错

2016-07-08 12:29:03 2589 1

Running Nexus OSS...
wrapper | --> Wrapper Started as Console
wrapper | Launching a JVM...
wrapper | JVM exited while loading the application.
jvm 1 | Exception in thread "main" java.lang.UnsupportedClassVersionError: org/sonatype/nexus/bootstrap/jsw/JswLauncher : Unsupported major.minor version 51.0
jvm 1 | at java.lang.ClassLoader.defineClass1(Native Method)
jvm 1 | at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
jvm 1 | at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
jvm 1 | at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
jvm 1 | at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
jvm 1 | at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
jvm 1 | at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
jvm 1 | at java.security.AccessController.doPrivileged(Native Method)
jvm 1 | at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
jvm 1 | at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
jvm 1 | at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
jvm 1 | at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
jvm 1 | Could not find the main class: org.sonatype.nexus.bootstrap.jsw.JswLauncher. Program will exit.
wrapper | Reloading Wrapper configuration...
wrapper | Launching a JVM...
wrapper | JVM exited while loading the application.
jvm 2 | Exception in thread "main" java.lang.UnsupportedClassVersionError: org/sonatype/nexus/bootstrap/jsw/JswLauncher : Unsupported major.minor version 51.0
jvm 2 | at java.lang.ClassLoader.defineClass1(Native Method)
jvm 2 | at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
jvm 2 | at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
jvm 2 | at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
jvm 2 | at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
jvm 2 | at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
jvm 2 | at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
jvm 2 | at java.security.AccessController.doPrivileged(Native Method)
jvm 2 | at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
jvm 2 | at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
jvm 2 | at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
jvm 2 | at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
jvm 2 | Could not find the main class: org.sonatype.nexus.bootstrap.jsw.JswLauncher. Program will exit.
wrapper | Reloading Wrapper configuration...
wrapper | Launching a JVM...
wrapper | JVM exited while loading the application.
jvm 3 | Exception in thread "main" java.lang.UnsupportedClassVersionError: org/sonatype/nexus/bootstrap/jsw/JswLauncher : Unsupported major.minor version 51.0
jvm 3 | at java.lang.ClassLoader.defineClass1(Native Method)
jvm 3 | at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
jvm 3 | at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
jvm 3 | at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
jvm 3 | at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
jvm 3 | at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
jvm 3 | at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
jvm 3 | at java.security.AccessController.doPrivileged(Native Method)
jvm 3 | at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
jvm 3 | at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
jvm 3 | at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
jvm 3 | at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
jvm 3 | Could not find the main class: org.sonatype.nexus.bootstrap.jsw.JswLauncher. Program will exit.
wrapper | Reloading Wrapper configuration...
wrapper | Launching a JVM...
wrapper | JVM exited while loading the application.
jvm 4 | Exception in thread "main" java.lang.UnsupportedClassVersionError: org/sonatype/nexus/bootstrap/jsw/JswLauncher : Unsupported major.minor version 51.0
jvm 4 | at java.lang.ClassLoader.defineClass1(Native Method)
jvm 4 | at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
jvm 4 | at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
jvm 4 | at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
jvm 4 | at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
jvm 4 | at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
jvm 4 | at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
jvm 4 | at java.security.AccessController.doPrivileged(Native Method)
jvm 4 | at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
jvm 4 | at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
jvm 4 | at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
jvm 4 | at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
jvm 4 | Could not find the main class: org.sonatype.nexus.bootstrap.jsw.JswLauncher. Program will exit.
wrapper | Reloading Wrapper configuration...
wrapper | Launching a JVM...
wrapper | JVM exited while loading the application.
jvm 5 | Exception in thread "main" java.lang.UnsupportedClassVersionError: org/sonatype/nexus/bootstrap/jsw/JswLauncher : Unsupported major.minor version 51.0
jvm 5 | at java.lang.ClassLoader.defineClass1(Native Method)
jvm 5 | at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
jvm 5 | at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
jvm 5 | at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
jvm 5 | at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
jvm 5 | at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
jvm 5 | at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
jvm 5 | at java.security.AccessController.doPrivileged(Native Method)
jvm 5 | at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
jvm 5 | at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
jvm 5 | at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
jvm 5 | at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
jvm 5 | Could not find the main class: org.sonatype.nexus.bootstrap.jsw.JswLauncher. Program will exit.
wrapper | There were 5 failed launches in a row, each lasting less than 300 seconds. Giving up.
wrapper | There may be a configuration problem: please check the logs.
wrapper | <-- Wrapper Stopped

取消 提交回答
全部回答(1)
  • 苍霞学子
    2021-03-14 22:21:26

    经确认,assetdownloadcount记录的是asset下载次数的数据,报错是因为记录delete失败,该表数据并不重要,故采用人工删除的方式解决,筛选日志,发现需要删除的表为truncate cluster assetdownloadcount_3,truncate cluster assetdownloadcount_5,truncate cluster assetdownloadcount_10,truncate cluster assetdownloadcount_15

    处理方案:

    1、进入/opt/nexus/目录下,执行命令:java -jar ./lib/support/nexus-orient-console.jar 进入orientdb命令行

    2、执行命令:CONNECT PLOCAL:/opt/sonatype-work/nexus3/db/component admin admin 连接到component库

    3、执行命令:

    truncate cluster assetdownloadcount_3

    truncate cluster assetdownloadcount_5

    truncate cluster assetdownloadcount_10

    truncate cluster assetdownloadcount_15

    删除有问题的cluster

    4、执行命令:

    REBUILD INDEX *

    REPAIR DATABASE --fix-graph

    REPAIR DATABASE --fix-links

    REPAIR DATABASE --fix-ridbags

    REPAIR DATABASE --fix-bonsai

    进行数据库修复

    0 0
相关问答

162

回答

惊喜翻倍:免费ECS+免费环境配置~!(ECS免费体验6个月活动3月31日结束)

豆妹 2014-10-29 17:52:21 222939浏览量 回答数 162

145

回答

【新手入门】云服务器linux使用手册

fanyue88888 2012-11-26 17:14:18 157038浏览量 回答数 145

8

回答

OceanBase 使用动画(持续更新)

mq4096 2019-02-20 17:16:36 333785浏览量 回答数 8

110

回答

OSS存储服务-客户端工具

newegg11 2012-05-17 15:37:18 292226浏览量 回答数 110

18

回答

阿里云开放端口权限

xcxx 2016-07-20 15:03:33 643012浏览量 回答数 18

38

回答

安全组详解,新手必看教程

我的中国 2017-11-30 15:23:46 256828浏览量 回答数 38

294

回答

Linux Bash严重漏洞修复紧急通知(已全部给出最终修复方案)

qilu 2014-09-25 13:26:50 431576浏览量 回答数 294

249

回答

阿里云LNAMP(Linux + Nginx + Apache + MySQL + PHP)环境一键安装脚本

云代维 2014-02-14 15:26:06 302557浏览量 回答数 249

40

回答

阿里云ecs从购买到环境搭建和建站!!(phpstudy一件包)

梦丫头 2014-07-29 20:51:49 162060浏览量 回答数 40

24

回答

【精品问答】python技术1000问(1)

问问小秘 2019-11-15 13:25:00 471189浏览量 回答数 24
+关注
杨冬芳
IT从业
1
文章
9167
问答
问答排行榜
最热
最新
推荐问答
相关电子书
更多
文娱运维技术
立即下载
《SaaS模式云原生数据仓库应用场景实践》
立即下载
《看见新力量:二》电子书
立即下载