Tuesday Oct 19, 2010

JAXB Compile Failure

When compile my code that uses JAXB with JDK1.5, I got an error "cannot access javax.xml.stream.XMLEventReader". There is no such error if I compile it with JDK1.6. The way to fix it is to include jsr173_api.jar in the classpath along with jaxb-api.jar, jaxb-impl.jar and jaxb1-impl.jar. This class javax.xml.stream.XMLEventReader is part of JDk1.6, that is why the compiling issue only happens to JDK1.5.

Tuesday Sep 28, 2010

Install JDeveloper on Mac

There is a very important trick to play before installing Oracle JDeveloper on a Mac. Basically you need to fool the JDEV installer to believe the java on your Mac is like those on Unix/Linux box.

cd /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/
sudo mkdir -p jre/lib
cd jre/lib
sudo ln -s ../../../Classes/classes.jar rt.jar

This step was actually on Installation Guide for Oracle JDeveloper

Thursday Jun 10, 2010

Snow Leopard

Days ago, I ownloaded an app. The installation failed because it is for Snow Leopard. I then realized that Mac OS X 10.6 had been released for a while, actually a year ago. I thought I should upgrade my macbook. It worked great, but should I give Snow Leopard a try?

[Read More]

Monday May 10, 2010


Yesterday I finished my first 20K trail run at Oakland Redwood Regional Park. I was surprised, I was totally impressed by myself. I am so proud of my time, less than 1:50 http://ultrasignup.com/results_event.aspx?did=8951. My best estimation before the race was within 2:30, as I neither run a long distance like this nor run a trail. Actually I hoped I could finish it by 3 hours.

Let me tell you how difficult it was. The elevation gain is 1,720 feet. Especially it started raining heavily for 20-30 minutes right before the race beginning. The trail was slippery and mud sticked to my shoes, made them not just wet but also much heavier. And it was cold. I should have worn a pair of gloves. But it was fun, a serous fun in Mother's day. Happy Mother's Day!

Saturday Feb 06, 2010

Notifications to OpenSSO Client

Someone found that distauth of Opensso cannot recieve session notifications from opensso server. My investigation showed that a new property "com.sun.identity.client.notification.url" was not set in AMConfig.properties of the distauth. This property is new to Opensso, somehow it was not there by default. If you want your opensso client to receive notifications from the session service, policy service and UM on the server, you need to add it.

See more details on DocTeger's blog.

Friday Feb 05, 2010

CVS Branch Move, Delete and Rename

Today I have to move a cvs branch on a file. The cvs branch was created yesterday, but there was a new checkin needs to go into the branch. Instead of checking into the new branch, one can move the branch tag on that specific file. For example, to tag on revision 1.6 of a file

cvs tag -r 1.6 -F branch_tag file_name

[Read More]

Wednesday Dec 02, 2009

Debug xmlsec

OpenSSO uses xmlsec API to verify digital signature. In case the API returns a false, but you have no idea about the cause when just looking at the XML doc, you may want see debug messages printed out from the xmlsec APIs.

[Read More]

Friday Nov 20, 2009

Non-active Facebook Account Will Be Deleted

(no subject)

Facebook is recently becoming very overpopulated,there have been many members complaining that Facebook is becoming very slow. Records show that the reason is that there are too many non-active Facebook members and, on the other side, too many new Facebook members.

We will be sending this message around to see if members are active or not. If you are active please send to at least 15 other users using Copy+ Paste to show that you are still active. \*Those who do not send this message within 2 weeks will be deleted without hesitation to create more space.\*

Send this message to all your friends and to show me that your still active and you will not be deleted.

Founder of Facebook,
Mark Zuckerberg

Do you receive a mail like this one? Don't know who made this up originally. But it is not a phishing mail for sure. Wondering what the purpose is this. Here is the response from Facebook Pass It On

Tuesday Nov 10, 2009


Received GC approval notice today. I didn't expected it that soon. Today is just 10th of November. I thought I would get it within this year. Waited 9 years. What a long time!

Thursday Nov 05, 2009

MySQL Error 1064

Seeing following error when adding new records to mysql DB:

ERROR 1064 (42000) at line 3: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'read, ......

[Read More]

How to Prevent H1N1 - Best Advice So Far

Someone forward this one to me. Don't know where it originated. But it makes sense in my opinion.

How to Prevent H1N1 - Best Advice So Far(如何预防H1N1 - 来自医生的忠告)
N95口罩是用来阻隔95% 的0.3μ微粒,,而H1N1病毒的大小是0.1μ左右。所以,靠N95口罩防H1N1就像用蚊帐来挡雨。

[Read More]

Saturday Oct 31, 2009

US Daylight Saving Time Ends Today

Daylight Saving Time (DST) at US ends today. When checking when the DST ends this year, I read the history of Daylight Time in the US at here. It changed so many times. It is unexpectedly complicated.

[Read More]

Thursday Oct 29, 2009

CHP With Multiple Agents Instances

Recently a bug was identified in OpenSSO8.0 code related to Cookie Hijack Prevention (CHP). There are multiple policy agent instances with a Load Balancer (LB) in front. In this case, agent profiles must have LB URL added in the agent root URL list (CDSSO + CHP). However, a strange behavior could be observed. Only one agent works, you could see your browser spinning when accessing other agents. This is OpenSSO issue 5707.

Friday Oct 09, 2009

Lotus Touts

My kid sent me this circulating email talking about some Lotus Touts. I don't like email chain letters, but the Lotus Touts in this one is nice. I would like to follow this guidance if it is not too late.

ONE. Give people more than they expect and do it cheerfully.

TWO. Marry a man/woman you love to talk to. As you get older, t heir conversational skills will be as important as any other.

THREE. Don't believe all you hear, spend all you have or sleep all you want.

FOUR. When you say, 'I love you,' mean it.

FIVE. When you say, 'I'm sorry,' look the person in the eye..

SIX. Be engaged at least six months before you get married.

SEVEN. Believe in love at first sight.

EIGHT. Never laugh at anyone's dreams. People who don't have dreams don't have much.

NINE. Love deeply and passionately. You might get hurt but it's the only way to live life completely..

TEN. In disagreements, fight fairly.. No name calling.

ELEVEN. Don't judge people by their relatives.

TWELVE. Talk slowly but think quickly.

THIRTEEN. When someone asks you a question you don't want to answer, smile and ask, 'Why do you want to know?'

FOURTEEN.. Remember that great love and great achievements involve great risk.

FIFTEEN. Say 'bless you' when you hear someone sneeze.

SIXTEEN. When you lose, don't lose the lesson.

SEVENTEEN. Remember the three R's: Respect for self; Respect for others; and Responsibility for all your actions.

EIGHTEEN. Don't let a little dispute injure a great friendship.

NINETEEN. When you realize you've made a mistake, take immediate steps to correct it.

TWENTY. Smile when picking up the phone. The caller will hear it in your voice.

TWENTY- ONE. Spend some time alone.

Monday Oct 05, 2009

Reset Amadmin Password (2)

In my previous post (09/11) on this topic, I asked to have jss4.jar in the classpath and have corresponding library files in the environment. Actually it is not required. Otherwise, one will have a hard time to find and install them on a windows box. All you need to do is to set the value of property com.iplanet.security.encryptor to be "com.iplanet.services.util.JCEEncryption". The default is "com.iplanet.services.util.JSSEncryption" if you don't specify, which requires JSS.

So the command to generate new password could be looked like
/usr/bin/java -Dcom.iplanet.security.encryptor=com.iplanet.services.util.JCEEncryption -Dam.encryption.pwd=sZ6rTm4Dp1xp6MuXpwyQ3h0RsdcMK5eQ -cp .:/opt/sun/identity/lib/am_sdk.jar:/opt/sun/identity/lib/am_services.jar PasswordHashEncryption password




« July 2016