Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

下载1.14-release版本启动报错 #29

Closed
weishengshui opened this issue Sep 21, 2016 · 5 comments · Fixed by #39
Closed

下载1.14-release版本启动报错 #29

weishengshui opened this issue Sep 21, 2016 · 5 comments · Fixed by #39
Labels
type/bug The PR fixed a bug or issue reported a bug
Milestone

Comments

@weishengshui
Copy link

Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class io.netty.channel.epoll.IovArray
at io.netty.channel.epoll.EpollEventLoop.(EpollEventLoop.java:62)
at io.netty.channel.epoll.EpollEventLoopGroup.newChild(EpollEventLoopGroup.java:114)
at io.netty.util.concurrent.MultithreadEventExecutorGroup.(MultithreadEventExecutorGroup.java:64)
at io.netty.channel.MultithreadEventLoopGroup.(MultithreadEventLoopGroup.java:49)
at io.netty.channel.epoll.EpollEventLoopGroup.(EpollEventLoopGroup.java:93)
at io.netty.channel.epoll.EpollEventLoopGroup.(EpollEventLoopGroup.java:80)
at io.netty.channel.epoll.EpollEventLoopGroup.(EpollEventLoopGroup.java:61)
at org.apache.bookkeeper.client.BookKeeper.getDefaultEventLoopGroup(BookKeeper.java:936)
at org.apache.bookkeeper.client.BookKeeper.(BookKeeper.java:243)
at com.yahoo.pulsar.broker.BookKeeperClientFactoryImpl.create(BookKeeperClientFactoryImpl.java:79)
at com.yahoo.pulsar.broker.ManagedLedgerClientFactory.(ManagedLedgerClientFactory.java:38)
at com.yahoo.pulsar.broker.PulsarService.start(PulsarService.java:231)
at com.yahoo.pulsar.PulsarStandaloneStarter.start(PulsarStandaloneStarter.java:143)
at com.yahoo.pulsar.PulsarStandaloneStarter.main(PulsarStandaloneStarter.java:175)

@merlimat
Copy link
Contributor

I cannot reproduce this error. Can you specify the exact steps and the versions for OS / JVM?

@weishengshui
Copy link
Author

JVM
[root@dev3 lib]# java -version
openjdk version "1.8.0_101"
OpenJDK Runtime Environment (build 1.8.0_101-b13)
OpenJDK Server VM (build 25.101-b13, mixed mode)

OS
[root@dev3 lib]# uname -a
Linux dev3 2.6.32-642.1.1.el6.i686 #1 SMP Tue May 31 20:41:01 UTC 2016 i686 i686 i386 GNU/Linux
[root@dev3 lib]# cat /proc/version
Linux version 2.6.32-642.1.1.el6.i686 (mockbuild@worker1.bsys.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-17) (GCC) ) #1 SMP Tue May 31 20:41:01 UTC 2016
[root@dev3 lib]# cat /etc/redhat-release
CentOS release 6.8 (Final)

bug重现步骤:
[root@dev3 ~]#wget https://github.com/yahoo/pulsar/releases/download/v1.14/pulsar-1.14-bin.tar.gz
[root@dev3 ~]#tar -zvxf pulsar-1.14-bin.tar.gz
[root@dev3 ~]#cd pulsar-1.14-bin
[root@dev3 pulsar-1.14-bin]#./bin/pulsar standalone

@merlimat
Copy link
Contributor

It might be related openjdk vs oraclejdk. In any case in BookKeeper.getDefaultEventLoopGroup we should be really catching the NoClassDefFoundError and fallback to the NIO event loop.

@merlimat merlimat added this to the 1.15 milestone Sep 22, 2016
@merlimat merlimat added the type/bug The PR fixed a bug or issue reported a bug label Sep 22, 2016
@radekg
Copy link
Contributor

radekg commented Sep 24, 2016

Related: netty/netty#4840

@merlimat
Copy link
Contributor

Committed a fix in bookkeeper branch at YahooArchive/bookkeeper@8982635

Will close this issues when updating BK version here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug The PR fixed a bug or issue reported a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants