GWT – No source code is available for type com.google.web.bindery.event.shared.EventBus
mayo 25, 2011
I’m using GWT and SmartGWT in multiple projects. Since I had to reinstall Eclipse and all its plugins, Google Plugin for Eclipse included, I got an upgraded GWT SDK.
Many projects I have were failing to run with the following exception:
No source code is available for type com.google.web.bindery.event.shared.EventBus
I found the solution here.
You can’t use GWT 2.3 yet.
ant4eclipse – Linked Resource does not exist!
mayo 11, 2011
I had to change from Ubuntu to openSUSE, at first everything seems to work smooth until I found this little glitches. I’ve tried just to copy my Eclipse installation from the backup to my brand new OS but it didn’t work so I had to install it again (uncompress it).
One of my worst headaches is solving project dependency but fortunately I found a way to ease this process.
With the migration I moved my files from /home/vladimir to /home/cirovladimir, my eclipse workspace included. This led me to an error when I was trying to run the ant file I use to solve dependencies. The error description wasn’t very helpful, it just said “Linked Resource does not exist!”. I found this post which proposed to use the development version of ant4eclipse instead of the stable release, so I did it. I tried again and this time the error was more clear “The linked resource ‘/home/vladimir/Projects/Eclipse/tsj.estadisticas.model/src/tsj’ in project ‘tsj.estadisticas.web’ does not exist.”. This allowed me to spot the problem and change the path in the hidden file “.project” -which contained the references- accordingly.
Eclipse – BIRT parameter dialog error
mayo 5, 2011
I’ve just changed from Ubuntu to openSUSE (because Unity sucks) so I had to reinstall eclipse and its plugins, BIRT included. This caused an error whenever I tried to preview a report with parameters:
Can’t load library: /tmp/swtlib-32/libswt-mozilla-gtk.so
It seems that the only thing I nedeed to do was to add the xulrunner package through YaST and it worked. I found the solution here.
Eclipse – BIRT JDBC Oracle Driver
mayo 5, 2011
I had a report which connects to an Oracle Database through JDBC to get data. Since I reinstalled eclipse and BIRT, my JDBC configuration was lost. Therefore when I tried to preview my report the following error was thrown:
Table TBL_EXPEDIENTES_ASIGNADOS:
An exception occurred during processing. Please see the following message for details:
Cannot open the connection for the driver: org.eclipse.birt.report.data.oda.jdbc.
org.eclipse.birt.report.data.oda.jdbc.JDBCException: Cannot load JDBC Driver class: oracle.jdbc.OracleDriver
The only way I’ve found to manage your JDBC drivers is to open the new datasource dialog and select “JDBC Datasource”, put whatever name you like and press next. You should see a button with the label “Manage Drivers…”. Then you could add the ojdbc6.jar or whatever JDBC driver you need.
OpenSUSE 11.4 – Run gedit as administrator
mayo 4, 2011
Today I wanted to create a desktop entry (shortcut) for my Eclipse installation. I had to create the file “/usr/share/applications/eclipse.desktop” which is located in a system directory, so I needed privileges to create such file. Since I came from Ubuntu the first thing I tried was to run the command “sudo gedit” which throwed me the error:
(gedit:9901): Gtk-WARNING **: cannot open display:
I assumed it was due to the fact that another user (root) can not access my display, so I’ve tried the command “gksudo gedit” which, to my surprise, doesn’t exist on OpenSUSE. The last thing I tried before heading to the internet was changing to root with the command “su” and then running gedit which, again throwed an error:
GLib-GIO:ERROR:gdbusconnection.c:2279:initable_init: assertion failed: (connection->initialization_error == NULL)
I was almost giving me up until I found this thread. In openSUSE you should use xdg-su instead of gksudo.
So, finally the command I ran was
xdg-su -c gedit
this worked for me!
Note: I discovered recently that you could run “gnomesu gedit” which, I think, is more easy to remember
OpenSUSE 11.4 – Instalar VirtualBox de Oracle
mayo 3, 2011
Para instalar VirtualBox, lo primero que tenemos que hacer es descargarlo de aqui.Tambien descarga el “Extension Pack” para tener los controladores de USB 2.0
Una vez que se haya descargado hay que ejecutarlo, ya sea que le des doble clic o hayas seleccionado abrir el archivo al descargarlo. Despues de instalarlo, agrega el “Extension Pack” llendo a File->Preferences->Extensions
Si agregas una nueva máquina y te marca un error diciendote que debes ejecutar el comando: /etc/init.d/vboxdrv setup
Y además, después de ejecutarlo te marca algún error, tienes que instalar los paquetes: kernel-source, kernel-devel, kernel-desktop-devel, kernel-default-devel
Yo tuve que reiniciar mi pc para que funcionará el comando.
Al reiniciar mi máquina también me pasó que ya no abría el VirtualBox, el problema es que mi usuario no había sido agregado al grupo “vboxusers”, puedes verificar esto con el comando “groups” en una terminal.
Me agregué mediante YaST->User and Group Management, seleccioné mi usuario y le di clic en Edit->Details, luego active la casilla del grupo “vboxusers” en la casilla de Additional Groups, finalmente reinicie mi sesión y listo, ya pude abrir el VirtualBox y utilizar mi máquina virtual!
Suerte!

