You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jamz_2010 <ja...@mac.com> on 2009/06/25 12:37:57 UTC

Tomcat and Salesforce Issue

Hi all,

I have a web service setup on tomcat 5.5 that connects to Salesforce.com
through a web service call. This works fine and dandy but after it has been
left overnight it fails to connect when invoked. I had a similar problem
with another web service call that I was using so I dont think its a problem
with Salesforce. Also, if I restart the tomcat server, the web service
successfully connects to Salesforce until the next day. The web services are
running on apache axis2 which is deployed via a .war file.

Thanks for any support

James
-- 
View this message in context: http://www.nabble.com/Tomcat-and-Salesforce-Issue-tp24200899p24200899.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Tomcat and Salesforce Issue

Posted by Martin Gainty <mg...@hotmail.com>.
sounds like salesforce people dropped the ball here
if the call to Salesforce WebService works only part of the time and not other times there has to be some delta(more than likely bringing a server offline or a SF misconfig) that Salesforce introduces at that point in time to not make SF system available
In the meanwhile I would rummage thru salesforce logs 

Viel Gluck
Martin Gainty 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




> Date: Fri, 26 Jun 2009 02:34:20 -0700
> From: james.tildesley@mac.com
> To: users@tomcat.apache.org
> Subject: Re: Tomcat and Salesforce Issue
> 
> 
> Sorry about that, I have checked the catalina.out file and it says that an
> exception is thrown, I will have a ensure it prints the stack trace and will
> have a look at it in the morning - sorry I can't test this earlier but I
> need to wait for it to fail overnight. At the moment I simply catch the
> exception that is thrown and it simply gives a null error. This I would
> normally expect to occur when there is no data present in the database,
> however, I have also printed the SQL query and checked it against the
> database and it brings back results. I'll get that stack trace to you asap.
> 
> James
> 
> 
> 
> Filip Hanik - Dev Lists wrote:
> > 
> > define "fails to connect when invoked"
> > very little information about your actual error in your email
> > 
> > Filip
> > 
> > Jamz_2010 wrote:
> >> Hi all,
> >>
> >> I have a web service setup on tomcat 5.5 that connects to Salesforce.com
> >> through a web service call. This works fine and dandy but after it has
> >> been
> >> left overnight it fails to connect when invoked. I had a similar problem
> >> with another web service call that I was using so I dont think its a
> >> problem
> >> with Salesforce. Also, if I restart the tomcat server, the web service
> >> successfully connects to Salesforce until the next day. The web services
> >> are
> >> running on apache axis2 which is deployed via a .war file.
> >>
> >> Thanks for any support
> >>
> >> James
> >>   
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> > 
> > 
> > 
> 
> -- 
> View this message in context: http://www.nabble.com/Tomcat-and-Salesforce-Issue-tp24200899p24217461.html
> Sent from the Tomcat - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 

_________________________________________________________________
Windows Live™ SkyDrive™: Get 25 GB of free online storage.
http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_SD_25GB_062009

Re: Tomcat and Salesforce Issue

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Martin,

On 6/28/2009 1:35 PM, Martin Gainty wrote:
> op mentioned the SF webservice becomes unavailable at 'weird' times
> (more than likely the SF webserver is going offline for backup)
> 
> if you can post the SF log we'll take a look and try to figure out the error

SF is an online service run by a company. I don't believe they are going
to provide their log files to a customer.

SF should be available all the time. If not, their API documentation
should state regular downtimes (such as between 0100-0200 GMT).

I suspect the problem is with the client, not SalesForce.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkpI0R8ACgkQ9CaO5/Lv0PAAFQCfSW7vUkY3OK6xuPK6mSaDQNO8
PrQAnRjwYbwJ63TCheDE5OrEg5MlNiJL
=Bfgt
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Tomcat and Salesforce Issue

Posted by Martin Gainty <mg...@hotmail.com>.
op mentioned the SF webservice becomes unavailable at 'weird' times
(more than likely the SF webserver is going offline for backup)

if you can post the SF log we'll take a look and try to figure out the error

*Gruss*
Martin 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




> Date: Sat, 27 Jun 2009 23:42:18 -0400
> From: chris@christopherschultz.net
> To: users@tomcat.apache.org
> Subject: Re: Tomcat and Salesforce Issue
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> James,
> 
> On 6/26/2009 5:34 AM, Jamz_2010 wrote:
> > Sorry about that, I have checked the catalina.out file and it says that an
> > exception is thrown, I will have a ensure it prints the stack trace and will
> > have a look at it in the morning - sorry I can't test this earlier but I
> > need to wait for it to fail overnight. At the moment I simply catch the
> > exception that is thrown and it simply gives a null error. This I would
> > normally expect to occur when there is no data present in the database,
> > however, I have also printed the SQL query and checked it against the
> > database and it brings back results. I'll get that stack trace to you asap.
> 
> Hmm... if your database connection died, could that cause the behavior
> you're experiencing? If so, and it happens overnight, perhaps you have a
> firewall killing your db connection.
> 
> Are you using a connection pool? If so, try configuring a connection
> validation query appropriate for your database (and connection pool).
> 
> Certainly getting more information will be helpful. Note that it's not
> good to "swallow" exceptions by catching them and either ignoring them
> or throwing an unrelated exception without either logging the exception
> or wrapping it up in another one. Avoiding swallowing your exceptions
> would have helped you out, here.
> 
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> 
> iEYEARECAAYFAkpG5poACgkQ9CaO5/Lv0PD9bACfUQ88CKL9gbxApBG6t8uxVBFr
> 6WUAnAwMHf+Ngeer/7abtXbYiGGq3eGw
> =AwHg
> -----END PGP SIGNATURE-----
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 

_________________________________________________________________
Windows Live™ SkyDrive™: Get 25 GB of free online storage.
http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_SD_25GB_062009

Re: Tomcat and Salesforce Issue

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

James,

On 6/26/2009 5:34 AM, Jamz_2010 wrote:
> Sorry about that, I have checked the catalina.out file and it says that an
> exception is thrown, I will have a ensure it prints the stack trace and will
> have a look at it in the morning - sorry I can't test this earlier but I
> need to wait for it to fail overnight. At the moment I simply catch the
> exception that is thrown and it simply gives a null error. This I would
> normally expect to occur when there is no data present in the database,
> however, I have also printed the SQL query and checked it against the
> database and it brings back results. I'll get that stack trace to you asap.

Hmm... if your database connection died, could that cause the behavior
you're experiencing? If so, and it happens overnight, perhaps you have a
firewall killing your db connection.

Are you using a connection pool? If so, try configuring a connection
validation query appropriate for your database (and connection pool).

Certainly getting more information will be helpful. Note that it's not
good to "swallow" exceptions by catching them and either ignoring them
or throwing an unrelated exception without either logging the exception
or wrapping it up in another one. Avoiding swallowing your exceptions
would have helped you out, here.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkpG5poACgkQ9CaO5/Lv0PD9bACfUQ88CKL9gbxApBG6t8uxVBFr
6WUAnAwMHf+Ngeer/7abtXbYiGGq3eGw
=AwHg
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat and Salesforce Issue

Posted by Jamz_2010 <ja...@mac.com>.
Sorry about that, I have checked the catalina.out file and it says that an
exception is thrown, I will have a ensure it prints the stack trace and will
have a look at it in the morning - sorry I can't test this earlier but I
need to wait for it to fail overnight. At the moment I simply catch the
exception that is thrown and it simply gives a null error. This I would
normally expect to occur when there is no data present in the database,
however, I have also printed the SQL query and checked it against the
database and it brings back results. I'll get that stack trace to you asap.

James



Filip Hanik - Dev Lists wrote:
> 
> define "fails to connect when invoked"
> very little information about your actual error in your email
> 
> Filip
> 
> Jamz_2010 wrote:
>> Hi all,
>>
>> I have a web service setup on tomcat 5.5 that connects to Salesforce.com
>> through a web service call. This works fine and dandy but after it has
>> been
>> left overnight it fails to connect when invoked. I had a similar problem
>> with another web service call that I was using so I dont think its a
>> problem
>> with Salesforce. Also, if I restart the tomcat server, the web service
>> successfully connects to Salesforce until the next day. The web services
>> are
>> running on apache axis2 which is deployed via a .war file.
>>
>> Thanks for any support
>>
>> James
>>   
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Tomcat-and-Salesforce-Issue-tp24200899p24217461.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat and Salesforce Issue

Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
define "fails to connect when invoked"
very little information about your actual error in your email

Filip

Jamz_2010 wrote:
> Hi all,
>
> I have a web service setup on tomcat 5.5 that connects to Salesforce.com
> through a web service call. This works fine and dandy but after it has been
> left overnight it fails to connect when invoked. I had a similar problem
> with another web service call that I was using so I dont think its a problem
> with Salesforce. Also, if I restart the tomcat server, the web service
> successfully connects to Salesforce until the next day. The web services are
> running on apache axis2 which is deployed via a .war file.
>
> Thanks for any support
>
> James
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org