You need to sign in to do that
Don't have an account?
Unable to fetch and save Force.com Components to Project
Hi,
Unable to fetch and save Force.com Components to Project: com.salesforce.ide.api.metadata.types.Metadata$JaxAccessorF_fullName cannot be cast to com.sun.xm.internal.bind.v2.runtime.reflect.Accessor
Abort or Continute Force.com project creation?
==============
while i am creating a new force.com project i got this error: can u please tell me why this error came. i downloaded eclipse and added force.com ide.... when i try to creating a new force.com project i got this error... and i am able to create a force.com project but not getting all existing classes and pages. And not added my new page or class content to the sever when i save. Is it required any other software installations?
Even i'm having same problem .... Can anybody tell me how to overcome this problem?
i got the same problem.
Any solution?
Hi, any update on this? I am getting the same error this morning creating a new project. Any work arounds? Should I abort or continue the project setup?
I am getting the same error but the component name is slightly different - instead of jaxAccessorF_fullName it is jaxbAccessorF_fullName - note the "b" in between jax and Accessor.
I did not get the solution till.
I don't know what is the problem.
In my system i tried mostly all eclipse versions and also force.com IDEs...
I am waiting for answer...
If any one know the solution to this, please reply..
So that it could be helpful to the Others...
try with java jre 6 or 5. Updating my java to version 7 caused this problem. And restoring to version 6 solved this issue.
Hi, thank you for the suggestion. I tried what you suggested, disabled java jre 7 and enabled java jre 6. Relaunched the IDE, tried to create a new project and got the same exception.
Did you make any other changes to your set up beside the jre?
Thank you for your help!
I also tried all versions of Eclipse with jre5,jre6 and jre7.
But getting same error:
Unable to fetch and save Force.com Components to Project: com.salesforce.ide.api.metadata.types.Metadata$JaxAccessorF_fullName cannot be cast to com.sun.xm.internal.bind.v2.runtime.reflect.Accessor
Abort or Continute Force.com project creation?
========================================
while i am creating a new force.com project i got this error: can u please tell me why this error came. i downloaded eclipse and added force.com ide.... when i try to creating a new force.com project i got this error... and i am able to create a force.com project but not getting all existing classes and pages. And not added my new page or class content to the sever when i save. Is it required any other software installations?
Make sure jre7 is completely uninstalled, check with jre6 and jre5, and try changing the workspace location. I dont know the root cause of the problem, but this change worked for me.
Yes Boss. Thanks for your valuable suggestions.
Its working now...
uninstall java from the system. Then
Download jdk-6-windows-i586 and install it...
Cheers.........
Thanks!! removed jdk7 and installed jre6 it works fine...
Try arranging the forceide.ini file. I moved the MaxPermSize, and PermSize args up by 4 lines and it's worked ever since. (Didn't have to downgrade Java)
forceide.ini contents:
#utf8 (do not remove)
-startup
../Common/plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
--launcher.library
../Common/plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.0.200.v20090519
-install
C:\Users\fourq\AppData\Local\salesforce.com\Force.com IDE
-configuration
C:\Users\fourq\AppData\Local\salesforce.com\Force.com IDE\configuration
-vmargs
-XX:MaxPermSize=512M
-XX:PermSize=128M
-Dfile.encoding=UTF-8
-Xms256m
-Xmx1024m
Moving the lines up in the ini file does NOT work. fourq must have made some other changes as well.
Shuffling of lines worked for me. Thanks a lot fourq.
My eclipse.ini code
Please note that removing the JDK7 might cause the current version of Eclipse (3.7.2) to stop working.
Reinstalling might also not be possible anymore, even if you replace it with JDK or JRE 6.
In my case, the Eclipse version offered by Salesforce.com ("Install as Standalone Application") also refused to install due to missing Java components.
Solution: download an older, standalone, version of Eclipse. For example, Eclipse Helios (which is the name of 3.6).
Link: http://www.eclipse.org/downloads/packages/release/helios/sr2
This version works fine with JDK 6 (I used jdk-6u26-windows-x64), including installing the Force.com plugin in the way that it is described in this link:
http://wiki.developerforce.com/page/Force.com_IDE_Installation_for_Eclipse_3.6
Extra tip; numbers of errors during the installation can be prevented by connecting directly to the internet instead of through proxy. Even if your IT admin is so kind to open up your proxy completely for you.
Kind regards,
Steven Danschutter
This problem is happening again with the latest (v24) version of the IDE on 64 bit jre7.
Changing the ini file didn't make any difference.
The IDE error log indicates:
Note, I have both the 32 and 64 bit JREs (v7) installed, and the 64 bit jdk (v1.7)
I had the same problem. Removing jre7 worked for me! Thanks for posting this solution.
I actually had a bunch of JREs and JDKs, 32bit and 64bit.
Turns out, different apps need different things, so sometimes you can't just remove JRE7.
But what you CAN do is put together a simple batch file from which you launch the IDE. In the batch file (windows), you simply set the JAVA and PATH variables uniquely to the places the IDE needs to go look -- essentially, hiding the rest of the Java versions from its view.
My .bat file lives in the same directory as the forceide application, and looks like this:
set PATH=.;c:\program files\java\jdk1.6\bin
start /B forceide
exit
Thanks
It also worked for me..
remove Java 7..
i.e. it proves, Force.IDE is not compatible with JDK 7.
Unistalling JRE 7 worked. seems like there is some issue with the JRE 7.
Thanks guys for your response
It worked for me after i uninstalled JRE7 and installed JRE6. (moving around the lines in ini file did not help)
Like many of you I spent a lot of time dealing with the Java version issue. I'm sure lot more will do too, hence, this post. When I uninstalled Java 7 like many sugggest here, I could no longer use Java applets in my web browsers. Thus far the best solution I've found to address this issue, without having to install / uninstall different versions of Java, is to create a batch file like ddddava suggests and override the path of the version of Java (in this case, version 6) you need.
Hope this helps.
I just ran into this issue. I have the following installed:
Updating the Force.com IDE to Winter '13 (26.0.0) fixed the problem without any additional tweaks.
Followed the below steps to get this issue resolved.
1. In the Installed JRE's set it to JRE6 instead of JRE7.
2. Uninstall JRE 7 and restart eclipse.
Thanks,
Anant
CaptainObvious' tip worked for me, too. Upgrading to Winter '13 took care of my issue.
Cheers,
-Philip
Thanks Sidharth. Your solution worked !!!
Nice one this worked for me on Ubuntu...
I experienced the same.
In order to solve that issue, I uninstall the jre v7, and installed jre v6. Now everything is working. :)
Worked like a charm for me too. Thanks! My eclipse.ini file after the shuffle (Helios svc release 2):
I have tried each and every trick mention here but no luck
and at last I uninstall jre 7 to jre 6, this is ridiculous.
not a nice solution
totally worked for me thanks! I used your exact eclipse.ini and restarted.
I had the same problem running x86 with both jre7 and jre6 existing in the same directory. I changed the name of jre7 folder forcing eclipse to see the jre6 folder only and then I reran Eclipse with Force.com IDE. I also was able to access class, triggers, components and more which earlier I could not do because of that Sun casting exception error. So it has to be something with jre7. I also put -clean as an argument for the eclipse.ini file to eliminate heap space crashes too. These two problems usually go hand in hand when I set up eclipse. Note: When you see that there is an error trying to cast a salesforce Accessor to Sun Accessor you know it has to probably be something with JRE (or other Oracle/Sun component being Sun's relationship with Java and jre). That's my guess anyway.
Thanks!
Worked for me.
My fix was that I deleted my original project, created a new project with the IDE already installed and it worked.
For those of you having difficulty finding the correct download (without trojans in it), go to the official oracle site.
http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase6-419409.html#jre-6u45-oth-JPR
You'll need to create a login but whatever.
Thanks.
I've tried to change the ini file but not works for me.
Then i have to remove JDK1.7 and install JDK1.6. It really works though it seems not good.
anyway, thanks for help.
It will integrate only if you will uninstall JRE 7 and restart eclipse again.
If you will just change env variable(i.e from JRE 7 to 6) in system and try to make it run then also it will no integrate properly.
Thanks :)
AbhaySwitching the workspace back to the same workspace you had problem with solved it.
File -> Switch workspace -> [Select the same workspace you had problem with]
Not sure why it worked.. But it WORKED :)
Courtesy ( Best Solution on ) : http://salesforce.stackexchange.com/questions/649/unable-to-refresh-src-from-server-using-force-com-ide