You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Michel Bergijk <mi...@cmg.nl> on 2002/02/25 12:39:16 UTC

Firewall problem: Invalid SAX Transformer && URLNotAvailableExcep tion

SOAP users,

In my company we use a proxy which is frustrating my SOAP. Anyone know how I
can get through the proxy? When I look into the
%JETSPEED_HOME%\WEB-INF\log\jetspeed.log I find the following information:
[Mon Feb 25 12:27:35 CET 2002] -- WARN -- Cache getEntry Called with
http://jakarta.apache.org/jetspeed/channels/apache.ocs
[Mon Feb 25 12:27:35 CET 2002] -- ERROR -- Invalid SAX Transformer:
	Exception:
org.apache.jetspeed.services.urlmanager.URLNotAvailableException: The
following URL is not available because it is considered invalid:
http://jakarta.apache.org/jetspeed/channels/apache.ocs
	Stack Trace follows:
	org.apache.jetspeed.services.urlmanager.URLNotAvailableException:
The following URL is not available because it is considered invalid:
http://jakarta.apache.org/jetspeed/channels/apache.ocs
	at
org.apache.jetspeed.services.urlmanager.URLFetcher.fetch(URLFetcher.java:119
)
	at
org.apache.jetspeed.cache.disk.JetspeedDiskCache.fetch(JetspeedDiskCache.jav
a:412)
	at
org.apache.jetspeed.cache.disk.JetspeedDiskCache.add(JetspeedDiskCache.java:
367)
	at
org.apache.jetspeed.cache.disk.JetspeedDiskCache.getEntry(JetspeedDiskCache.
java:258)
	at
org.apache.jetspeed.cache.disk.JetspeedDiskCache.getEntry(JetspeedDiskCache.
java:192)
	at
org.apache.jetspeed.util.SimpleTransform.SAXTransform(SimpleTransform.java:4
84)
	at
org.apache.jetspeed.daemon.impl.FeedDaemon.getEntries(FeedDaemon.java:256)
	at
org.apache.jetspeed.daemon.impl.FeedDaemon.run(FeedDaemon.java:194)
	at
org.apache.jetspeed.daemon.DaemonThread.runDaemon(DaemonThread.java:139)
	at
org.apache.jetspeed.daemon.DaemonThread.run(DaemonThread.java:104)

[Mon Feb 25 12:27:35 CET 2002] -- ERROR -- FeedDaemon:  Couldn't process
URL:  http://jakarta.apache.org/jetspeed/channels/apache.ocs
[Mon Feb 25 12:27:35 CET 2002] -- ERROR -- 
	Exception:  java.io.IOException: problem in SAX transform:
org.apache.jetspeed.services.urlmanager.URLNotAvailableException: The
following URL is not available because it is considered invalid:
http://jakarta.apache.org/jetspeed/channels/apache.ocs
	Stack Trace follows:
	java.io.IOException: problem in SAX transform:
org.apache.jetspeed.services.urlmanager.URLNotAvailableException: The
following URL is not available because it is considered invalid:
http://jakarta.apache.org/jetspeed/channels/apache.ocs
	at
org.apache.jetspeed.util.SimpleTransform.SAXTransform(SimpleTransform.java:5
25)
	at
org.apache.jetspeed.daemon.impl.FeedDaemon.getEntries(FeedDaemon.java:256)
	at
org.apache.jetspeed.daemon.impl.FeedDaemon.run(FeedDaemon.java:194)
	at
org.apache.jetspeed.daemon.DaemonThread.runDaemon(DaemonThread.java:139)
	at
org.apache.jetspeed.daemon.DaemonThread.run(DaemonThread.java:104)

The previous being a standard Jetspeed portlet. I have set my TOMCAT_OPTS to
TOMCAT_OPTS=-DproxySet=true -DproxyHost=my.proxy.com -DproxyPort=3128
with my.proxy.com the proxy address from my company.

I know this is a re-occurring problem, but as far as I know there is no
cure. I even implemented the following code in a Portlet of mine:
URL url = null;
User user = new User ();
String authString = user.getProxyPassword ();
String auth = "Basic " + (new
sun.misc.BASE64Encoder()).encode(authString.getBytes());
URLConnection con = null;
writer.println ("MyStockQuote.getQuote, creating url");
try
{
	url = new URL
("http://soaptest.activestate.com:8080/PerlEx/soap.plex");
	con = url.openConnection() ;
	con.setRequestProperty("Proxy-Authorization", auth);
}
As explained in
http://www.mail-archive.com/jetspeed-user@jakarta.apache.org/msg03011.html
from Emmanuel Bardet. The result of this code was:
MyStockQuote.getQuote: Error opening socket: soaptest.activestate.com
MyStockQuote.getQuote: [SOAPException: faultCode=SOAP-ENV:Client; msg=Error
opening socket: soaptest.activestate.com;
targetException=java.lang.IllegalArgumentException: Error opening socket:
soaptest.activestate.com]
Anyone care to comment? 

With regards,

Michel Bergijk
ABAP/4 Engineer
CMG Oost-Nederland B.V.
Division Trade, Transport & Industry
Meander 901
6825 MH Arnhem
PO Box 7015
6801 HA Arnhem
The Netherlands


Re: Firewall problem: Invalid SAX Transformer && URLNotAvailableExcep tion

Posted by Chuck Amadi <ch...@breconbeacons.org>.
Michel Bergijk wrote:

>SOAP users,
>
>In my company we use a proxy which is frustrating my SOAP. Anyone know how I
>can get through the proxy? When I look into the
>%JETSPEED_HOME%\WEB-INF\log\jetspeed.log I find the following information:
>[Mon Feb 25 12:27:35 CET 2002] -- WARN -- Cache getEntry Called with
>http://jakarta.apache.org/jetspeed/channels/apache.ocs
>[Mon Feb 25 12:27:35 CET 2002] -- ERROR -- Invalid SAX Transformer:
>	Exception:
>org.apache.jetspeed.services.urlmanager.URLNotAvailableException: The
>following URL is not available because it is considered invalid:
>http://jakarta.apache.org/jetspeed/channels/apache.ocs
>	Stack Trace follows:
>	org.apache.jetspeed.services.urlmanager.URLNotAvailableException:
>The following URL is not available because it is considered invalid:
>http://jakarta.apache.org/jetspeed/channels/apache.ocs
>	at
>org.apache.jetspeed.services.urlmanager.URLFetcher.fetch(URLFetcher.java:119
>)
>	at
>org.apache.jetspeed.cache.disk.JetspeedDiskCache.fetch(JetspeedDiskCache.jav
>a:412)
>	at
>org.apache.jetspeed.cache.disk.JetspeedDiskCache.add(JetspeedDiskCache.java:
>367)
>	at
>org.apache.jetspeed.cache.disk.JetspeedDiskCache.getEntry(JetspeedDiskCache.
>java:258)
>	at
>org.apache.jetspeed.cache.disk.JetspeedDiskCache.getEntry(JetspeedDiskCache.
>java:192)
>	at
>org.apache.jetspeed.util.SimpleTransform.SAXTransform(SimpleTransform.java:4
>84)
>	at
>org.apache.jetspeed.daemon.impl.FeedDaemon.getEntries(FeedDaemon.java:256)
>	at
>org.apache.jetspeed.daemon.impl.FeedDaemon.run(FeedDaemon.java:194)
>	at
>org.apache.jetspeed.daemon.DaemonThread.runDaemon(DaemonThread.java:139)
>	at
>org.apache.jetspeed.daemon.DaemonThread.run(DaemonThread.java:104)
>
>[Mon Feb 25 12:27:35 CET 2002] -- ERROR -- FeedDaemon:  Couldn't process
>URL:  http://jakarta.apache.org/jetspeed/channels/apache.ocs
>[Mon Feb 25 12:27:35 CET 2002] -- ERROR -- 
>	Exception:  java.io.IOException: problem in SAX transform:
>org.apache.jetspeed.services.urlmanager.URLNotAvailableException: The
>following URL is not available because it is considered invalid:
>http://jakarta.apache.org/jetspeed/channels/apache.ocs
>	Stack Trace follows:
>	java.io.IOException: problem in SAX transform:
>org.apache.jetspeed.services.urlmanager.URLNotAvailableException: The
>following URL is not available because it is considered invalid:
>http://jakarta.apache.org/jetspeed/channels/apache.ocs
>	at
>org.apache.jetspeed.util.SimpleTransform.SAXTransform(SimpleTransform.java:5
>25)
>	at
>org.apache.jetspeed.daemon.impl.FeedDaemon.getEntries(FeedDaemon.java:256)
>	at
>org.apache.jetspeed.daemon.impl.FeedDaemon.run(FeedDaemon.java:194)
>	at
>org.apache.jetspeed.daemon.DaemonThread.runDaemon(DaemonThread.java:139)
>	at
>org.apache.jetspeed.daemon.DaemonThread.run(DaemonThread.java:104)
>
>The previous being a standard Jetspeed portlet. I have set my TOMCAT_OPTS to
>TOMCAT_OPTS=-DproxySet=true -DproxyHost=my.proxy.com -DproxyPort=3128
>with my.proxy.com the proxy address from my company.
>
>I know this is a re-occurring problem, but as far as I know there is no
>cure. I even implemented the following code in a Portlet of mine:
>URL url = null;
>User user = new User ();
>String authString = user.getProxyPassword ();
>String auth = "Basic " + (new
>sun.misc.BASE64Encoder()).encode(authString.getBytes());
>URLConnection con = null;
>writer.println ("MyStockQuote.getQuote, creating url");
>try
>{
>	url = new URL
>("http://soaptest.activestate.com:8080/PerlEx/soap.plex");
>	con = url.openConnection() ;
>	con.setRequestProperty("Proxy-Authorization", auth);
>}
>As explained in
>http://www.mail-archive.com/jetspeed-user@jakarta.apache.org/msg03011.html
>from Emmanuel Bardet. The result of this code was:
>MyStockQuote.getQuote: Error opening socket: soaptest.activestate.com
>MyStockQuote.getQuote: [SOAPException: faultCode=SOAP-ENV:Client; msg=Error
>opening socket: soaptest.activestate.com;
>targetException=java.lang.IllegalArgumentException: Error opening socket:
>soaptest.activestate.com]
>Anyone care to comment? 
>
>With regards,
>
>Michel Bergijk
>ABAP/4 Engineer
>CMG Oost-Nederland B.V.
>Division Trade, Transport & Industry
>Meander 901
>6825 MH Arnhem
>PO Box 7015
>6801 HA Arnhem
>The Netherlands
>


>
 Does this help in running.txt  file found within tomcat4 txt files
  If you are behind a proxy you must The 'localhost' machine isn't 
found  If that's the case, make sure the proxy configuration for your
   browser knows that you shouldn't be going through the proxy to access the
   "localhost" machine.
  
   In Netscape, this is under Edit/preferences -> Advanced/proxies, and in
   Internet Explorer, Tools -> Internet Options -> Connections -> LAN 
Settings.

I hope this is what your after.
Cheers Chuck Amadi
Systems programmer




Re: Firewall problem: Invalid SAX Transformer && URLNotAvailableExcep tion

Posted by Chuck Amadi <ch...@breconbeacons.org>.
Michel Bergijk wrote:

>SOAP users,
>
>In my company we use a proxy which is frustrating my SOAP. Anyone know how I
>can get through the proxy? When I look into the
>%JETSPEED_HOME%\WEB-INF\log\jetspeed.log I find the following information:
>[Mon Feb 25 12:27:35 CET 2002] -- WARN -- Cache getEntry Called with
>http://jakarta.apache.org/jetspeed/channels/apache.ocs
>[Mon Feb 25 12:27:35 CET 2002] -- ERROR -- Invalid SAX Transformer:
>	Exception:
>org.apache.jetspeed.services.urlmanager.URLNotAvailableException: The
>following URL is not available because it is considered invalid:
>http://jakarta.apache.org/jetspeed/channels/apache.ocs
>	Stack Trace follows:
>	org.apache.jetspeed.services.urlmanager.URLNotAvailableException:
>The following URL is not available because it is considered invalid:
>http://jakarta.apache.org/jetspeed/channels/apache.ocs
>	at
>org.apache.jetspeed.services.urlmanager.URLFetcher.fetch(URLFetcher.java:119
>)
>	at
>org.apache.jetspeed.cache.disk.JetspeedDiskCache.fetch(JetspeedDiskCache.jav
>a:412)
>	at
>org.apache.jetspeed.cache.disk.JetspeedDiskCache.add(JetspeedDiskCache.java:
>367)
>	at
>org.apache.jetspeed.cache.disk.JetspeedDiskCache.getEntry(JetspeedDiskCache.
>java:258)
>	at
>org.apache.jetspeed.cache.disk.JetspeedDiskCache.getEntry(JetspeedDiskCache.
>java:192)
>	at
>org.apache.jetspeed.util.SimpleTransform.SAXTransform(SimpleTransform.java:4
>84)
>	at
>org.apache.jetspeed.daemon.impl.FeedDaemon.getEntries(FeedDaemon.java:256)
>	at
>org.apache.jetspeed.daemon.impl.FeedDaemon.run(FeedDaemon.java:194)
>	at
>org.apache.jetspeed.daemon.DaemonThread.runDaemon(DaemonThread.java:139)
>	at
>org.apache.jetspeed.daemon.DaemonThread.run(DaemonThread.java:104)
>
>[Mon Feb 25 12:27:35 CET 2002] -- ERROR -- FeedDaemon:  Couldn't process
>URL:  http://jakarta.apache.org/jetspeed/channels/apache.ocs
>[Mon Feb 25 12:27:35 CET 2002] -- ERROR -- 
>	Exception:  java.io.IOException: problem in SAX transform:
>org.apache.jetspeed.services.urlmanager.URLNotAvailableException: The
>following URL is not available because it is considered invalid:
>http://jakarta.apache.org/jetspeed/channels/apache.ocs
>	Stack Trace follows:
>	java.io.IOException: problem in SAX transform:
>org.apache.jetspeed.services.urlmanager.URLNotAvailableException: The
>following URL is not available because it is considered invalid:
>http://jakarta.apache.org/jetspeed/channels/apache.ocs
>	at
>org.apache.jetspeed.util.SimpleTransform.SAXTransform(SimpleTransform.java:5
>25)
>	at
>org.apache.jetspeed.daemon.impl.FeedDaemon.getEntries(FeedDaemon.java:256)
>	at
>org.apache.jetspeed.daemon.impl.FeedDaemon.run(FeedDaemon.java:194)
>	at
>org.apache.jetspeed.daemon.DaemonThread.runDaemon(DaemonThread.java:139)
>	at
>org.apache.jetspeed.daemon.DaemonThread.run(DaemonThread.java:104)
>
>The previous being a standard Jetspeed portlet. I have set my TOMCAT_OPTS to
>TOMCAT_OPTS=-DproxySet=true -DproxyHost=my.proxy.com -DproxyPort=3128
>with my.proxy.com the proxy address from my company.
>
>I know this is a re-occurring problem, but as far as I know there is no
>cure. I even implemented the following code in a Portlet of mine:
>URL url = null;
>User user = new User ();
>String authString = user.getProxyPassword ();
>String auth = "Basic " + (new
>sun.misc.BASE64Encoder()).encode(authString.getBytes());
>URLConnection con = null;
>writer.println ("MyStockQuote.getQuote, creating url");
>try
>{
>	url = new URL
>("http://soaptest.activestate.com:8080/PerlEx/soap.plex");
>	con = url.openConnection() ;
>	con.setRequestProperty("Proxy-Authorization", auth);
>}
>As explained in
>http://www.mail-archive.com/jetspeed-user@jakarta.apache.org/msg03011.html
>from Emmanuel Bardet. The result of this code was:
>MyStockQuote.getQuote: Error opening socket: soaptest.activestate.com
>MyStockQuote.getQuote: [SOAPException: faultCode=SOAP-ENV:Client; msg=Error
>opening socket: soaptest.activestate.com;
>targetException=java.lang.IllegalArgumentException: Error opening socket:
>soaptest.activestate.com]
>Anyone care to comment? 
>
>With regards,
>
>Michel Bergijk
>ABAP/4 Engineer
>CMG Oost-Nederland B.V.
>Division Trade, Transport & Industry
>Meander 901
>6825 MH Arnhem
>PO Box 7015
>6801 HA Arnhem
>The Netherlands
>


>
 Does this help in running.txt  file found within tomcat4 txt files
  If you are behind a proxy you must The 'localhost' machine isn't 
found  If that's the case, make sure the proxy configuration for your
   browser knows that you shouldn't be going through the proxy to access the
   "localhost" machine.
  
   In Netscape, this is under Edit/preferences -> Advanced/proxies, and in
   Internet Explorer, Tools -> Internet Options -> Connections -> LAN 
Settings.

I hope this is what your after.
Cheers Chuck Amadi
Systems programmer