Posts

Vista and the integrated unzip feature, tips wanted?

Image
If you have any tips to share, please drop me a comment here. It may help other as well... So far, the only result I got from Google are this "Worse Than Failure" entry with screen shoot similar to mine, and an entry from Microsoft's support that seams off topic... Here is how the process started. After I got started on search the net and into the mood that trigger this entry, it got even worth. A few years back, at JavaOne, there was a presentation were Oracle was demonstrating how JDeveloper intaller, or the lack of it, was easy to used, compared to the VisualStudio equivalent of the time. Could have this been done on purpose? Or is this just that I need to turn off the remaining security features that I have still not totaly disabled? By the time the unzip was done with the extra process, I had already configure IIS 7.0 on than same Vista Ultimate instance, thanks to this post . Just remember to enable the new default port on your local firewall. Some things are gett...

SOAPFaultException: IllegalArgumentException: Decoding tip

As part of my ongoing work on the SOA and SCA (Society of Confused Architects) bandwagon, I have a new not-so-easy error to explain and share with you. Here is how the error will reads from the client side, when using Oracle Web Services tech Stack on the 10gR3 releases: javax.xml.rpc.soap.SOAPFaultException: Caught exception while handling request: deserialization error: java.lang.IllegalArgumentException The SOAP response will look something like that: 1 <? xml version = '1.0' encoding = 'UTF-8' ?> 2 < env:Envelope xmlns:env = "http://schemas.xmlsoap.org/soap/envelope/" > 3 < env:Body > 4 < env:Fault > 5 < faultcode > env:Client </ faultcode > 6 < faultstring > Caught exception while handling request: deserialization 7 error: java.lang.IllegalArgumentException </ faultstring > 8 </ env:Fault > 9 </ env:Body > 10 <...

WS 10.1.3.1 faultcode of the day - env:Server UndeclaredThrowableException

Here is an error that I have seen a few time in the past days, for which I have not find an easy way around. Just a user error, hard to catch... < env:Body > < env:Fault > < faultcode > env:Server< /faultcode> < faultstring > Internal Server Error (Caught exception while handling request: java.lang.reflect.UndeclaredThrowableException)< /faultstring> < /env:Fault> < /env:Body> In playing with the 'mapheaderstoparameters' option for the topDownAssemble target, I forgot to change the method signature on the implementation class before to repackage my application. When the code generated at deployement time does not match with the code packaged in your application, this is the error you may get. Until we get smarter in the code generation and have dynamic services with pre-deployment check, the best remains to make a knot on your handkerchief.

Some random notes, in a developer's reading day.

Here are some random link to resources I found on the Web, that I have read over the weekend, and that I'll keep in my bookmarks for a while. As I am in transit between different computers, I figure out that my blog was not a bad place to keep them handy... A Cost Analysis of Windows Vista Content Protection Just one viewpoint on Vista's content protection system. As a side note, I have seen Vista Ultimate running on a brand new high-end system over the weekend, at a friend's home, with an XBox 360 and a huge TV screen. Very nice !!! I am jealous , I can't do the same with a 24 inch iMac using my Home Theater setup. Musings of a Windows Vista Technical Evangelist A nice blog with tones of tips on Windows Vista. The Top 12 Productivity Killers in Your Development Methodology I especially have this one reasoning in my mind: "Fact 12: Coding conventions are efficient; they must be imposed." I still have not been able to understand why this is not de - jure in...

Santa, or a serious ramen shop for serious ramen fans.

Image
Today was another farwell lunch; this time it's mine turn. The destination was Santa , a ramen place downtown San Mateo. The first time I eat there, about 5 years ago, was when I was interviewing for my current job position. Serge, Olivier, the only reel changes since that time are that the Japanese TV shows are no longer part of the 'atmosphere' and that you are both far away. Nilesh will be able to carry on the tradition. After all, there is such thing as a free lunch !!! For some, it was the price to pay to see me going away. So long everyone.

Access to SOAP Header from response payload

As I was trying to explain the difference between SOAPElement (a.k.a. XMLElement or Element in the java world) and Document, I got to realized that this know-how could be usefull when you need to access the content of the soap:header that is comming back from the service endpoint on the response. To illustrate this technique, I'll be using WS-Addessing and the .NET endpoint Microsoft exposes for testing purposes (http://131.107.72.15/WSAddressingCR_Service_WCF/WSAddressing10.svc). In my test scenario, the request looks like this <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <env:Header> <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://example.org/action/echoIn</wsa:Action> <wsa:ReplyTo xmlns:wsa="http://www.w3.org/2005/08/addressing"> <wsa:...

Did I hear Raw Food ?

Image
This was my lunch plate, from koma-sushi in Menlo Park. I'll to see with my coach if this is a good lunch, based on my current exercise level [0 step/day] and my beer drinking exercise from the past days... I guess I really need to get the iPhone to have better picture quality.

Upgrading to Vista today ...

I could not resist on this one... After seeing the PS3 vs WII ads on YouTube, I am getting used to the pattern. but the last " Get a Mac " clip on Surgery made my day. For me, the upgrade was not that painfull after all. just a few hours to scan and rescan the disk - I was using RC2, so it's one could expect as you move to the production release. Next week, I'll try to locate the anti-virus release of Symantec that's supported for Vista - it should be out by now. For me, the killer app on Vista remain the index on the outlook email that can be accessed from the start menu - Spotlight re-invented, just better. By the way, did you see the new iPhone, the phone re-invented, an ipod with a rotary wheel, like in the old days. When are we going to get iPod analog, for the vynil lovers?

Invalid WSDL - and the answer is ...

I forgot to provide the answer on last quizz about invalid WSDL, and XML tips. The WSDL in question: http://www.rajkovic.org/ws/wsdl/bads/annotatedBank2.wsdl The issue: by mistake, I did reuse the same prefix for two namespace. The tns prefix is associated with 'http://ws.rajkovic.org/demo/annotatedBank' at the global scope (wsdl:definitions) and reused with 'http://ws.rajkovic.org/demo/annotatedBank/types' at the schema scope (xsd:schema element). In the wsdl:part, element="tns:create-account" references an element named {http://ws.rajkovic.org/demo/annotatedBank}create-account, which is not found. Based on the schema's targetNamespace, the QName (qualified name) of the element is {http://ws.rajkovic.org/demo/annotatedBank/types}create-account. There are two ways to fix this error: Uses the same targetNamespace URI (and tns prefix) for both WSDL and Schema elements. Keep It Simple as much as possible. Introduce a new prefixe in your wsdl:definition ele...

Happy New Year

As we get into 2007, it's time to take new resolutions, and make some predictions. Resolution: to post on this blog once a week, about Web Services and other rant. Prediction: 2007 will be the year of WS-*, the JAX-WS APIs and Java 6.0. Happy 2007 !!!

model error: element "{http://...}foo" not found

As I got some reply off-line, on my previous post, it's time to gives the explanation for the first invalid WSDL. First, here is my ANT script (build.xml), that can be used to validate any WSDL in JDeveloper 10.1.3: <project name="blog-demo" default="all" basedir="." xmlns:o="antlib:oracle"> < property file="build.properties"/> < target name="analyze"> < o:analyze wsdl="http://www.rajkovic.org/ws/wsdl/bads/annotatedBank.wsdl"/> < /target> < /project> and the output analyze: model error: element "{http://ws.rajkovic.org/demo/annotatedBank}create-account" not found. In annotatedBank.wsdl , there is a missing element: < types> . The < schema> element cannot be a direct child of the < definitions> element. In my broken sample, the schema is invisible, and therefore the element 'create-account' cannot be found. Check the valid WSD...

java.net.ConnectException: Connection refused

Image
As I am still getting question related to this error, when using JDeveloper, I'll describe my troubleshooting tips here, so that it can be indexed by Google (and other search engines). If you can access the web resource from IE or Mozilla, but can't get the WSDL to work with JDeveloper, you are most likely facing a common issue. Your HTTP proxy setup may be incorrect. Here is the screenshoot of the configuration from JDeveloper 10.1.3.1. Last time I used JDeveloper, I was using the HTTP Analyzer feature and I forgot to turn it off before to exit the application. When I re-started JDeveloper the next day, the proxy was still setup for port 8099. Here is a sample of the output you may get when you face this configuration error: Buildfile: /Users/eric/devroot/build.xml analyze: Failed to read wsdl file at: "http://www.rajkovic.org/ws/wsdl/bads/annotatedBank.wsdl", caused by: java.net.ConnectException. : Connection refused Remember to stop HTTP Analyzer before to ex...

Broken WSDL, but why?

I have started to rely on the XML schema validation that is embedded in JDeveloper and forgot some of the basic check I was doing manually prior to that. To help improving on error reporting, so that we can make file easier for developers of Web Services, I'll try to compile a list of broken WSDLs, so that we can use them when looking for negative test scenario. Here is the first one: http://www.rajkovic.org/ws/wsdl/bads/annotatedBank.wsdl . You can try it, see what error you get and if it make any sense to you. Post a comment with the error you find in this WSDL :-) Have Fun !!!

Common JAXRPC error - unexpected element name

If you are using JAXRPC, there is an error message that may be hard to connect back to the root cause of the problem. The error message reads something like: unexpected element name: expected= FileMetadata , actual= {urn:FileUpload}FileMetadata . There may be multiple causes for this error message. The first you want to look at is the flavor of XML schema advertized in the WSDL. The default value for the elementFormDefault attribute is unqualified (see the w3c spec ), which is what the error message above is trying to convey. In the schema section of your WSDL, make sure you can find the declaration: elementFormDefault="qualified" Sometime, this get lost in the edits of the WSDL file, and many Web Services toolkits wont validate on the consumer side (Axis and .NET are among those). If you cannot alter the original WSDL, make a local copy that you can use to generate your artifacts, then contact the service provider so that they can make the change. The WS-I tools should be...

Who needs private coaching ?

Image
Having your own private coach did not seams like something anyone will ever be able to afford. With the rising new technologies behind web2.0, I may be proven wrong... I am still doing good with my programm to loose weight, as I have someone home that watch out for me (and my diet). If you are not as lucky as I am, maybe you should contact Coach Valerie !!!

Googling and more...

Here are some pieces of Web2.0 I haved enjoyed today. I figure out I should share them. How to Design a Good API & Why it Matters (1 hour worth listening too) The S stands for Simple I found this catching title funny: " Want to be cool? Learn REST. Want a career? Learn WS. " learned that " to Google " is now a verb that is on some dictionary - Thanks Antoine !!! found out why I have an iMac at home - Thanks Yobo !!! (you'll have one soon...) and finaly, tested UberIcon from Punk Software - Thanks Olivier !!!

dmg for JDev 10.1.3.1 on MAC is available from OTN

I have missed the annoucement, so I figure other may also be looking for it: Check the OTN download page for the latest download. Another usefull page to bookmark are the Main Documentation and J2EE & Web Services pages.

Changing the version of JDK used by JDeveloper

I have recently learned a quick and lazy way to change the version of the JDK used to run JDeveloper 10g R3. I am sure there is an option somewhere in the configuration screen to do the same, which I couldn't find... While JDeveloper is not running, locate the embedded JDK on disk and rename (or delete) that directory. For me, it was C:\opt\jdev\jdk. Once it's done, restart and you will by asked to locate the version of the JDK you want to use. It's another step to get going with JAVA on Vista. -ecco

Running Java on Vista RC2, some tips...

Image
As days go by, I am able to get more and more done on my desktop, but still to figure out how to get the productivity increase, as I was initially expecting from a modern OS. The last issues that I was facing was IPv6 vs. IPv4, and I have now been able to google the resource that explain it all: " The Cable Guy - October 2005 " on MSDN, especially the 'Disabling IPv6' section. Unless you disable IPv6 on all interfaces, you will have to change your way to start java process. Here is my new way to launch JUnit tests from ant:   <junit showoutput="true" fork="yes">     <jvmarg value="-Djava.net.preferIPv4Stack=true"> ... I had to use the same option when starting the server-side process for my J2EE container. As this is not exactly lightweight, I'll have to find a better way forward (most likely hack with the registry as advised by the Cable Guy ). For some reason, I was expecting to find such information from the new integ...

Vista RC2 - a better experience

Image
Earlier this week, I stop by Microsoft booth at Oracle Open World to check out Vista. Back home, I did burn the DVD of RC2 and try the system upgrade from RC1. It was just fine, and I am now back to normal network speed. If you think about giving Vista a trial, go directly to RC2 ;-)