• ai2
  • NEWBIE
  • 0 Points
  • Member since 2010

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 2
    Replies
I have a custom site that's hosted on my dev chatter account.  I would like to be able to include an action to follow to a custom object.  News feeds for the object are already enabled.  In the controller, I'm having trouble adding an EntitySubscription to a user's subscriptions for that custom object.  

This seems feasible and very easy but I can't figure it out.  I'd appreciate any help on this topic.  Thanks in advance.
Message Edited by ai2 on 03-25-2010 12:15 PM
  • March 25, 2010
  • Like
  • 0

Hello, 

 

I am following the steps posted on the configuring the eclipse IDE to work with the google toolkit 

http://wiki.developerforce.com/index.php/Google_Data_APIs_Toolkit_Setup

 

I am at the last step, where I need to syncronize my repository.  However I am getting errors when I attempt to save to the "Project to the Server".  I have tried several times removing and checking out the toolkit without any luck.  I have also rebuilt the workspace a number of times. Please help!!!

Thanks,

~amad

 

Description    Resource    Path    Location    Type
Save error: Dependent class is invalid and needs recompilation:
Class.CalendarService: line 19, column 12
GoogleData: line 405, column 17: Invalid constructor syntax, name=value pairs can only be used for SObjects    AuthSubUtil.cls    google_data_toolkit/src/classes    line 141    Force.com save problem
Save error: Dependent class is invalid and needs recompilation:
Class.DocumentService: line 16, column 12
GoogleData: line 405, column 17: Invalid constructor syntax, name=value pairs can only be used for SObjects    DocumentServiceTest.cls    google_data_toolkit/src/classes    line 8    Force.com save problem
Save error: Dependent class is invalid and needs recompilation:
Class.GoogleService.getFeed: line 101, column 27
GoogleData: line 405, column 17: Invalid constructor syntax, name=value pairs can only be used for SObjects    SpreadsheetService.cls    google_data_toolkit/src/classes    line 6    Force.com save problem
Save error: Dependent class is invalid and needs recompilation:
Class.SpreadsheetService: line 6, column 30
Class.GoogleService.getFeed: line 101, column 27
GoogleData: line 405, column 17: Invalid constructor syntax, name=value pairs can only be used for SObjects    SpreadsheetServiceTest.cls    google_data_toolkit/src/classes    line 7    Force.com save problem
Save error: Dependent class is invalid and needs recompilation:
GoogleData: line 405, column 17: Invalid constructor syntax, name=value pairs can only be used for SObjects    BloggerService.cls    google_data_toolkit/src/classes    line 5    Force.com save problem
Save error: Dependent class is invalid and needs recompilation:
GoogleData: line 405, column 17: Invalid constructor syntax, name=value pairs can only be used for SObjects    CalendarService.cls    google_data_toolkit/src/classes    line 19    Force.com save problem
Save error: Dependent class is invalid and needs recompilation:
GoogleData: line 405, column 17: Invalid constructor syntax, name=value pairs can only be used for SObjects    ContactService.cls    google_data_toolkit/src/classes    line 7    Force.com save problem
Save error: Dependent class is invalid and needs recompilation:
GoogleData: line 405, column 17: Invalid constructor syntax, name=value pairs can only be used for SObjects    DocumentService.cls    google_data_toolkit/src/classes    line 16    Force.com save problem
Save error: Dependent class is invalid and needs recompilation:
GoogleData: line 405, column 17: Invalid constructor syntax, name=value pairs can only be used for SObjects    GoogleDataTest.cls    google_data_toolkit/src/classes    line 7    Force.com save problem
Save error: Dependent class is invalid and needs recompilation:
GoogleData: line 405, column 17: Invalid constructor syntax, name=value pairs can only be used for SObjects    GoogleService.cls    google_data_toolkit/src/classes    line 101    Force.com save problem
Save error: Invalid constructor syntax, name=value pairs can only be used for SObjects    CalendarServiceTest.cls    google_data_toolkit/src/classes    line 63    Force.com save problem
Save error: Invalid constructor syntax, name=value pairs can only be used for SObjects    GoogleData.cls    google_data_toolkit/src/classes    line 405    Force.com save problem
Save error: Must specify the metadata file    AuthSubController.cls    google_data_toolkit/src/classes    line 0    Force.com save problem
Save error: Must specify the metadata file    JSONObject.cls    google_data_toolkit/src/classes    line 0    Force.com save problem
Save error: Must specify the metadata file    TranslateService.cls    google_data_toolkit/src/classes    line 0    Force.com save problem
Save error: Required field is missing: label    authsub.page    google_data_toolkit/src/pages    line 0    Force.com save problem

  • February 11, 2010
  • Like
  • 0

Hey ya'all,

 

I've been looking for help on a real simple task.  I'm trying to grasp of the apex VisualForce syntax for transforming my JSPs into VisualForce pages; but I cannot find a decent howto or tutorial for how to include server side code with no matching controller on a VisualForce page.  I've browsed much of the resources and scavengered the community forums without any luck.  I've included a small sample below that shouldn't take very long to translate.  Any guidance and direction would be much appreciated. Thanks in advance.

 

 

<%@ page import="java.util.*" %>
<%@ page import="java.text.SimpleDateFormat" %>

           
<div class="contentBox">
               
<h2>Upcoming Events</h2>
               
<%
                   
SimpleDateFormat formatter = new SimpleDateFormat("MMM dd, yyyy");
                   
if(session.getAttribute("upcoming")!= null) {

                       
List<Event> upcomingList = (List)session.getAttribute("upcoming");
                       
if(upcomingList!=null) {
                           
for(Event event:upcomingList) {
                           
String date = formatter.format(event.getDate());
                            %>
                   
<p><a href="/doep/ViewEventDetail?id=<%=event.getId()%>" class="titleReg"><%=event.getEventName()%>:<br /></a>
                   
<span class="stamp"><%=date %> / <%=event.getTime() %><br />
                   
<%= event.getAddress()%></span>
               
<%}
                       
}
                   
}  
                    %>

           
</div>

 

 

Message Edited by ai2 on 02-07-2010 08:23 AM
Message Edited by ai2 on 02-09-2010 09:16 AM
  • February 05, 2010
  • Like
  • 0

Hello, 

 

I am following the steps posted on the configuring the eclipse IDE to work with the google toolkit 

http://wiki.developerforce.com/index.php/Google_Data_APIs_Toolkit_Setup

 

I am at the last step, where I need to syncronize my repository.  However I am getting errors when I attempt to save to the "Project to the Server".  I have tried several times removing and checking out the toolkit without any luck.  I have also rebuilt the workspace a number of times. Please help!!!

Thanks,

~amad

 

Description    Resource    Path    Location    Type
Save error: Dependent class is invalid and needs recompilation:
Class.CalendarService: line 19, column 12
GoogleData: line 405, column 17: Invalid constructor syntax, name=value pairs can only be used for SObjects    AuthSubUtil.cls    google_data_toolkit/src/classes    line 141    Force.com save problem
Save error: Dependent class is invalid and needs recompilation:
Class.DocumentService: line 16, column 12
GoogleData: line 405, column 17: Invalid constructor syntax, name=value pairs can only be used for SObjects    DocumentServiceTest.cls    google_data_toolkit/src/classes    line 8    Force.com save problem
Save error: Dependent class is invalid and needs recompilation:
Class.GoogleService.getFeed: line 101, column 27
GoogleData: line 405, column 17: Invalid constructor syntax, name=value pairs can only be used for SObjects    SpreadsheetService.cls    google_data_toolkit/src/classes    line 6    Force.com save problem
Save error: Dependent class is invalid and needs recompilation:
Class.SpreadsheetService: line 6, column 30
Class.GoogleService.getFeed: line 101, column 27
GoogleData: line 405, column 17: Invalid constructor syntax, name=value pairs can only be used for SObjects    SpreadsheetServiceTest.cls    google_data_toolkit/src/classes    line 7    Force.com save problem
Save error: Dependent class is invalid and needs recompilation:
GoogleData: line 405, column 17: Invalid constructor syntax, name=value pairs can only be used for SObjects    BloggerService.cls    google_data_toolkit/src/classes    line 5    Force.com save problem
Save error: Dependent class is invalid and needs recompilation:
GoogleData: line 405, column 17: Invalid constructor syntax, name=value pairs can only be used for SObjects    CalendarService.cls    google_data_toolkit/src/classes    line 19    Force.com save problem
Save error: Dependent class is invalid and needs recompilation:
GoogleData: line 405, column 17: Invalid constructor syntax, name=value pairs can only be used for SObjects    ContactService.cls    google_data_toolkit/src/classes    line 7    Force.com save problem
Save error: Dependent class is invalid and needs recompilation:
GoogleData: line 405, column 17: Invalid constructor syntax, name=value pairs can only be used for SObjects    DocumentService.cls    google_data_toolkit/src/classes    line 16    Force.com save problem
Save error: Dependent class is invalid and needs recompilation:
GoogleData: line 405, column 17: Invalid constructor syntax, name=value pairs can only be used for SObjects    GoogleDataTest.cls    google_data_toolkit/src/classes    line 7    Force.com save problem
Save error: Dependent class is invalid and needs recompilation:
GoogleData: line 405, column 17: Invalid constructor syntax, name=value pairs can only be used for SObjects    GoogleService.cls    google_data_toolkit/src/classes    line 101    Force.com save problem
Save error: Invalid constructor syntax, name=value pairs can only be used for SObjects    CalendarServiceTest.cls    google_data_toolkit/src/classes    line 63    Force.com save problem
Save error: Invalid constructor syntax, name=value pairs can only be used for SObjects    GoogleData.cls    google_data_toolkit/src/classes    line 405    Force.com save problem
Save error: Must specify the metadata file    AuthSubController.cls    google_data_toolkit/src/classes    line 0    Force.com save problem
Save error: Must specify the metadata file    JSONObject.cls    google_data_toolkit/src/classes    line 0    Force.com save problem
Save error: Must specify the metadata file    TranslateService.cls    google_data_toolkit/src/classes    line 0    Force.com save problem
Save error: Required field is missing: label    authsub.page    google_data_toolkit/src/pages    line 0    Force.com save problem

  • February 11, 2010
  • Like
  • 0

Hi, everyone.

 

Thanks for creating such a helpful site/community.  I've used information from this forum a lot on this first attempt I'm making with apex code and triggers.

 

I wrote some prototype code in a sandbox and it worked fine.  So, now I'm trying to write a trigger and get it deployed into our production site. 

 

I downloaded the Force.com IDE and synched it up with our server.  I know that it worked because several triggers and apex classes came down to my IDE.

 

I wrote my trigger code and then I wrote an apex class that would test that trigger code.  But while doing that, I would get these annoying warnings saying "File only saved locally, not to server".

 

And I get Error messages when I save in the Force.com IDE that says "Save error:  Unable to perform save on all files:  An unexpected error has occurred.  Please try again, or check the log file for details."

 

The Force.com IDE Log Viewer have a lot of warnings and a couple of different Error messages:

 

(NullPointerException) Unable to perform save on all files. (Open log file for full message and/or stacktrace)

 

and

 

Filepath-zip mapping is null or empty for package 'unpackaged' [null] - skipping component generation (Open log file for full message and/or stacetrace)

 

When I go to the eclipse .log file, I see this:

 

!ENTRY com.salesforce.ide.core 4 0 2009-10-16 16:02:22.741
!MESSAGE ERROR [2009-10-16 16:02:22,726] (SaveToServerAction.java:saveToServer:94) - Unable to save resource(s)

!STACK 0
java.lang.NullPointerException
	at com.salesforce.ide.core.services.ProjectService.setRunTestFailureMarker(ProjectService.java:2335)
	at com.salesforce.ide.core.services.ProjectService.handleRunTestMessages(ProjectService.java:2284)
	at com.salesforce.ide.core.services.ProjectService.handleRunTestResult(ProjectService.java:2230)
	at com.salesforce.ide.core.services.ProjectService.handleDeployResult(ProjectService.java:1940)
	at com.salesforce.ide.ui.actions.SaveToServerActionController.deploy(SaveToServerActionController.java:142)
	at com.salesforce.ide.ui.actions.SaveToServerActionController.saveResourcesToServer(SaveToServerActionController.java:111)
	at com.salesforce.ide.ui.actions.SaveToServerAction$1.execute(SaveToServerAction.java:63)
	at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:104)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
	at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:116)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

And I can't find anything about that stacktrace in this forum or in Google.

 

I've tried highlighting all the files (trigger and test code), right-clicking and selecting Force.com > Save to Server.  But that results in an error message (Unable to save resource to server. An unexpecte error has occured.  Please try again, or check the log file for details.)

 

I seem to be stuck.  Any idea's what's causing this?

 

Is it because my code's bad?  Or do I need to fix that NPE on the salesforce.com ProjectService class?  (If so, how?) Or, is my Force.com IDE misconfigured?  Or is my project misconfigured?  Or?

 

Like I said, this is my first attempt at apex development using the Force.com IDE.  So, it could be pilot error.  But I don't know what to fix.

 

Can anybody help me out?

 

Thanks.

  • October 16, 2009
  • Like
  • 0