Page 1 of 2

WebServices BadTypes Exception

Posted: Mon Mar 31, 2008 5:14 pm
by asai
Ok,

I may be doing something wrong here, but I believe that I was able to make this work on the 5.3.2 version of the webservices.

When I use the following PHP code:

Code: Select all

print_r($result = $client->addSubscriber('guestuser','guestpass',true, 'email',true,'email','test@testinguser.com'));
I get the following exception:

Code: Select all

  [message] => org.xml.sax.SAXException: Bad types (class java.lang.String -> class org.agnitas.webservice.StringArrayType)
When I tried entering in the StringTypeArray arguments as a PHP array, it threw the same error. When I tried entering them in as 'email;firstname', 'test@testinguser.com; tester' I get the same error...

any ideas?

Posted: Tue Apr 01, 2008 8:54 am
by maschoff
Do other webservice methods work in your configuration or do you have a general problem with the webservices?

Posted: Wed Apr 02, 2008 4:09 pm
by asai
I was successfully able to execute getSubscriber, and getSubscriberBinding, and findSubscriber. I did not test any others.

Posted: Wed Apr 02, 2008 7:30 pm
by maschoff
OK, we will look into it next week.

Posted: Wed Apr 02, 2008 7:33 pm
by asai
Viel'n dank

Posted: Wed Apr 02, 2008 7:35 pm
by maschoff
My pleasure. :-)

Posted: Thu Apr 03, 2008 7:11 am
by Nse
Hi,

I tested this method and it works.

Could you try to send more values in StringArrayType? Try like this:
print_r($result = $client->addSubscriber('guestuser','guestpass',true, 'email',true,'email;firstname','test@testinguser.com;test'));

Greetings
Nse

Posted: Thu Apr 03, 2008 4:43 pm
by asai
Same error. But thanks. Perhaps something got corrupted? I will download the source and replace StringArrayType.class and see if anything changes.

Posted: Thu Apr 03, 2008 5:05 pm
by asai
I replaced StringArrayType.class, but it didn't help. I'm attempting to recompile from source, but I doubt if I will be successful because I'm not a Java dev and know next to nothing about it.

..UPDATE... nope, I can't do this right now...

I'm using JRE 1.5...could this be a problem?

java version "1.5.0_14"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_14-b03)
Java HotSpot(TM) Client VM (build 1.5.0_14-b03, mixed mode, sharing)

I just tested this in Flex (actionscript) as well. While I don't get the Bad types exception, it returns 0 for addSubscriberReturn.

Posted: Fri Apr 11, 2008 2:32 pm
by asai
Hi Guys,

Have you had any time to look at this problem? Is there any way in which I can help out here?

Thanks.

asai

Posted: Mon Apr 21, 2008 4:50 am
by asai
Just a buzz. Any progress on this? Eagerly awaiting being able to integrate OpenEMM with my existing websites.

Bug fix

Posted: Sat May 03, 2008 9:41 pm
by maschoff
We provided a bug fix for webservice addSubscriber. See here:

http://sourceforge.net/tracker/index.ph ... tid=848488

Does this help?

Posted: Sun May 04, 2008 1:00 am
by asai
Thanks Martin,

I will test this as soon as I get back to my office later this week.

Cheers!

Posted: Thu May 08, 2008 12:51 am
by asai
No, unfortunately. I get another error.

Cause: javax.servlet.ServletException: java.lang.NoClassDefFoundError

I can't seem to upload an error file...

Error Still Occurring

Posted: Tue Jul 29, 2008 12:30 am
by asai
Hi Guys,

I hate to bring this up, but when I try to run my webservice in the new OpenEMM 5.5, I still get this error:

Code: Select all

org.xml.sax.SAXException: Bad types (class java.lang.String -> class org.agnitas.webservice.StringArrayType)
Any ideas? This is using PHP / SOAP and also in Flex 3 I get a return value of 0.