Java 8 Prompts for Incoming Network Connections

For help and support with Universal Media Server
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
michaelt
Posts: 155
Joined: Tue Feb 03, 2015 11:18 am
Location: lost in the depths of my mind

Re: Java 8 Prompts for Incoming Network Connections

Post by michaelt »

For now we can keep it in the open - no 'hidden' stuff to help intruders yet.

Until recently this was just a limited system where I used WaterRoof & ZenMap to close the doors. With the emergence of PF and IceFloor to 'manage' it, things got ugly. I have not yet fully understood the PF operation nor IceFloor operation. So I deinstalled IceFloor - no change. Now I need to research deeper into PF and what IceFloor may have modified or left behind.

Now only the OSX firewall should be in control. Turn off - passed. Allow each UMS incoming connections specifically - failed. I opened up all the apps specifically disabled - failed.

In an attempt to track down this and a few other issues I am creating a local sandbox in the hope I can narrow the search. Got my problems there too. Don't know Netbeans but possible.

With the help of the sandbox and WireShark, I hope to nail down the network port requirements (usage) and harden this against intrusion. Security here is major concern.
MacPro5,1 - 2.8 GHz, 32 GB, 20TB, OS X 10.11.6,
. . . . and a few others.
Samsung UN55C8000
Home Theater (WIP): OS X based now, dedicated Linux later.
michaelt
Posts: 155
Joined: Tue Feb 03, 2015 11:18 am
Location: lost in the depths of my mind

Re: Java 8 Prompts for Incoming Network Connections

Post by michaelt »

Optimus_prime wrote:Well, no as i only have Netbeans (IDE to build UMS), dmgCreator, and Filezilla installed on my OSX
Created my sandbox, almost looked real good until a few bizarre messages along the way.
Used the Build link first, step by step.. Seemed simple but got error message about missing/bad(?) module and Java. Went to Oracle to get latest Java 8 (highly recommended for security reasons - I listen). Seeing your note about NetBeans and the combo NetBeans/Java8, I installed it. Looked good, aded the UMS project, Clean Build, three Warnings, "BUILD SUCCESS" but the target ums won't execute. Looks like it launches but then nothing.

Tried "Building the Mac OS X installer tarball". Looks like it launches but then nothing - just dies - nothing visible. It doesn't even open the log. (So close but so far away)

At this point I am not sure if I corrupted the install because of the order of the installs. Any help or pointers will be greatly appreciated. I have a few code points I would like to meter in hopes of root causing this a a couple of other issues.

Should we move this to the "Developer" or "Beta Build" forum or just continue here?
MacPro5,1 - 2.8 GHz, 32 GB, 20TB, OS X 10.11.6,
. . . . and a few others.
Samsung UN55C8000
Home Theater (WIP): OS X based now, dedicated Linux later.
User avatar
Optimus_prime
Posts: 678
Joined: Fri Jun 01, 2012 6:39 pm
Location: Sydney, Australia

Re: Java 8 Prompts for Incoming Network Connections

Post by Optimus_prime »

So if your looking to build Java8 or 7 versions of UMS there are alot of things you will need to do to do it.
I can explain it all but it'll take me a little bit to compile and show you how to do it (I use a UMS only Java Launcher thats needed to launch Java 7/8 versions).
Let me know and i'll start typing it up in a few posts.
Should we move this to the "Developer" or "Beta Build" forum or just continue here?
We can leave it here for now as it's OSX only.

If your building Java 6 versions you need to install Java 6 then it'll build without doing anything special
get it from here https://support.apple.com/kb/DL1572?locale=en_US in this update pack
How Ask For Support
Remember, Debug Log's Can/Will Help and Explain your issues, we're not mind reader's but here to help
OS's I Use And Can Assist With: Windows 7/8, Mac OS-X 10.8 & 10.9
Mac OS-X Java 7 Builds Mac OS-X Java 7 Forum
michaelt
Posts: 155
Joined: Tue Feb 03, 2015 11:18 am
Location: lost in the depths of my mind

Re: Java 8 Prompts for Incoming Network Connections

Post by michaelt »

Thanx - I appreciate the help. I want to stick with J8 since J6 does not have the Network issue and I am security sensitive.
MacPro5,1 - 2.8 GHz, 32 GB, 20TB, OS X 10.11.6,
. . . . and a few others.
Samsung UN55C8000
Home Theater (WIP): OS X based now, dedicated Linux later.
michaelt
Posts: 155
Joined: Tue Feb 03, 2015 11:18 am
Location: lost in the depths of my mind

Re: Java 8 Prompts for Incoming Network Connections

Post by michaelt »

Optimus_prime wrote:If your building Java 6 versions you need to install Java 6 then it'll build without doing anything special get it from here https://support.apple.com/kb/DL1572?locale=en_US in this update pack
Tried this - same problem: app launches & dies a few seconds later. ????

Also is it possible to have both Java 6 & 8 sandboxes in NetBeans or is Java version system wide option only?
Maybe asked another way: is the build dependent on the system installed Java version?

I am not Java fluent yet but working on it.
MacPro5,1 - 2.8 GHz, 32 GB, 20TB, OS X 10.11.6,
. . . . and a few others.
Samsung UN55C8000
Home Theater (WIP): OS X based now, dedicated Linux later.
michaelt
Posts: 155
Joined: Tue Feb 03, 2015 11:18 am
Location: lost in the depths of my mind

Re: Java 8 Prompts for Incoming Network Connections

Post by michaelt »

OK - been working with this for while, made progress, made regression.
Tried backing off to J6 - probably wrong way but NB seemed to build it OK but the app would not launch.
Made a few mods, NB is very helpful in getting all the pieces in place before the build. First time using it - nice.
Then the bad - had to go up to the village - came back - NB hung! Could not select anything, hovering produced empty popups.
All failed - had to log out all & reboot. NB would not launch - just bounced in the dock for ~1min & died.
Saved off the modified files, reinstalled all from scratch (probably the wrong way). Then merged the changed files & build clean. Failed - three errors which on the surface look like a broken tree (see below).
Shutting down my brain and eyes. Will reattempt in the morning - clean & reload - no mods first.

Making slow progress and could really use some guidance. Haven't had this much trouble since hpux.

Please advise - I'm listening - thanx.

Code: Select all

--- maven-compiler-plugin:3.2:compile (default-compile) @ ums ---
Changes detected - recompiling the module!
Compiling 261 source files to /Users/umsmkv/UMS_J8/universalmediaserver/target/classes
/Users/umsmkv/UMS_J8/universalmediaserver/src/main/java/net/pms/dlna/DLNAResource.java: Some input files use or override a deprecated API.
/Users/umsmkv/UMS_J8/universalmediaserver/src/main/java/net/pms/dlna/DLNAResource.java: Recompile with -Xlint:deprecation for details.
/Users/umsmkv/UMS_J8/universalmediaserver/src/main/java/net/pms/network/UPNPControl.java: Some input files use unchecked or unsafe operations.
/Users/umsmkv/UMS_J8/universalmediaserver/src/main/java/net/pms/network/UPNPControl.java: Recompile with -Xlint:unchecked for details.
-------------------------------------------------------------
COMPILATION ERROR : 
-------------------------------------------------------------
net/pms/encoders/FFMpegVideo.java:[843,42] cannot find symbol
  symbol:   method isFFmpegDeferToMEncoderForProblematicSubtitles()
  location: variable configuration of type net.pms.configuration.PmsConfiguration
net/pms/encoders/FFMpegVideo.java:[1288,106] cannot find symbol
  symbol:   method isFFmpegDeferToMEncoderForProblematicSubtitles()
  location: variable configuration of type net.pms.configuration.PmsConfiguration
net/pms/encoders/FFMpegVideo.java:[1294,46] cannot find symbol
  symbol:   method setFFmpegDeferToMEncoderForProblematicSubtitles(boolean)
  location: variable configuration of type net.pms.configuration.PmsConfiguration
3 errors 
-------------------------------------------------------------
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 8.240s
Finished at: Thu Apr 23 19:49:53 EDT 2015
Final Memory: 32M/552M
------------------------------------------------------------------------
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (default-compile) on project ums: Compilation failure: Compilation failure:
net/pms/encoders/FFMpegVideo.java:[843,42] cannot find symbol
symbol:   method isFFmpegDeferToMEncoderForProblematicSubtitles()
location: variable configuration of type net.pms.configuration.PmsConfiguration
net/pms/encoders/FFMpegVideo.java:[1288,106] cannot find symbol
symbol:   method isFFmpegDeferToMEncoderForProblematicSubtitles()
location: variable configuration of type net.pms.configuration.PmsConfiguration
net/pms/encoders/FFMpegVideo.java:[1294,46] cannot find symbol
symbol:   method setFFmpegDeferToMEncoderForProblematicSubtitles(boolean)
location: variable configuration of type net.pms.configuration.PmsConfiguration
-> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:
MacPro5,1 - 2.8 GHz, 32 GB, 20TB, OS X 10.11.6,
. . . . and a few others.
Samsung UN55C8000
Home Theater (WIP): OS X based now, dedicated Linux later.
michaelt
Posts: 155
Joined: Tue Feb 03, 2015 11:18 am
Location: lost in the depths of my mind

Re: Java 8 Prompts for Incoming Network Connections

Post by michaelt »

… and in the light of a new day things are brighter.
Had to reboot to recover the inactive memory, then NB indicated some 14 updates, did them, clicked Build and success:

Code: Select all

main:
    [mkdir] Created dir: /Users/umsmkv/UMS_J8/universalmediaserver/target/ums-5.1.3-distribution
Executed tasks

--- maven-jar-plugin:2.3.2:jar (default-jar) @ ums ---
Building jar: /Users/umsmkv/UMS_J8/universalmediaserver/target/ums-5.1.3.jar

--- maven-assembly-plugin:2.4:single (make-jar-with-dependencies-osx) @ ums ---
Reading assembly descriptor: /Users/umsmkv/UMS_J8/universalmediaserver/src/main/assembly/jar-with-dependencies.xml
artifact org.slf4j:slf4j-api: checking for updates from java.net
artifact org.slf4j:slf4j-api: checking for updates from google-gson
artifact org.slf4j:slf4j-api: checking for updates from jboss.releases
artifact org.slf4j:slf4j-api: checking for updates from mygrid-repository
artifact org.slf4j:slf4j-api: checking for updates from 4thline-repo
artifact org.slf4j:slf4j-api: checking for updates from central
Adding org.apache.maven.scm.provider.ScmProvidersvn
Building jar: /Users/umsmkv/UMS_J8/universalmediaserver/target/ums-5.1.3-jar-with-dependencies.jar
Component: org.apache.maven.scm.provider.ScmProvidersvn is already defined. Skipping.

--- maven-assembly-plugin:2.4:single (make-assembly-osx) @ ums ---
Reading assembly descriptor: /Users/umsmkv/UMS_J8/universalmediaserver/src/main/assembly/assembly-osx.xml
Copying files to /Users/umsmkv/UMS_J8/universalmediaserver/target/ums-5.1.3-distribution
Assembly file: /Users/umsmkv/UMS_J8/universalmediaserver/target/ums-5.1.3-distribution is not a regular file (it may be a directory). It cannot be attached to the project build for installation or deployment.

--- osxappbundle-maven-plugin:1.0-alpha-2:bundle (default) @ ums ---
Setting property: classpath.resource.loader.class => 'org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader'.
Setting property: file.resource.loader.class => 'org.apache.velocity.runtime.resource.loader.FileResourceLoader'.
Setting property: file.resource.loader.path => ''.
Setting property: resource.loader => 'file,classpath'.
org.apache.velocity.runtime.exception.ReferenceException: reference : template = /Users/umsmkv/UMS_J8/universalmediaserver/src/main/external-resources/osx/Info.plist-template.xml [line 35,column 33] : $APP_PACKAGE is not a valid reference.
org.apache.velocity.runtime.exception.ReferenceException: reference : template = /Users/umsmkv/UMS_J8/universalmediaserver/src/main/external-resources/osx/Info.plist-template.xml [line 35,column 33] : $APP_PACKAGE is not a valid reference.
Building zip: /Users/umsmkv/UMS_J8/universalmediaserver/target/ums-5.1.3-app.zip

--- maven-install-plugin:2.3.1:install (default-install) @ ums ---
Installing /Users/umsmkv/UMS_J8/universalmediaserver/target/ums-5.1.3.jar to /Users/umsmkv/.m2/repository/net/pms/ums/5.1.3/ums-5.1.3.jar
Installing /Users/umsmkv/UMS_J8/universalmediaserver/pom.xml to /Users/umsmkv/.m2/repository/net/pms/ums/5.1.3/ums-5.1.3.pom
Installing /Users/umsmkv/UMS_J8/universalmediaserver/target/ums-5.1.3-jar-with-dependencies.jar to /Users/umsmkv/.m2/repository/net/pms/ums/5.1.3/ums-5.1.3-jar-with-dependencies.jar
Installing /Users/umsmkv/UMS_J8/universalmediaserver/target/ums-5.1.3-app.zip to /Users/umsmkv/.m2/repository/net/pms/ums/5.1.3/ums-5.1.3.zip
------------------------------------------------------------------------
BUILD SUCCESS
------------------------------------------------------------------------
Total time: 2:40.154s
Finished at: Fri Apr 24 10:15:44 EDT 2015
Final Memory: 47M/1084M
------------------------------------------------------------------------
… but it won't launch.
I don't understand why it just started to work.
Better but not there.
MacPro5,1 - 2.8 GHz, 32 GB, 20TB, OS X 10.11.6,
. . . . and a few others.
Samsung UN55C8000
Home Theater (WIP): OS X based now, dedicated Linux later.
User avatar
Optimus_prime
Posts: 678
Joined: Fri Jun 01, 2012 6:39 pm
Location: Sydney, Australia

Re: Java 8 Prompts for Incoming Network Connections

Post by Optimus_prime »

Ok so i should have been more clear. NB is only so you can build your own versions which java 6 should be fine and needs no custom app launchers.
Now you've had success in building your own version, are you launching UMS form the .dmg it makes for you?
Also have you done this from a command prompt

mvn com.savage7.maven.plugins:maven-external-dependency-plugin:resolve-external
mvn com.savage7.maven.plugins:maven-external-dependency-plugin:install-external

its straght out of the pom.xml
https://github.com/UniversalMediaServer ... er/pom.xml
How Ask For Support
Remember, Debug Log's Can/Will Help and Explain your issues, we're not mind reader's but here to help
OS's I Use And Can Assist With: Windows 7/8, Mac OS-X 10.8 & 10.9
Mac OS-X Java 7 Builds Mac OS-X Java 7 Forum
User avatar
Optimus_prime
Posts: 678
Joined: Fri Jun 01, 2012 6:39 pm
Location: Sydney, Australia

Re: Java 8 Prompts for Incoming Network Connections

Post by Optimus_prime »

Ok so i should have been more clear. NB is only so you can build your own versions which java 6 should be fine and needs no custom app launchers.
Now you've had success in building your own version, are you launching UMS form the .dmg it makes for you?
Also have you done this from a command prompt

mvn com.savage7.maven.plugins:maven-external-dependency-plugin:resolve-external
mvn com.savage7.maven.plugins:maven-external-dependency-plugin:install-external

its straght out of the pom.xml
https://github.com/UniversalMediaServer ... er/pom.xml
How Ask For Support
Remember, Debug Log's Can/Will Help and Explain your issues, we're not mind reader's but here to help
OS's I Use And Can Assist With: Windows 7/8, Mac OS-X 10.8 & 10.9
Mac OS-X Java 7 Builds Mac OS-X Java 7 Forum
michaelt
Posts: 155
Joined: Tue Feb 03, 2015 11:18 am
Location: lost in the depths of my mind

Re: Java 8 Prompts for Incoming Network Connections

Post by michaelt »

Optimus_prime wrote:NB is only so you can build your own versions which java 6 should be fine
I am Java 8 so as to also track down the access permission and port issues.
Optimus_prime wrote:are you launching UMS form the .dmg it makes for you?
No - I launched directly from:
Screen Shot 2015-04-26 at 9.29.45 AM.png
Screen Shot 2015-04-26 at 9.29.45 AM.png (45.41 KiB) Viewed 11314 times
I did not see a way in NB to build the package.
I tried: "mvn package -P osx" but no "*.dmg" anywhere in my user tree.

Also I loaded the NB-Java8 package directly from Oracle.
Optimus_prime wrote:Also have you done this from a command prompt

mvn com.savage7.maven.plugins:maven-external-dependency-plugin:resolve-external
mvn com.savage7.maven.plugins:maven-external-dependency-plugin:install-external
Yes - I believe it solved the early build issues.
Is it needed after every NB-Java install or just after getting the UMS tree?

Lastly:
- if I save aside my modified files, do I just copy them back after a clean source download?
- does NB automagically sync from the backing tree in realtime?
- how do you merge in changes from the backing tree?
- do you build from inside NB or CLI (command prompt)?
MacPro5,1 - 2.8 GHz, 32 GB, 20TB, OS X 10.11.6,
. . . . and a few others.
Samsung UN55C8000
Home Theater (WIP): OS X based now, dedicated Linux later.
Post Reply