I was looking online on google for java sftp and did not come across a free library. Edtftp was used in the code before but you have to pay for the pro version that includes sftp. I found jsch and will try it today. Hopefully I will post again today with some sample code on how I used it.
Google App Engine
Jasperreports oracle driver classnotfound exception
To fix the following exception:
Exception
Message:
java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
Level:
SEVERE
Stack Trace:
oracle.jdbc.driver.OracleDriver
com.jaspersoft.ireport.designer.connection.JDBCConnection.loadDriver(JDBCConnection.java:63)
com.jaspersoft.ireport.designer.connection.JDBCConnection.getConnection(JDBCConnection.java:126)
com.jaspersoft.ireport.designer.connection.JDBCConnection.test(JDBCConnection.java:447)
Acces Denied in Drupal with no Login Block
When trying to log into drupal I was getting an access denied error and there was no login block for me to login. I tried tampering with the database and the settings.php file. The solution to this is just to visit your websites' url and adding ?q=user for example http://www.cancunmods.com/principal/?q=user literally use user. Some other posts suggest to use your username but it is wrong use the word user.
Testing the sitemap
I enabled a XML Sitemap module in my drupal installation in hopes of getting more traffic to the site. The sitemap is supposed to be generated when content changes so I hope this post will get it generated. For people looking to increase traffic to their drupal website I strongly recommend the SEO Checklist Module available at the drupal website .
Mollom as a way to stop spam on your website
Mollom is an excellent way to stop spam in your website. I am using mollom on this website and I have saved myself a lot of administrative time by having spam blocked by it. It is super easy to setup you just need to open an account with mollom and setup it up (drupal module for me). If mollom is unsure a comment is spam it presents a captcha, and there you go, no spam and no necessary inconvenience to every legit user.
Configuring Log4j with WebLogic for a Web Project
Log4J did not want to load the properties file using a PropertyConfigurator call and kept giving this exception although the properties file was in the classpath in the right location:
java.io.FileNotFoundException: log4j.properties (El sistema no puede hallar el archivo especificado)
the way to get around it is using
PropertyConfigurator.configure(Thread.currentThread().getContextClassLoader().getResource("log4j.properties"));
Regards.
The primary key for is an unencoded string but the key of the corresponding entity in the datastore does not have a name.
The following exception is most likely caused by not having the @Persistent annotation along with the @PrimaryKey annotation. Just a heads up.
The primary key for is an unencoded string but the key of the corresponding entity in the datastore does not have a name. You may want to either change the primary key to be an encoded string (add the "gae.encoded-pk" extension), change the primary key to be of type com.google.appengine.api.datastore.Key, or, if you're certain that this class will never have a parent, change the primary key to be of type Long.
Exception Failed to start reference finalizer thread. Reference cleanup will only occur when new references are created.
I was getting the following exception in google app engine. After you get it I strongly suggest looking into a file in your project local_db.bin beyond all the garbage you most probably will be able to see what you have tried to save and if you are not able to see it when querying it is a problem with the way you are trying to query your object because the exception does not affect makingpersistent. After the exception I have posted a class of my own as an example:
INFO: Failed to start reference finalizer thread. Reference cleanup will only occur when new references are created.
Spring Singleton
It is important to note that if you use singleton="false" in spring you will get an exception, for example:
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 33 in XML document from ServletContext resource [/WEB-INF/subasta-servlet.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute 'singleton' is not allowed to appear in element 'bean'.
Logging in Google App Engine
By default GAE comes with a file named logging.properties in the WEB-INF folder. To be able to record a message to the log you have to use the method Logger.warning() or change the logging level in the loggin.properties file from
.level = warning to .level = info
Regards.