You need to sign in to do that
Don't have an account?

common.apex.runtime.bytecode.BytecodeApexObjectType cannot be cast to common.apex.runtime.impl.ApexType
Receiving this error when editing a visualforce page in sandbox through developer console or third party IDE. This page has been working in production for some time. Both page and controller are set to version 32 in sandbox and production.
The page can be edited directly through Develop->Pages.
Here's a very simplified version of the page which produces the error
Java 1.7 was installed, but has been uninstalled.
Windows 8 Enterprise, 64bit
IE 10
JRE none
The page can be edited directly through Develop->Pages.
Here's a very simplified version of the page which produces the error
<apex:page standardController="User" extensions="SalesRepGoalController2"> <b>Hello World!</b> </apex:page>and controller
public with sharing class SalesRepGoalController2{ private String userID = '' ; public SalesRepGoalController2(ApexPages.StandardController c) { userID = c.getId(); } }
Java 1.7 was installed, but has been uninstalled.
Windows 8 Enterprise, 64bit
IE 10
JRE none
Please let me know if we find anyother workarounds.
Page:
<apex:page standardController="User" extensions="HSvc_UserFAPConfigurationController" showHeader="false" sidebar="false">
</apex:page>
Error: common.apex.runtime.bytecode.BytecodeApexObjectType cannot be cast to common.apex.runtime.impl.ApexType
Sample 1
ext. Controller: VF page:
Sample 2
ext. Controller: VF page:
Both samples produce the same error when VF page is saved:
NOTE: Tried in 3 different sandboxes (two production orgs), same result.
Thanks,
Aldrin
Attempt to save a VF page or a VF component via Tooling API and you will get this compiler exception: java.lang.ClassCastException: common.apex.runtime.bytecode.BytecodeApexObjectType cannot be cast to common.apex.runtime.impl.ApexType
I've encountered a similar error that seems related to the Tooling API:
Visualforce Page Visualforce Component Error Message on Compile My Workaround
My Apex controller saves fine, but to save the Visualforce, I have to go old-school and use the editing pane from the setup menu.