problem about cq5-Collection of common programming errors


  • Greg Whitaker
    maven-2 pom.xml slf4j cq5
    I am new to slf4j and have a few questions. Where do log files go when using the slf4j.Logger in cq5I am currently using eclipse to build the jar files.Can anyone please tell where can I see log file.I could not see that log information in crx-quickstart/log path.Do I need to configure anything in pom.xml to specify log file location?

  • zaxeer
    java cq5 sling
    I have seen in adobe API documentation QueryBuilder Service which can be called by URLs for many query options, this returns JSON based responses. Very well. I wan to use this in java API. I have found some examples and tried in eclipse but some thing i dont know that how to get the Service “sling” as in given code below: OR in other words how to make a QueryBuilder Java object.Any specific JAR i needed or i need to install Apache SLING on my PC i am not sure any one who can share this will be h

  • Viren Pushpanayagam
    cq5 aem
    How do I programmatically (in a JSP) set as ‘selected’ an item in a dropdown? Following is my code. <cq:include path=”./country” resourceType=”foundation/components/form/dropdown” />I have a list of countries in the dropdown and want a country to be selected based on a value passed to the JSP.

  • beautifulday
    cq5
    I’m trying to start by double clicking on cq-quickstart-5.4.0.jar. I’ve changed the name to cq-author-4502.jar. But after starting it, I’m getting below error in server.log – I’m running on Windows 7 and java version is 1.6.0_1506.08.2013 00:22:15 *MARK * server: Server start06.08.2013 00:22:15 *MARK * servletengine: Servlet engine start 06.08.2013 00:22:15 *MARK * servletengine: Servlet container start 06.08.2013 00:22:15 *WARN * servletengine: Unable to determine hostname of 192.168.1.102. 06

  • Björn Pollex
    java adobe osgi jmx cq5
    I’m trying to get the HeapMemoryUsage of the publish server from the author instance. I attached the code of the servlet which gets called below.In the exception you can see that we get a NullPointerException at Line 88 which is JMXConnectorFactory.connect(serviceUrl).From Jconsole or by running it from a test class (local with main method) it functions without any problems.The Exception:29.11.2012 15:01:17.407 *ERROR* [127.0.0.1 [1354197677403] GET /bin/cqdashboard HTTP/1.1] org.apache.sli

  • Delmon Young
    jquery cq5
    I’m pretty new to adobe cq5 and I’m using clientlibs to load in my jquery. The problem is whenever I load in my jQuery I get an anonymous function error specifically this:Uncaught TypeError: Property ‘$’ of object [object Object] is not a function clientlibs.js:7 (anonymous function)My jQuery is pretty straightforward:$(function() {//do some stuff });Any idea why I’m getting this error it has to be something simple I’m missing. Thanks!

  • Angry Spartan
    javascript cq5
    I have no idea how this happened, but clicking Edit in design mode for par (text component) generates a script error in widget.js. All other components work fine in when you click to edit them.Here are console dumps of the errors:Firefox: Error: TypeError: this.items.items[(i + 1)] is undefined Source File: http://localhost:4502/libs/cq/ui/widgets.js Line: 147092The full block of code in question:if (title != this.items.items[i + 1].title) {// next title is different >> breakbreak; }Chrom

  • Lee Abraham
    javascript cq5
    I’m trying to develop a custom xtype that extends the tags xtype defined in /libs/cq/tagging/widgets/source/widgets/TagInputField.jsI have the function defined in another fileCQ.tagging.customTagInputField = CQ.Ext.extend(CQ.TagInputField, { /*A whole bunch of code here */ });CQ.Ext.reg(“customtags”, CQ.tagging.customTagInputField);Yet every time I try to boot up a page containing my custom widget I get an error in my console sayingTypeError: sp is undefinedspp = sp.prototype;According to the al

  • user2379691
    cq5
    We are trying to upgrade from CQ 5.4 to 5.6 and while working with sprinkles.. I’m getteting JS error as undefined for CQ.themes.Dialog.SPRINKLESAny suggestions around would be appreciated…

  • diffa
    deployment maven-3 cq5 aem
    I am trying to deploy AEM with maven, so I follow this tutorial. When I run the command mvn clear package, I get the following error:C:\workspace\myproject\app>mvn clean package [INFO] Scanning for projects… [WARNING] The POM for com.day.jcr.vault:maven-vault-plugin:jar:0.0.10 is missing , no dependency information available [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project com.uum:app:1-SNAPSHOT (C:\workspace\myproject\app\pom.xml ) has 3 errors [ERROR

Web site is in building