My Writings. My Thoughts.
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘processEngine’: FactoryBean threw exception on object creation; nested exception is java.lang.InternalError: Can’t connect to window server – not enough permissions.
Caused by: java.lang.InternalError: Can’t connect to window server – not enough permissions.
And seems there’s an activiti plugin that use the AWT component.
To fix this issue, we need to turn on the headless option
go to your $GRAILS_HOME/bin/startGrails
Find GRAILS_OPTS change to this config
GRAILS_OPTS = -server -Xms1024m -Xmx1024M -XX:PermSize=128m -XX:MaxPermSize=128m -XX:UseGCOverheadLimit -Djava.awt.headless=true -Dfile.encoding=UTF-8
If you encounter PermGen issue related with your grails application, try above configuration too
Today we had a problem with the tortoiseGit and GitHub..
As we knew, tortoise family, is one of the best SCM tools for windows, but today, I really headache because of the ssh keystore won’t work with the TortoiseGit and GitHub
But finally we can use the tortoise git.
After try to configure our own git server, and several problem with our VPN cause by our ISP… I decide to move our git repository to github.com. All my team really happy with the github feature. GitHub provide what a developer team really need to do collaboration for development process. We hope after this, we can focus just on the development instead the tools that we need to use for support our development process.
I just need 10 minutes to configure the repository on github and migrate all current development repository to github. And the best thing that we never lose track of all our development tracking although we move to new repository. That’s the power of Git distribution versioning system.
And I want to spend sometime later to explore more about forking in git. When I read a bit, it’s really interesting to help us maintain the current version while there’s some critical changes need to be implement.
Finally we can publish completely the website of Global Assistance and Healthcare, after a long long discussion. I love the color especially the right bar. Red, green, orange, and gray.
Global Assistance and Healthcare focus on 24 hour medical evacuation and medical clinic. During the development, few times I went to their office, I really love their first aid bags. I never see the first aid bag with damn good design.
just go to the website and get some information about them.
After few months waiting, finally Feedly release their iPad version. It’s not like a famous Flipboard but one of things that I like from feedly that I can use same source and categories of news feed for my safari or firefox on mac, iPad and iPhone. And today they also release the new Android version.
Another feature that I like, I can create temporary bookmark with “saved for later” and it also sync between devices.
This past few weeks, I tried to configure Git on Snow Leopard Server with help from several other blogs. Most of the blog that I search from google has same method and trick, but at the end I stuck on file permission issue when I configure git using ssh protocol with multi user.
For our based configuration, we separate git repository by project, therefore I will assign each user by group to help us maintain the file permission. Actually what we need if our git repository user is git, then for the group, we can create the group name by project name. But the problem is when new object/file created, the file permission always as 755.
After few weeks manually chmod each objects, then I tried to configure on /etc/bashrc with additional configuration umask 0117 which similar all new file or folder will be grant as 660 as what we need for the git.
If there any better solution specially for security reason, please share to me.
This last two days, I trying to solve one of issue that cause pain in our grails based applications. The compile time became very slow, and I realize some of the file that required by the grails plugins always been download from http://svn.codehaus.org. In my current location, we don’t have a luxury for a high speed internet connection, but grails is really consume a lot of bandwidth for the dependency checking and downloading new plugins from repository.
And finally I try to fix this issue, and I found out there’s not a lot of article that could help how to fix it. And finally I got this link from google “Managing Plugins with Grails“. I will use Artifactory as our maven local repository
I follow the instruction from the link above.
1. Download Artifactory 2.3.2 from here.
2. Install Artifactory. Follow the instruction from “One minute Artifactory” screencast.
3. Go to $HOME_USER/.ivy/cache/org.grails.plugins/. Here you can find your previous installed plugins in your project.
4. Upload all zip file under org.grails.plugins.
After click upload, insert “org.grails.plugins” as your ArtifactId. If you failed in configure this, your grails will lookup the plugins to http://svn.codehaus.org
And your maven proxy had successfully configure. If you had new plugins component or version, don’t forget to submit it to your Artifactory repo.
5. After finish configure your maven proxy repository. Now you need to configure your BuildConfig.groovy in your grails project. Add this line for your maven repository
grailsPlugins() grailsHome() mavenRepo "http://localhost:8081/artifactory/remote-repos" mavenRepo "http://localhost:8081/artifactory/libs-release" mavenRepo "http://localhost:8081/artifactory/libs-snapshot" mavenRepo "http://localhost:8081/artifactory/plugins-release" mavenRepo "http://localhost:8081/artifactory/plugins-snapshot" grailsCentral()
Finally we had accomplished half part of our first project using Grails. When first time I use grails, the most interesting part was when I try the ability for restful and JSON automatically rendering.
- grails.mime.file.extensions = true
- grails.mime.use.accept.header = true
Few years ago I start using blackberry, that time blackberry still an expensive gadget in Indonesia, and difficult to find the device, beside the service price is expensive too. But after 4 years blackberry became major smartphone in Indonesia big cities, and had be a common for people to share their pin compare to phone no.
Two days ago, I upgrade my iPod Touch 2nd generation to iOS4, the latest iPod Touch OS. During upgrade process, its really bad, start from a long time backup almost 2 hours and after the upgrade process, the backup images can’t be restore, its corrupted.