Eric Koni

Greenhorn
+ Follow
since Oct 09, 2009
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
(keep public parts private until JForum day)
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt
Moderation Tools

Recent posts by Eric Koni

Hi Girish,

I fixed it. I had to remove the “VERSION” property from two of my HBM files and their associated POJO’s; now all is well

Thank you very much for replying to my post, I really appreciated it.

JavaRanch Rocks!

Bests,
Eric
Hello,

When I was testing my database connection (Oracle Database 10g (10.2.0.4)) I received the following error:

From Models

java.lang.ClassCastException: org.hibernate.type.BigDecimalType

I have the correct driver. The table has an ID column and its type is “NUMERIC” which maps to a big_decimal (hbm.xml) then to the POJO (java.math.BigDecimal). Everything looks fine. I even tried changing the column type to “LONG” and I still receive the ‘noted above’ error message.

Additionally, I’m able to successfully query other tables that do not contain a column type of “NUMERIC”.

I’m really stumped; any insight you can provide would be greatly appreciated.
javascript:emoticon('');

Thanks,
Eric
I'm trying to consume exchange web services with java using glassfish. The client is written using Netbeans 6.7.1 and I’m receiving the following error:

JAX-WS RI 2.1.3.1-hudson-749-SNAPSHOT: Stub for https://scooby-doo.org/EWS/Exchange.asmx
Exception in thread "main" com.sun.xml.ws.client.ClientTransportException: request requires HTTP authentication: Unauthorized

I tried putting the username and password in the SOAP message using:

String uid = domain + "\\" + username;

ExchangeServicePortType port = exchangeWebService.getExchangeWebPort();

((BindingProvider)port).getRequestContext().put(BindingProvider.USERNAME_PROPERTY, uid);
((BindingProvider)port).getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, password);

But it still fails with the ‘noted above’ error message.

Then I tried using an “Authenticator”. From understanding I do not have to associate it with web service, since the same object is used for the whole JVM, correct?

MyAuthenticator auth = new MyAuthenticator(username, uid);
Authenticator.setDefault(auth);

But again, it still fails with the same ‘noted above’ message.

Additionally, I’m able to access the web service via the browser i.e.,

https://scooby-doo.org/EWS/Exchange.asmx

So I know my credentials are good. I’m really stumped javascript:emoticon(''); any “HELP” would be greatly appreciated.

Thanks,
8 years ago