CriticalIOException when trying to call web service - http

I'm having a little trouble trying to make an HTTP connection on my Blackberry Torch 9800. Here is the line where the problem occurs:
HttpConnection connection = (HttpConnection)Connector.open(URL);
My phone has no data plan and I was trying to do this through wifi. I've been doing it fine this way for a few months now. But suddenly it's giving me a CriticalIOException.
Here is my connection string:
http://mysite.mycompany.com/mws/MyWebService/MyWebService.asmx;interface=wifi
I don't know why this is happening and I don't know what to do about it. Any help would be greatly appreciated.
Thanks!

Please, please don't keep using that legacy Connector.open() approach. This was the way connections were opened in JavaME, and since RIM built its libraries on top of them, they came up with a suffix-based hack to select the transport type. this caused dirty code prone to break, and caused so much pain to new developers (and also senior ones).
RIM introduced ConnectionFactory in OS 5.0 specifically to solve this kind of problems. This was back in 2008, guys we're in 2012!
Have a look at it.

Typically when using the wifi appender, the deviceside appender is used as well. I'm not sure if this is related to your problem, though.
;deviceside=true;interface=wifi

Related

Android client for SignalR

I need support in SignalR for Android client. I am using following client SignalR/Java-Client but unable to know where to start :) We are completed .net self host & working fine. But only problem with Android & iPhone. Can any one please guide me how to start the next steps for Android & iPhone.
You don't give a lot of details, so it's hard to give a concrete answer, especially since your question is very broad to begin with. Nonetheless, you should have a look at the official samples for the Java client, to get you started. If you have implemented the server side yourselves, and know your Java, it should be pretty easy to figure out from the code provided in these samples. The Java client is, in my experience, very easy to use.
As for an iOS client, a Google search came up with this library. I have never used it, and it looks like it's not getting a whole lot of support, but you could always give it a shot.

Regarding XenAPI Memory Issue

I am developing a small client application for monitoring XenServer using XenAPI provided by citrix. I am able to get all the values(cpu,n/w read,n/w write, diskread,diskwrite...) but facing the below issue.
Can anybody please help me out in getting the memory (total,free,used) usage for the VM's present in the Xenserver using XenAPI. I tried the above by using VM_guest_metrics api call of VM, but its giving me the empty results. Please help me in this regard.
I have taken SDK(XenAPI) from the below link
http://community.citrix.com/display/xs/Download+SDKs
Thanks in Advance for your help.
The recommended way to get the data is to use the XAPI Round Robin Database (RRD) that comes with XAPI.
http://wiki.xen.org/wiki/XAPI_RRDs
See also the tutorials from Xen Day:
http://wiki.xen.org/wiki/Creating_a_LVM_backed_XFS_SR
In particular, the "Nuts and Bolts" session by Steven Maresca.
See also the code in OpenXenManager:
http://sourceforge.net/projects/openxenmanager/ as it is an open source clone of Citrix XenCenter and has performance graphs using XAPI.

How can I get Cimplicity Plant Edition to start up a project faster?

Using Cimplicity Plant Edition we noticed that some projects seem to take an eternity loading. In particular the process seems to hang during the "ROUTING" phase.
Finally found a setting that really helped speed this up. If you have multiple network interfaces, it appears that Cimplicity takes longer to get through the ROUTING phase. To help it favor the network interface to your devices, go into the Advanced TCP/IP settings for each one and change the "Interface metric" numbers.
This link describes what the Interface Metric settings are for: http://www.windowsreference.com/windows-2000/change-the-interface-metric-on-a-network-adapter/
but simply setting these differently on each interface sped things up a lot for us. Hope that helps anyone else out there who is frustrated.

WebSockets: Any working C# examples?

I'm using Chrome 5.0.375.86. Can anyone point me to a working example of an HTML page communicating (or at least establishing a handshake) in Chrome with a C# (faux) web server?
The current version of WebSockets in hixons-76 (or whatever) and not -75. What does production Chrome currently support? I think it's -75. Do I need the nightly build for -76?
This is also a nice example (The author says it should work with -76)
http://nugget.codeplex.com/
Heres a Related Question on SO, Should help you to get started
Maybe you will find useful my demo http://programistka.com/en/websockets-c/ which uses two open source libraries - one for server and one for client. In my opinion it is really worth to check them.

Hardware/Software inventory open source projects

I would like to develop a Network Inventory application that works on any operating system.
Reports on every possible resource attacehd to a network.
Reports all pertinent details of hardware and software.
Thats (and i hate to use the phrase) my "End Game".
However I am running before i can crawl here.
I have no experience of this type of development, e.g. discovering a computers hardware and software settings.
I've spent almost two weeks googling and come up short! :-(.
So I am turning to you to ask these questions:-
My first step is to find an existing open source project i can incorporate into my own code that extracts the fine grained details i am after, e.g. EVERYTHING there is to know about the hardaware and software on a single machine.
Does this project exist? or do i have to develop that first?
Have i got to write all this in C?
I am guessing getting this information about a computer is going to be easier than for printers, scanners, routers etc... e.g. everything else you would find attached to a network.
Once i have access to a single computers details i then need to investigate how i can traverse an entire newtork of printers, scanners, routers, load balancers, switches, firewalls, workstations, servers, storeage devices, laptops, monitors, the list goes on and on
One problem i have is i dont have a 1000 machine newtork to play on!
Is there any such resource available on theinternet? (is that a silly question?)
Anywho, if you dont ask you wont find out!
One aspect iam really looking forward to finding out how to travers the entire network,
should i be using TCP/IP for this?
Whats a good site, blog, usergorup, book for TCP/IP development?
How do i go about getting through firewalls?
How many questions can i ask in one go? :-)
My previous question on this topic ended up with PYTHON being championed as the language/script to go with to develop this application in.
Having looked at a few PYTHON examples they all seemed to be related to WINDOWS networks
and interrogating Windows Management Instrumentation (WMI). I had the feeling you cant rely on whats in WMI, and even if you can that s no good for UNIX netwrks.
Surely there exist common code for extracting hardware and software details from a computer? Why cant i find it on the internet?
Pease help?
Theres no prizes though :-(
Thanks in advance
I would like to appologise if i have broken forum rules or not tried hard enough on my own before asking for assistance.
I just would like to start moving forward with this as its one of the best projects i have been involved with.
I am inspired by the many differnt number of challenges involved and that if i manage to produce a useful application at the end of it it would hopefully be extremely helpful to many people.
That sit
Thanks in advance
DD
as a software vendor of a discovery solution, I can just say: Respect, that you want to start a new one :-). Just in case you are interested in what it could look like: http://www.jdisc.com
Now to some of our experience:
Programming Language:
I wouldn't write it in C. Use Java or .NET. Those languages have great advantages when it comes to tracking down errors or problems. For instance, in Java (and I guess also in .NET), you can see the stack trace when something is failing. For some pieces of code (e.g. WMI access), you might need to use C++ or C (e.g. access to native APIs from Microsoft). Use a native interface or a COM bridge from Java. In .NET, it should even be easier to access the Windows APIs).
Devices:
well, network printers, router, and switches are actually easier to discover. They usually expose their information via SNMP. SNMP is pretty easy to use and pretty robust. Getting information from Windows (or even Unix) systems is a bit trickier. Protocols can be blocked, misconfigured, messed up... We had cases, where WMI was simply hanging when requesting data from a remote device.
Test Devices:
Since we are also a smaller company, we also do not have 1000 different devices to test with. But, there are some things that might help:
a) For SNMP devices use a SNMP simulator. We use MIMIC 9.0 from Gambit Solutions and we are pretty happy with it. You can import SNMP walks from network devices and simulate the device as if it would be in your network.
b) Secondly, use virtualization whenever possible. With VMware, you can install Windows, Linux, or even Solaris. We also use a project called GNS3 to emulate Cisco Routers, Firewalls or Juniper routers.
c)You can test the rest of the devices only, if you have a customer that helps you with testing and implementing new devices.
This are just some ideas to start with. But I have to tell you, that it is not trivial and it takes a lot of time....
Hope that you got some ideas to start with...
I don't know that it's open source, but we use Spiceworks (http://www.spiceworks.com) here as an IT management platform. You may get some use out of exploring that.

Resources