尝试在 IBM WAS 服务器中使用 Netty 时无法打开输入流错误



我尝试使用netty jars,作为pushy library(https://github.com/relayrides/pushy)的一部分来发送Apple推送通知。它在我当地的雄猫中运行良好。当我尝试在 IBM WAS 上部署相同的内容并启动我的服务器时,它给了我以下异常。

com.ibm.ws.ecs.internal.scan.context.impl.ScannerContextImpl scanJAR 无法在存档 WEB-INF/lib/netty-common-4.1.16.Final.class 中打开资源 io/netty/util/internal/shaded/org/jctools/queues/package-info 的输入流.jar

请在下面找到正在使用的版本。

是 - 8.5.5爪哇 - 1.7网 - 4.1.16

请帮助我了解问题的原因以及如何解决问题。谢谢。

查看 "netty-common-4.1.16.Final.jar"

https://mvnrepository.com/artifact/io.netty/netty-common/4.1.16.Final

我看到这个资源:

netty-common-4.1.16.Final.jar/io/netty/util/internal/shaded/org/jctools/queues/package-info.class

这是使用 java8 编译器编译的。 这似乎是不正确的 - JAR的其他类资源都没有使用java8编译。

"包信息"的数据(内部报告格式):

/netty-common-4.1.16.Final.jar/io/netty/util/internal/shaded/org/jctools/queues/package-info.class
    interface synthetic io.netty.util.internal.shaded.org.jctools.queues.package-info
        extends java.lang.Object
        Version [ 0x34 0x00 ] ( J2SE 8 )

相同的数据,例如,对于"Log4JLoggerFactory":

/netty-common-4.1.16.Final.jar/io/netty/util/internal/logging/Log4JLoggerFactory.class
    public io.netty.util.internal.logging.Log4JLoggerFactory
        extends io.netty.util.internal.logging.InternalLoggerFactory
        Version [ 0x32 0x00 ] ( J2SE 6.0 )
        [F] public static final INSTANCE : [ Lio/netty/util/internal/logging/InternalLoggerFactory; ]
        [M] public deprecated <init> : [ ()V ] ( void )
            @java.lang.Deprecated
        [M] public newInstance : [ (Ljava/lang/String;)Lio/netty/util/internal/logging/InternalLogger; ]
        [M] static <clinit> : [ ()V ] ( void )

您可以尝试在删除该资源的情况下重新运行吗? (或者,重建为不使用java8? IBM WebSphere 不会处理 java8 类,除非达到足够高的服务级别(8.5.5.9 及更高)。 或者,尝试使用更高的 WebSphere 服务级别。

最新更新