Archive for September, 2006

Weblogic 8.1 + Struts + Exploded WAR = ClassCastException

Read more in the BEA Forums. It’s an open bug - CR 189815.

If you modify a struts-related class (Action, FormBean, etc) Weblogic
loads it with another classloader. Unfortunately, the RequestProcessor
that is stored in the ServletContext was loaded by the previous
classloader.

The end result is of course, a ClassCastException since ServletContext is loaded by a different class loader. Totally uncool, especially when a deadline’s looming. If you’re advanterous, feel free to patch ActionServlet by adding the following code snippet:

private RequestProcessor getProcessorForModule(ModuleConfig config) {

String key = Globals.REQUEST_PROCESSOR_KEY
+ config.getPrefix();
// TODO: modified to fix weblogic classpath issue
Object proc = getServletContext().getAttribute(key);
return (proc instanceof RequestProcessor) ? (RequestProcessor) proc : null;
}

I chose a faster way - just deploy the project in a packaged archived (WAR or EAR).

Update: Here’s another wild thought - use Tomcat. Stub whatever that needs Weblogic.

More E61 shortcuts

Techmundo has a comprehensive list. One wonders why Nokia keeps these shortcut keys a secret ;)

XPlore M70 announced

Wow, looks like GSL Xplore, a company that produces mobile phones using Palm OS is still churning out new models. Nothing much interesting in terms of connectivity, no WiFi, EDGE or 3G, yet the phone sports push-email. I guess GPRS will have to do, not that I see anything wrong with using GPRS for push-email, I’ve done that before, it’s not as slow as everyone thinks.

Hardware aside, the thing runs Palm OS 5.4, which guarantees flexibility in terms of software unmatched by other smartphone OS.

Thanks to PalmAddicts for the news.

Gaming on mobile devices

2 posts today on how to get some cheap gaming onto the Symbian and Palm devices. Not every can shell out US 20 for games that’ll probably only hold interest for a week. Sure, there’s the occasional gem that’s worthy of buying, but most of the games out there are not. No, I’m not suggesting you pirate them, where the fun in that? Instead, we turn to emulators! With a proper emulator, a couple of ROMs, and plenty of RAM, you’ll be gaming for hours (where’s the charger?!).

All About Symbian has a review of ScummVM, an emulator for Scumm - a game engine. ScummVM’s website even has a couple of free games to boot! In the Palm OS world, TamsPalm-the Palm OS Blog has a write up on how to get Gameboy games running on a Treo 600.

I should also note that ScummVM has an older version for the Palm OS platform. And while Palm OS has the software, certain models lack the RAM or rather, heap memory, to run emulators. If you run into this, take a look at UDMH that tricks the OS to use non-heap memory as well. As with all memory manipulation software, YMMV. For instance, I had never been able to get LJP nor ScummVM to run on my Tungsten T5.

The Nokia E61 is not a smartphone

Why stick with it then? For one thing, I already bought it and it wasn’t cheap. Maybe after a couple of years, when I’ve decided my ROI has been realized, I’ll grab another Palm or WMx smartphone. The other thing is, nothing close comes to the E61 in terms of value. New Treos are more expensive and unavailable in GSM. The older models just don’t cut it for me. WMx devices costs as much as cheap laptops, so those are off my list as well. The E61 offers much value in its WiFi, 3G, EDGE connections, beautiful screen, stable OS, great form factor and even attempts to be a smartphone.

Before any of you fanboys start flaming me, remember - I own one as well. It’s a great phone, with features that will make any other feature phone wet its pants, but it’s short of being called a smartphone and I’m not the only one that thinks so too. Don’t believe me, drop by my place and I’ll demo to you what a Treo can do and we’ll just compare if the E61 can do 1/2 as much.

I’m still keeping my fingers crossed though, 3rd party software can make the E61 into a different machine. But the feedback from developers I’ve come across in forums is not encouraging, the S60 3rd Edition is very much locked down. Not only are system APIs not exposed, but they are locked away. Any need to access these APIs will need application signing (read: paying Nokia). It’s not that I don’t understand the need for signing - it guarantees platform stability - but this is not exactly the way to encourage developers to create nifty tools and system hacks.

What do you think?

Fix slow SMS in your Nokia E61

Looks like this week’s been good for E61 owners. Right on the heels of the firmware update, another fix has just surfaced for the Nokia E61. There have been reports of SMS sending being slow (slow being a relative term since it’s less than a 10 seconds wait). Personally I’ve not had any problems with sending SMS but Nokia is recommending all users install the patch anyway.

13-Sept-2006 | 2.90 KB | English
This application accelerates the sending of SMS messaging. It is recommended to download this file, even if you have not experienced any problem with SMS sending.