Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. developerinlondon

    problem with HTTPUrlConnection using SOAP

    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...
  2. developerinlondon

    emailing problem

    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...
  3. developerinlondon

    outofmemory exception in tomcat

    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...
  4. developerinlondon

    is tomcat acting up?

    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...
  5. developerinlondon

    apache overloads the server

    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...
  6. developerinlondon

    using links to store log files

    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...
  7. developerinlondon

    Java -&gt; PHP communication problem

    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...
  8. developerinlondon

    kill -9 pid doesnt kill!

    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...
  9. developerinlondon

    string split method

    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...
  10. developerinlondon

    HashTable for storing various classes

    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 {...
  11. developerinlondon

    JVM Crashing

    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...
  12. developerinlondon

    checking the first 3 characters of a string

    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...
  13. developerinlondon

    strange problem with boolean to string conversion

    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...
  14. developerinlondon

    java.net.SocketException: Too many open files

    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...
  15. developerinlondon

    how to write a long string

    whats the easiest way to write a long string in java? eg: String s = "blah blah blah blah blah blah blah blah ... ... "; any ideas? thanks!
  16. developerinlondon

    cocoon xsl problem

    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...
  17. developerinlondon

    cocoon 2.1.7

    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...
  18. developerinlondon

    how to create depending on type of URL

    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...
  19. developerinlondon

    problem with fetching secure pages

    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...
  20. developerinlondon

    creating two log files for two servlets

    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...

Part and Inventory Search

Back
Top