You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by Jordan Zimmerman <jo...@shop.com> on 2009/01/15 00:39:46 UTC

Why is there a class named Enum?

Please consider renaming the "Enum" class (in
org.apache.shindig.social.opensocial.model). Its name conflicts with the
JDK Enum class.

Jordan Zimmerman
Principal Software Architect
831.647.4712
831.214.2990 (cell)
jordanz@shop.com 

SHOP*COMTM
All your favorite stores.
OneCart(r) convenience.
www.shop.com

This message (including any attachments) is intended only for
the use of the individual or entity to which it is addressed and
may contain information that is non-public, proprietary,
privileged, confidential, and exempt from disclosure under
applicable law or may constitute as attorney work product.
If you are not the intended recipient, you are hereby notified
that any use, dissemination, distribution, or copying of this
communication is strictly prohibited. If you have received this
communication in error, notify us immediately by telephone and
(i) destroy this message if a facsimile or (ii) delete this 
message
immediately if this is an electronic communication.

Thank you.

RE: My ActivityService is not being called

Posted by Jordan Zimmerman <jo...@shop.com>.
After some debugging, I've found this.

In datarequest.js
opensocial.DataRequest.prototype.newFetchActivitiesRequest() it
references "fields.FIRST" and "fields.MAX". "fields" is never defined,
though. It looks like it should be "ActivityRequestFields". Has no one
else run into this?

I'll add a ticket.

Jordan Zimmerman
Principal Software Architect
831.647.4712
831.214.2990 (cell)
jordanz@shop.com 

SHOP*COMTM
All your favorite stores.
OneCart(r) convenience.
www.shop.com

This message (including any attachments) is intended only for
the use of the individual or entity to which it is addressed and
may contain information that is non-public, proprietary,
privileged, confidential, and exempt from disclosure under
applicable law or may constitute as attorney work product.
If you are not the intended recipient, you are hereby notified
that any use, dissemination, distribution, or copying of this
communication is strictly prohibited. If you have received this
communication in error, notify us immediately by telephone and
(i) destroy this message if a facsimile or (ii) delete this 
message
immediately if this is an electronic communication.

Thank you.

RE: My ActivityService is not being called

Posted by Jordan Zimmerman <jo...@shop.com>.
>Try putting some log messages in the ActivityHandler.handleGet(....)  
>and the DataRequestHandler.handleItem(....) to verify you are  
>exercising the code.

I did that and the ActivityHandler is never called. What does that
imply?

Jordan Zimmerman
Principal Software Architect
831.647.4712
831.214.2990 (cell)
jordanz@shop.com 

SHOP*COMTM
All your favorite stores.
OneCart(r) convenience.
www.shop.com

This message (including any attachments) is intended only for
the use of the individual or entity to which it is addressed and
may contain information that is non-public, proprietary,
privileged, confidential, and exempt from disclosure under
applicable law or may constitute as attorney work product.
If you are not the intended recipient, you are hereby notified
that any use, dissemination, distribution, or copying of this
communication is strictly prohibited. If you have received this
communication in error, notify us immediately by telephone and
(i) destroy this message if a facsimile or (ii) delete this 
message
immediately if this is an electronic communication.

Thank you.

Re: My ActivityService is not being called

Posted by Ian Boston <ie...@tfd.co.uk>.
Your bind looks Ok, (provided its got @Singleton on the impl)

In the unit tests the wiring is tested by a Mocked up ActivityService,  
so provided the correct url is presented it *should* be called.

/social/activities/john.doe/@ALL
/social/activities/john.doe/@FRIENDS

Try putting some log messages in the ActivityHandler.handleGet(....)  
and the DataRequestHandler.handleItem(....) to verify you are  
exercising the code.

HTH
Ian


On 21 Jan 2009, at 00:45, Jordan Zimmerman wrote:

> Shindig is not calling my ActivityService. Both my PersonService and  
> my
> AppDataService are being called, though. So, I'm a bit stumped. I've
> tried breaking on exceptions and I don't seem to be getting any. Is
> there something special about the ActivityService? I'm mapping it per
> the info I found on the net:
>
> 	
> bind(ActivityService.class).to(MediatedOpensocialService.class);
>
> Any help would be appreciated.
>
> Jordan Zimmerman
> Principal Software Architect
> 831.647.4712
> 831.214.2990 (cell)
> jordanz@shop.com
>
> SHOP*COMTM
> All your favorite stores.
> OneCart(r) convenience.
> www.shop.com
>
> This message (including any attachments) is intended only for
> the use of the individual or entity to which it is addressed and
> may contain information that is non-public, proprietary,
> privileged, confidential, and exempt from disclosure under
> applicable law or may constitute as attorney work product.
> If you are not the intended recipient, you are hereby notified
> that any use, dissemination, distribution, or copying of this
> communication is strictly prohibited. If you have received this
> communication in error, notify us immediately by telephone and
> (i) destroy this message if a facsimile or (ii) delete this
> message
> immediately if this is an electronic communication.
>
> Thank you.


My ActivityService is not being called

Posted by Jordan Zimmerman <jo...@shop.com>.
Shindig is not calling my ActivityService. Both my PersonService and my
AppDataService are being called, though. So, I'm a bit stumped. I've
tried breaking on exceptions and I don't seem to be getting any. Is
there something special about the ActivityService? I'm mapping it per
the info I found on the net:

	
bind(ActivityService.class).to(MediatedOpensocialService.class);

Any help would be appreciated.

Jordan Zimmerman
Principal Software Architect
831.647.4712
831.214.2990 (cell)
jordanz@shop.com 

SHOP*COMTM
All your favorite stores.
OneCart(r) convenience.
www.shop.com

This message (including any attachments) is intended only for
the use of the individual or entity to which it is addressed and
may contain information that is non-public, proprietary,
privileged, confidential, and exempt from disclosure under
applicable law or may constitute as attorney work product.
If you are not the intended recipient, you are hereby notified
that any use, dissemination, distribution, or copying of this
communication is strictly prohibited. If you have received this
communication in error, notify us immediately by telephone and
(i) destroy this message if a facsimile or (ii) delete this 
message
immediately if this is an electronic communication.

Thank you.

RE: Why is there a class named Enum?

Posted by Jordan Zimmerman <jo...@shop.com>.
>Please open a JIRA ticket for this. BTW I couldnt agree more....
https://issues.apache.org/jira/browse/SHINDIG-878

Jordan Zimmerman
Principal Software Architect
831.647.4712
831.214.2990 (cell)
jordanz@shop.com 

SHOP*COMTM
All your favorite stores.
OneCart(r) convenience.
www.shop.com

This message (including any attachments) is intended only for
the use of the individual or entity to which it is addressed and
may contain information that is non-public, proprietary,
privileged, confidential, and exempt from disclosure under
applicable law or may constitute as attorney work product.
If you are not the intended recipient, you are hereby notified
that any use, dissemination, distribution, or copying of this
communication is strictly prohibited. If you have received this
communication in error, notify us immediately by telephone and
(i) destroy this message if a facsimile or (ii) delete this 
message
immediately if this is an electronic communication.

Thank you.

Re: Why is there a class named Enum?

Posted by Louis Ryan <lr...@google.com>.
Please open a JIRA ticket for this. BTW I couldnt agree more....

On Wed, Jan 14, 2009 at 3:39 PM, Jordan Zimmerman <jo...@shop.com> wrote:

> Please consider renaming the "Enum" class (in
> org.apache.shindig.social.opensocial.model). Its name conflicts with the
> JDK Enum class.
>
> Jordan Zimmerman
> Principal Software Architect
> 831.647.4712
> 831.214.2990 (cell)
> jordanz@shop.com
>
> SHOP*COMTM
> All your favorite stores.
> OneCart(r) convenience.
> www.shop.com
>
> This message (including any attachments) is intended only for
> the use of the individual or entity to which it is addressed and
> may contain information that is non-public, proprietary,
> privileged, confidential, and exempt from disclosure under
> applicable law or may constitute as attorney work product.
> If you are not the intended recipient, you are hereby notified
> that any use, dissemination, distribution, or copying of this
> communication is strictly prohibited. If you have received this
> communication in error, notify us immediately by telephone and
> (i) destroy this message if a facsimile or (ii) delete this
> message
> immediately if this is an electronic communication.
>
> Thank you.
>