-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NoSuchMethodError: net.fortuna.ical4j.model.PropertyList.add #137
Comments
@sysmat I need more detail on the error and stack trace for it |
net.fortuna.ical4j.model.Calendar calendar = new net.fortuna.ical4j.model.Calendar();
calendar.add(event);
CalendarRequest calendarRequest = new CalendarRequest();
calendarRequest.setCalendar(event); status=500 |
Can you try this with ical4j 3.x? That could be the issue in this case. |
net.fortuna.ical4j.model.Calendar calendar = new net.fortuna.ical4j.model.Calendar();
Temporal start = LocalDate.now().atTime(8, 0);
Temporal end = LocalDate.now().atTime(9, 0);
VEvent event = new VEvent(start, end, "ZZZZ1111");
Property orginizer = new Organizer("mailto:aaa.bbb@cccc.si");
event.add(orginizer);
ParameterList plist = new ParameterList();
plist.add(new PartStat("NEED-ACTION"));
Property attende = new Attendee(plist, "mailto:ddd.nnn@cccc.si");
event.add(attende);
calendar.add(event);
CalendarRequest calendarRequest = new CalendarRequest();
calendarRequest.setCalendar(event);
HttpClient client = buildHttpClient(username, password);
HttpPutMethod put = factory.createPutMethod(uri, calendarRequest);
HttpResponse response = client.execute(put);
int status = response.getStatusLine().getStatusCode();
System.out.println("status="+status);
System.out.println("response="+mapInputStream(response.getEntity().getContent())); |
this is PUT req:
|
@sysmat can you please link a complete stack trace? 1- paste your full stack trace (without personal information :P ) to a website like https://pastebin.com/ Have a nice day, R. |
Reproduce
Steps to reproduce the issue:
I expect
to send event to sogo
Instead
run time exception
Notes
Further notes you want to attach
The text was updated successfully, but these errors were encountered: