William Van Woensel

Greenhorn
+ Follow
since Jul 23, 2008
Merit badge: grant badges
For More
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
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by William Van Woensel

Hello,

Sorry for the late reply (holidays..). We've tried generating the client code with an ANT build file, but no effect (still same error; no method parameters are received at the service side). As mentioned before, we eventually tried a very simple service + client, you can find the code below (automatically generated via NetBeans, starting from the Java source code):


Regards,

William
13 years ago
Hello all,

We are currently developing a Web service that receives (string) data and subsequently stores it using Hibernate. When we run this Web service directly in Eclipse (using the axis2 plugin), everything works perfectly.

However, when we try deploying it as an .aar archive (using Netbean's deploy feature, via their axis2 plugin) and running it in Apache Tomcat, we initially kept getting the error "ids for this class must be manually assigned before calling save()". Eventually, I found out that this is caused by the fact that we were assigning null ids to the objects, which in itself was caused by the fact that the argument the method receives is null. When I check the client however, the correct data *is* being sent.

Subsequently, I tried making a very simple Web service and client, where the Web service has one method that receives a string and simply prints it to stdout.. but this Web service does not work either (likewise, null is received as an argument). As mentioned before, I used Netbeans to automatically generate the .aar archive (however, we also tried making that archive using maven and even doing it manually), and tried generating the client from both Eclipse and Netbeans (choosing different databindings, different endpoints, ..), but no effect. Finally, I tried an earlier axis2 version (1.0, as it is the only version before 1.5.0 that is still available online, and 1.1 gives errors). The generated Netbeans client works more or less for this axis2 version (i.e., the Web service actually receives sent method arguments), but 1) no return values are received by the client and 2) it gives an error when attempting to return a complex data type (e.g., a String[]). The generated Eclipse client spews out errors and doesn’t work at all.

I found very little about this issue online – the only thing I found was related to the services.xml file that could be malformed, but that isn't the case here.

Any ideas? I feel kinda stupid, as axis2 is around for a long time and a lot of people must be using it..

My setup:

Apache Tomcat 5.5

- Apache Axis2 1.5.3, 1.5.0, 1.1, 1.0 (tried all of them)
- Java SDK 1.6.0
- Eclipse IDE Helios (Build id: 20100617-1415)
- Netbeans IDE 6.8


Thanks in advance!

William
13 years ago
Hi everyone,

When I try to establish a TCP connection (using localhost as IP) as a client, I get the following exception:

java.microedition.io.ConnectionNotFoundException
(exception message: null)

The code that establishes the connection (and responsible for throwing the exception):



I am sure that my device supports SocketConnection (I've gotten it to work on an IP address in the local network), so the problem must be that I use localhost? I've tried substituting it for 127.0.0.1, omitting the arguments, changing the port (I've tried 13, 14, 9002, ..), but to no avail.

Any ideas?

William
15 years ago
Hi all,

My problem: I have a program written in J2ME that requires data from a Bluetooth device (an RFID reader); however, the driver for the reader is only available as a .NET library in CSharp. Is there some way I can communicate between a J2Me application and the .NET application (e.g. using virtual serial ports)?


Kind regards,

William
15 years ago
Hello everyone,

I'm using Java2ME (MIDP2.0) to establish server connections on my device. However, I'm having trouble using the Connector.open method to construct a ServerSocketConnection instance. I use the following code:

ServerSocketConnection serv = (ServerSocketConnection) Connector.open("socket://:80");

I get the following ConnectionNotFoundException: "Cannot create socket, //:80". I do not think this is a security issue: for one, because I don't get a SecurityException, and secondly because I explicitly ask for permission to use ..Connector.socket, ..Connector.http, and ..Connector.serversocket in the JAD file. I haven't tried signing the midlet suite yet, as this would take quite some time and I'm actually just testing some code. I've also tried using another port (and using "serversocket://:80" instead of "socket://:80", more out of desperation); also, I have tried entering "localhost" and "127.0.0.1" in front of the port number, but all to no avail. I have been able to successfully use this method to construct SocketConnection instances, however. Can this be because my particular device (HTC Touch Cruise, JBED build 20080428.2.1) simply does not support server socket connections?


Thanks in advance,

William
15 years ago