Bounds are not propagated in extended class

Have a look on this small example, 3 classes A, B and C.
B and A are generics class,
B herits of A and there is a lower bounds on the class T in B (T extends C)
public class A<T> {
     public A() {}
     public T foo()
public class B<T extends C> extends A<T> {
     public B() {}
     public static void main(String[] args) {
          B inst = new B();
          C cInst = inst.foo3();  //problem : it does'nt work !!
public class C {
     public C() {}
}The problem is in the main of the class B, the compiler says : "Cannot convert from Object to C".
My reasoning :
There is a type constraint (a lower bound) on T in the class B, so "T extends C" in the class B, so "T extends C" in the class A for an instance of the class B. The call to the method foo() does answer an object which class extends class C !!
Someone has an explanation, it's abnormal or I should set the parameters of javac.
thank you.

Ok my examples were wrong !!
Have a look on this example (smaller and better !)
B and A are generics class,
B herits of A and there is a lower bounds on the class T in A "T extends C"
public class A<T extends C> {
     public A() {}
     public T foo()
     public void foo2() {
          C cinst = foo(); //no problem : it works
public class B<T> extends A<T> {
     public B() {...}
     public void foo3() {
          C cinst = foo(); //error : "cannot convert T to C"
}The type constraint "<T extends C>" of the class "A" is not propagated to the class "B" !!
I have to add the constraint <T extends C> to the class B like this
public class B<T extends C> extends A<T> {...}However, it's inevitably like this !

Similar Messages

  • Payment order are not defined for extended withholding  tax

    Hi Gurus,
    Would you please help me with the message below. It appears on F110 when I try to pay a vendor open item with extended withholding tax:
    Message FZ626 -Payment orders are not defined for extended withholding tax
    In my company payment orders are created in F110 for accounts payable, as we use another ERP system (Baan) to perform the local accounts payments, and now I've just activated Extended withholding tax functionality With accumulation (necessary in Brazil) but I get this error.
    Is it not possible to user payment order with extended withholding tax + accumulation? I find it hard to believe...
    I've tried to unflag the payment order only for the payment method I'm using in FBZP t.code, but then no payment order were created but instead a payment document were posted with the withholding tax accumulation, but this is not the way we are working, and nothing is sent to Baan
    any help is welcome

    The payment method "Y" the option "payment order only" was marked?
    For a withholding tax type with accumulation in a company code with extended withholding tax payment
    methods that create only payment orders can´t be used. Payment orders can only be created only if there are
    no tax types with accumulation involved in the paid items of the payment run.
    The functionality extended withholding tax works fine for Brazil
    however, you can´t use the payment order with this functionality.
    Please, review your customizing for payment method 'Y" in transaction
    FBZP.
    Best regards,
    Leonardo Vedovelli
    FI Support Engineer
    SAP Active Global Support

  • Message no. 8I766 Number Ranges are not maintained For Extended Withholding

    Dear All,
    I am facing the following problem when i am trying to generate the withholding tax certificate
    1.) Message no. 8I766 Number Ranges are not maintained For Extended Withholding Tax 
         Number Ranges are not maintained for Business Place and Section. Check entries in tables J_1iewt_cert  (for Business Place) or J_1iewt_cert_n (for Section Code) and j_1iewt_certno  in EWT.
    I have checked all the above tables and found that the entries are maintained
    2) When i am trying for print priview and then print its generating spool request and the certificate is getting saved -
    > here the following problems are faced
          A) . TDS Number is not coming
          B).Details Of the tax deductor ( Name , Adress , TDS Circle , TAN & PAN is not coming Where       to update these details
          C) In Amount Paid / Credited Column - Some fixed amount is comming irrespective of the actual amount credited
    Please help me in soving the above issues
    Thanks & Regards
    Arun.R

    Hi
    You need to maintain Section Code wise number range . Go to Sm30 Select Table J_1IEWT_CERT_N and maintain it.
    Thanks
    GG

  • Message FZ626 -Payment orders are not defined for extended withholding tax

    Hi Gurus,
    Would you please help me with the message below:
    Message FZ626 -Payment orders are not defined for extended withholding tax
    In my company  payment orders are created in F110  for accounts payable, as we use another ERP system (Baan) to perform the local accounts payments, and now I've just activated Extended withholding tax functionality With accumulation (necessary in Brazil) but I get this error.
    Is it not possible to user payment order with extended withholding tax + accumulation? I find it hard to believe...
    I've tried to unflag the payment order only for the payment method I'm using in FBZP t.code, but then no payment order were created but instead a payment document were posted with the withholding tax accumulation, but this is not the way we are working, and nothing is sent to Baan
    any help is welcome !
    TREAD LOCKED SINCE IT IS DUPLICATED FROM THREAD payment order are not defined for extended withholding  tax

    Hi,
    On the analysis,  the system expects an entry in the T059Q table with
    code as XX.
    The reason being in the extended withholding tax we use multiple
    witholding tax codes and these entries are stored in the table
    with_item. And in BSEG we populate the field withholding tax code i.e.
    BSEG-QSSKZ  with the value 'XX'. In classical withholding tax we used to
    store the code directly which is not possible with Extended withholding
    tax.
    As the field BSEG-QSSKZ refers to the values in the table T059Q-QSSKZ
    the entry 'XX" needed in this table for the corresponding country of the
    company code to maintain the correct relationship and consistent
    database information.
    Hence for the statistical purpose and for the internal calculations we
    need an entry in the table T059Q. Could you please maintain this code
    i.e. 'XX' also in the table T059Q in a test system? Then retest your issue.
    This should resolve your issue.
    Kind Regards,
    Vanessa.

  • Form values are not submitting to ActionForm class

    Hi All,
    I have a problem with <html:form> tag. When i am submitting the form using the submit button it is going to the Struts-config.xml file and getting the action mapping for the HazSummary.do. It is getting the HazardSummaryAction class and getting the input from HazardSummary Form class. If result is sucees it is going to the next jsp page.
    All above things are happening properly. But the form values are not getting in to the HazardSummaryForm.jav.
    Here in this case Action class is HazardSummaryAction.java, Action Form class is HazardSummaryForm.java and jsp page is Hazard.jsp.
    Here is the code for Hazard.jsp
    <html:form action="/HazSummary.do">
    <table width="100%" border="0" style="border-collapse: collapse" bordercolor="#111111" cellpadding="0" cellspacing="0">
         <tr colspan="4"><td>
         <%String jd="jmd";
         String st="closed";%>
         <input type="text" name="wkploc" value=<%=jd%>>
         <input type="text" name="hastat" value=<%=st%>>
    <html:submit property="action">
    <bean:message key="haz.save.label"/>
    </html:submit>
         </td></tr>
    </table>
    </html:form></body>
    Here is the code for HazardSummaryAction.java
    package com.prospecta.WSOProject.action;
    import java.io.IOException;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.http.HttpSession;
    import org.apache.struts.action.Action;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionForward;
    import org.apache.struts.action.ActionMapping;
    public class HazSummaryAction extends Action{
         public String hazstatus;
         public String workplace;
         public String prin1;
         public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
              HazardSummaryForm hsf = new HazardSummaryForm();
              HttpSession session = request.getSession(true);
         try{
         hazstatus=hsf.gethastat();
         System.out.println(hazstatus);
         workplace=hsf.getwkploc();
         System.out.println(workplace);
         session.setAttribute("stat",hazstatus);
         session.setAttribute("loc",workplace);
         return mapping.findForward("success");
         catch(NullPointerException nex){
              return mapping.findForward("failure");
              }catch(Exception e)
         e.printStackTrace();
         return mapping.findForward("failure");
    Here is the code for HazardSummaryForm.java
    package com.prospecta.WSOProject.action;
    import org.apache.struts.action.ActionForm;
    public class HazardSummaryForm extends ActionForm {
         public String wkploc;
         public String hastat;
         public void setwkploc(String wkploc)
              this.wkploc=wkploc;
         public String getwkploc()
              return this.wkploc;
         public void sethastat(String hastat)
              this.hastat=hastat;
         public String gethastat()
              return this.hastat;
    Here is the code for Struts-config.xml file
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
    <struts-config>
         <form-beans>
    <form-bean name="HazSumForm"     type="com.prospecta.WSOProject.action.HazardSummaryForm">
                   <form-property name="wkploc" type="java.lang.String"/>
                   <form-property name="hastat" type="java.lang.String"/>
         </form-bean>     
         </form-beans>
    <action-mappings>
    <action path="/HazSummary" input="/HazSumForm" name="HazSumForm" scope="request" validate="false" type="com.prospecta.WSOProject.action.HazSummaryAction">
                   <forward name="success" path="/HazardSummary.jsp"/>
                   <forward name="failure" path="/Hazard.jsp"/>
              </action>                                         
         </action-mappings>
         <controller processorClass="fr.improve.struts.taglib.layout.workflow.LayoutRequestProcessor" locale="true"/>
         <message-resources parameter="com.prospecta.WSOProject.ApplicationResources"/>
         <plug-in className="org.apache.struts.tiles.TilesPlugin">
              <set-property property="definitions-config" value="/WEB-INF/tileDefinitions.xml"/>
         <set-property property="moduleAware" value="true"/>
         <set-property property="definitions-parser-validate" value="false"/>
         </plug-in>
         <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
         <set-property property="pathnames" value="/WEB-INF/validator/validator-rules.xml,/WEB-INF/validator/validations.xml"/>
         </plug-in>
    </struts-config>
    i followed the same process for previous pages which they are working. But in this case it was not working properly.
    Please resolve this problem ....................

    Hi Sreelatha,
    When you develop any interactive form please keep in mind the below things which you need to check:
    1. The layout type of the form should be ZCI. Select it from the form properties tab in SFP t-code.
    2. In web dynpro application (in case you are using for the form), the form type should be selected as native.
    3. In the form layout insert web dynpro script using menu->utilities->insert web dynpro script.
    4. After that come out of the form and run the report FP_ZCI_UPDATE giving your form name, also select the update check box in the report.
    Once these things are done your form should work fine.
    Regards,
    Vaibhav

  • Propagation Issue - Workflows are not propagating

    Hi All,
    I am working on Weblogic Portal 10.2 and using MySql 5.0.
    I am propagating data from Windows env to Linux server Using Ant Tool.
    Destination environment having only initial data , means data created during domain creation.
    But Custom workflows are not moving from source to destination during propagation.
    Pls suggest what changes to be done to propagate workflows succesfully
    Thanks & Regards,
    Srinivas
    Edited by: SrinivasJ on Dec 4, 2008 9:47 PM

    Hi Srinivas,
    I'm not aware of any issues with propagating workflow definitions, but I know that the workflow status of content items is not propagated. If that is the only issue you are having then perhaps the bulk update tool would be of use?
    http://download-llnw.oracle.com/docs/cd/E13155_01/wlp/docs103/cm/libraryServicesCM.html#wp1084746
    It allows you to change the status of several content items in a single operation. The docs only show the bulk update tool being used in the "Assigned Items" folder, but it is also available in the "Checked-Out Items" folder.
    If that tool is not flexible enough to do what you need to do then it is possible to use the Content Management APIs to develop a simple JSP or portlet that changes the workflow status of whatever items you want. I know that some people did this before the bulk update tool became available in version 10.2.

  • Avoiding the LOB chunk updates as LOB columns are not propagated.

    Hi,
    We have a setup where we are using the streams along with messaging gateway to propagate the changes to websphere MQ. we are deleting the LOB columns at the capture process itself using the delete_column function. but in case of LOB tables, insert statements are propagating in two parts(1 insert and 1 update, which is for lob column). we need to eliminate this second statement(update) as we do not require this statement. any help would be greatly appreciated.
    Regards,
    Ankit

    This amount to a transformation on the capture. You have no choice than abandon the built in function and create a transform function and attach this transform function on the capture using an action context. Action context are process that automatically fire.
    I wrote a note on this, it is not an easy matter but there is enough information on how to do it.
    http://sourceforge.net/apps/mediawiki/smenu/index.php?title=How_to_Transform_capture
    If nevertheless you find a way to use a transform function at capture site using a built in function, please let us know.

  • Images of other user profiles are not shown on extended FBA site

    Hi.
    We have extended our main Web Application and configured FBA authentication. The proble is then we access the extended site we can not see picture from Users' Profiles. I tried to configre FBA for my site by adding role and membership providers and change site
    collection secondary administrator for My Site Web Application to FBA User, but unsuccessfully. 
    Is any way to fix this? 
    Thanks

    Hi,
    If you get the error message, please check the SharePoint ULS log to find more information about this error, the ULS log file is in the location: C:\Program Files\Common Files\Microsoft
    Shared\Web Server Extensions\14\LOGS
    You can check the ULS log by the methods here:
    http://blogs.msdn.com/b/opal/archive/2009/12/22/uls-viewer-for-sharepoint-2010-troubleshooting.aspx
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Extending classes at runtime

    Hi,
    Is there a way to extend a class at runtime? What I'd like to do is the following:
    I want to have a tabbed pane component that does not stretch its tabs when there are several lines of tabs. The stretching of the tabs is implemented in the UI component of JTabbedPane - and this depends on the look & feel - it can be MetalTabbedPaneUI, WindowsTabbedPaneUI, etc.
    I want to extend the currently-used UI class (which is only known at runtime) with my own class that overrides a single method.
    I can extend all those that I currently know and use some mapping from the currently used class to the one extending it - but tomorrow someone may install a new look & feel which uses a different UI component, for which I will not have an extending class.
    Therefore, I'd like to find the currently used UI component class and extend it at runtime.
    Thanks,
    Shlomy

    Shlomy-Reinstein wrote:
    Thanks. It's a good solution, but it requires me to write wrappers for all the public methods of BasicTabbedPaneUI, doesn't it? All I'm interested in is to override a single method. If there is no easier way, that's okay, but since there are scripting languages that interface with Java (e.g. BeanShell), in which I can extend classes, I thought there should be an easy way to extend a class at runtime.You don't write code that is "easy". You write code that is correct.
    If there are several different ways to write code which are all correct then you use other criteria to determine the best one. The first criteria is how much maintenance each would require. And how complex each solution would be. Complexity also impacts maintenance.
    And nothing I have seen in this thread would suggest that anything but a wrapper is a correct solution. Certainly unless you can demonstrate that it would not work then I doubt anything would be better.
    And using beanshell just so you don't have to type is definitely not the correct solution.

  • Reservations are not creating for a stock item PO

    Hi All,
    I have an issue with reservations for a stock material PO,
    Our's is extended classic scenario(BBP 3.0 & R/3 4.7), I have created a cart and approved the cart for a stock materials.
    As per business process, for a stock materials reservations are to be created but here after cart approval, under follow on documents tab, I am not getting any reservation details except shoopping cart number and its approval status.
    Can any one have idea on it?
    Through me some light,
    Thanks in advance,
    Govardhan,V.

    Hi. Reservations are not supported in extended classic.
    Or at least they were not when I last asked SAP about 3 years ago.
    Unless something has changed the only solution was to use the BADI BBP_EXTLOCALPO_BADI to deactivate extended classic if it is an item you want a reservation for.
    You would then end up using the classic scenario for these reservation items only.
    Regards,
    Dave.

  • Document Set shared columns not propagated to documents newly added

    I have a Document Set with shared Managed Metadata and Person fields.
    I have found that sometimes some managed metadata fields are not propagated to newly added documents using drag and drop with Windows Explorer.
    [ Note : Sharepoint 2013 with SP1 ]
    Example
    Field A = Person or group (optional)
    Field B = Managed Metadata (optional)
    Step 1 :
    I create a new Document Set (lets call this one docset X), with field A empty and field B with a value.
    I save this docset then open the document library in Windows Explorer and finaly, drag and drop a document inside the folder of this newly created docset.
    When I look at the properties of the document, I found that there is no value in the field B even if it's not the case of the docset.
    Step 2 :
    I create another Document Set (lets call this one docset Z), and add a value inside field A and field B.
    Again, I save this docset then open the document library in Windows Explorer and finaly, drag and drop a document inside the folder of this newly created docset.
    When I look at the properties of the document, I found that there is a value in the field B and in the field A.
    Conclusion
    So it seems that the propagation of field B depends on if there is a value inside field A.
    It does not make sense.
    Any ideas ?

    Hi vinz,
    I tried many times and couldn't reproduce your issue in my environment(SP 2013+SP1), manged metadata field value in Docuemnt Set content item always could be propagated to documents dragged/dropped in this doc set folder via Windows Explorer regarding
    other fields value.
    You may try to test on other lists, site collections or web applications (may also test with new manged metada term store), see if this issue could be reproduced or isolate, the manged metada column value shouldn't be depend on other column value.
    Also check ULS log, see if there is any related error message generated when the document is dragged to the library windows explorer with this issue.
    http://blogs.msdn.com/b/opal/archive/2009/12/22/uls-viewer-for-sharepoint-2010-troubleshooting.aspx
    Thanks
    Daniel Yang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Photo edits in aperture are not being updated in Photostream

    I want to edit photos in iPhoto on an iPad mini and also in Aperture and have the changes synchronised either using photostream or a direct connection. Try as I may I can't get this to happen. If I move a photo in Aperture to the photostream then it appears on the iPad and vice versa. If I subsequently edit a photo on either device the changes are not propagated to the other device and the photostream image is not updated. Can anyone tell me what I am doing wrong, or is this feature simply not supported.

    Photo Stream can be used to automatically share photos to other devices, but it will not sync the photos. If you edit photos and want to share the edited version as well, you will have to add this edited version again to the Photo Stream. Also the photos will not be stored in the Photo Stream for more than a month.
    You might consider to use iTunes Photo sync instead:
    iOS and iPod: Syncing photos using iTunes
    With iTunes Photo Sync you can update the albums synced to your iPad, when you change the albums and edit the photos on your mac, but changes done on your iPad will also not sync back. You have to reimport the edited photos from your iPad.
    There is simply no simple way yet to sync iPad and Mac, if you are looking for a solution to do some editing on your iPad and keep iPad and Mac in perfect sync.
    Maybe some third party software can do that, but neither the Photos app nor iPhoto on iPad has means to do that.
    Regards
    Léonie

  • Webparts and user in source variation site's page not propagating target site's page

    Hi ,
    I have issue with variation.
    1) User in people picker field in source page not propagating in target page
    2) Webparts in source page are not propagating in target page
    No error in ULS log.
    Thanks,
    Dinesh

    Hi Dinesh,
    Please provide some screenshots about your issue.
    Please make sure you have selected "Update Target Page Web Parts" under Site Collection Administartion->Variations.
    In addition, please check if the link is useful:
    http://technet.microsoft.com/en-US/library/ff628966(v=office.15).aspx
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • User and group field values not propagating in Sharepoint 2013 variation

    Hi,
    I have a issue, we have a User and group field in my Content type and this content type is attach to Pages library.
    I created one Page in source variation site and fill User and Group field with two user one is domain user and another is sharepoint\system account user.
    After variation work and page propagate to target variation , there is only sharepoint\system account and no domain user in user and group field.
    *****The main issue is domain user are not propagating in target variation site's fields.
    Thanks,
    dinesh

    can any one hep me on this

  • 'My Application Page' is not allowed here because it does not extend class 'System.Web.UI.Page'

    I have a custom SharePoint 2010 solution that includes an aspx page. The aspx page in is in the /layouts folder within the solution and I created it by just adding an application page to the solution. I am trying to create a parent-child relationship between
    two different lists in SharePoint. From the parent I have a custom button on the ribbon that creates a child item with the ID of the parent stamped on it.
    The page is just a processing page that forwards on parameters from the parent to the new child item. (i.e. the ID value)
    The code generated when I add the aspx page is below:
    <%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
    <%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
    <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
    <%@ Import Namespace="Microsoft.SharePoint" %>
    <%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="processingpage.aspx.cs" Inherits="MY.Solution.Layouts.MY.Solution.processingpage" MasterPageFile="~/_layouts/application.master" %>
    <asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
    </asp:Content>
    <asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    </asp:Content>
    <asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server"> Processing Page </asp:Content>
    <asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server" > Processing Page </asp:Content>
    The code behind is as follows:
    using System;
    using Microsoft.SharePoint;
    using Microsoft.SharePoint.Administration;
    using Microsoft.SharePoint.WebControls;
    using Microsoft.SharePoint.Utilities;
    using System.Reflection;
    namespace MY.Solution.Layouts.MY.Solution
    public partial class processingpage : LayoutsPageBase
    protected void Page_Load(object sender, EventArgs e)
    try
    //Get a reference to the SPWeb object
    SPWeb oWeb = SPContext.Current.Web;
    //Use the Parameters That Are Passed In
    SPList thisList = oWeb.Lists[new Guid(Request.QueryString["List"])];
    SPListItem thisItem = thisList.GetItemById(int.Parse(Request.QueryString["ID"]));
    sContentType = thisItem["ContentType"].ToString();
    sContentTypeID = thisItem.ContentTypeId.ToString();
    if (sContentType == "Some Content Type")
    sContentTypeID = "";
    sAIID = thisItem["ID"].ToString();
    //Redirect to newform.aspx with the Appropriate parameters.
    Context.Response.Redirect(oWeb.Url + "/Lists/Blist" + "/NewForm.aspx?AIID=" + sAIAuditID.ToString() + "&ContentTypeId=" + sContentTypeID + "&ParentItemID" + Context.Request["ID"]);
    else if (sContentType == "Some Content Type")
    sContentTypeID = "";
    sAIID = thisItem["AIID"].ToString();
    //Redirect to newform.aspx with the Appropriate parameters.
    Context.Response.Redirect(oWeb.Url + "/Lists/AList" + "/NewForm.aspx?AIID=" + sAIID.ToString() + "&ContentTypeId=" + sContentTypeID + "&ParentItemID" + Context.Request["ID"]);
    else if (sContentType == "Some Content Type")
    sContentTypeID = "";
    sAICID = thisItem["AICID"].ToString();
    //Redirect to newform.aspx with the Appropriate parameters.
    Context.Response.Redirect(oWeb.Url + "/Lists/CList" + "/NewForm.aspx?AICID=" + sAICID.ToString() + "&ContentTypeId=" + sContentTypeID + "&ParentItemID" + Context.Request["ID"]);
    else
    LoggingService.LogError("MY.Solution - Processing Page", "No Applicable Content Type Found.");
    catch (Exception ex)
    LoggingService.LogError("My.Solution - Processing Page", ex.Message);
    finally
    //DO SOME FINAL THINGS HERE WHEN REQUIRED.
    In the page I need to use Request.QueryString to get the values from the URL. But when I deploy the solution and load the page I get the error:
    'MY.Solution.Layouts.MY.Solution.processingpage' is not allowed here because it does not extend class 'System.Web.UI.Page'.
    When I change the line:
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="processingpage.aspx.cs" Inherits="MY.Solution.Layouts.MY.Solution.processingpage" MasterPageFile="~/_layouts/application.master" %>
    to inherit as follows:
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="processingpage.aspx.cs" Inherits="Microsoft.SharePoint.WebControls.LayoutsPageBase" MasterPageFile="~/_layouts/application.master" %>
    it does not work either.
    If I change it to inherit like below:
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="processingpage.aspx.cs" Inherits="System.Web.UI.Page" MasterPageFile="~/_layouts/application.master" %>
    it also does not work.
    What does this error actually mean?  And why doesn't the default code generated by Visual Studio work?

    @NadeemYousuf I have tried this too and it didn't work.  
    What does the error even mean?  And why does the error appear with default Visual Studio code?  In my example I have just added a basic application page with no other code in it and it still does not work.

Maybe you are looking for