[SOLVED]Potential problem with JAVA implementation in M6

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED]Potential problem with JAVA implementation in M6

Postby mackowiakp » Jul 25th, '17, 17:54

I wrote small script to cloning PC screen to Apple TV. It uses ready JAVA based program named "airplay.jar" from here https://github.com/jamesdlow/open-airplay
It worked properly in M5, but after upgrade to M6, this program rapports an errors listed below:

Code: Select all
[maciek@Piotr Pobrane]$ java -jar airplay.jar -h apple-tv -d
Press ctrl-c to quit
java.io.IOException: Server returned HTTP response code: 403 for URL: http://apple-tv:7000/photo
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1926)
        at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1921)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1920)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1490)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474)
        at com.jameslow.AirPlay.doHTTP(Unknown Source)
        at com.jameslow.AirPlay.doHTTP(Unknown Source)
        at com.jameslow.AirPlay.photoRaw(Unknown Source)
        at com.jameslow.AirPlay$PhotoThread.run(Unknown Source)
Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL: http://apple-tv:7000/photo
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1876)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474)
        at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
        ... 4 more


I know, airplay.jar is not something supported by Mageia but I think that it is Mageis 6 related problem (JAVA installation) , similar to topic https://forums.mageia.org/en/viewtopic.php?f=7&t=11842&p=69134#p69134

Any idea how to resolve that problem? Any workaround just like in topic listed above?
Last edited by mackowiakp on Sep 20th, '17, 09:03, edited 2 times in total.
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 660
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: Potential problem with JAVA implementation in M6

Postby doktor5000 » Jul 26th, '17, 13:14

What do you get with e.g.
Code: Select all
curl -Lv http://apple-tv:7000/photo
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18054
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Potential problem with JAVA implementation in M6

Postby mackowiakp » Jul 26th, '17, 13:26

Thats output. But - as i wrote - it works correctly on M5 based my wife PC.

Code: Select all
[maciek@Piotr ~]$ curl -Lv http://apple-tv:7000/photo
*   Trying 192.168.0.10...
* TCP_NODELAY set
* Connected to apple-tv (192.168.0.10) port 7000 (#0)
> GET /photo HTTP/1.1
> Host: apple-tv:7000
> User-Agent: curl/7.54.1
> Accept: */*
>
< HTTP/1.1 403 Forbidden
< Content-Length: 0
< Server: AirTunes/320.20.1
<
* Connection #0 to host apple-tv left intact
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 660
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: Potential problem with JAVA implementation in M6

Postby doktor5000 » Jul 27th, '17, 08:59

mackowiakp wrote:But - as i wrote - it works correctly on M5 based my wife PC.

Code: Select all
< HTTP/1.1 403 Forbidden


You're repeating yourself, and that does not matter if it works for any other box.
This computer get's an HTTP 403 Forbidden status returned by the Apple TV webserver, that is your issue. This doesn't have anything to do with mga6 or java.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18054
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Potential problem with JAVA implementation in M6

Postby mackowiakp » Jul 27th, '17, 09:31

THX. I will raport issue on airply.jar github
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 660
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: [DONE]Potential problem with JAVA implementation in M6

Postby mackowiakp » Jul 28th, '17, 13:11

You are right. This is common problem after upgrade tvOS to ver 10.2.2. So airplay.jar must be inspected.
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 660
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: [DONE]Potential problem with JAVA implementation in M6

Postby mackowiakp » Sep 20th, '17, 09:03

After today upgrade to tvOS ver 11 on Apple TV, everything works perfectly, using the same script. The only modigication in adding to criptremoveing og TCPv5 support because the same Apple unit was display in secelct window two times. One for ver 4 and another for ver 6.
Topic closed.
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 660
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron