LectureCapture.com: NullPointerException in ESS 4.0 - LectureCapture.com

Jump to content

Page 1 of 1

NullPointerException in ESS 4.0

#1 User is offline   MarkHodson 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 48
  • Joined: 22-September 09
  • Location:Penrith, NSW, Australia
  • Organization:University of Western Sydney
  • Title:Video Technician

Posted 16 August 2011 - 10:43 PM

Hi All,

I keep getting a HTTP Error when i attempt to 'PUT' the schedule-rule xml with ESS 4.0.

Here is the error:

HTTP ERROR: 400 Bad Request
Failed to parse the request entity 'ScheduleRuleResource'

Failure details

Exception: NullPointerException
null

This is the xml and url im trying to send through. It works with ESS 3.0.

/ess/scheduleapi/v1/sections/8fce6aa5-0484-44df-a195-98b19a2b5276/schedule-rules

<schedule-rule>
<room>
<id>970c742e-e9fb-4f78-93a3-7bc2a11f8dca</id>
</room>
<title>Test</title>
<status>draft</status>
<start-date>2011-08-01</start-date>
<end-date>2011-11-04</end-date>
<start-time>10:00</start-time>
<duration-seconds>300</duration-seconds>
<recurring>ture</recurring>
<days-of-week>
<monday>true</monday>
</days-of-week>
<presenters>
<presenter>
<person>
<id>eb5af404-a54e-4954-8304-805e84039a1b</id>
</person>
</presenter>
</presenters>
</schedule-rule>

I know there has been some changes to the API between 3.0 and 4.0 but i have been going through to documentation and cant really see a reason why the schedule should fail. Is there a bug with the API or some undocumented change that needs to be made...?

Thanks for the assist,
Mark




Mark HodsonVideo TechnicianInformation Technology Service
University of Western Sydney
Locked bag 1797PENRITH SOUTH DC NSW 1797
0

#2 User is offline   Tom Zelickman 

  • Admin
  • PipPipPip
  • View blog
  • Group: Members
  • Posts: 204
  • Joined: 22-July 09
  • Location:Fuquay-Varina, NC USA
  • Organization:Echo360
  • Title:Program Manager, Release Candidate Program

Posted 16 August 2011 - 10:51 PM

Mark,


Did you copy and paste this code? If so, there is a typo:


<recurring>ture</recurring>


This may not be the cause of the issue but let's start with the simple part.


Best wishes,
Tom


--
Tom Zelickman
Program Manager, Release Candidate Program
Echo360
21000 Atlantic Blvd, 6th Floor | Dulles, VA 20166
voice: +1.571.482.9027 | fax: +1.703.450.1936 | skype / aim: tjzelick

0

#3 User is offline   MarkHodson 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 48
  • Joined: 22-September 09
  • Location:Penrith, NSW, Australia
  • Organization:University of Western Sydney
  • Title:Video Technician

Posted 16 August 2011 - 11:14 PM

Hi Tom,

Quick response.. Thanks :-)

I fixed up the typo but still getting the same error

Cheers,
Mark
Mark HodsonVideo TechnicianInformation Technology Service
University of Western Sydney
Locked bag 1797PENRITH SOUTH DC NSW 1797
0

#4 User is offline   Tom Zelickman 

  • Admin
  • PipPipPip
  • View blog
  • Group: Members
  • Posts: 204
  • Joined: 22-July 09
  • Location:Fuquay-Varina, NC USA
  • Organization:Echo360
  • Title:Program Manager, Release Candidate Program

Posted 17 August 2011 - 07:29 AM

View PostMarkHodson, on 16 August 2011 - 11:14 PM, said:

Hi Tom,

Quick response.. Thanks :-)

I fixed up the typo but still getting the same error

Cheers,
Mark


Mark,

I think you need to add a product group to this. I found this in the API docs specific to changes in 4.0:

In order to create an active schedule, product group is a required field in 4.0, while it was optional in 3.0. This means that, when creating a new active schedule using API call, the product group name needs to be enclosed in 'product-group' xml tags and sent in the xml request.


Have you tried that yet? Hope this helps.


Tom


--
Tom Zelickman
Program Manager, Release Candidate Program
Echo360
21000 Atlantic Blvd, 6th Floor | Dulles, VA 20166
voice: +1.571.482.9027 | fax: +1.703.450.1936 | skype / aim: tjzelick

0

#5 User is offline   MarkHodson 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 48
  • Joined: 22-September 09
  • Location:Penrith, NSW, Australia
  • Organization:University of Western Sydney
  • Title:Video Technician

Posted 17 August 2011 - 05:14 PM

Hi Tom,

I saw that line of text in the API Doc for 4.0 but thought i wouldn't need it since i am trying to load the schedule as a "Draft".

I'll play around with the 'product-group' tags and see how i go..

Cheers,
Mark
Mark HodsonVideo TechnicianInformation Technology Service
University of Western Sydney
Locked bag 1797PENRITH SOUTH DC NSW 1797
0

#6 User is offline   MarkHodson 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 48
  • Joined: 22-September 09
  • Location:Penrith, NSW, Australia
  • Organization:University of Western Sydney
  • Title:Video Technician

Posted 17 August 2011 - 08:47 PM

Hi All,

I finally got this to work. It was the <product-group> tags as suggested by Tom. It isn't documented very well but you need to include the <name></name> tags and it is required even when submitting a schedule in "Draft" form.

Here is what i did:


<schedule-rule>
<room>
<id>970c742e-e9fb-4f78-93a3-7bc2a11f8dca</id>
</room>
<title>Test</title>
<status>draft</status>
<start-date>2011-08-01</start-date>
<end-date>2011-11-04</end-date>
<start-time>10:00</start-time>
<duration-seconds>300</duration-seconds>
<recurring>true</recurring>
<days-of-week>
<monday>true</monday>
</days-of-week>
<product-group>
<name>Display/Video - All Formats - Medium Quality</name>
</product-group>
<presenters>
<presenter>
<person>
<id>eb5af404-a54e-4954-8304-805e84039a1b</id>
</person>
</presenter>
</presenters>
</schedule-rule>

Thanks for the help Tom :-)

Mark
Mark HodsonVideo TechnicianInformation Technology Service
University of Western Sydney
Locked bag 1797PENRITH SOUTH DC NSW 1797
0

Share this topic:


Page 1 of 1


Fast Reply

  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users