Jar conflict at Engine startup due to Google FireStore Dependency in Custom Module

Hi,

I’m trying to develop a custom module that would write certain data into Google’s Firestore noSQL DB, but my local server won’t start because it looks like there is a conflict between 2 jars:

  • wms-server.jar

  • protobuf-java-3.5.1.jar

I’ve done this following instructions in these posts:

http://stancalau.ro/building-wowza-gradle/

https://firebase.google.com/docs/firestore/quickstart

I managed to test an example in my 4.7.1 installation, but soon after it got corrupted and after uninstalling it, I started with a fresh 4.7.5 installation in a different location.

Anytime I load the dependency, and I’ve even tried putting it in a different subfolder and making a jar jar, this error is shown in the command line

D:\Wowza Media Systems\Wowza Streaming Engine 4.7.5\bin>startup.bat
Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true
Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true
Listening for transport dt_socket at address: 2882
Exception in thread "main" java.lang.IllegalAccessError: tried to access class com.google.protobuf.CodedInputStream$1 from class com.wowza.wms.server.Server
        at com.wowza.wms.server.Server.<clinit>(Server.java:849)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.wowza.wms.bootstrap.Bootstrap.startServer(Bootstrap.java:653)
        at com.wowza.wms.bootstrap.Bootstrap.main(Bootstrap.java:70)

This is the closest post I’ve found about this topic, but I’m understanding that the problem is not in my jar…
http://community.wowza.com/community/questions/2052/how-to-use-newer-external-libraries-in-wowza-proje.html

These are my settings:

Windows 10

WME 4.7.5

Java 1.8.0_171

Do you have any suggestions? Any help would be appreciated.

Thanks in advance.

Do you have a solution or an alternative?

I have the same error, only with a different library