Atg.service.dynamo.LicenseExpiredException
HI
I have installed ATG 9.0 and on starting I am getting these errors in JBoss console. I have copied ATG license files under \ATG\ATG9.0\home\localconfig folder
Could you please let me know what could be wrong in this case.
20:17:07,259 INFO [STDOUT] **** Error
20:17:07,259 INFO [STDOUT]
20:17:07,260 INFO [STDOUT] Tue Dec 18 20:17:07 EST 2012
20:17:07,261 INFO [STDOUT]
20:17:07,261 INFO [STDOUT] 1355879827259
20:17:07,261 INFO [STDOUT]
20:17:07,261 INFO [STDOUT] /
20:17:07,261 INFO [STDOUT]
20:17:07,261 INFO [STDOUT] Validation of service: /DPSLicense failed:atg.service.dynamo.LicenseExpiredException: atg.service.ServiceResources->licenseExpired : Today's date: Tue Dec 18 20:17:07 EST 2012 is after the expiration date: Sat Apr 10 23:59:59 EDT 2010. Please contact [email protected] to obtain a valid license.
20:17:07,281 INFO [STDOUT] **** Error
20:17:07,281 INFO [STDOUT]
20:17:07,281 INFO [STDOUT] Tue Dec 18 20:17:07 EST 2012
20:17:07,282 INFO [STDOUT]
20:17:07,282 INFO [STDOUT] 1355879827261
20:17:07,282 INFO [STDOUT]
20:17:07,282 INFO [STDOUT] /
20:17:07,282 INFO [STDOUT]
20:17:07,282 INFO [STDOUT] atg.nucleus.NucleusResources->cantResolveComponent : Unable to resolve component /atg/dynamo/service/VersionService
20:17:07,282 INFO [STDOUT]
20:17:07,282 INFO [STDOUT] java.lang.NullPointerException
20:17:07,282 INFO [STDOUT] **** Error
20:17:07,282 INFO [STDOUT]
Thanks
Seems like as mentioned in the error logs I have expired license file
# This is a license for ATG Personalization Server
# It should be in a file called:
# <dynamo-install-dir>/home/localconfig/DPSLicense.properties
# Any modifications will make the license invalid.
$class=atg.userprofiling.DPSLicense
licensedUser=Stuart Leitch - Evaluation
version=9.0
expirationTime=1270958399650
templateEmailEnabled=true
className=atg.userprofiling.DPSLicense
expirationDate=04/10/2010
signedPropertyList=licensedUser,version,expirationTime,templateEmailEn\
abled,className
signedPropertySignature=48,44,2,20,79,26,-120,-27,85,31,-16,89,29,-26,\
12,-119,72,70,-78,-66,59,-56,20,68,2,20,93,33,116,-116,44,57,-66,54,18\
,71,56,-78,69,-125,-7,46,-4,-103,95,66
limitations=This is a limited, evaluation license for ATG \
Personalization Server. Licensee may use ATG Personalization Server \
for 365 days from the date Licensee received a DPSLicense.properties \
file (the "Evaluation Period"). Licensee's right to use ATG \
Personalization Server terminates upon the termination of the \
Evaluation Period. If Licensee wishes to obtain a full use license \
with respect to the Licensed Program, Licensee should contact ATG at \
[email protected]
Similar Messages
-
All, while sending email via web production application getting the following exception and it is intermittent as well, any quick pointers in cause/fix, please..
ERROR [nucleusNamespace.atg.dynamo.service.EmailFormHandler] Failed to send meail message:Remember to set /atg/dynamo/service/SMTPEmail.emailHandlerHostName and /atg/dynamo/service/SMTPEmail.emailHandlerPort
atg.service.email.EmailException: javax.mail.MessagingException: Exception reading response;
nested exception is:
java.net.SocketTimeoutException: Read timed out
at atg.service.email.SMTPEmailSender.sendEmailMessage(SMTPEmailSender.java:907)
at atg.service.email.SMTPEmailSender.sendEmailMessage(SMTPEmailSender.java:930)
at atg.service.email.SMTPEmailSender.sendEmail(SMTPEmailSender.java:1009)
at atg.service.email.SMTPEmailSender.sendEmailEvent(SMTPEmailSender.java:985)
at atg.service.email.SMTPEmailSender.sendEmailMessage(SMTPEmailSender.java:522)
at atg.service.email.EmailFormHandler.sendMail(EmailFormHandler.java:316)
at atg.service.email.EmailFormHandler.handleSendEmail(EmailFormHandler.java:436)
at sun.reflect.GeneratedMethodAccessor843.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at atg.droplet.EventSender.sendEvent(EventSender.java:582)
at atg.droplet.FormTag.doSendEvents(FormTag.java:791)
at atg.droplet.FormTag.sendEvents(FormTag.java:640)
at atg.droplet.DropletEventServlet.sendEvents(DropletEventServlet.java:523)
at atg.droplet.DropletEventServlet.service(DropletEventServlet.java:550)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
at atg.servlet.sessionsaver.SessionSaverServlet.service(SessionSaverServlet.java:2442)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
at atg.commerce.order.CommerceCommandServlet.service(CommerceCommandServlet.java:128)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
at atg.commerce.promotion.PromotionServlet.service(PromotionServlet.java:191)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
at atg.userprofiling.AccessControlServlet.service(AccessControlServlet.java:602)Check the configuration of /atg/dynamo/service/SMTPEmail component and specify proper values for emailHandlerHostName, emailHandlerPort, username, password. By default emailHandlerHostName is configured to localhost and port is set to 25 which is default for SMTP. If you do not know these you can get these details from your mail administrator who has setup your mail-id. You would also need to specify the username and password if your administrator has not allowed for making anonymous connection to the mail server.
-
Can Any one help me in finding the cause of following error
16:18:27,565 INFO [PipelineManager] DEBUG Cancel Link Transaction
16:18:27,565 INFO [PipelineManager] DEBUG Transaction is TX_MANDATORY
16:18:27,565 INFO [PipelineManager] DEBUG Setting transaction to rollback
16:18:27,565 INFO [PipelineManager] DEBUG Cancel Chain Transaction
16:18:27,565 INFO [PipelineManager] DEBUG Transaction is TX_REQUIRED
16:18:27,565 INFO [PipelineManager] DEBUG Setting transaction to rollback
16:18:27,565 ERROR [OrderManager]
CAUGHT AT:
CONTAINER:atg.service.pipeline.RunProcessException: An exception was thrown from the context of the link named [loadCommerceItemObjects].; SOURCE:java.lang.RuntimeException: CONTAINER:atg.repository.RepositoryException; SOURCE:org.jboss.util.NestedSQLException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -53eaeff2:f142:52c29876:2a4f status: ActionStatus.ABORT_ONLY >; - nested throwable: (ja
at atg.service.pipeline.PipelineChain.runProcess(PipelineChain.java:393)
at atg.service.pipeline.PipelineChainContext.runProcess(PipelineChainContext.java:207)
at atg.service.pipeline.PipelineManager.runProcess(PipelineManager.java:475)
at atg.commerce.pipeline.CommercePipelineManager.runProcess(CommercePipelineManager.java:123)
at atg.commerce.order.OrderImpl.ensureContainers(OrderImpl.java:1745)
at atg.commerce.order.OrderImpl.getShippingGroups(OrderImpl.java:1084)
at com.mk.integration.epicor.salesAudit.datamanager.EpicorSalesAuditDataManager.processShippingGroups(EpicorSalesAuditDataManager.java:477)
at com.mk.integration.epicor.salesAudit.datamanager.EpicorSalesAuditDataManager.constructSalesAuditFeed(EpicorSalesAuditDataManager.java:431)
at com.mk.integration.epicor.salesAudit.datamanager.EpicorSalesAuditDataManager.exportFullfilledOrder(EpicorSalesAuditDataManager.java:213)
at com.mk.integration.epicor.salesAudit.processor.EpicorSalesAuditProcessor.exportFullfilledOrder(EpicorSalesAuditProcessor.java:42)
at com.mk.integration.epicor.salesAudit.scheduler.EpicorSalesAuditScheduler.startSalesAuditExport(EpicorSalesAuditScheduler.java:65)
at com.mk.integration.epicor.salesAudit.scheduler.EpicorSalesAuditScheduler.doScheduledTask(EpicorSalesAuditScheduler.java:49)
at atg.service.scheduler.SingletonSchedulableService.performScheduledTask(SingletonSchedulableService.java:253)
at atg.service.scheduler.ScheduledJob.runJobs(ScheduledJob.java:466)
at atg.service.scheduler.Scheduler$2handler.run(Scheduler.java:782)
Caused by: java.lang.RuntimeException: CONTAINER:atg.repository.RepositoryException; SOURCE:org.jboss.util.NestedSQLException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -53eaeff2:f142:52c29876:2a4f status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -53eaeff2:f142:52c29876:2a4f status:
at atg.adapter.gsa.GSAItemDescriptor.loadProperty(GSAItemDescriptor.java:5994)
at atg.adapter.gsa.GSAItem.getPersistentPropertyValue(GSAItem.java:1315)
at atg.adapter.gsa.GSAItem.getPropertyValue(GSAItem.java:1208)
at atg.adapter.gsa.GSAItem.getPropertyValue(GSAItem.java:1405)
at atg.repository.RepositoryItemImpl.getPropertyValue(RepositoryItemImpl.java:151)Hi,
I seems like you don't have any active transaction. Try start or get transaction before execute your required operations.
After it, commit (or rollback, if something wrong happens) the transaction.
Hope it helps. -
Hi Team,
I am new to atg just want to see the first page sample jsp which prints helloworld.I had created the basic tables which atg expects in mysql and when i am tring to run the url its throwing me the error as shown in subject also as below in jsp need your help
java.lang.NullPointerException
atg.userprofiling.ProfilePropertyServlet.service(ProfilePropertyServlet.java:175)
atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
atg.userprofiling.ProfileRequestServlet.service(ProfileRequestServlet.java:437)
atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
atg.servlet.pipeline.DynamoPipelineServlet.service(DynamoPipelineServlet.java:469)
atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
atg.servlet.pipeline.URLArgumentPipelineServlet.service(URLArgumentPipelineServlet.java:280)
atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
atg.servlet.pipeline.PathAuthenticationPipelineServlet.service(PathAuthenticationPipelineServlet.java:370)
atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
atg.userprofiling.sso.PassportServlet.service(PassportServlet.java:554)
atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
atg.servlet.security.ThreadUserBinderServlet.service(ThreadUserBinderServlet.java:91)
atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
atg.dtm.TransactionPipelineServlet.service(TransactionPipelineServlet.java:212)
atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
atg.multisite.SiteContextPipelineServlet.service(SiteContextPipelineServlet.java:348)
atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
atg.servlet.pipeline.HeadPipelineServlet.passRequest(HeadPipelineServlet.java:1174)
atg.servlet.pipeline.HeadPipelineServlet.service(HeadPipelineServlet.java:857)
atg.servlet.pipeline.PipelineableServletImpl.service(PipelineableServletImpl.java:250)
atg.filter.dspjsp.PageFilter.doFilter(PageFilter.java:263)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
Regards,
RajCheck for the following
Did your server startup without any error? It might be result of some startup error or some of the required components might not have been initialized.
Which modules have you started? Did you create a custom module if yes make sure it has dependency to DAS, DSS and DPS. The dependency is defined in module Menifest file.
I will recommend you to start with PioneerCycling or MotorpriseJSP modules. They are preconfigured with SOLID DB and you can start them through program menu (on Windows). They have tones of example which can be utilized for understanding ATG framework. -
Just wondering if anyone has seen this type of behavior with other implementations. When any of a particular clients's ATG/WLS instances are started, they get a whole slew of errors with initialization on components, whose properties are linked properties to the /atg/dynamo/Configuration component's properties. I have check each of the linked properties and all are set with OOTB settings.
Here are some examples:
**** Error /atg.nucleus.NucleusResources->beanConfiguratorUnableToSetConfiguredProperty : Unable to set configured property "/Nucleus.adminServerPrefix" atg.nucleus.ConfigurationException: Unable to find readable property /atg/dynamo/Configuration.adminServerPrefix in class atg.service.dynamo.Configuration
**** Error / Unable to set configured property "/atg/dynamo/server/RmiInitialization.systemPathPrefix" atg.nucleus.ConfigurationException: Unable to find readable property /atg/dynamo/Configuration.rmiSystemPathPrefix in class atg.service.dynamo.Configuration
**** Error / Unable to set configured property "/atg/dynamo/servlet/pipeline/ServletPathDispatcher.servletPathPrefix" atg.nucleus.ConfigurationException: Unable to find readable property /atg/dynamo/Configuration.dynamoEarContextRoot in class atg.service.dynamo.Configuration
**** Error / Unable to set configured property "/atg/devtools/UpdateAgent.modulePathPrefix" atg.nucleus.ConfigurationException: Unable to find readable property /atg/dynamo/Configuration.updateAgentModulePathPrefix in class atg.service.dynamo.Configuration
**** Error / Unable to set configured property "/atg/devtools/UpdateAgent.dynamoModuleResourcePathPrefix" atg.nucleus.ConfigurationException: Unable to find readable property /atg/dynamo/Configuration.updateAgentDynamoModuleResourcePathPrefix in class atg.service.dynamo.Configuration
**** Error / Unable to set configured property "/atg/userprofiling/email/TemplateEmailSender.applicationPrefix" atg.nucleus.ConfigurationException: Unable to find readable property /atg/dynamo/Configuration.dynamoEarContextRoot in class atg.service.dynamo.Configuration
**** Error / Unable to set configured property "/atg/scenario/IndividualEmailSender.applicationPrefix" atg.nucleus.ConfigurationException: Unable to find readable property /atg/dynamo/Configuration.dynamoEarContextRoot in class atg.service.dynamo.ConfigurationHi,
Did you upgraded your server (OR) is it fresh installation ?
1. Remove JDK or JRE configuration and try to stop your server??
2. Create another test instance with out jsp or serlvet configuration. Try to stop and start the server.
3.Check out with JDK 1.2.2_007.
Let me know your last 10/15 lines of error,access log.
Thanks,
Daks. -
PermissionDeniedException while setting conext path in merchandiser dyn admin
Hi All,
I created a project in BCC using admin user and when I tried setting context to that project in merchandiser dyn admin, i got permission denied exception.
javax.ejb.EJBException: QUERY_EXCEPTION_MESSAGE: RQL query: status = ?0 RANGE ?1+?2, Args: ?0=Active ?1=0 ?2=5000 ; nested exception is: CONTAINER:atg.repository.RepositorySecurityException; SOURCE:atg.security.PermissionDeniedException: You do not have read access to the project item descriptor.
at atg.repository.tojava.runtime.RJSupport.executeRqlStatement(RJSupport.java:1045)
at atg.epub.project._ProjectHome_ReposImpl.findProjectsByStatus(_ProjectHome_ReposImpl.java:131)
at atg.service.dynamo.admincontext.ProjectAdminContextProvider$1.doInTransaction(ProjectAdminContextProvider.java:222)
at atg.service.dynamo.admincontext.ProjectAdminContextProvider$1.doInTransaction(ProjectAdminContextProvider.java:217)
at atg.dtm.TransactionUtil$TypedTransactionAction.doWithTransaction(TransactionUtil.java:95)
at atg.service.dynamo.admincontext.ProjectAdminContextProvider.getAvailableOptions(ProjectAdminContextProvider.java:217)
at atg.service.dynamo.admincontext.AdminContextFormHandler$ProviderAndCurrentContext.(AdminContextFormHandler.java:366)
at atg.service.dynamo.admincontext.AdminContextFormHandler.getProviderAndCurrentContexts(AdminContextFormHandler.java:327)
How Can I add permission to the user to set context path in merchandiser dyn admin.Sorry forgot to update the post, I have tried following and failed:
admin user being super-admin, I have added read,write,creare,delete privileges to it.
I have tried adding guper-admin to both process and project item-descriptors in atg/epub/publishingSecurity.xml acl.
<acl-property name="acl" />
<descriptor-acl value="Profile$role$ePubSuperAdmin:read,write,create,delete; Newly added profile privileges
Profile$role$epubAdmin:read,write,create,delete;
Profile$role$epubManager:read,write,create,delete;
Profile$role$epubUser:read,write,create,delete;
Admin$role$administrators-group:read,write,create,delete" />
On that page I was able to set context, but for other pages(components) Same exception came.
Is there any problem with newly added acl-value: Profile$role$ePubSuperAdmin:read,write,create,delete?
Also let me know if other changes are required.
Thanks,
Nitin. -
Not able to invoke ATG Rest services
Hi,
I'm new ATG Rest service, To just create a dummy rest service I followed the below steps.
1. added REST module in MANIFEST.MF file
ATG-Required: DAS DPS DSS DCS B2CCommerce DAS REST
2. created restSecurityCnfiguration.xml under atg/rest/seurity and following is the content of this file
<programlisting>
<rest-security>
<default-acl value="Profile$login$admin:read,write,execute" />
<resource component="/atg/service/TestComponent" secure="false"/>
</rest-security>
</programlisting>
3. Created a TestComponent in my existing application and created a method testName
public class TestComponent {
public String getTestName(){
return "arvind";
4. Deployed my application on jboss.
Now I'm trying to invoke this from a java class
protected void execute() throws RestClientException {
String mUsername = "admin";
String mPassword = "admin";
String mHost = "localhost";
int mPort = 8080;
RestSession mSession = null;
RestResult result = null;
mSession = RestSession.createSession(mHost, mPort, mUsername, mPassword);
mSession.setUseHttpsForLogin(false);
mSession.setUseInternalProfileForLogin(false);
try {
mSession.login();
println("Login Successful");
result = RestComponentHelper.executeMethod("/atg/service/TestComponent", "testName", new Object[] {}, null, mSession);
catch (Throwable t) {
println(t);
} finally {
try {
mSession.logout();
println("Logout Successful");
} catch (RestClientException e) {
println(e);
----------------------------------------------------------------------out put ---------------------------------------------
Login Successful
atg.rest.client.RestClientException: java.io.IOException: Unauthorized Server returned HTTP response code: 401 for URL: http://localhost:8080/rest/bean/atg/service/TestComponent/testName
at atg.rest.client.RestSession.createHttpRequest(RestSession.java:755)
at atg.rest.client.RestComponentHelper.executeMethod(RestComponentHelper.java:252)
at com.techm.restclient.RestClientSample.execute(RestClientSample.java:63)
at com.techm.restclient.RestClientSample.main(RestClientSample.java:87)
Caused by: java.io.IOException: Unauthorized Server returned HTTP response code: 401 for URL: http://localhost:8080/rest/bean/atg/service/TestComponent/testName
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1436)
at atg.rest.client.RestSession.createHttpRequest(RestSession.java:745)
... 3 more
Logout Successful
Even if I provide any username and password, which don't even exist, it says login succussful but while invocation it fails. Please help me here,
What is default user I can use? or way to create new user ?
Thanks in Advance,
Arvind
Edited by: Arvind Pal on Oct 4, 2012 10:21 AM
Edited by: Arvind Pal on Oct 4, 2012 10:22 AMI created a user through ACC, and made the following changes.
<programlisting>
<rest-security>
<default-acl value="Profile$login$arvind:read,write,execute" />
<resource component="/atg/service/TestComponent" secure="false"/>
</rest-security>
</programlisting>
and now I'm getting the loginStatus i.e userid of user "arvind".
But while executing the invocation of web service call I'm getting the same exception.
Do we need to give some permission somewhere for this user ? or I'm doing something wrong with restSecurityConfiguration.xml
Login status[390002]
Login Successful
atg.rest.client.RestClientException: java.io.IOException: Unauthorized Server returned HTTP response code: 401 for URL: http://localhost:8080/rest/bean/atg/service/TestComponent/getTestName
at atg.rest.client.RestSession.createHttpRequest(RestSession.java:755)
at atg.rest.client.RestSession.createHttpRequest(RestSession.java:722)
at atg.rest.client.RestComponentHelper.getPropertyValue(RestComponentHelper.java:182)
at com.techm.restclient.RestClientSample.execute(RestClientSample.java:98)
at com.techm.restclient.RestClientSample.main(RestClientSample.java:128)
Caused by: java.io.IOException: Unauthorized Server returned HTTP response code: 401 for URL: http://localhost:8080/rest/bean/atg/service/TestComponent/getTestName
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1436)
at atg.rest.client.RestSession.createHttpRequest(RestSession.java:745)
... 4 more
Logout Successful
Edited by: Arvind Pal on Oct 4, 2012 12:36 PM -
PatchBay error while running ATG application
Hi All,
I am getting the following error while running ATG application.
Error /atg/dynamo/messaging/MessagingManager PatchBay failed to startup properly : a Scheduler job will be registered to continue trying to bring PatchBay up : note this will may result in further errors atg.nucleus.ServiceException: An error occurred trying to obtain an XATopicConnection from factory "dynamo:/atg/dynamo/messaging/SqlJmsProvider" in provider "sqldms" in definition file "/atg/dynamo/messaging/dynamoMessagingSystem.xml": javax.jms.JMSException: service was either unable startup due to possible DB errors or has been stopped+
***** Error Fri Jan 25 14:21:19 GMT 2013 1359123679337 /atg/dynamo/messaging/MessagingManager at atg.dms.patchbay.Provider.initializeTopicConnection(Provider.java:325)*
***** Error Fri Jan 25 14:21:19 GMT 2013 1359123679337 /atg/dynamo/messaging/MessagingManager at atg.dms.patchbay.PatchBayManager.createAdministeredDestinations(PatchBayManager.java:2471)*
***** Error Fri Jan 25 14:21:19 GMT 2013 1359123679337 /atg/dynamo/messaging/MessagingManager at atg.dms.patchbay.PatchBayManager.doStartService(PatchBayManager.java:536)*
***** Error Fri Jan 25 14:21:19 GMT 2013 1359123679337 /atg/dynamo/messaging/MessagingManager at atg.dms.patchbay.PatchBayRestarter.performScheduledTask(PatchBayRestarter.java:146)*
***** Error Fri Jan 25 14:21:19 GMT 2013 1359123679337 /atg/dynamo/messaging/MessagingManager at atg.service.scheduler.ScheduledJob.runJobs(ScheduledJob.java:441)*
***** Error Fri Jan 25 14:21:19 GMT 2013 1359123679337 /atg/dynamo/messaging/MessagingManager at atg.service.scheduler.Scheduler$2handler.run(Scheduler.java:760)*
***** Error Fri Jan 25 14:21:19 GMT 2013 1359123679337 /atg/dynamo/messaging/MessagingManager*
Could you please help on this.
Thanks and regards,Hi Gareth,
No, the error is not coming during managed server startup time.
It is coming during the application run and page navigation.
Thanks and regards, -
Issue in Setting up MySQL DB with ATG 10.0.3
Hi All,
I am facing the below issue while setting up the MySQL DB with the ATG 10.0.3 version.
**** Error Thu Aug 30 23:45:25 CDT 2012 1346388325927 /atg/dynamo/service/jdbc/JTDataSource an exception was encountered while trying to populate the pool with the starting number of resources:
atg.service.resourcepool.ResourcePoolException: java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306
**** Error Thu Aug 30 23:45:25 CDT 2012 1346388325968 /atg/dynamo/service/jdbc/JTDataSource The connection pool failed to initialize propertly, i.e. the starting number of connections could not be created; check your database accessibility and JDBC driver configuration
Please help to resolve this issue.Weblogic comes with ojbc driver for oracle db but I've never tried it with mysql - I just looked and theres mysql-connector-java-commercial-5.1.14-bin.jar in weblogic server/lib directory. Make sure its coming up in your class path log output when you startup weblogic.
-Kip -
ATG catalog export error in startSQLRepository
Hi,
I want to export the catalog data from atg production. I followed the steps as below.
1. create FakeXADatasource.properties file in C:\ATG\ATG10.1.1\home\localconfig\atg\dynamo\service\jdbc. (There is mysql user named atguser with password atg123$)
$class=atg.service.jdbc.FakeXADataSource
URL=jdbc:mysql://localhost:3306/prod_lo
user=atguser
password=atg123$
driver=com.mysql.jdbc.Driver
2. change JTDataSource.properties as below.
$class=atg.service.jdbc.MonitoredDataSource
dataSource=/atg/dynamo/service/jdbc/FakeXADataSource
transactionManager=/atg/dynamo/transaction/TransactionManager
loggingSQLInfo=false
min=10
maxFree=-1
loggingSQLError=false
blocking=true
loggingSQLWarning=false
max=10
loggingSQLDebug=false
3. then run the "startSQLRepository.bat -m Store.Storefront -export all catalogExport.xml -repository /atg/commerce/catalog/ProductCatalog" command.
but while it processing it gives below error. Anyone know the reason or how to do a complete catalog export? (I have remove the last part of the error log because it exceeds the maximum length of 30000 characters. )
./startSQLRepository -m Store.Storefront -export all catalogExport.xml -repository /atg/commerce/catalog/ProductCatalog
ARGS: args = -m Store.Storefront -export all catalogExport.xml -repository /atg/commerce/catalog/ProductCatalog
Invalid setting of DYNAMO_HOME: "/usr/local/ATG/ATG10.1.2/home"
Attempting to locate a valid DYNAMO_HOME based on your working directory.
The following installed ATG components are being used to launch:
ATGPlatform version 10.1.1 installed at /usr/local/ATG/ATG10.1.1
CommerceReferenceStore version 10.1.1 installed at /usr/local/ATG/ATG10.1.1/CommerceReferenceStore
JAVA_ARGS: -Djava.security.policy=lib/java.policy -Datg.dynamo.home=. -Datg.dynamo.root=./.. -Datg.dynamo.display= -Djava.protocol.handler.pkgs=atg.net.www.protocol -Djava.naming.factory.url.pkgs=atg.jndi.url -Datg.dynamo.modulepath=./.. -Xms512m -Xmx1024m -XX:MaxPermSize=128m -XX:MaxNewSize=128m -Datg.dynamo.server.home=. -Datg.dynamo.modules=DAS:DAS-UI::Store.Storefront:DSS -Datg.dynamo.layers= -Dsun.rmi.dgc.server.gcInterval=3600000
DYNAMO_MODULES: DAS:DAS-UI:DPS:DSS:WebUI:DCS:Store.EStore:DCS.AbandonedOrderServices:Store.Storefront
CONFIGPATH: /usr/local/ATG/ATG10.1.1/DAS/config/config.jar:/usr/local/ATG/ATG10.1.1/DAS/config/oca-ldap.jar:vfs[localconfig-1]=/atg/dynamo/service/groupconfig/ClientNodeTypeVirtualFileSystem:vfs[localconfig-1]=/atg/dynamo/service/groupconfig/ClientInstanceVirtualFileSystem:/usr/local/ATG/ATG10.1.1/DAS-UI/config/uiconfig.jar:/usr/local/ATG/ATG10.1.1/DPS/config/targeting.jar:/usr/local/ATG/ATG10.1.1/DPS/config/oca-cms.jar:/usr/local/ATG/ATG10.1.1/DPS/config/oca-html.jar:/usr/local/ATG/ATG10.1.1/DPS/config/oca-xml.jar:/usr/local/ATG/ATG10.1.1/DPS/config/userprofiling.jar:/usr/local/ATG/ATG10.1.1/DPS/config/profile.jar:/usr/local/ATG/ATG10.1.1/DSS/config/config.jar:/usr/local/ATG/ATG10.1.1/WebUI/config/config.jar:/usr/local/ATG/ATG10.1.1/DCS/config/config.jar:/usr/local/ATG/ATG10.1.1/CommerceReferenceStore/Store/EStore/config/config.jar:/usr/local/ATG/ATG10.1.1/DCS/AbandonedOrderServices/config/config.jar:../DAS/config/dtmconfig.jar:localconfig:../DAF/config/dafconfig.jar
CLASSPATH: ./locallib/:./lib/launcher.jar:/opt/jboss-5.1.0.GA/lib/mysql-connector-java-5.1.22-bin.jar:/opt/jboss-5.1.0.GA/common/lib/jsp-api.jar:/opt/jboss-5.1.0.GA/lib/jboss-javaee.jar:/opt/jboss-5.1.0.GA/common/lib/servlet-api.jar:/opt/jboss-5.1.0.GA/common/lib/jsp-api.jar:/opt/jboss-5.1.0.GA/lib/jboss-javaee.jar:/opt/jboss-5.1.0.GA/common/lib/servlet-api.jar:/usr/local/ATG/more_libs/javaee-api-5.0.4.jar:/usr/local/ATG/more_libs/javaee-api-5.1.0-M1.jar:/opt/jboss-5.1.0.GA/lib/mysql-connector-java-5.1.22-bin.jar:/usr/local/ATG/ATG10.1.1/CommerceReferenceStore/Store/Storefront/lib/classes.jar:/usr/local/ATG/ATG10.1.1/CommerceReferenceStore/Store/EStore/lib/classes.jar:/usr/local/ATG/ATG10.1.1/CommerceReferenceStore/Store/EStore/lib/commons-codec-1.3.jar:/usr/local/ATG/ATG10.1.1/DCS/lib/resources.jar:/usr/local/ATG/ATG10.1.1/DCS/lib/classes.jar:/usr/local/ATG/ATG10.1.1/WebUI/lib/classes.jar:/usr/local/ATG/ATG10.1.1/DSS/lib/resources.jar:/usr/local/ATG/ATG10.1.1/DSS/lib/classes.jar:/usr/local/ATG/ATG10.1.1/DPS/lib/resources.jar:/usr/local/ATG/ATG10.1.1/DPS/lib/classes.jar:/usr/local/ATG/ATG10.1.1/DAS-UI/lib/uiresources.jar:/usr/local/ATG/ATG10.1.1/DAS-UI/lib/uiclasses.jar:/usr/local/ATG/ATG10.1.1/DAS-UI/lib/jhall.jar:/usr/local/ATG/ATG10.1.1/DAS/lib/resources.jar:/usr/local/ATG/ATG10.1.1/DAS/lib/classes.jar:/usr/local/ATG/ATG10.1.1/DAS/lib/servlet.jar:/usr/local/ATG/ATG10.1.1/DAS/lib/jsp-api.jar:/usr/local/ATG/ATG10.1.1/DAS/lib/ice.jar:/usr/local/ATG/ATG10.1.1/DAS/lib/cglib-nodep-2.1_3.jar:/usr/local/ATG/ATG10.1.1/DAS/lib/spring-aop-1.2-rc1.jar:/usr/local/ATG/ATG10.1.1/DAS/lib/jline-0.9.94.jar:/usr/local/ATG/ATG10.1.1/DAS/lib/validation-api-1.0.0.GA.jar
PATH: /usr/local/endeca/PlatformServices/6.1.3/bin:/usr/local/endeca/PlatformServices/6.1.3/perl/bin:/usr/local/endeca/PlatformServices/6.1.3/utilities:/usr/local/endeca/MDEX/6.4.0/bin:/usr/lib64/qt-3.3/bin:/opt/jdk1.6.0_35/bin:/opt/ENDECA/endeca/PlatformServices/6.1.3/bin:/opt/ENDECA/endeca/PlatformServices/6.1.3/perl/bin:/opt/ENDECA/endeca/PlatformServices/6.1.3/utilities:/opt/ENDECA/endeca/MDEX/6.3.0/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/jdk1.6.0_35/bin:/opt/jboss-5.1.0.GA/bin:./../DAS/os_specific_files/i486-unknown-linux2
Apr 26, 2013 9:57:20 AM org.hibernate.validator.util.Version <clinit>
INFO: Hibernate Validator 4.1.0.Final
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241015 /atg/dynamo/service/jdbc/JTDataSource an exception was encountered while trying to populate the pool with the starting number of resources: atg.service.resourcepool.ResourcePoolException: java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: NO)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241025 /atg/dynamo/service/jdbc/JTDataSource The connection pool failed to initialize propertly, i.e. the starting number of connections could not be created; check your database accessibility and JDBC driver configuration
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator --- CONTAINER:atg.service.idgen.IdGeneratorException; SOURCE:CONTAINER:atg.service.idgen.IdGeneratorException; SOURCE:java.sql.SQLException: atg.service.resourcepool.ResourcePoolException: java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: NO)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.service.idgen.PersistentIdGenerator.initialize(PersistentIdGenerator.java:389)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.service.idgen.AbstractSequentialIdGenerator.doStartService(AbstractSequentialIdGenerator.java:643)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.GenericService.startService(GenericService.java:559)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.NucleusNameResolver.startService(NucleusNameResolver.java:1704)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.NucleusNameResolver.configureAndStartService(NucleusNameResolver.java:1375)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:907)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:666)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:647)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.NucleusNameResolver.resolveName(NucleusNameResolver.java:492)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.NucleusNameResolver.resolveName(NucleusNameResolver.java:1216)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.ConfigurationRef.getValue(ConfigurationRef.java:103)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.SimpleComponentState.setBeanProperty(SimpleComponentState.java:401)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.SimpleConfigurationState.saveToBean(SimpleConfigurationState.java:240)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.SimpleConfigurationState.configureBean(SimpleConfigurationState.java:263)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.BeanConfigurator.configureBean(BeanConfigurator.java:297)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.PropertyConfiguration.configureService(PropertyConfiguration.java:978)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.SingleNucleusConfigurator.configureService(SingleNucleusConfigurator.java:84)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.NucleusNameResolver.configureService(NucleusNameResolver.java:1621)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.NucleusNameResolver.configureAndStartService(NucleusNameResolver.java:1347)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:907)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:666)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:647)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.NucleusNameResolver.resolveName(NucleusNameResolver.java:492)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.Nucleus.resolveName(Nucleus.java:2620)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.GenericService.resolveName(GenericService.java:378)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.GenericService.resolveName(GenericService.java:430)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.Nucleus.<init>(Nucleus.java:993)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.Nucleus.<init>(Nucleus.java:766)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.Nucleus.<init>(Nucleus.java:747)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.Nucleus.startNucleusCheckLicense(Nucleus.java:4275)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.Nucleus.startNucleus(Nucleus.java:4152)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.adapter.gsa.xml.TemplateParser.runParser(TemplateParser.java:5709)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.adapter.gsa.xml.TemplateParser.main(TemplateParser.java:5325)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator Caused by :CONTAINER:atg.service.idgen.IdGeneratorException; SOURCE:java.sql.SQLException: atg.service.resourcepool.ResourcePoolException: java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: NO)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.service.idgen.SQLIdGenerator.getConnection(SQLIdGenerator.java:647)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.service.idgen.SQLIdGenerator.initializeIdSpaces(SQLIdGenerator.java:833)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.service.idgen.PersistentIdGenerator.initialize(PersistentIdGenerator.java:327)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.service.idgen.AbstractSequentialIdGenerator.doStartService(AbstractSequentialIdGenerator.java:643)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.GenericService.startService(GenericService.java:559)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.NucleusNameResolver.startService(NucleusNameResolver.java:1704)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.NucleusNameResolver.configureAndStartService(NucleusNameResolver.java:1375)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:907)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:666)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:647)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.NucleusNameResolver.resolveName(NucleusNameResolver.java:492)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.NucleusNameResolver.resolveName(NucleusNameResolver.java:1216)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.ConfigurationRef.getValue(ConfigurationRef.java:103)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.SimpleComponentState.setBeanProperty(SimpleComponentState.java:401)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.SimpleConfigurationState.saveToBean(SimpleConfigurationState.java:240)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.SimpleConfigurationState.configureBean(SimpleConfigurationState.java:263)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.BeanConfigurator.configureBean(BeanConfigurator.java:297)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.PropertyConfiguration.configureService(PropertyConfiguration.java:978)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.SingleNucleusConfigurator.configureService(SingleNucleusConfigurator.java:84)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.NucleusNameResolver.configureService(NucleusNameResolver.java:1621)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.NucleusNameResolver.configureAndStartService(NucleusNameResolver.java:1347)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:907)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:666)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:647)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.NucleusNameResolver.resolveName(NucleusNameResolver.java:492)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.Nucleus.resolveName(Nucleus.java:2620)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.GenericService.resolveName(GenericService.java:378)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.GenericService.resolveName(GenericService.java:430)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.Nucleus.<init>(Nucleus.java:993)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.Nucleus.<init>(Nucleus.java:766)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.Nucleus.<init>(Nucleus.java:747)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.Nucleus.startNucleusCheckLicense(Nucleus.java:4275)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.Nucleus.startNucleus(Nucleus.java:4152)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.adapter.gsa.xml.TemplateParser.runParser(TemplateParser.java:5709)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.adapter.gsa.xml.TemplateParser.main(TemplateParser.java:5325)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator Caused by (#2):java.sql.SQLException: atg.service.resourcepool.ResourcePoolException: java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: NO)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.service.jdbc.MonitoredDataSource.getConnection(MonitoredDataSource.java:1261)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.service.idgen.SQLIdGenerator.getConnection(SQLIdGenerator.java:633)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.service.idgen.SQLIdGenerator.initializeIdSpaces(SQLIdGenerator.java:833)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.service.idgen.PersistentIdGenerator.initialize(PersistentIdGenerator.java:327)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.service.idgen.AbstractSequentialIdGenerator.doStartService(AbstractSequentialIdGenerator.java:643)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.GenericService.startService(GenericService.java:559)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.NucleusNameResolver.startService(NucleusNameResolver.java:1704)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.NucleusNameResolver.configureAndStartService(NucleusNameResolver.java:1375)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:907)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:666)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:647)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.NucleusNameResolver.resolveName(NucleusNameResolver.java:492)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.NucleusNameResolver.resolveName(NucleusNameResolver.java:1216)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.ConfigurationRef.getValue(ConfigurationRef.java:103)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.SimpleComponentState.setBeanProperty(SimpleComponentState.java:401)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.SimpleConfigurationState.saveToBean(SimpleConfigurationState.java:240)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.SimpleConfigurationState.configureBean(SimpleConfigurationState.java:263)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.BeanConfigurator.configureBean(BeanConfigurator.java:297)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.PropertyConfiguration.configureService(PropertyConfiguration.java:978)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.SingleNucleusConfigurator.configureService(SingleNucleusConfigurator.java:84)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.NucleusNameResolver.configureService(NucleusNameResolver.java:1621)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.NucleusNameResolver.configureAndStartService(NucleusNameResolver.java:1347)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:907)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:666)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:647)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.NucleusNameResolver.resolveName(NucleusNameResolver.java:492)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.Nucleus.resolveName(Nucleus.java:2620)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.GenericService.resolveName(GenericService.java:378)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.GenericService.resolveName(GenericService.java:430)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.Nucleus.<init>(Nucleus.java:993)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.Nucleus.<init>(Nucleus.java:766)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.Nucleus.<init>(Nucleus.java:747)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.Nucleus.startNucleusCheckLicense(Nucleus.java:4275)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.nucleus.Nucleus.startNucleus(Nucleus.java:4152)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.adapter.gsa.xml.TemplateParser.runParser(TemplateParser.java:5709)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator at atg.adapter.gsa.xml.TemplateParser.main(TemplateParser.java:5325)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241080 /atg/dynamo/service/IdGenerator
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241118 / Unable to start service "/atg/dynamo/service/IdGenerator": atg.nucleus.ServiceException: CONTAINER:atg.service.idgen.IdGeneratorException; SOURCE:CONTAINER:atg.service.idgen.IdGeneratorException; SOURCE:java.sql.SQLException: atg.service.resourcepool.ResourcePoolException: java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: NO)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241169 /atg/commerce/catalog/ProductCatalog --- java.sql.SQLException: atg.service.resourcepool.ResourcePoolException: java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: NO)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241169 /atg/commerce/catalog/ProductCatalog at atg.service.jdbc.MonitoredDataSource.getConnection(MonitoredDataSource.java:1261)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241169 /atg/commerce/catalog/ProductCatalog at atg.adapter.gsa.GSARepository.initialize(GSARepository.java:5809)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241169 /atg/commerce/catalog/ProductCatalog at atg.adapter.gsa.GSARepository.initializeTransactionally(GSARepository.java:5747)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241169 /atg/commerce/catalog/ProductCatalog at atg.adapter.gsa.GSARepository.doStartService(GSARepository.java:5420)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241169 /atg/commerce/catalog/ProductCatalog at atg.nucleus.GenericService.startService(GenericService.java:559)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241169 /atg/commerce/catalog/ProductCatalog at atg.nucleus.NucleusNameResolver.startService(NucleusNameResolver.java:1704)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241169 /atg/commerce/catalog/ProductCatalog at atg.nucleus.NucleusNameResolver.configureAndStartService(NucleusNameResolver.java:1375)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241169 /atg/commerce/catalog/ProductCatalog at atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:907)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241169 /atg/commerce/catalog/ProductCatalog at atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:666)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241169 /atg/commerce/catalog/ProductCatalog at atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:647)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241169 /atg/commerce/catalog/ProductCatalog at atg.nucleus.NucleusNameResolver.resolveName(NucleusNameResolver.java:492)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241169 /atg/commerce/catalog/ProductCatalog at atg.nucleus.Nucleus.resolveName(Nucleus.java:2620)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241169 /atg/commerce/catalog/ProductCatalog at atg.nucleus.GenericService.resolveName(GenericService.java:378)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241169 /atg/commerce/catalog/ProductCatalog at atg.nucleus.GenericService.resolveName(GenericService.java:430)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241169 /atg/commerce/catalog/ProductCatalog at atg.nucleus.Nucleus.<init>(Nucleus.java:993)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241169 /atg/commerce/catalog/ProductCatalog at atg.nucleus.Nucleus.<init>(Nucleus.java:766)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241169 /atg/commerce/catalog/ProductCatalog at atg.nucleus.Nucleus.<init>(Nucleus.java:747)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241169 /atg/commerce/catalog/ProductCatalog at atg.nucleus.Nucleus.startNucleusCheckLicense(Nucleus.java:4275)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241169 /atg/commerce/catalog/ProductCatalog at atg.nucleus.Nucleus.startNucleus(Nucleus.java:4152)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241169 /atg/commerce/catalog/ProductCatalog at atg.adapter.gsa.xml.TemplateParser.runParser(TemplateParser.java:5709)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241169 /atg/commerce/catalog/ProductCatalog at atg.adapter.gsa.xml.TemplateParser.main(TemplateParser.java:5325)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241169 /atg/commerce/catalog/ProductCatalog
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241177 / Unable to resolve component /atg/commerce/catalog/ProductCatalog java.lang.NullPointerException
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241177 / at atg.adapter.gsa.GSARepository.initialize(GSARepository.java:5825)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241177 / at atg.adapter.gsa.GSARepository.initializeTransactionally(GSARepository.java:5747)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241177 / at atg.adapter.gsa.GSARepository.doStartService(GSARepository.java:5420)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241177 / at atg.nucleus.GenericService.startService(GenericService.java:559)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241177 / at atg.nucleus.NucleusNameResolver.startService(NucleusNameResolver.java:1704)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241177 / at atg.nucleus.NucleusNameResolver.configureAndStartService(NucleusNameResolver.java:1375)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241177 / at atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:907)
**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241177 / at atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:666)**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241015 /atg/dynamo/service/jdbc/JTDataSource an exception was encountered while trying to populate the pool with the starting number of resources: atg.service.resourcepool.ResourcePoolException: java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: NO)**** Error Fri Apr 26 09:57:21 GMT 2013 1366970241025 /atg/dynamo/service/jdbc/JTDataSource The connection pool failed to initialize propertly, i.e. the starting number of connections could not be created; check your database accessibility and JDBC driver configuration >
Try with below configuration:
<ATG-Home>\home\localconfig\atg\dynamo\service\jdbc\FakeXADataSource.properties:
$class=atg.service.jdbc.FakeXADataSource
URL=jdbc:mysql://localhost:3306/myfds
user=atguser
password=atg123$
driver=com.mysql.jdbc.jdbc2.optional.MysqlXADataSource
<ATG-Home>\home\localconfig\atg\dynamo\service\jdbc\JTDataSource.properties:
$class=atg.service.jdbc.MonitoredDataSource
min=10
max=10
blocking=true
maxFree=-1
loggingSQLWarning=false
loggingSQLDebug=false
loggingSQLInfo=false
dataSource=/atg/dynamo/service/jdbc/FakeXADataSource
loggingSQLError=false
Please don't forget to have jar file for com.mysql.jdbc.jdbc2.optional.MysqlXADataSource.
Also see:
http://docs.oracle.com/cd/E23507_01/Platform.20073/RepositoryGuide/html/s1108exportingrepositorydata01.html
-RMishra -
An issue of ATG Portal install, is this a bug or I've missed anything?
I tried to follow the ATG Install guide to install ATG Portal, but just got the errors below.
**** Error Wed Dec 12 15:12:44 CST 2012 1355296364141 /atg/dynamo/service/jdbc/JTDataSource an exception was encountered while trying to populate the pool with the starting number of resources: atg.service.resourcepool.ResourcePoolException: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
I’m confused that despite of my intending to use Oracle Database, with using creating script under oracle folder which I believe is prepared for oracle database, it insist to seek and use mysql’s jdbc driver to try to connect to database. why? (You can notice Error line in the fragment)
In my opinion, connecting to Oracle database by using mysql’s jdbc driver would never work and doesn’t make sense at all. I also investigated the script of install-oracle.sh, found the script below:
echo "Importing data..."
( cd ../../../home; bin/startSQLRepository -m Portal.paf -database oracle -repository /atg/portal/framework/PortalRepository -import ../Portal/install/minimal-data.xml )
The parameter after “…Portal.paf -database” is “oracle”, so I think at least, the processing should seek for oracle’s jdbc driver.
Although I was told to set up my own FakeXADataSource.properties file to refer to my Oracle database information, where exactly should I put them? Now I put the file into /ATGinstallfloder/ATG10.1.1/home/localconfig/atg/dynamo/service/jdbc, and content is as below:
$class=atg.service.jdbc.FakeXADataSource
server=localhost:1313
user=ATG-PORTAL
needsSeparateUserInfo=false
URL=jdbc:oracle:thin:@localhost:1521:orcl
readOnly=false
password=123
database=
driver=com.oracle.jdbc.Driver
But I still keep receiving errors "/atg/dynamo/service/jdbc/JTDataSource an exception was encountered while trying to populate the pool with the starting number of resources: atg.service.resourcepool.ResourcePoolException: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure">
hero.wu wrote:
**** Error Wed Dec 12 15:12:44 CST 2012 1355296364141 /atg/dynamo/service/jdbc/JTDataSource an exception was encountered while trying to populate the pool with the starting number of resources: atg.service.resourcepool.ResourcePoolException: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
I’m confused that despite of my intending to use Oracle Database, with using creating script under oracle folder which I believe is prepared for oracle database, it insist to seek and use mysql’s jdbc driver to try to connect to database. why?
>
I assume /atg/dynamo/service/jdbc/JTDataSource having [dataSource=/atg/dynamo/service/jdbc/DirectJTDataSource].
To make sure, Can you check JNDIName value in /atg/dynamo/service/jdbc/DirectJTDataSource indicating properly in your xyz-ds.xml file that you have configured?
>
In my opinion, connecting to Oracle database by using mysql’s jdbc driver would never work and doesn’t make sense at all.
>
You are correct.
>
But I still keep receiving errors "/atg/dynamo/service/jdbc/JTDataSource an exception was encountered while trying to populate the pool with the starting number of resources: atg.service.resourcepool.ResourcePoolException: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure"
>
Please first confirm JNDIName as already mentioned above before proceeding to FakeXADataSource.
-RMishra
Edited by: RMishra on Dec 12, 2012 3:06 PM
Edited by: RMishra on Dec 12, 2012 3:12 PM -
Error while creating custom catalog in ATG 10.0.3
Hi All,
I am getting the below error while adding the Catalog Folder and during adding a new Catalog.
CONTAINER:atg.repository.RepositoryException; SOURCE:java.sql.SQLIntegrityConstraintViolationException: ORA-01400: cannot insert NULL into ("ATG_CORE"."DCS_GEN_FOL_CAT"."ASSET_VERSION")
at atg.adapter.gsa.GSAItemDescriptor.addItem(GSAItemDescriptor.java:6816)
at atg.adapter.gsa.GSARepository.addItem(GSARepository.java:1019)
at atg.ui.repository.model.RepositoryAgentImpl.addRepositoryItem(RepositoryAgentImpl.java:3087)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at atg.security.proxy.UserSessionProxy$SessionSkeletonHandler.invoke(UserSessionProxy.java:251)
at atg.rmi.context.ContextualSkeletonImpl.invoke(ContextualSkeletonImpl.java:105)
at sun.reflect.GeneratedMethodAccessor307.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.sql.SQLIntegrityConstraintViolationException: ORA-01400: cannot insert NULL into ("ATG_CORE"."DCS_GEN_FOL_CAT"."ASSET_VERSION")
at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:85)
at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1035)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:194)
at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:953)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1223)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3386)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3467)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1350)
at atg.service.resourcepool.MonitoredPreparedStatement.executeUpdate(MonitoredPreparedStatement.java:1080)
at atg.adapter.gsa.SQLStatement.executeUpdate(SQLStatement.java:725)
at atg.adapter.gsa.Table.insert(Table.java:1380)
at atg.adapter.gsa.GSAItemDescriptor.addItem(GSAItemDescriptor.java:6739)
... 21 more
Kindly help to resolve this issue.How are you adding the catalog? The error clearly means that the DB query is inserting null into the ASSET_VERSION column of DCS_GEN_FOL_CAT table. ASSET_VERSION column is non-null and required to maintain the repository asset versions in ATG content administration (CA).
I suspect that you probably tried to do something which resulted in inserting into CA schema's DCS_GEN_FOL_CAT table outside a CA project context. You should add the catalog folder through BCC to have a CA project context. In case you are importing the data by executing startSQLRepository on CA schema then make sure that it is imported within a project context by specifying project, user, and comment options. -
Exporting a PDF from an ATG servlet: IllegalStateException: Response already committed
High-level question
When a custom servlet in my ATG servlet pipeline writes a PDF document into the HTTP response output stream, although the PDF is delivered to the user's client browser successfully, an error is logged on the server: Servlet failed with Exception java.lang.IllegalStateException: Response already committed". Why does this occur?
Details
My ATG 10.1.2 application has a requirement to be able to generate and return to the client browser a PDF document when a particular button on the site is clicked.
Although I'm not sure whether or not it's an ATG best practice, the approach that I landed on for this was to insert a new custom servlet, "PdfExportServlet", into the ATG servlet pipeline. The PdfExportServlet, for requests that it determines are PDF requests and decides to handle, generates the PDF content (using the Jasper Reports engine), and writes the PDF content to the HTTP response output stream. Here's the relevant portion of the code:
response.setContentType("application/pdf");
// (...Code that generates a JasperPrint object with the PDF content...)
final byte[] pdfBinaryContent = JasperExportManager.exportReportToPdf(jasperPrint);
response.setContentLength(pdfBinaryContent.length);
final ServletOutputStream outputStream = response.getOutputStream();
outputStream.write(pdfBinaryContent);
outputStream.flush();
outputStream.close();
This works fine, and the PDF does display in the client browser. However, an error is also logged in the application's log file on the server:
<WL-101020> <[ServletContext@1369332778[app:storeFront module:shop path:/shop spec-version:2.5]] Servlet failed with Exception
java.lang.IllegalStateException: Response already committed
at weblogic.servlet.internal.ServletResponseImpl.objectIfCommitted(ServletResponseImpl.java:1631)
at weblogic.servlet.internal.ServletResponseImpl.sendError(ServletResponseImpl.java:637)
at weblogic.servlet.internal.ServletResponseImpl.sendError(ServletResponseImpl.java:602)
at weblogic.servlet.FileServlet.findSource(FileServlet.java:269)
at weblogic.servlet.FileServlet.doGetHeadPost(FileServlet.java:191)
at weblogic.servlet.FileServlet.service(FileServlet.java:173)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
at atg.servlet.GenericFilterService.doFilterChain(GenericFilterService.java:621)
A frustrating thing about this error which had made it difficult to troubleshoot is that it does not occur on my local development PC; this log message only appears when the application is running on one of our pre-production or production servers. This has made trying to rapidly iterate through multiple possible solutions problematic, as each change to the code requires a fresh deployment to our shared pre-production server, which is time-consuming.
I have tried the following variations on the above code, neither of which has produced a change in the manifestation of the issue (the error message appearing in the log):
Added a call to response.flushBuffer() after the call to outputStream.close(), on the theory that this might serve to notify downstream servlets that the request has already been committed and no further attempts to modify and/or commit the request should be made.
Removed the calls to outputStream.flush() and outputStream.close(), on the theory that some downstream servlet pipeline member (TailPipelineServlet?) might be responsible for closing out the outputStream, and trying to do that prematurely was responsible for the error.
I also so far haven't found anything relevant in the ATG/Oracle documentation that might provide a clue as to what's going on here, or what the general best practice is regarding having a custom servlet in the ATG pipeline that outputs to the response's outputStream.
Any advice regarding the root cause of this error and/or what should be done to fix it would be most welcome!
Thanks,
-JonHere's the full stack trace from the log (which includes the PdfExportServlet):
<[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1386007041311> <WL-101020> <[ServletContext@1369332778[app:storeFront module:shop path:/shop spec-version:2.5]] Servlet failed with Exception
java.lang.IllegalStateException: Response already committed
at weblogic.servlet.internal.ServletResponseImpl.objectIfCommitted(ServletResponseImpl.java:1631)
at weblogic.servlet.internal.ServletResponseImpl.sendError(ServletResponseImpl.java:637)
at weblogic.servlet.internal.ServletResponseImpl.sendError(ServletResponseImpl.java:602)
at weblogic.servlet.FileServlet.findSource(FileServlet.java:269)
at weblogic.servlet.FileServlet.doGetHeadPost(FileServlet.java:191)
at weblogic.servlet.FileServlet.service(FileServlet.java:173)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
at atg.servlet.GenericFilterService.doFilterChain(GenericFilterService.java:621)
at atg.servlet.GenericFilterService.handleDoFilter(GenericFilterService.java:484)
at atg.servlet.GenericFilterService.doFilter(GenericFilterService.java:431)
at atg.filter.ConditionalDelegatingFilter.doFilter(ConditionalDelegatingFilter.java:113)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
at atg.service.configuration.ResponseWrappingConfiguration.invokeFilterChainWithPossibleWrapping(ResponseWrappingConfiguration.java:457)
at atg.servlet.pipeline.TailPipelineServlet.service(TailPipelineServlet.java:174)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
at com.mycompany.purchase.PdfExportServlet.service(PdfExportServlet.java:73)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
at atg.servlet.pipeline.DispatcherPipelineServletImpl.service(DispatcherPipelineServletImpl.java:275)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
at atg.endeca.assembler.AssemblerPipelineServlet.service(AssemblerPipelineServlet.java:442)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
at atg.servlet.http.CookieBufferServlet.service(CookieBufferServlet.java:119)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
at atg.userprofiling.ExpiredPasswordServlet.service(ExpiredPasswordServlet.java:378)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
at atg.servlet.pipeline.MimeTyperPipelineServlet.service(MimeTyperPipelineServlet.java:228)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
at atg.droplet.DropletEventServlet.service(DropletEventServlet.java:657)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
at atg.commerce.order.CommerceCommandServlet.service(CommerceCommandServlet.java:150)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
at atg.commerce.promotion.PromotionServlet.service(PromotionServlet.java:213)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
at atg.servlet.pipeline.PipelineableServletImpl.service(PipelineableServletImpl.java:320)
at com.mycompany.browse.EndecaSessionStateTrackerServlet.service(EndecaSessionStateTrackerServlet.java:97)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
at atg.userprofiling.AccessControlServlet.service(AccessControlServlet.java:696)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
at atg.servlet.sessionsaver.SessionSaverServlet.service(SessionSaverServlet.java:2447)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
at atg.userprofiling.PageEventTriggerPipelineServlet.service(PageEventTriggerPipelineServlet.java:191)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
at atg.multisite.SiteSessionEventTriggerPipelineServlet.service(SiteSessionEventTriggerPipelineServlet.java:161)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
at atg.userprofiling.SessionEventTrigger.service(SessionEventTrigger.java:512)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
at atg.userprofiling.ProfilePropertyServlet.service(ProfilePropertyServlet.java:230)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
at com.mycompany.servlet.pipeline.ThreadNameServlet.service(ThreadNameServlet.java:89)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
at atg.userprofiling.ProfileRequestServlet.service(ProfileRequestServlet.java:460)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
at atg.servlet.pipeline.DynamoPipelineServlet.service(DynamoPipelineServlet.java:491)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
at atg.servlet.pipeline.URLArgumentPipelineServlet.service(URLArgumentPipelineServlet.java:302)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
at atg.servlet.pipeline.PathAuthenticationPipelineServlet.service(PathAuthenticationPipelineServlet.java:392)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
at atg.servlet.security.ThreadUserBinderServlet.service(ThreadUserBinderServlet.java:113)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
at atg.dtm.TransactionPipelineServlet.service(TransactionPipelineServlet.java:234)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
at atg.servlet.pipeline.SecurityServlet.service(SecurityServlet.java:195)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
at atg.multisite.SiteContextPipelineServlet.service(SiteContextPipelineServlet.java:448)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
at atg.servlet.pipeline.HeadPipelineServlet.passRequest(HeadPipelineServlet.java:1271)
at atg.servlet.pipeline.HeadPipelineServlet.service(HeadPipelineServlet.java:952)
at atg.servlet.pipeline.PipelineableServletImpl.service(PipelineableServletImpl.java:272)
at atg.filter.dspjsp.PageFilter.innerDoFilter(PageFilter.java:349)
at atg.filter.dspjsp.PageFilter.doFilter(PageFilter.java:208)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3739)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3705)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2282)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2181)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1491)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221) -
Class Cast Exception in Pricing Engine with ATG 9.1
Hi All,
I'm getting the below exception when trying to deploy projects through BCC.
Basically this is getting called from some Out of the box scheduler service when project is deployed.
Any pointers on how to prevent this will be immensely helpful..
Thanks in advance.
[12/5/11 2:43:48:158 CST] 0000003f SystemOut O /atg/commerce/pricing/ShippingPricingEngine --- CONTAINER:atg.repository.RepositoryException: Attempt to execute or build a query with a Query or QueryExpression object that is null or was not created by this repository.; SOURCE:java.lang.ClassCastException: atg.repository.query.AndQuery incompatible with atg.adapter.gsa.query.Clause
at atg.adapter.gsa.GSAItemDescriptor.executeQuery(GSAItemDescriptor.java:7275)
at atg.adapter.gsa.GSAView.executeUncachedQuery(GSAView.java:357)
at atg.repository.query.QueryCache.executeUncachedQuery(QueryCache.java:693)
at atg.repository.query.QueryCache.populateEntry(QueryCache.java:905)
at atg.repository.query.QueryCache.executeCachedQuery(QueryCache.java:433)
at atg.repository.RepositoryViewImpl.executeQuery(RepositoryViewImpl.java:344)
at atg.adapter.gsa.GSAView.executeQuery(GSAView.java:306)
at atg.repository.rql.RqlStatement.executeQuery(RqlStatement.java:211)
at atg.commerce.pricing.PricingEngineService.findGlobalPromotions(PricingEngineService.java:488)
at atg.commerce.pricing.PricingEngineService.loadGlobalPromotions(PricingEngineService.java:531)
at atg.commerce.pricing.PricingEngineService.performScheduledTask(PricingEngineService.java:635)
at atg.service.scheduler.ScheduledJob.runJobs(ScheduledJob.java:441)
at atg.service.scheduler.Scheduler$2handler.run(Scheduler.java:760)
Caused by :java.lang.ClassCastException: atg.repository.query.AndQuery incompatible with atg.adapter.gsa.query.Clause
at atg.adapter.gsa.GSAItemDescriptor.executeQuery(GSAItemDescriptor.java:7271)
at atg.adapter.gsa.GSAView.executeUncachedQuery(GSAView.java:357)
at atg.repository.query.QueryCache.executeUncachedQuery(QueryCache.java:693)
at atg.repository.query.QueryCache.populateEntry(QueryCache.java:905)
at atg.repository.query.QueryCache.executeCachedQuery(QueryCache.java:433)
at atg.repository.RepositoryViewImpl.executeQuery(RepositoryViewImpl.java:344)
at atg.adapter.gsa.GSAView.executeQuery(GSAView.java:306)
at atg.repository.rql.RqlStatement.executeQuery(RqlStatement.java:211)
at atg.commerce.pricing.PricingEngineService.findGlobalPromotions(PricingEngineService.java:488)
at atg.commerce.pricing.PricingEngineService.loadGlobalPromotions(PricingEngineService.java:531)
at atg.commerce.pricing.PricingEngineService.performScheduledTask(PricingEngineService.java:635)
at atg.service.scheduler.ScheduledJob.runJobs(ScheduledJob.java:441)
at atg.service.scheduler.Scheduler$2handler.run(Scheduler.java:760)
[12/5/11 2:43:48:159 CST] 0000003f SystemOut O
[12/5/11 2:43:49:181 CST] 00000040 SystemOut O /atg/commerce/pricing/OrderPricingEngine --- CONTAINER:atg.repository.RepositoryException: Attempt to execute or build a query with a Query or QueryExpression object that is null or was not created by this repository.; SOURCE:java.lang.ClassCastException: atg.repository.query.AndQuery incompatible with atg.adapter.gsa.query.Clause
at atg.adapter.gsa.GSAItemDescriptor.executeQuery(GSAItemDescriptor.java:7275)
at atg.adapter.gsa.GSAView.executeUncachedQuery(GSAView.java:357)
at atg.repository.query.QueryCache.executeUncachedQuery(QueryCache.java:693)
at atg.repository.query.QueryCache.populateEntry(QueryCache.java:905)
at atg.repository.query.QueryCache.executeCachedQuery(QueryCache.java:433)
at atg.repository.RepositoryViewImpl.executeQuery(RepositoryViewImpl.java:344)
at atg.adapter.gsa.GSAView.executeQuery(GSAView.java:306)
at atg.repository.rql.RqlStatement.executeQuery(RqlStatement.java:211)
at atg.commerce.pricing.PricingEngineService.findGlobalPromotions(PricingEngineService.java:488)
at atg.commerce.pricing.PricingEngineService.loadGlobalPromotions(PricingEngineService.java:531)
at atg.commerce.pricing.PricingEngineService.performScheduledTask(PricingEngineService.java:635)
at atg.service.scheduler.ScheduledJob.runJobs(ScheduledJob.java:441)
at atg.service.scheduler.Scheduler$2handler.run(Scheduler.java:760)
Caused by :java.lang.ClassCastException: atg.repository.query.AndQuery incompatible with atg.adapter.gsa.query.Clause
at atg.adapter.gsa.GSAItemDescriptor.executeQuery(GSAItemDescriptor.java:7271)
at atg.adapter.gsa.GSAView.executeUncachedQuery(GSAView.java:357)
at atg.repository.query.QueryCache.executeUncachedQuery(QueryCache.java:693)
at atg.repository.query.QueryCache.populateEntry(QueryCache.java:905)
at atg.repository.query.QueryCache.executeCachedQuery(QueryCache.java:433)
at atg.repository.RepositoryViewImpl.executeQuery(RepositoryViewImpl.java:344)
at atg.adapter.gsa.GSAView.executeQuery(GSAView.java:306)
at atg.repository.rql.RqlStatement.executeQuery(RqlStatement.java:211)
at atg.commerce.pricing.PricingEngineService.findGlobalPromotions(PricingEngineService.java:488)
at atg.commerce.pricing.PricingEngineService.loadGlobalPromotions(PricingEngineService.java:531)
at atg.commerce.pricing.PricingEngineService.performScheduledTask(PricingEngineService.java:635)
at atg.service.scheduler.ScheduledJob.runJobs(ScheduledJob.java:441)
at atg.service.scheduler.Scheduler$2handler.run(Scheduler.java:760)
[12/5/11 2:43:49:181 CST] 00000040 SystemOut O
[12/5/11 2:45:17:941 CST] 00000042 SystemOut O /atg/commerce/pricing/ItemPricingEngine --- CONTAINER:atg.repository.RepositoryException: Attempt to execute or build a query with a Query or QueryExpression object that is null or was not created by this repository.; SOURCE:java.lang.ClassCastException: atg.repository.query.AndQuery incompatible with atg.adapter.gsa.query.Clause
at atg.adapter.gsa.GSAItemDescriptor.executeQuery(GSAItemDescriptor.java:7275)
at atg.adapter.gsa.GSAView.executeUncachedQuery(GSAView.java:357)
at atg.repository.query.QueryCache.executeUncachedQuery(QueryCache.java:693)
at atg.repository.query.QueryCache.populateEntry(QueryCache.java:905)
at atg.repository.query.QueryCache.executeCachedQuery(QueryCache.java:433)
at atg.repository.RepositoryViewImpl.executeQuery(RepositoryViewImpl.java:344)
at atg.adapter.gsa.GSAView.executeQuery(GSAView.java:306)
at atg.repository.rql.RqlStatement.executeQuery(RqlStatement.java:211)
at atg.commerce.pricing.PricingEngineService.findGlobalPromotions(PricingEngineService.java:488)
at atg.commerce.pricing.PricingEngineService.loadGlobalPromotions(PricingEngineService.java:531)
at atg.commerce.pricing.PricingEngineService.performScheduledTask(PricingEngineService.java:635)
at atg.service.scheduler.ScheduledJob.runJobs(ScheduledJob.java:441)
at atg.service.scheduler.Scheduler$2handler.run(Scheduler.java:760)
Caused by :java.lang.ClassCastException: atg.repository.query.AndQuery incompatible with atg.adapter.gsa.query.Clause
at atg.adapter.gsa.GSAItemDescriptor.executeQuery(GSAItemDescriptor.java:7271)
at atg.adapter.gsa.GSAView.executeUncachedQuery(GSAView.java:357)
at atg.repository.query.QueryCache.executeUncachedQuery(QueryCache.java:693)
at atg.repository.query.QueryCache.populateEntry(QueryCache.java:905)
at atg.repository.query.QueryCache.executeCachedQuery(QueryCache.java:433)
at atg.repository.RepositoryViewImpl.executeQuery(RepositoryViewImpl.java:344)
at atg.adapter.gsa.GSAView.executeQuery(GSAView.java:306)
at atg.repository.rql.RqlStatement.executeQuery(RqlStatement.java:211)
at atg.commerce.pricing.PricingEngineService.findGlobalPromotions(PricingEngineService.java:488)
at atg.commerce.pricing.PricingEngineService.loadGlobalPromotions(PricingEngineService.java:531)
at atg.commerce.pricing.PricingEngineService.performScheduledTask(PricingEngineService.java:635)
at atg.service.scheduler.ScheduledJob.runJobs(ScheduledJob.java:441)
at atg.service.scheduler.Scheduler$2handler.run(Scheduler.java:760)
[12/5/11 2:45:17:942 CST] 00000042 SystemOut OHi,
This error is happening due to these scheduled tasks running on a versioned (BCC) instance. They are not needed on the BCC and not designed to work in this situation.
You should just set the schedules on these 3 components to:
updateSchedule^=/Constants.null
in a .properties file.
Thanks.
Nick Glover
Oracle Support for ATG Products -
How to split presentation level and business level using two ATG instances
Hello All!
We are investigating possibility of splitting ATG presentation (web store with jsp pages and other presentation components) and business (ATG components such as Pricing, Catalog, etc.) levels. The first idea that we have is simply start two instances of ATG. One instance will serve client requests (presentation level) and communicates with another ATG instance (business level) where all ATG components are situated.
The main problem is a Nucleus container which is used for accessing all ATG components. And we don't know right solution how to point to a Nucleus container that is situated on a remote ATG instance. Right now we have two ideas how to establish communication between two ATG instances:
- try to replace local Nucleus container by remote one using RMI;
- do not replace Nucleus container by implementing some custom filter that can redirect all servlet requests to another ATG instance. In that case we will have two Nucleus containers.
What do you think about all this? Do you have any other solutions how to solve the task? Maybe we lost something? Can we deploy a cluster of ATG instances that will communicate between each other?
Thanks in advance.
Andrey.
Edited by: 945758 on Jul 11, 2012 7:00 AMYes ATG system can have multiple nodes grouped in one or more clusters managed by load balencer
If the services you are talking about are inherently ATG services like login, add to cart, checkout then its better to implement it with ATG.
ATG provides and support both REST and SOAP based Webservice and allows you to expose any ATG component as service thus making it available outside ATG space.
To be able to manage load better you can split your servers to page serving servers and services oriented servers and place them into multiple clusters.
Though I haven't seen anyone using this kind of topology so not sure whether it's there is any challenge in setting up this topology.
Maybe you are looking for
-
My computer does not have any viruses, I have already tried to uninstall and reinstall firefox, but I still get the same problem. After inquiring with an administrator on Yuku, they said the only reason would be a virus that may come through the adds
-
How do i open browser in java application
hi.... please help me!!!!!!!!!!!!!!!!!!!!!!!!!! how do i open browser in java application ? ( for show javascript in java application) thank you.......
-
Create G/L Account to Projetc Stock
Hi all, I need to create a G/L account to Project Stock, but I don't know how to do this. I have some doubts: - This G/L account should be Balance Sheet Account? - This account is reconciliation account? If so, is Assets, Customer, Vendor, or contrac
-
If record become larger after stored in disk file?
for example, a 50 bytes record(including key and data), after it is stored in disk file, how does it organized in the disk file? if BDB add some medata information to make the record occupy the larger disk space? best regards.
-
It's The Return (for those who didn't know)
If you grew up learning how to solder on Heathkits (like I did), They are coming back! Watch the Heathkit web page for information. Also - if you click on the FAQ link, you can find a link to their survey so you can tell them what kits you would like