[Closed] Build failure

Ask and solve about DragonetMC softwares here.
snailthinker
Posts: 12
Joined: February 11th, 2016, 6:33 am

[Closed] Build failure

Postby snailthinker » February 12th, 2016, 4:58 pm

Hello! Thanks once again for creating DragonProxy.

I'm trying to build from source on ubuntu 15.10 with maven3 and openjdk 8. I'm getting stuck on a compile time error I don't understand, can anybody point me in the right direction? (I want to build from source because I want to put in a different auth system than the built-in ones).

I feel like the proxy class should know about getRemoteServerAddress() since this ships with java, correct? (not a huge java expert)

I did these steps:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -y maven

then in my source folder:

mvn install
mvn package

This fails as per below. Not sure whether the zip file I get from github is missing some files or...? Any and all tips appreciated!

Code: Select all

~/dragonproxy/DragonProxy-master# mvn package
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building DragonProxy 0.0.3-preR4
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.3:resources (default-resources) @ DragonProxy ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ DragonProxy ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 210 source files to /root/dragonproxy/DragonProxy-master/target/classes
[INFO] -------------------------------------------------------------
[WARNING] COMPILATION WARNING :
[INFO] -------------------------------------------------------------
[WARNING] /root/dragonproxy/DragonProxy-master/src/main/java/org/dragonet/proxy/network/translator/ItemBlockTranslator.java: Some input files use unchecked or unsafe operations.
[WARNING] /root/dragonproxy/DragonProxy-master/src/main/java/org/dragonet/proxy/network/translator/ItemBlockTranslator.java: Recompile with -Xlint:unchecked for details.
[INFO] 2 warnings
[INFO] -------------------------------------------------------------
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /root/dragonproxy/DragonProxy-master/src/main/java/org/dragonet/proxy/network/UpstreamSession.java:[242,47] cannot find symbol
  symbol:   method getRemoteServerAddress()
  location: variable proxy of type org.dragonet.proxy.DragonProxy
[ERROR] /root/dragonproxy/DragonProxy-master/src/main/java/org/dragonet/proxy/network/UpstreamSession.java:[245,47] cannot find symbol
  symbol:   method getRemoteServerAddress()
  location: variable proxy of type org.dragonet.proxy.DragonProxy
[ERROR] /root/dragonproxy/DragonProxy-master/src/main/java/org/dragonet/proxy/network/UpstreamSession.java:[324,47] cannot find symbol
  symbol:   method getRemoteServerAddress()
  location: variable proxy of type org.dragonet.proxy.DragonProxy
[ERROR] /root/dragonproxy/DragonProxy-master/src/main/java/org/dragonet/proxy/network/DownstreamSession.java:[77,40] cannot find symbol
  symbol:   method getRemoteServerAddress()
  location: variable proxy of type org.dragonet.proxy.DragonProxy
[ERROR] /root/dragonproxy/DragonProxy-master/src/main/java/org/dragonet/proxy/network/DownstreamSession.java:[77,88] cannot find symbol
  symbol:   method getRemoteServerAddress()
  location: variable proxy of type org.dragonet.proxy.DragonProxy
[INFO] 5 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12.409 s
[INFO] Finished at: 2016-02-12T10:50:54-05:00
[INFO] Final Memory: 16M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project DragonProxy: Compilation failure: Compilation failure:
[ERROR] /root/dragonproxy/DragonProxy-master/src/main/java/org/dragonet/proxy/network/UpstreamSession.java:[242,47] cannot find symbol
[ERROR] symbol:   method getRemoteServerAddress()
[ERROR] location: variable proxy of type org.dragonet.proxy.DragonProxy
[ERROR] /root/dragonproxy/DragonProxy-master/src/main/java/org/dragonet/proxy/network/UpstreamSession.java:[245,47] cannot find symbol
[ERROR] symbol:   method getRemoteServerAddress()
[ERROR] location: variable proxy of type org.dragonet.proxy.DragonProxy
[ERROR] symbol:   method getRemoteServerAddress()
[ERROR] location: variable proxy of type org.dragonet.proxy.DragonProxy
[ERROR] /root/dragonproxy/DragonProxy-master/src/main/java/org/dragonet/proxy/network/UpstreamSession.java:[324,47] cannot find symbol
[ERROR] symbol:   method getRemoteServerAddress()
[ERROR] location: variable proxy of type org.dragonet.proxy.DragonProxy
[ERROR] /root/dragonproxy/DragonProxy-master/src/main/java/org/dragonet/proxy/network/DownstreamSession.java:[77,40] cannot find symbol
[ERROR] symbol:   method getRemoteServerAddress()
[ERROR] location: variable proxy of type org.dragonet.proxy.DragonProxy
[ERROR] /root/dragonproxy/DragonProxy-master/src/main/java/org/dragonet/proxy/network/DownstreamSession.java:[77,88] cannot find symbol
[ERROR] symbol:   method getRemoteServerAddress()
[ERROR] location: variable proxy of type org.dragonet.proxy.DragonProxy
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

DefinitlyEvil
Site Admin
Posts: 38
Joined: February 4th, 2016, 4:13 am

Re: Build failure

Postby DefinitlyEvil » February 13th, 2016, 8:40 am

snailthinker wrote:Hello! Thanks once again for creating DragonProxy.

I'm trying to build from source on ubuntu 15.10 with maven3 and openjdk 8. I'm getting stuck on a compile time error I don't understand, can anybody point me in the right direction? (I want to build from source because I want to put in a different auth system than the built-in ones).

I feel like the proxy class should know about getRemoteServerAddress() since this ships with java, correct? (not a huge java expert)

I did these steps:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -y maven

then in my source folder:

mvn install
mvn package

This fails as per below. Not sure whether the zip file I get from github is missing some files or...? Any and all tips appreciated!

Code: Select all

~/dragonproxy/DragonProxy-master# mvn package
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building DragonProxy 0.0.3-preR4
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.3:resources (default-resources) @ DragonProxy ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ DragonProxy ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 210 source files to /root/dragonproxy/DragonProxy-master/target/classes
[INFO] -------------------------------------------------------------
[WARNING] COMPILATION WARNING :
[INFO] -------------------------------------------------------------
[WARNING] /root/dragonproxy/DragonProxy-master/src/main/java/org/dragonet/proxy/network/translator/ItemBlockTranslator.java: Some input files use unchecked or unsafe operations.
[WARNING] /root/dragonproxy/DragonProxy-master/src/main/java/org/dragonet/proxy/network/translator/ItemBlockTranslator.java: Recompile with -Xlint:unchecked for details.
[INFO] 2 warnings
[INFO] -------------------------------------------------------------
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /root/dragonproxy/DragonProxy-master/src/main/java/org/dragonet/proxy/network/UpstreamSession.java:[242,47] cannot find symbol
  symbol:   method getRemoteServerAddress()
  location: variable proxy of type org.dragonet.proxy.DragonProxy
[ERROR] /root/dragonproxy/DragonProxy-master/src/main/java/org/dragonet/proxy/network/UpstreamSession.java:[245,47] cannot find symbol
  symbol:   method getRemoteServerAddress()
  location: variable proxy of type org.dragonet.proxy.DragonProxy
[ERROR] /root/dragonproxy/DragonProxy-master/src/main/java/org/dragonet/proxy/network/UpstreamSession.java:[324,47] cannot find symbol
  symbol:   method getRemoteServerAddress()
  location: variable proxy of type org.dragonet.proxy.DragonProxy
[ERROR] /root/dragonproxy/DragonProxy-master/src/main/java/org/dragonet/proxy/network/DownstreamSession.java:[77,40] cannot find symbol
  symbol:   method getRemoteServerAddress()
  location: variable proxy of type org.dragonet.proxy.DragonProxy
[ERROR] /root/dragonproxy/DragonProxy-master/src/main/java/org/dragonet/proxy/network/DownstreamSession.java:[77,88] cannot find symbol
  symbol:   method getRemoteServerAddress()
  location: variable proxy of type org.dragonet.proxy.DragonProxy
[INFO] 5 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12.409 s
[INFO] Finished at: 2016-02-12T10:50:54-05:00
[INFO] Final Memory: 16M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project DragonProxy: Compilation failure: Compilation failure:
[ERROR] /root/dragonproxy/DragonProxy-master/src/main/java/org/dragonet/proxy/network/UpstreamSession.java:[242,47] cannot find symbol
[ERROR] symbol:   method getRemoteServerAddress()
[ERROR] location: variable proxy of type org.dragonet.proxy.DragonProxy
[ERROR] /root/dragonproxy/DragonProxy-master/src/main/java/org/dragonet/proxy/network/UpstreamSession.java:[245,47] cannot find symbol
[ERROR] symbol:   method getRemoteServerAddress()
[ERROR] location: variable proxy of type org.dragonet.proxy.DragonProxy
[ERROR] symbol:   method getRemoteServerAddress()
[ERROR] location: variable proxy of type org.dragonet.proxy.DragonProxy
[ERROR] /root/dragonproxy/DragonProxy-master/src/main/java/org/dragonet/proxy/network/UpstreamSession.java:[324,47] cannot find symbol
[ERROR] symbol:   method getRemoteServerAddress()
[ERROR] location: variable proxy of type org.dragonet.proxy.DragonProxy
[ERROR] /root/dragonproxy/DragonProxy-master/src/main/java/org/dragonet/proxy/network/DownstreamSession.java:[77,40] cannot find symbol
[ERROR] symbol:   method getRemoteServerAddress()
[ERROR] location: variable proxy of type org.dragonet.proxy.DragonProxy
[ERROR] /root/dragonproxy/DragonProxy-master/src/main/java/org/dragonet/proxy/network/DownstreamSession.java:[77,88] cannot find symbol
[ERROR] symbol:   method getRemoteServerAddress()
[ERROR] location: variable proxy of type org.dragonet.proxy.DragonProxy
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

Please use a release(or pre-release) code base, we are updating to a system like BungeeCord so the code is broken for now.
PS: I am glad that u didn't make it an issue. Lol

snailthinker
Posts: 12
Joined: February 11th, 2016, 6:33 am

Re: Build failure

Postby snailthinker » February 13th, 2016, 4:08 pm

OK. but then it won't support the latest MCPE protocol 0.13.2 or even 0.13.1, correct? just wondering... thanks!!!

duh yes it will https://github.com/DragonetMC/DragonProxy/releases, at least 0.13.1. OK I'll try it out. Thanks for your attention!

snailthinker
Posts: 12
Joined: February 11th, 2016, 6:33 am

Re: Build failure

Postby snailthinker » February 13th, 2016, 4:15 pm

YAY!

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------


Return to “Questions & Answers”

Who is online

Users browsing this forum: No registered users and 2 guests