FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Bugs
   Software Bugs
(Moderator: fry)
   Java 1.5: ? and & in urls
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: Java 1.5: ? and & in urls  (Read 1064 times)
TomC

WWW
Java 1.5: ? and & in urls
« on: Nov 1st, 2004, 3:05pm »

I'm having problems with loadStrings under Sun's Java 1.5.
 
I'm asking for:
http://www.tom-carden.co.uk/p5/flickr_rainbow_links_fixed/applet/flickr_ proxy.php?&method=flickr.photos.search&tags=violet,purple,pink&per_page=12
 
But it's requesting:
http://www.tom-carden.co.uk/p5/flickr_rainbow_links_fixed/applet/flickr_ proxy.php%253f&method%253dflickr.photos.search&tags%253dviolet,purple,pink&per_page%253d12
 
Which fails with this exception:
 
Code:

java.io.IOException: openStream() could not open flickr_proxy.php?&method=flickr.photos.search&tags=violet,purple,pink&pe r_page=12
 at BGraphics.openStream(BGraphics.java:5552)
 at BGraphics.loadStrings(BGraphics.java:5590)
 at BApplet.loadStrings(BApplet.java:3465)
 at flickr_rainbow_links_fixed.callFlickr(flickr_rainbow_links_fixed.java:20 0)
 at flickr_rainbow_links_fixed$1.run(flickr_rainbow_links_fixed.java:128)
 at java.lang.Thread.run(Unknown Source)

 
The same applet seems to work with the MS JVM, and Sun 1.4.2:
http://www.tom-carden.co.uk/p5/flickr_rainbow_links_fixed/applet/
 
(This was built on Processing 0069, I believe.)
« Last Edit: Nov 1st, 2004, 3:14pm by TomC »  
fry


WWW
Re: Java 1.5: ? and & in urls
« Reply #1 on: Nov 1st, 2004, 3:36pm »

hm, that's annoying.. that would be sun's bug, though.. we don't do anything to the url. i don't know why they would encode a url that's passed to them. i can understand if it's converting the spaces to %20, but with the ampersands, that's just goofy.
 
TomC

WWW
Re: Java 1.5: ? and & in urls
« Reply #2 on: Nov 1st, 2004, 3:44pm »

Ah... this is a release candidate.
 
I'll try the latest release proper.
 
On second look, it's not ? and &, it's ? and =.  The ampersands are coming out fine.
« Last Edit: Nov 1st, 2004, 3:49pm by TomC »  
cello

marcello3d WWW
Re: Java 1.5: ? and & in urls
« Reply #3 on: Nov 1st, 2004, 4:10pm »

I'm using the release version and get the same problem:
 
Quote:

network: Connecting http://www.tom-carden.co.uk/p5/flickr_rainbow_links_fixed/applet/data/fl ickr_proxy.php%253f&method%253dflickr.photos.search&tags%253dviolet,purple,pink&per_page%253d12 with proxy=HTTP @ /192.168.1.100:81
problem loading strings from flickr_proxy.php?&method=flickr.photos.search&tags=violet,purple,pink&pe r_page=12
java.io.IOException: openStream() could not open flickr_proxy.php?&method=flickr.photos.search&tags=violet,purple,pink&pe r_page=12
 at BGraphics.openStream(BGraphics.java:5552)
 at BGraphics.loadStrings(BGraphics.java:5590)
 at BApplet.loadStrings(BApplet.java:3465)
 at flickr_rainbow_links_fixed.callFlickr(flickr_rainbow_links_fixed.java:20 0)
 at flickr_rainbow_links_fixed$1.run(flickr_rainbow_links_fixed.java:12
 at java.lang.Thread.run(Unknown Source)
loading: flickr_proxy.php?&method=flickr.photos.search&tags=violet,purple,pink&pe r_page=12 done.
Exception in thread "Thread-21" java.lang.NullPointerException
 at flickr_rainbow_links_fixed.callFlickr(flickr_rainbow_links_fixed.java:20 3)
 at flickr_rainbow_links_fixed$1.run(flickr_rainbow_links_fixed.java:12
 at java.lang.Thread.run(Unknown Source)
 
fry


WWW
Re: Java 1.5: ? and & in urls
« Reply #4 on: Nov 1st, 2004, 5:01pm »

i'd check the java 1.5 release notes and see if they changed this for a good reason and if there's a way around it.
 
if you don't find anything, i'd check their bug list and see if it's been noted.
 
that said, i should note that java 1.5 is *not supported* for processing (whatever that means). i'm not testing with it yet, and for the time being, 1.4.2_XX is strongly recommended.
 
TomC

WWW
Re: Java 1.5: ? and & in urls
« Reply #5 on: Nov 1st, 2004, 9:44pm »

on Nov 1st, 2004, 5:01pm, fry wrote:
i'd check the java 1.5 release notes and see if they changed this for a good reason and if there's a way around it.
 
if you don't find anything, i'd check their bug list and see if it's been noted.
 

 
Sounds like a plan
 
on Nov 1st, 2004, 5:01pm, fry wrote:

that said, i should note that java 1.5 is *not supported* for processing (whatever that means). i'm not testing with it yet, and for the time being, 1.4.2_XX is strongly recommended.

 
Noted.  Perhaps a sticky to that effect would be useful  Maybe ask everyone to clearly state Java 1.5 in the subject too, then you can feel free to ignore them  I'll continue to post 1.5 trouble here unless you'd prefer otherwise.
 
 
Pages: 1 

« Previous topic | Next topic »