Skip to main content

Posts

Showing posts with the label ATG

Import xml data into BCC with startSQLImport

Sometimes you need to ingest product catalog versioned data (or any other data) into BCC and be able to publish as a project, for that, startSQLImport has been added to ATG to ease your life, this post is based on a previous one about startSQLRepository approach , feel free to look for any additional questions you may have or in case you want to explore that option. Information for configuring it is out there on Oracle docs, however, there are some tricks you might be missing, I'm going to detail steps for getting it up. First of all, make sure you read through Oracle's documentation: https://docs.oracle.com/cd/F25148_01/Platform.11-3-2/ATGContentAdminProgGuide/html/s0513startsqlimport01.html Configure your datasources for database access In order to get started with the utility you need to configure the FakeXADataSource component to allow the utility to connect to your database, you can see documentation from Oracle in  here ....

Enable SSL for SMTPEmail component

If you need to enable SSL for your SMTP email server it's very easy to configure a couple of properties and let ATG handle the necessary configs and setup for the corresponding JavaMail All you need to do is set the following properties in  /atg/dynamo/service/SMTPEmail/ : emailHandlerPort=465 (the default SSL port for SMTP) protocolName=smtps And that's it, turn on the debug for SMTPEmail and you will see it is attempting an SSL connection: **** debug      Mon Aug 03 17:05:22 CDT 2020    1596492322205   /atg/userprofiling/email/TemplateEmailSender    doSendEmailMessage: numMessages = 2 DEBUG: setDebug: JavaMail version 1.5.6 DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Oracle] **** debug      Mon Aug 03 17:05:22 CDT 2020    1596492322215   /atg/dynamo/service/SMTPEmail   Attempting to open a connection... DEBUG SMTP: useEhlo true, useA...

ATG Fulfillment - Delay processing of queues during start up

You may have noticed that during a restart of your fulfillment instance all messages in your queue start to be processed even though the instance is not yet fully restarted, this can lead to errors like the following if your triggering a confirmation email for example: atg.userprofiling.email.TemplateEmailException: Request for URL http://localhost:7001/dyn/init-session?ignoreMetric=true did not return a valid session.  Please check your settings for siteHttpServerName, siteHttpServerPort, applicationPrefix and initSessionURL for component / In order to delay the processing of messages from fulfillers in /atg/dynamo/messaging/MessagingManager you need to update the schedule for your  /atg/dynamo/messaging/SqlJmsProvider.properties by updating the poll schedule to start a few minutes after Nucleus starts instantiating components: # Allow the server to finish starting up before polling the queue messagePollSchedule=every 20 seconds in 7 minutes without catch up ...

Using startSQLRepository from scratch

While you can very easily import/export data through /dyn/admin, if working on a production environment you will have to deal with very high amounts of data that your browser will just not withstand to display/ingest, in that case you can use startSQLRepository utility program from ATG installation. Information for configuring it is out there on Oracle docs, however, there are some tricks you might be missing, I'm going to detail steps for getting it up. First of all, make sure you read through Oracle's documentation: http://docs.oracle.com/cd/E52191_03/Platform.11-1/ATGRepositoryGuide/html/s1207startsqlrepository01.html Configure your datasources for database access In order to get started with the utility you need to configure the FakeXADataSource component in order to allow the utility to connect to your database, you can see documentation from Oracle in here . But let's get into detail: Create a new server on your ATG installation along with the necessary fol...

CSC Indexing - ORA-00001: unique constraint (CORE.SRCH_ORDER_TOKENS_P) violated

When you get that constraint violation error it means indexing jobs on CSC are stepping on each other or even themselves, if you happen to have a schedule without catch up and even running too often then you'll be seeing a lot errors lik this: ERROR [nucleusNamespace.atg.textsearch.indexing.job.IndexingJob] (pool-103-thread-1) ORA-00001: unique constraint (DRESS_CORE.SRCH_ORDER_TOKENS_P) violated And eventually you'll get an error like this: ERROR [nucleusNamespace.atg.dynamo.messaging.SqlJmsProvider] (ServerService Thread Pool -- 102) null: java.sql.SQLExc eption: javax.resource.ResourceException: IJ000451: The connection manager is shutdown: java:/ATGAgentDS So just update the schedule for the indexing components: /atg/commerce/textsearch/schedule/OrderIncrementalScheduleConfig schedule=calendar * * * * * 0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58 /atg/userprofiling/textsearch/schedule/ProfileIncrement...

ATG /dyn/admin - Getting unsupported class version when accessing /dyn/admin

If you're getting an error like this: java.lang.UnsupportedClassVersionError: _dasadmin_3__UTF_s8/_index : Unsupported major.minor version 51.0 ..... ..... [PageCompileServlet] Error compiling page: /index.jhtml : can't load class: _dasadmin_3__UTF_s8._index You need to change the javac from your machine, in order to match the java version used for building the code. For Ubuntu: 1. Open the terminal and run this: sudo update-alternatives --install /usr/bin/java java /opt/java/jdk1.6.0_25 1 2. It will install the jdk, now you need to select it from the alternatives sudo update-alternatives --config java 3. And select the one corresponding to the jdk you require 4. Then you must do the same for javac sudo update-alternatives --install /usr/bin/javac javac /opt/java/jdk1.6.0_25/bin/javac 1 5. And update the config within alternatives too: sudo update-alternatives --config javac 6. And select the one corresponding to the jdk you require 7. Remember to updat...