WebServices BadTypes Exception

Use this forum for questions regarding adoption and functionality of OpenEMM

Moderator: moderator

asai
Posts: 70
Joined: Fri May 25, 2007 5:48 pm

WebServices BadTypes Exception

Post 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?
maschoff
Site Admin
Posts: 2597
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Post by maschoff »

Do other webservice methods work in your configuration or do you have a general problem with the webservices?
OpenEMM Maintainer
asai
Posts: 70
Joined: Fri May 25, 2007 5:48 pm

Post by asai »

I was successfully able to execute getSubscriber, and getSubscriberBinding, and findSubscriber. I did not test any others.
maschoff
Site Admin
Posts: 2597
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Post by maschoff »

OK, we will look into it next week.
OpenEMM Maintainer
asai
Posts: 70
Joined: Fri May 25, 2007 5:48 pm

Post by asai »

Viel'n dank
maschoff
Site Admin
Posts: 2597
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Post by maschoff »

My pleasure. :-)
OpenEMM Maintainer
Nse
Posts: 5
Joined: Wed Aug 16, 2006 8:51 am
Location: Munich

Post 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
asai
Posts: 70
Joined: Fri May 25, 2007 5:48 pm

Post by asai »

Same error. But thanks. Perhaps something got corrupted? I will download the source and replace StringArrayType.class and see if anything changes.
asai
Posts: 70
Joined: Fri May 25, 2007 5:48 pm

Post 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.
asai
Posts: 70
Joined: Fri May 25, 2007 5:48 pm

Post 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
asai
Posts: 70
Joined: Fri May 25, 2007 5:48 pm

Post by asai »

Just a buzz. Any progress on this? Eagerly awaiting being able to integrate OpenEMM with my existing websites.
maschoff
Site Admin
Posts: 2597
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Bug fix

Post by maschoff »

We provided a bug fix for webservice addSubscriber. See here:

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

Does this help?
OpenEMM Maintainer
asai
Posts: 70
Joined: Fri May 25, 2007 5:48 pm

Post by asai »

Thanks Martin,

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

Cheers!
asai
Posts: 70
Joined: Fri May 25, 2007 5:48 pm

Post by asai »

No, unfortunately. I get another error.

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

I can't seem to upload an error file...
asai
Posts: 70
Joined: Fri May 25, 2007 5:48 pm

Error Still Occurring

Post 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.
Post Reply