I am using HTTPURLConnection object to fetch documents, however when getting SOAP documents they reply a HTTP Header 500 when there is an error message inside the document, this is correct according to the SOAP specification. However I am unable to get the contents of the document, instead Java...
I am getting the following error on catalina.out. Any ideas?
javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
class com.sun.mail.smtp.SMTPAddressFailedException: 550-Verification failed for <PoolController@essexweb12>
550-Unrouteable address
550 Sender verify...
I am getting the following error throwing up occassionally -
May 5, 2006 3:44:02 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet MultiFetcher threw exception
java.lang.OutOfMemoryError: unable to create new native thread
at...
I am wondering if my Tomcat is acting up. I am getting a high load on the server at peak times, but so far I was thinking it was apache that was causing it.
however recently I noticed that
a) tomcat does not seem to have any displays of its servlets on the admin panel. ie when I get to view the...
for some reason my apache seems to be getting overloaded when hit by high traffic. There is a php script that does an xml search which takes about 30 seconds to complete.
Strange thing is all along we've been running this for years without any problems but recently it suddenly fell over one day...
i am trying to get tomcat to use a symlink to write its logs. so i created a link called /opt/tomcat/logs to point to /var/log/tomcat
it works, but only partially, i can see the catalina.xxxx-xx-xx.log file but not catalina.out, nor does the log4j files show up... i cant find any errors being...
I am having a strange problem trying to invoke a PHP script from within a java servlet.
What I want to do is the following -
I have a java servlet that is capable of fetching multiple URLs simultaneously using threads. I am using this servlet to execute a PHP script. What I want to happen is...
I am trying to kill some processes but they dont seem to die.
Basically the process I am trying to kill is 'df'. After typing df it just hangs. It appears the problem could be to do with a samba i installed earlier. I only mounted a samba share pointing to another machine. That machine was...
I am trying to use the split method to split a string by '|' into an array of strings, the code looks like belwo:
String s = "first sentence|second sentence|third sentence";
String[] slist = s.split("|");
now if I want to iterate over slist I find that it put all the letters in individually...
I am trying to use a hashtable for storing various classes that needs to be passed as parameter from one class to another.
eg
class1 {
...
...
Connection connection = ...
HashTable params = new Hashtable();
params.put("data1",connection);
Class2 class2 = new Class2(params);
}
class2 {...
My JVM and tomcat had been running for months without problems. But today it crashed and gave the following output. Restarting Tomcat again worked but I still dont understand what the problem was... any ideas?
essexweb7 logs # cat /root/hs_err_pid8366.log
#
# An unexpected error has been...
I need a way to check if the first 3 characters of a string equals something:
eg
ByteArrayOutputStream baos = new ByteArrayOutputStream();
int i = -1;
while (true) {
i = rd.read(buffer, 0, buffer.length);
if (i == -1) break...
I am trying the following code:
log_xml = Boolean.getBoolean(request.getParameter("log_xml"));
logger.info ("log_xml set to :" + log_xml + request.getParameter("log_xml"));
and the output i get is :
log_xml set to :falsetrue
I am passing 'true' as the...
for some strange reason my catalina seems to fall over with the above error. heres the full stack trace in catalina.out:
Jun 7, 2005 4:37:29 PM org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket
SEVERE: Endpoint ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8082] ignored exception...
I am trying to run the following sample from the cocoon tutorial but it doesnt seem to be working:
greeting.xml
<?xml version="1.0"?>
<xsp:page xmlns:xsp="http://apache.org/xsp">
<xsp:logic>
//this could be arbitrarily complex Java code, JDBC queries, etc...
anyone tried installing/using cocoon with tomcat? All I am trying to do is make a xml webservice for making bookings online through our database and thought cocoon was the right direction but it seems theres just about no good documentation on cocoon around and most of the documentations are...
I need to find a way to create an object based on the type of URL we get at runtime.
eg:
URL url = new URL ("http://gizmo.com");
URLConnection conn = (URLConnection) url.openConnection();
if (url.contains("https")) {
conn = (HTTPSConnection) url.openConnection();
}
the above code...
I am getting the following error trying to fetch a secure url:
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
This is happening because the remote site...
I created a servlet in Tomcat and made a copy of it deployed in a different location in the same Tomcat server. But I want to be able to have all of the logging for the 2nd servlet go to a different log file. I tried by changing the appender configuration in the log4j.properties file that I kept...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.