Error: You must pass an even sized array to the toMap method

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Error: You must pass an even sized array to the toMap method

CaseT
Hi,

Revision: 585993.
Thru Party Manager->Create,
I entered a name in each of the First Name and Last Name fields and clicked
"Save" and received the following error:

"Error calling event: org.ofbiz.webapp.event.EventHandlerException: Service
invocation error (You must pass an even sized array to the toMap method)"
The console log doesn't report much else. See print out below.
Anyone have any suggestions?
Thanks, Case

2007-10-26 10:51:49,093 (http-0.0.0.0-8443-Processor3) [
RequestHandler.java:314:ERROR] Request createPerson caused an error with the
following message: Error calling event:
org.ofbiz.webapp.event.EventHandlerException: Service invocation error (You
must pass an even sized array to the toMap method)
2007-10-26 10:51:49,093 (http-0.0.0.0-8443-Processor3) [
RequestHandler.java:433:INFO ] [RequestHandler.doRequest]: Response is a
view. sessionId=42C9A498425AE329B517905952D5C569.jvm1
2007-10-26 10:51:49,093 (http-0.0.0.0-8443-Processor3) [
RequestHandler.java:584:INFO ] servletName=control, view=EditPerson
sessionId=42C9A498425AE329B517905952D5C569.jvm1
2007-10-26 10:51:49,109 (http-0.0.0.0-8443-Processor3) [
ScreenFactory.java:118:INFO ] Got 26 screens in 0.016s from:
file:/C:/ofbiz/applications/party/widget/partymgr/PartyScreens.xml
2007-10-26 10:51:49,109 (http-0.0.0.0-8443-Processor3) [
PrimaryKeyFinder.java:122:INFO ] Returning null because found incomplete
primary key in find: [GenericEntity:PartyAndPerson][partyId,null()]
2007-10-26 10:51:49,109 (http-0.0.0.0-8443-Processor3) [
ScreenFactory.java:118:INFO ] Got 6 screens in 0.0s from:
file:/C:/ofbiz/applications/party/widget/partymgr/CommonScreens.xml
2007-10-26 10:51:49,109 (http-0.0.0.0-8443-Processor3) [
PrimaryKeyFinder.java:122:INFO ] Returning null because found incomplete
primary key in find: [GenericEntity:Party][partyId,null()]
2007-10-26 10:51:49,109 (http-0.0.0.0-8443-Processor3) [
PrimaryKeyFinder.java:122:INFO ] Returning null because found incomplete
primary key in find: [GenericEntity:Person][partyId,null()]
2007-10-26 10:51:49,109 (http-0.0.0.0-8443-Processor3) [
PrimaryKeyFinder.java:122:INFO ] Returning null because found incomplete
primary key in find: [GenericEntity:PartyGroup][partyId,null()]
2007-10-26 10:51:49,125 (http-0.0.0.0-8443-Processor3) [
ScreenFactory.java:118:INFO ] Got 16 screens in 0.0s from:
file:/C:/ofbiz/framework/common/widget/CommonScreens.xml
2007-10-26 10:51:49,140 (http-0.0.0.0-8443-Processor3) [
ModelScreenWidget.java:360:INFO ] In the include-screen tag the screen name
was empty, ignoring include; in screen [GlobalDecorator]



Case Torres
[hidden email]


Reply | Threaded
Open this post in threaded view
|

Re: Error: You must pass an even sized array to the toMap method

ctorres
I was creating a "Person" in the instance below but I get the same error when creating an "Employee".


The Following Errors Occurred:

ERROR: Could not complete the Create User [file:/C:/ofbiz/applications/party/script/org/ofbiz/party/user/UserEvents.xml#createUser] process [problem invoking the [createPerson] service with the map named [personContext] containing [{middleName=null, lastName=Torres, locale=en_US, gender=null, birthDate=null, userLogin=[GenericEntity:UserLogin][createdStamp,2007-10-26 10:16:58.922(java.sql.Timestamp)][createdTxStamp,2007-10-26 10:16:58.437(java.sql.Timestamp)][currentPassword,47ca69ebb4bdc9ae0adec130880165d2cc05db1a(java.lang.String)][disabledDateTime,null()][enabled,null()][hasLoggedOut,null()][isSystem,null()][lastCurrencyUom,null()][lastLocale,null()][lastTimeZone,null()][lastUpdatedStamp,2007-10-26 10:16:59.172(java.sql.Timestamp)][lastUpdatedTxStamp,2007-10-26 10:16:59.125(java.sql.Timestamp)][partyId,admin(java.lang.String)][passwordHint,null()][requirePasswordChange,null()][successiveFailedLogins,null()][userLoginId,admin(java.lang.String)], firstName=Casey, suffix=null, personalTitle=null}]: Service target threw an unexpected exception (You must pass an even sized array to the toMap method)]

CaseT wrote
Hi,

Revision: 585993.
Thru Party Manager->Create,
I entered a name in each of the First Name and Last Name fields and clicked
"Save" and received the following error:

"Error calling event: org.ofbiz.webapp.event.EventHandlerException: Service
invocation error (You must pass an even sized array to the toMap method)"
The console log doesn't report much else. See print out below.
Anyone have any suggestions?
Thanks, Case

2007-10-26 10:51:49,093 (http-0.0.0.0-8443-Processor3) [
RequestHandler.java:314:ERROR] Request createPerson caused an error with the
following message: Error calling event:
org.ofbiz.webapp.event.EventHandlerException: Service invocation error (You
must pass an even sized array to the toMap method)
2007-10-26 10:51:49,093 (http-0.0.0.0-8443-Processor3) [
RequestHandler.java:433:INFO ] [RequestHandler.doRequest]: Response is a
view. sessionId=42C9A498425AE329B517905952D5C569.jvm1
2007-10-26 10:51:49,093 (http-0.0.0.0-8443-Processor3) [
RequestHandler.java:584:INFO ] servletName=control, view=EditPerson
sessionId=42C9A498425AE329B517905952D5C569.jvm1
2007-10-26 10:51:49,109 (http-0.0.0.0-8443-Processor3) [
ScreenFactory.java:118:INFO ] Got 26 screens in 0.016s from:
file:/C:/ofbiz/applications/party/widget/partymgr/PartyScreens.xml
2007-10-26 10:51:49,109 (http-0.0.0.0-8443-Processor3) [
PrimaryKeyFinder.java:122:INFO ] Returning null because found incomplete
primary key in find: [GenericEntity:PartyAndPerson][partyId,null()]
2007-10-26 10:51:49,109 (http-0.0.0.0-8443-Processor3) [
ScreenFactory.java:118:INFO ] Got 6 screens in 0.0s from:
file:/C:/ofbiz/applications/party/widget/partymgr/CommonScreens.xml
2007-10-26 10:51:49,109 (http-0.0.0.0-8443-Processor3) [
PrimaryKeyFinder.java:122:INFO ] Returning null because found incomplete
primary key in find: [GenericEntity:Party][partyId,null()]
2007-10-26 10:51:49,109 (http-0.0.0.0-8443-Processor3) [
PrimaryKeyFinder.java:122:INFO ] Returning null because found incomplete
primary key in find: [GenericEntity:Person][partyId,null()]
2007-10-26 10:51:49,109 (http-0.0.0.0-8443-Processor3) [
PrimaryKeyFinder.java:122:INFO ] Returning null because found incomplete
primary key in find: [GenericEntity:PartyGroup][partyId,null()]
2007-10-26 10:51:49,125 (http-0.0.0.0-8443-Processor3) [
ScreenFactory.java:118:INFO ] Got 16 screens in 0.0s from:
file:/C:/ofbiz/framework/common/widget/CommonScreens.xml
2007-10-26 10:51:49,140 (http-0.0.0.0-8443-Processor3) [
ModelScreenWidget.java:360:INFO ] In the include-screen tag the screen name
was empty, ignoring include; in screen [GlobalDecorator]



Case Torres
case@casetorrestech.com

Reply | Threaded
Open this post in threaded view
|

Re: Error: You must pass an even sized array to the toMap method

Adrian Crum
In reply to this post by CaseT
Check the commit logs - I think this has been fixed.

Case Torres wrote:

> Hi,
>
> Revision: 585993.
> Thru Party Manager->Create,
> I entered a name in each of the First Name and Last Name fields and clicked
> "Save" and received the following error:
>
> "Error calling event: org.ofbiz.webapp.event.EventHandlerException: Service
> invocation error (You must pass an even sized array to the toMap method)"
> The console log doesn't report much else. See print out below.
> Anyone have any suggestions?
> Thanks, Case
>
> 2007-10-26 10:51:49,093 (http-0.0.0.0-8443-Processor3) [
> RequestHandler.java:314:ERROR] Request createPerson caused an error with the
> following message: Error calling event:
> org.ofbiz.webapp.event.EventHandlerException: Service invocation error (You
> must pass an even sized array to the toMap method)
> 2007-10-26 10:51:49,093 (http-0.0.0.0-8443-Processor3) [
> RequestHandler.java:433:INFO ] [RequestHandler.doRequest]: Response is a
> view. sessionId=42C9A498425AE329B517905952D5C569.jvm1
> 2007-10-26 10:51:49,093 (http-0.0.0.0-8443-Processor3) [
> RequestHandler.java:584:INFO ] servletName=control, view=EditPerson
> sessionId=42C9A498425AE329B517905952D5C569.jvm1
> 2007-10-26 10:51:49,109 (http-0.0.0.0-8443-Processor3) [
> ScreenFactory.java:118:INFO ] Got 26 screens in 0.016s from:
> file:/C:/ofbiz/applications/party/widget/partymgr/PartyScreens.xml
> 2007-10-26 10:51:49,109 (http-0.0.0.0-8443-Processor3) [
> PrimaryKeyFinder.java:122:INFO ] Returning null because found incomplete
> primary key in find: [GenericEntity:PartyAndPerson][partyId,null()]
> 2007-10-26 10:51:49,109 (http-0.0.0.0-8443-Processor3) [
> ScreenFactory.java:118:INFO ] Got 6 screens in 0.0s from:
> file:/C:/ofbiz/applications/party/widget/partymgr/CommonScreens.xml
> 2007-10-26 10:51:49,109 (http-0.0.0.0-8443-Processor3) [
> PrimaryKeyFinder.java:122:INFO ] Returning null because found incomplete
> primary key in find: [GenericEntity:Party][partyId,null()]
> 2007-10-26 10:51:49,109 (http-0.0.0.0-8443-Processor3) [
> PrimaryKeyFinder.java:122:INFO ] Returning null because found incomplete
> primary key in find: [GenericEntity:Person][partyId,null()]
> 2007-10-26 10:51:49,109 (http-0.0.0.0-8443-Processor3) [
> PrimaryKeyFinder.java:122:INFO ] Returning null because found incomplete
> primary key in find: [GenericEntity:PartyGroup][partyId,null()]
> 2007-10-26 10:51:49,125 (http-0.0.0.0-8443-Processor3) [
> ScreenFactory.java:118:INFO ] Got 16 screens in 0.0s from:
> file:/C:/ofbiz/framework/common/widget/CommonScreens.xml
> 2007-10-26 10:51:49,140 (http-0.0.0.0-8443-Processor3) [
> ModelScreenWidget.java:360:INFO ] In the include-screen tag the screen name
> was empty, ignoring include; in screen [GlobalDecorator]
>
>
>
> Case Torres
> [hidden email]
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Error: You must pass an even sized array to the toMap method

BJ Freeman
In reply to this post by CaseT
There are required fields but they are not designated on this page as
they are on other pages.
https://localhost.com:8443/partymgr/control/editperson?create_new=Y
It should not let you save till they are all filled in.
so that is a bug.

In your case, it sounds like the map is not being populated before
calling the createPerson Service, from the above page.

Note there has been some changes to the trunk that may effect this.
try using ver 4.0 (586794)since is pretty stable.

if you are using a direct call to createPerson
https://localhost:8443/webtools/control/availableServices?sel_service_name=createPerson
then you need to check if the map you set up actually contains first and
last names

Case Torres sent the following on 10/26/2007 11:06 AM:

> Hi,
>
> Revision: 585993.
> Thru Party Manager->Create,
> I entered a name in each of the First Name and Last Name fields and clicked
> "Save" and received the following error:
>
> "Error calling event: org.ofbiz.webapp.event.EventHandlerException: Service
> invocation error (You must pass an even sized array to the toMap method)"
> The console log doesn't report much else. See print out below.
> Anyone have any suggestions?
> Thanks, Case
>
> 2007-10-26 10:51:49,093 (http-0.0.0.0-8443-Processor3) [
> RequestHandler.java:314:ERROR] Request createPerson caused an error with the
> following message: Error calling event:
> org.ofbiz.webapp.event.EventHandlerException: Service invocation error (You
> must pass an even sized array to the toMap method)
> 2007-10-26 10:51:49,093 (http-0.0.0.0-8443-Processor3) [
> RequestHandler.java:433:INFO ] [RequestHandler.doRequest]: Response is a
> view. sessionId=42C9A498425AE329B517905952D5C569.jvm1
> 2007-10-26 10:51:49,093 (http-0.0.0.0-8443-Processor3) [
> RequestHandler.java:584:INFO ] servletName=control, view=EditPerson
> sessionId=42C9A498425AE329B517905952D5C569.jvm1
> 2007-10-26 10:51:49,109 (http-0.0.0.0-8443-Processor3) [
> ScreenFactory.java:118:INFO ] Got 26 screens in 0.016s from:
> file:/C:/ofbiz/applications/party/widget/partymgr/PartyScreens.xml
> 2007-10-26 10:51:49,109 (http-0.0.0.0-8443-Processor3) [
> PrimaryKeyFinder.java:122:INFO ] Returning null because found incomplete
> primary key in find: [GenericEntity:PartyAndPerson][partyId,null()]
> 2007-10-26 10:51:49,109 (http-0.0.0.0-8443-Processor3) [
> ScreenFactory.java:118:INFO ] Got 6 screens in 0.0s from:
> file:/C:/ofbiz/applications/party/widget/partymgr/CommonScreens.xml
> 2007-10-26 10:51:49,109 (http-0.0.0.0-8443-Processor3) [
> PrimaryKeyFinder.java:122:INFO ] Returning null because found incomplete
> primary key in find: [GenericEntity:Party][partyId,null()]
> 2007-10-26 10:51:49,109 (http-0.0.0.0-8443-Processor3) [
> PrimaryKeyFinder.java:122:INFO ] Returning null because found incomplete
> primary key in find: [GenericEntity:Person][partyId,null()]
> 2007-10-26 10:51:49,109 (http-0.0.0.0-8443-Processor3) [
> PrimaryKeyFinder.java:122:INFO ] Returning null because found incomplete
> primary key in find: [GenericEntity:PartyGroup][partyId,null()]
> 2007-10-26 10:51:49,125 (http-0.0.0.0-8443-Processor3) [
> ScreenFactory.java:118:INFO ] Got 16 screens in 0.0s from:
> file:/C:/ofbiz/framework/common/widget/CommonScreens.xml
> 2007-10-26 10:51:49,140 (http-0.0.0.0-8443-Processor3) [
> ModelScreenWidget.java:360:INFO ] In the include-screen tag the screen name
> was empty, ignoring include; in screen [GlobalDecorator]
>
>
>
> Case Torres
> [hidden email]
>
>
>
Reply | Threaded
Open this post in threaded view
|

RE: Error: You must pass an even sized array to the toMap method

CaseT
In reply to this post by Adrian Crum
Adrian,

I downloaded and installed revision 588758 and the problem is resolved.

I couldn't find anything in the commit logs but I may have been looking in
the wrong place. I was looking at "Subversion Commits" in the OFBiz Jira.
Is that the correct place?

Thanks much, Case

-----Original Message-----
From: Adrian Crum [mailto:[hidden email]]
Sent: Friday, October 26, 2007 11:15 AM
To: [hidden email]
Subject: Re: Error: You must pass an even sized array to the toMap method

Check the commit logs - I think this has been fixed.

Case Torres wrote:

> Hi,
>
> Revision: 585993.
> Thru Party Manager->Create,
> I entered a name in each of the First Name and Last Name fields and
clicked
> "Save" and received the following error:
>
> "Error calling event: org.ofbiz.webapp.event.EventHandlerException:
Service
> invocation error (You must pass an even sized array to the toMap method)"
> The console log doesn't report much else. See print out below.
> Anyone have any suggestions?
> Thanks, Case
>
> 2007-10-26 10:51:49,093 (http-0.0.0.0-8443-Processor3) [
> RequestHandler.java:314:ERROR] Request createPerson caused an error with
the
> following message: Error calling event:
> org.ofbiz.webapp.event.EventHandlerException: Service invocation error
(You

> must pass an even sized array to the toMap method)
> 2007-10-26 10:51:49,093 (http-0.0.0.0-8443-Processor3) [
> RequestHandler.java:433:INFO ] [RequestHandler.doRequest]: Response is a
> view. sessionId=42C9A498425AE329B517905952D5C569.jvm1
> 2007-10-26 10:51:49,093 (http-0.0.0.0-8443-Processor3) [
> RequestHandler.java:584:INFO ] servletName=control, view=EditPerson
> sessionId=42C9A498425AE329B517905952D5C569.jvm1
> 2007-10-26 10:51:49,109 (http-0.0.0.0-8443-Processor3) [
> ScreenFactory.java:118:INFO ] Got 26 screens in 0.016s from:
> file:/C:/ofbiz/applications/party/widget/partymgr/PartyScreens.xml
> 2007-10-26 10:51:49,109 (http-0.0.0.0-8443-Processor3) [
> PrimaryKeyFinder.java:122:INFO ] Returning null because found incomplete
> primary key in find: [GenericEntity:PartyAndPerson][partyId,null()]
> 2007-10-26 10:51:49,109 (http-0.0.0.0-8443-Processor3) [
> ScreenFactory.java:118:INFO ] Got 6 screens in 0.0s from:
> file:/C:/ofbiz/applications/party/widget/partymgr/CommonScreens.xml
> 2007-10-26 10:51:49,109 (http-0.0.0.0-8443-Processor3) [
> PrimaryKeyFinder.java:122:INFO ] Returning null because found incomplete
> primary key in find: [GenericEntity:Party][partyId,null()]
> 2007-10-26 10:51:49,109 (http-0.0.0.0-8443-Processor3) [
> PrimaryKeyFinder.java:122:INFO ] Returning null because found incomplete
> primary key in find: [GenericEntity:Person][partyId,null()]
> 2007-10-26 10:51:49,109 (http-0.0.0.0-8443-Processor3) [
> PrimaryKeyFinder.java:122:INFO ] Returning null because found incomplete
> primary key in find: [GenericEntity:PartyGroup][partyId,null()]
> 2007-10-26 10:51:49,125 (http-0.0.0.0-8443-Processor3) [
> ScreenFactory.java:118:INFO ] Got 16 screens in 0.0s from:
> file:/C:/ofbiz/framework/common/widget/CommonScreens.xml
> 2007-10-26 10:51:49,140 (http-0.0.0.0-8443-Processor3) [
> ModelScreenWidget.java:360:INFO ] In the include-screen tag the screen
name
> was empty, ignoring include; in screen [GlobalDecorator]
>
>
>
> Case Torres
> [hidden email]
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Error: You must pass an even sized array to the toMap method

Adrian Crum
I think the fix was in 586925, but you wouldn't be able to tell from the commit log.

You would look in the Commits mailing list:

http://mail-archives.apache.org/mod_mbox/ofbiz-commits/

-Adrian

Case Torres wrote:

> Adrian,
>
> I downloaded and installed revision 588758 and the problem is resolved.
>
> I couldn't find anything in the commit logs but I may have been looking in
> the wrong place. I was looking at "Subversion Commits" in the OFBiz Jira.
> Is that the correct place?
>
> Thanks much, Case
>
> -----Original Message-----
> From: Adrian Crum [mailto:[hidden email]]
> Sent: Friday, October 26, 2007 11:15 AM
> To: [hidden email]
> Subject: Re: Error: You must pass an even sized array to the toMap method
>
> Check the commit logs - I think this has been fixed.
>
> Case Torres wrote:
>
>
>>Hi,
>>
>>Revision: 585993.
>>Thru Party Manager->Create,
>>I entered a name in each of the First Name and Last Name fields and
>
> clicked
>
>>"Save" and received the following error:
>>
>>"Error calling event: org.ofbiz.webapp.event.EventHandlerException:
>
> Service
>
>>invocation error (You must pass an even sized array to the toMap method)"
>>The console log doesn't report much else. See print out below.
>>Anyone have any suggestions?
>>Thanks, Case
>>
>>2007-10-26 10:51:49,093 (http-0.0.0.0-8443-Processor3) [
>>RequestHandler.java:314:ERROR] Request createPerson caused an error with
>
> the
>
>>following message: Error calling event:
>>org.ofbiz.webapp.event.EventHandlerException: Service invocation error
>
> (You
>
>>must pass an even sized array to the toMap method)
>>2007-10-26 10:51:49,093 (http-0.0.0.0-8443-Processor3) [
>>RequestHandler.java:433:INFO ] [RequestHandler.doRequest]: Response is a
>>view. sessionId=42C9A498425AE329B517905952D5C569.jvm1
>>2007-10-26 10:51:49,093 (http-0.0.0.0-8443-Processor3) [
>>RequestHandler.java:584:INFO ] servletName=control, view=EditPerson
>>sessionId=42C9A498425AE329B517905952D5C569.jvm1
>>2007-10-26 10:51:49,109 (http-0.0.0.0-8443-Processor3) [
>>ScreenFactory.java:118:INFO ] Got 26 screens in 0.016s from:
>>file:/C:/ofbiz/applications/party/widget/partymgr/PartyScreens.xml
>>2007-10-26 10:51:49,109 (http-0.0.0.0-8443-Processor3) [
>>PrimaryKeyFinder.java:122:INFO ] Returning null because found incomplete
>>primary key in find: [GenericEntity:PartyAndPerson][partyId,null()]
>>2007-10-26 10:51:49,109 (http-0.0.0.0-8443-Processor3) [
>>ScreenFactory.java:118:INFO ] Got 6 screens in 0.0s from:
>>file:/C:/ofbiz/applications/party/widget/partymgr/CommonScreens.xml
>>2007-10-26 10:51:49,109 (http-0.0.0.0-8443-Processor3) [
>>PrimaryKeyFinder.java:122:INFO ] Returning null because found incomplete
>>primary key in find: [GenericEntity:Party][partyId,null()]
>>2007-10-26 10:51:49,109 (http-0.0.0.0-8443-Processor3) [
>>PrimaryKeyFinder.java:122:INFO ] Returning null because found incomplete
>>primary key in find: [GenericEntity:Person][partyId,null()]
>>2007-10-26 10:51:49,109 (http-0.0.0.0-8443-Processor3) [
>>PrimaryKeyFinder.java:122:INFO ] Returning null because found incomplete
>>primary key in find: [GenericEntity:PartyGroup][partyId,null()]
>>2007-10-26 10:51:49,125 (http-0.0.0.0-8443-Processor3) [
>>ScreenFactory.java:118:INFO ] Got 16 screens in 0.0s from:
>>file:/C:/ofbiz/framework/common/widget/CommonScreens.xml
>>2007-10-26 10:51:49,140 (http-0.0.0.0-8443-Processor3) [
>>ModelScreenWidget.java:360:INFO ] In the include-screen tag the screen
>
> name
>
>>was empty, ignoring include; in screen [GlobalDecorator]
>>
>>
>>
>>Case Torres
>>[hidden email]
>>
>>
>>
>
>
>