cancel
Showing results for 
Search instead for 
Did you mean: 

CUP SMTP server error

Former Member
0 Kudos

Hi Experts,

I have a problem configuring my SMTP server in GRC CUP 5.3 .

As you guys have already noticed its has a couple of extra fields in 5.3 than to 5.2 in the SMTP pane where you save your server name

error : " Action failed. An unknown error occurred while performing the operation."

But I tried configuring this in 5.2 and it worked fine!!!

Should I be filling the additonal fields like System email ID , application URL ,redirection URL etc.

Please see the log below

2009-03-12 12:29:41,321 [SAPEngine_Application_Thread[impl:3]_27] ERROR com.virsa.ae.configuration.actions.SMTPServerNameAction

java.lang.StringIndexOutOfBoundsException: String index out of range: -1

at java.lang.String.substring(String.java:1444)

at com.virsa.ae.commons.utils.URLHelper.initialize(URLHelper.java:430)

at com.virsa.ae.configuration.bo.SMTPServerNameBO.saveSMTPServerName(SMTPServerNameBO.java:106)

at com.virsa.ae.configuration.actions.SMTPServerNameAction.saveSMTPServerName(SMTPServerNameAction.java:76)

at com.virsa.ae.configuration.actions.SMTPServerNameAction.execute(SMTPServerNameAction.java:51)

at com.virsa.ae.commons.utils.framework.NavigationEngine.execute(NavigationEngine.java:271)

at com.virsa.ae.commons.utils.framework.servlet.AEFrameworkServlet.service(AEFrameworkServlet.java:432)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)

at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)

at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)

at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)

at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)

at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)

at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)

at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)

at java.security.AccessController.doPrivileged(Native Method)

at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)

at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)

2009-03-12 12:29:41,321 [SAPEngine_Application_Thread[impl:3]_27] INFO MessagingHelper.java@131:clearMessages() : @@@clearing messages

2009-03-12 12:29:41,321 [SAPEngine_Application_Thread[impl:3]_27] INFO MessagingHelper.java@99:addMessage() : @@@Adding msgValue: Code: 0105; Locale: en

2009-03-12 12:29:41,321 [SAPEngine_Application_Thread[impl:3]_27] INFO MessagingHelper.java@109:addMessage() : @@@Creating new message list

2009-03-12 12:29:41,321 [SAPEngine_Application_Thread[impl:3]_27] INFO MessagingHelper.java@119:addMessage() : Adding msg to msglist

2009-03-12 12:29:41,321 [SAPEngine_Application_Thread[impl:3]_27] DEBUG NavigationEngine.java@272:execute() : Target returned by execute action: failure

2009-03-12 12:29:41,321 [SAPEngine_Application_Thread[impl:3]_27] DEBUG AEFrameworkServlet.java@459:service() : forwarding to:loadConfigSMTPServerName.do

2009-03-12 12:29:41,321 [SAPEngine_Application_Thread[impl:3]_27] DEBUG AEFrameworkServlet.java@522:logRequest() :

-- Request dump for Action Path is loadConfigSMTPServerName

2009-03-12 12:29:41,321 [SAPEngine_Application_Thread[impl:3]_27] DEBUG AEFrameworkServlet.java@538:logRequest() : email_server_name:0::SMTP-RELAY-EU.GETRANET.COM#

2009-03-12 12:29:41,321 [SAPEngine_Application_Thread[impl:3]_27] DEBUG AEFrameworkServlet.java@538:logRequest() : btnsave:0::Save#

2009-03-12 12:29:41,321 [SAPEngine_Application_Thread[impl:3]_27] DEBUG AEFrameworkServlet.java@538:logRequest() : ApplicationURL:0::#

2009-03-12 12:29:41,321 [SAPEngine_Application_Thread[impl:3]_27] DEBUG AEFrameworkServlet.java@538:logRequest() : RedirectURL:0::#

2009-03-12 12:29:41,321 [SAPEngine_Application_Thread[impl:3]_27] DEBUG AEFrameworkServlet.java@538:logRequest() : GENERICMAILID:0::#

2009-03-12 12:29:41,321 [SAPEngine_Application_Thread[impl:3]_27] DEBUG AEFrameworkServlet.java@538:logRequest() : generic_email_server_name:0::#

2009-03-12 12:29:41,321 [SAPEngine_Application_Thread[impl:3]_27] DEBUG AEFrameworkServlet.java@543:logRequest() : -- End Request dump for Action Path is loadConfigSMTPServerName

2009-03-12 12:29:41,337 [SAPEngine_Application_Thread[impl:3]_27] DEBUG NavigationEngine.java@85:execute() : Current Module: |CFG| Conversation: |cnvConfigSMTPServerName| Screen: |scrConfigSMTPServerName|

2009-03-12 12:29:41,337 [SAPEngine_Application_Thread[impl:3]_27] DEBUG NavigationEngine.java@105:execute() : Module#CFG#Conversation#cnvConfigSMTPServerName#Screen#scrConfigSMTPServerName#Action#loadConfigSMTPServerName#

2009-03-12 12:29:41,337 [SAPEngine_Application_Thread[impl:3]_27] DEBUG NavigationEngine.java@261:execute() : Handler found:class com.virsa.ae.configuration.actions.SMTPServerNameAction

2009-03-12 12:29:41,337 [SAPEngine_Application_Thread[impl:3]_27] DEBUG NavigationEngine.java@272:execute() : Target returned by execute action: success

2009-03-12 12:29:41,337 [SAPEngine_Application_Thread[impl:3]_27] DEBUG AEFrameworkServlet.java@459:service() : forwarding to:/cfg_smtp_server.jsp

2009-03-12 12:29:50,852 [SAPEngine_Application_Thread[impl:3]_13] DEBUG AEFrameworkServlet.java@522:logRequest() :

-- Request dump for Action Path is saveConfigSMTPServerName

2009-03-12 12:29:50,852 [SAPEngine_Application_Thread[impl:3]_13] DEBUG AEFrameworkServlet.java@538:logRequest() : email_server_name:0::SMTP-RELAY-EU.GETRANET.COM#

2009-03-12 12:29:50,852 [SAPEngine_Application_Thread[impl:3]_13] DEBUG AEFrameworkServlet.java@538:logRequest() : btnsave:0::Save#

2009-03-12 12:29:50,852 [SAPEngine_Application_Thread[impl:3]_13] DEBUG AEFrameworkServlet.java@538:logRequest() : ApplicationURL:0::#

2009-03-12 12:29:50,852 [SAPEngine_Application_Thread[impl:3]_13] DEBUG AEFrameworkServlet.java@538:logRequest() : RedirectURL:0::#

2009-03-12 12:29:50,852 [SAPEngine_Application_Thread[impl:3]_13] DEBUG AEFrameworkServlet.java@538:logRequest() : generic_email_server_name:0::#

2009-03-12 12:29:50,852 [SAPEngine_Application_Thread[impl:3]_13] DEBUG AEFrameworkServlet.java@543:logRequest() : -- End Request dump for Action Path is saveConfigSMTPServerName

2009-03-12 12:29:50,852 [SAPEngine_Application_Thread[impl:3]_13] DEBUG NavigationEngine.java@85:execute() : Current Module: |CFG| Conversation: |cnvConfigSMTPServerName| Screen: |scrConfigSMTPServerName|

2009-03-12 12:29:50,852 [SAPEngine_Application_Thread[impl:3]_13] DEBUG NavigationEngine.java@105:execute() : Module#CFG#Conversation#cnvConfigSMTPServerName#Screen#scrConfigSMTPServerName#Action#saveConfigSMTPServerName#

2009-03-12 12:29:50,852 [SAPEngine_Application_Thread[impl:3]_13] DEBUG NavigationEngine.java@261:execute() : Handler found:class com.virsa.ae.configuration.actions.SMTPServerNameAction

2009-03-12 12:29:50,852 [SAPEngine_Application_Thread[impl:3]_13] DEBUG URLHelper.java@421:initialize() : INTO the method : string=

2009-03-12 12:29:50,852 [SAPEngine_Application_Thread[impl:3]_13] ERROR com.virsa.ae.configuration.actions.SMTPServerNameAction

java.lang.StringIndexOutOfBoundsException: String index out of range: -1

at java.lang.String.substring(String.java:1444)

at com.virsa.ae.commons.utils.URLHelper.initialize(URLHelper.java:430)

at com.virsa.ae.configuration.bo.SMTPServerNameBO.saveSMTPServerName(SMTPServerNameBO.java:106)

at com.virsa.ae.configuration.actions.SMTPServerNameAction.saveSMTPServerName(SMTPServerNameAction.java:76)

at com.virsa.ae.configuration.actions.SMTPServerNameAction.execute(SMTPServerNameAction.java:51)

at com.virsa.ae.commons.utils.framework.NavigationEngine.execute(NavigationEngine.java:271)

at com.virsa.ae.commons.utils.framework.servlet.AEFrameworkServlet.service(AEFrameworkServlet.java:432)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)

at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)

at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)

at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)

at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)

at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)

at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)

at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)

at java.security.AccessController.doPrivileged(Native Method)

at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)

at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)

2009-03-12 12:29:50,852 [SAPEngine_Application_Thread[impl:3]_13] INFO MessagingHelper.java@131:clearMessages() : @@@clearing messages

2009-03-12 12:29:50,852 [SAPEngine_Application_Thread[impl:3]_13] INFO MessagingHelper.java@99:addMessage() : @@@Adding msgValue: Code: 0105; Locale: en

2009-03-12 12:29:50,852 [SAPEngine_Application_Thread[impl:3]_13] INFO MessagingHelper.java@109:addMessage() : @@@Creating new message list

2009-03-12 12:29:50,852 [SAPEngine_Application_Thread[impl:3]_13] INFO MessagingHelper.java@119:addMessage() : Adding msg to msglist

2009-03-12 12:29:50,852 [SAPEngine_Application_Thread[impl:3]_13] DEBUG NavigationEngine.java@272:execute() : Target returned by execute action: failure

2009-03-12 12:29:50,852 [SAPEngine_Application_Thread[impl:3]_13] DEBUG AEFrameworkServlet.java@459:service() : forwarding to:loadConfigSMTPServerName.do

2009-03-12 12:29:50,852 [SAPEngine_Application_Thread[impl:3]_13] DEBUG AEFrameworkServlet.java@522:logRequest() :

-- Request dump for Action Path is loadConfigSMTPServerName

2009-03-12 12:29:50,852 [SAPEngine_Application_Thread[impl:3]_13] DEBUG AEFrameworkServlet.java@538:logRequest() : email_server_name:0::SMTP-RELAY-EU.GETRANET.COM#

2009-03-12 12:29:50,852 [SAPEngine_Application_Thread[impl:3]_13] DEBUG AEFrameworkServlet.java@538:logRequest() : btnsave:0::Save#

2009-03-12 12:29:50,852 [SAPEngine_Application_Thread[impl:3]_13] DEBUG AEFrameworkServlet.java@538:logRequest() : ApplicationURL:0::#

2009-03-12 12:29:50,852 [SAPEngine_Application_Thread[impl:3]_13] DEBUG AEFrameworkServlet.java@538:logRequest() : RedirectURL:0::#

2009-03-12 12:29:50,852 [SAPEngine_Application_Thread[impl:3]_13] DEBUG AEFrameworkServlet.java@538:logRequest() : generic_email_server_name:0::#

2009-03-12 12:29:50,852 [SAPEngine_Application_Thread[impl:3]_13] DEBUG AEFrameworkServlet.java@543:logRequest() : -- End Request dump for Action Path is loadConfigSMTPServerName

2009-03-12 12:29:50,852 [SAPEngine_Application_Thread[impl:3]_13] DEBUG NavigationEngine.java@85:execute() : Current Module: |CFG| Conversation: |cnvConfigSMTPServerName| Screen: |scrConfigSMTPServerName|

2009-03-12 12:29:50,852 [SAPEngine_Application_Thread[impl:3]_13] DEBUG NavigationEngine.java@105:execute() : Module#CFG#Conversation#cnvConfigSMTPServerName#Screen#scrConfigSMTPServerName#Action#loadConfigSMTPServerName#

2009-03-12 12:29:50,852 [SAPEngine_Application_Thread[impl:3]_13] DEBUG NavigationEngine.java@261:execute() : Handler found:class com.virsa.ae.configuration.actions.SMTPServerNameAction

2009-03-12 12:29:50,852 [SAPEngine_Application_Thread[impl:3]_13] DEBUG NavigationEngine.java@272:execute() : Target returned by execute action: success

2009-03-12 12:29:50,852 [SAPEngine_Application_Thread[impl:3]_13] DEBUG AEFrameworkServlet.java@459:service() : forwarding to:/cfg_smtp_server.jsp

2009-03-12 12:30:13,055 [SAPEngine_Application_Thread[impl:3]_11] DEBUG AEFrameworkServlet.java@522:logRequest() :

-- Request dump for Action Path is loadConfigSMTPServerName

2009-03-12 12:30:13,055 [SAPEngine_Application_Thread[impl:3]_11] DEBUG AEFrameworkServlet.java@543:logRequest() : -- End Request dump for Action Path is loadConfigSMTPServerName

2009-03-12 12:30:13,055 [SAPEngine_Application_Thread[impl:3]_11] DEBUG NavigationEngine.java@85:execute() : Current Module: |CFG| Conversation: |cnvConfigSMTPServerName| Screen: |scrConfigSMTPServerName|

2009-03-12 12:30:13,055 [SAPEngine_Application_Thread[impl:3]_11] DEBUG NavigationEngine.java@105:execute() : Module#CFG#Conversation#cnvConfigSMTPServerName#Screen#scrConfigSMTPServerName#Action#loadConfigSMTPServerName#

2009-03-12 12:30:13,055 [SAPEngine_Application_Thread[impl:3]_11] DEBUG NavigationEngine.java@261:execute() : Handler found:class com.virsa.ae.configuration.actions.SMTPServerNameAction

2009-03-12 12:30:13,055 [SAPEngine_Application_Thread[impl:3]_11] DEBUG NavigationEngine.java@272:execute() : Target returned by execute action: success

2009-03-12 12:30:13,055 [SAPEngine_Application_Thread[impl:3]_11] DEBUG AEFrameworkServlet.java@459:service() : forwarding to:/cfg_smtp_server.jsp

2009-03-12 12:30:14,258 [SAPEngine_Application_Thread[impl:3]_10] DEBUG AEFrameworkServlet.java@522:logRequest() :

Any thoughts , please share you rexperinces

Regards

PKK

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

HI PKK,

This is a known bug in AC 5.3 SP6. SAP has added fields for administrator email address, application URL and redirection URL. Even though application URL and redirection URL do not show up as manadatory fields but they are required to save the configuration. To get pass through this error, just provide anything in those 2 textboxes with some dummy email address in administrator email address textbox. You should be able to save it now.

This is being fixed in SP7 which should release somewhere around end of March.

Regards,

Alpesh

Former Member
0 Kudos

Hi Alpesh ,

Thanks for the quick response , I did as you told and it saved succefully

Regards

PKK

Former Member
0 Kudos

Hi Alpesh,

I was able to resolve the same issue MK reported by adding dummy URLs in the Application URL and Redirection URL fields in SMTP config. Thanks for the tip!

However, this seems to introduce a new problem in URL links attached to the e-mail notifications sent to users/approves, etc.

For example,

I enetered http://ercp1xxx:50400/AE/ in the Application URL and Redirection URL fields which allows me to save my SMTP configuration.

When the users received e-mail notification of the status of their request, they will get a link automatically attached to the end of the e-mail to allow them to check the status. For example,

http://ercp1xxx:50400/AE/index.jsp?loadRequestStatusSearchClosed.do. If the user copy and paste this link to a browser, they will be able to go to AE to check status.

However, if they click on the link provided in the e-mail, the user will be directed to a link like below which is not a valid address and users will get error message.

e.g.http://ercp1xxx:50400/AE/=http://ercp1xxx:50400/AE/index.jsp?loadRequestStatusSearchClosed.do

It looks like the URL I defined for App or Redirection for SMTP was appended in front of the URL generated for e-mail notification.

Do you know how to fix this issue? I can not leave the App or Redirection for SMTP config blank otherwise I can not save my SMTP config. Can I change the link that automatically entered in the email,for example,

from http://ercp1xxx:50400/AE/index.jsp?loadRequestStatusSearchClosed.do

to index.jsp?loadRequestStatusSearchClosed.do ?

Then when the Application URL combined with it the link will work? Of course this may introduce a different problem that the link showed up in the e-mail may not look correct either.

Many thanks for your help.

Regards.

Former Member
0 Kudos

Hi Alpesh,

One more note. We are on 5.3 SP6

Thanks.

Former Member
0 Kudos

Yes, Limei. You are right. You will surely see this issue once you save those URLs. The only way to tackle is to upgrade to SP7 or SP8. SAP has fixed the bug and you will be able to save the configuration without providing URLs.

Regards,

Alpesh

Former Member
0 Kudos

Hi Alpesh,

Thanks for your reply.

Regards.