Wednesday, September 1, 2010

java.util.MissingResourceException

This represents about 3 days of my life I'm never getting back.

So I use RAD 7.5 for my java development. I write code for web-based internal applications. The general rule is big on business logic and big on the ugly. User interface isn't a priority as the users have a very specific idea of what they want. Sometimes we steer them in the right direction, sometimes they win and other times they were right all along.

That's all well and good.

I was setting up my RAD to have 3 environments, matching the 3 we had on servers. DEV, QA, Production. Simple stuff. I used to think you created a new server per set of environment variables. But, I eventually realized that, at least in the sole websphere development configuration, you have to create a profile for each set of distinct environment variables.

We load some properties via resource bundle. I change this folder depending on the environment. This is working in two of my environments, but attempts to create and run the third fail. I keep getting MissingResourceException on the bundle - for about 3 days.

Eventually, I figured out how to make it work (but not how to solve the root problem). Server was trying to read "E:" drive. That’s fine, 2 other profiles were doing it for other servers within RAD workspaces. I moved the bundles to the C: drive and viola! success. For some inexplicable reason, WAS was unable to see "E:" for one profile only. Even when the last profile didn't work, starting up a server pointed at another profile happily found and loaded bundles on E.

Thoughts/"ideas":
  1. E:\ was created from subst command. Subst e: c:\resource\props or some such. Point of that was to keep websphere variables consistent between local dev and actual deployed server paths.

  2. I think at some point during this process I got previously revoked admin rights reinstated for use with another product.

  3. Old profiles were created probably without admin rights.

  4. They also introduced a continuous encryption process. And, I later found out I had 2 different encryption certs. Some of my files were encrypted with cert A and some with cert B.

After I solved this problem, I was all gung-ho to post about it because it took so long to remedy it. But now I realize it was probably only specific to my set of unique and unusual circumstances. If not, I hope I've led you down the right path.

Tuesday, June 8, 2010

how did you spend your 6 months of reflection?

Last post was in January. I was giving you plenty of time to think things over.

Yes, I have been negligent. I should post here more often as I'm continually finding things to write about, but then I think of something else to do.

Anyway, computer-wise, I've been thinking of some projects:

  • Storage box. A computer with only storage to use for all my machines.

  • Slackware? Gentoo? I love running Linux on my computers. And I would really like to get down-and-dirty with a bare-bones distribution and build a personalized OS . . . BUT do I really want to spend weeks getting my wireless to work? Not really. Say what you will about Ubuntu, but it detects all my hardware. I think this is one of those things that I'll continue to THINK is a good idea for a long time to come, but then never do it.

  • Learn Emacs? I'm not sure about this one. I am beginning to love (g)vim and I've put my time in-in regards to becoming proficient. But, emacs looms. Should I learn it? There are supporters on both sides and they are vocal and passionate. Maybe I need to learn both to know my true place.

  • Python. I got a book about Python/Qt development. I thought it would be a good excuse for learning Python. Maybe I'll make some widgets to ease my wife's computing experiences. We'll see.


Ok, time for bed and I promise to at least double my post output.

Monday, January 18, 2010

rsync: writefd_unbuffered failed to write 4 bytes

I love rsync. Rsync is the type of command that makes you heart a Unix/Linux-based system. It helps you back-up/sync files; it's easy to use; it's powerful, but not overbearing. It's like chess or caps: a minute to learn; a lifetime to master.

At any rate, I was getting the error in the title of the post. Turns out it wasn't rsync, but that I had filled up my partition - accidentally. Long story short, I created a folder intending to mount is as my external harddrive, but forgot to do the mounting. So, if you encounter this error, it might be because the device is full.