Not able to access parent instance variable in outside of methods in child

Hi,
I am not getting why i am not able to access parent class instance variable outside the child class intance methods.
class Parent
     int a;
class Child extends Parent
     a = 1; // Here i am getting a compilation error that Syntax error on token "a", VariableDeclaratorId expected after this token
     void someMethod()
          a = 1;  // Here i am not getting any compilation error while accessing parent class variable
}Can any one please let me know exact reason for this and what is the error talks about?
Thanks,
Uday
Edited by: Udaya Shankara Gandhi on Jun 13, 2012 3:30 AM

You can only put assignments or expressions inside methods, constructors or class initializors, or when declaring a variable.
It has nothing to the with Child extending Parent.
class Parent {
    int a = 1;
    { a = 1; }
    public Parent() {
        a = 1;
   public void method() {
       a = 1;
}

Similar Messages

  • Not able to access the Date variable in Bex report after SP upgrade

    Hell Experts,
    We have upgraded the support pack to 27 and after that we are not able to access date variable in Bex report.
    We are not able to restrict the Posting date on variable, we are getting the message "Operation failed! No detailed error information from backend available".
    Thanks
    Chetan

    Hi,
    carry out basic checks like RSRV for the field,query ,Infoprovider on which this query is based..
    Check whether there is any in consistent value in the posting date..
    check whether objects are active correctly..
    else serach for SAP note or raise OSS to SAP..
    Thanks and regards
    Kiran

  • Not able to access Network Shared Variable when deployed in PC

    Initially, when we deploy a Network Published Shared Variable in PC and try to access the same (Read/Write) from RT, we get an error/warning "-1950679023". But when we access the same variable from the PC, it works fine. In the distributed system manager, we can see the variable getting deployed. Also the value changes in Distributed System Manager if we write a value from PC. The attached image "Shared variable Issue.png" will give more understanding of this issue. 
    The other way round it works fine i.e deploying in RT side and accessing from both RT and PC is working fine. 
    We also see that the network adapter settings is not loading properly in MAX, if at all we install any software in RT. With no software installed, it loads properly. 
    The following were the steps that we tried to solve the issue. 
    1.Flushing the entire NI software and Re- installing again 
    2.Formatting the RT(PXI). 
    3.Removing the EtherCAT Card and testing. 
    4.Checked the network properties of the RT network. 
    5.Checked the IP/Subnet/Gateway settings. 
    6.Checked Firewall Settings, If Shared Variable Engine is accessible.
    Attachments:
    Shared variable Issue.png ‏491 KB

    First Root cause needs to be identified before any actions.
    I would suggest first check if you can access the shared variable hosted in PC from RT using other ways like using SVE API (Logos and PS protocols, Datasocket etc..)
    Check if antivirus or firewall is playing...
    Check the same experiment with some other PC if you can.
    You can also try creating another Shared Variable in RT and binding the same to the PC and try to access it...
    Since you have did all the reinstallations already
    Best Regards,
    Vijay.

  • Not able to access Site logo from layout and css After removing all the permission from site

    Hi Techis,
    I have stucked here, actually I have removed permissions from all the users from the site and after sometime I got the mails from client that they are not able to access the Site logo and css in the site.
    When I logged from Farm account and checked I can see everything working fine.Also the masterpage and all are checked in
    I am not getting whats the exact issue.I stucked here from last one day Please help me to solve this issue.
    Thanks Regards,
    Simanchal

    Hello,
    Is it the publishing site? If so then go to site permission and provide permission to "NT AUTHORITY\authenticated users" to "Style Resource Readers" group.
    You also need to make sure that "style library" is inheriting permission from parent otherwise you need to give at least read permission to library for all users. To verify this, just open view all site content page-->then click on style library,then
    check permission.
    Let us know your result
    Hemendra:Yesterday is just a memory,Tomorrow we may never see<br/> Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • We are not able to pass the presentation variables(date & Date1) to the det

    Hi,
    We have followed the below link to use the date between prompt and passed the presentation variables in the filter condition of the report criteria.
    http://obiee101.blogspot.com/2009/03/obiee-between-dates-prompt.html
    But we are not able to pass the presentation variables(date & Date1) to the detail report.
    Any suggestions are highly appreciated.
    Thanks in Advance
    Siva.

    Yes,I think it wont pass the parameters from one parent report to child report.one thing you can do is put the detailed report on a page in the same dashboard as that of prompt.Put the same between condition on that report also.Give navigation link to this page instead of report.You can hide this page as well so that it will be available only on navigation.
    i have not tried it.Give it a try.
    Regards,
    Sandeep

  • Not able to access Central admin or any other site

    My machine name has been changed from abc-xyz to DT-012
    After changing my machine name am not able to access Central admin or any other site in sharepoint. which says '
    Server Error in '/' Application.'
    Please tell me after changing machine name what else i have to change so i can access my SharePoint back.

    Hi Niraj, 
    Thanks for posting your issue, Just wanted to know have you changed server name  using below mentioned command?
    stsadm -o renameserver -oldservername oldservername -newservername newservername
    I hope, you have not changed your SQL Server name/instance. If changed SQL too. Kindly re-run the configuration Wizard of SQL server to set up Alias.
    Also, Browse below mentioned URLs to know more about the fixes of this issue
    http://www.ericjochens.com/2013/03/change-sharepoint-server-hostname-and.html
    http://www.bluesphereinc.com/blog/renaming-a-sharepoint-20102013-server/
    I hope this is helpful to you, mark it as Helpful.
    If this works, Please mark it as Answered.
    Regards,
    Dharmendra Singh (MCPD-EA | MCTS)
    Blog : http://sharepoint-community.net/profile/DharmendraSingh

  • APEX application not able to access

    Hi all,
    I am new in APEX.
    and I have to create the same environment as the client have.
    client only given me sql for importing the application developed in APEX.
    I created workspace and imported the application in that. but the client is using the active directory authentication and now when i am trying to run the application at my environment then i am not able to access the application.
    So could any one of you please guide me what i need to do with the APEX to login to the application with my active directory authentications.
    this is somehow urgent and i am not able to get any help. so could anyone guide me.
    Sanket
    Edited by: user10528895 on Oct 28, 2010 10:46 PM

    Hi ajinkya,
    Thanks for forwording the helping hand.
    but can able to mannage and found some documentas of configuration of LDAP and using the LDAP authentication at my own. and now i configured the LDAP and able to access the application.
    now the next step i am stuch is the authentication is of 2 layer 1 i passed but next is there are some of the authorizations schems created and assigned to the specific users.
    now if i want to get the information of the authentications schems and where the data store then from where i get the information that is my question
    i am using database version 10g 10.2.0 and apex 3.0.1
    Regards,
    Sanket

  • Sharepoint 2010 - Not able to access Sharepoint 2010 Public facing site on mobile browsers

    Hi All,
    Earlier, I posted a similar question in the forum , but did not get appropriate response . Posting it again with some more information .
    We are not able to access Sharepoint public facing site on Mobile browsers like chrome, IE, Safari (However the site is working fine on Firefox mobile browser and on PC/Laptops as well .)
    Following is the error we are getting :
     "Cannot set custom attribute on mobile controls in this page. Custom attributes specified are Access Key=0."
    I checked in the event logs , following was the exception :
    Exception captured in Exception HttpModule: System.Web.HttpException: Server cannot append header after HTTP headers have been sent.
       at System.Web.HttpResponse.set_RedirectLocation(String value)
       at Microsoft.SharePoint.Utilities.SPMobileUtility.Redirect(String url, SPRedirectFlags flags, HttpContext context, String queryStrings)
       at Microsoft.SharePoint.ApplicationRuntime.SPRequestModule.HandleMobilePageRequest(HttpContext context)
       at Microsoft.SharePoint.ApplicationRuntime.SPRequestModule.PostResolveRequestCacheHandler(Object oSender, EventArgs ea)
       at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
    Also, there was a microsoft OS security  patching on our farm servers post which the error starts coming . Following were the patches that were installed
    1. MS14-005          
    KB2916036          Security Update for Windows Server 2008 R2 x64
    Edition (KB2916036)
    MS14-009          
    KB2898857          Security Update for Microsoft .NET Framework 3.5.1
    2. on Windows 7 and Windows Server 2008 R2 SP1 for x64-based Systems
    (KB2898857)
    3. MS14-009          
    KB2901112          Security Update for Microsoft .NET Framework 3.5.1
    on Windows 7 and Windows Server 2008 R2 SP1 for x64-based Systems
    (KB2901112)
    4. MS14-009          
    KB2911501          Security Update for Microsoft .NET Framework 3.5.1
    on Windows 7 and Windows Server 2008 R2 SP1 for x64-based Systems
    (KB2911501)
    5. MS14-011          
    KB2909210          Security Update for Windows Server 2008 R2 x64
    Edition (KB2909210)
    6. MS14-012          
    KB2925418          Cumulative Security Update for Internet Explorer 8
    for Windows Server 2008 R2 x64 Edition (KB2925418)
    7. MS14-015          
    KB2930275          Security Update for Windows Server 2008 R2 x64
    Edition (KB2930275)
    8. MS14-016          
    KB2923392          Security Update for Windows Server 2008 R2 x64
    Edition (KB2923392)
    Has anyone of you ever faced similar(site not opening on mobile browsers) issue after installing these patches on farm servers .
    Any help would be much appreciated .
    Thanks
    Saquib Khan

    We have found below error related in ULS as well as event viewer both :
    Exception captured in Exception HttpModule: System.Web.HttpException: Server cannot append header after HTTP headers have been sent.   
     at System.Web.HttpResponse.set_RedirectLocation(String value)   
     at Microsoft.SharePoint.Utilities.SPMobileUtility.Redirect(String url, SPRedirectFlags flags, HttpContext context, String
    queryStrings)   
     at Microsoft.SharePoint.ApplicationRuntime.SPRequestModule.HandleMobilePageRequest(HttpContext context)   
     at Microsoft.SharePoint.ApplicationRuntime.SPRequestModule.PostResolveRequestCacheHandler(Object oSender, EventArgs ea)   
     at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()   
     at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
    Saquib Khan

  • User has contribute access but he is not able to access the site collection...

    User has contribute access but he is not able to access the site collection...

    What error does he get.
    Can you share fiddler trace(check if any 404 error)
    what error do we see in ULS Logs
    Create disableloopback
    registry on server
    http://support.microsoft.com/kb/926642/en-us

  • Not able to access blackberry world on Z10. what could be the reason?

    not able to access blackberry world on Z10. what could be the reason? It wasn't issue earlier but facing it from last two days.

    Please guys read other forums on this community before posting redundant issues.
    Try this fix
    Go to the games app.
    At the bottom tap on games.
    At the right bottom, you will notice three dots. Tap the dots
    Tap the option to enter the blackberry world. Wait until the screen is loaded
    Swipe right to Enter My World - > My Apps and Games.
    Tap the three dots again to check for updates.
    Update all the apps and close your App World.
    Try accessing the app world in the standard way. Everything mus be fixed by now.
    Twitter: @ukmight
    1. Click on the " Like " button if you find anything helpful posted.
    2. If any of the replies in your post has resolved your problem, mark the reply(ies) as " Solution ", so that others can readily view the solution instead of creating another redundant post.

  • Not able to access webservice after migrating from 8.1 to 10.3,plz help

    Hi All,
    Prev our application was running in weblogic 8.1 and now we moved to 10.3
    We are able to deploy our webservice in 10.3 and access the wsdl but we are not able to access the webservice from the client.
    Even the testclient is not comming up.
    After spending long time in that,now i dont have any clue on this issue.
    Plz help on this
    Thanks ni advance,
    Mouli

    Sunil,
    We are not seeing any exception.We regenerated the webservice and then deployed in the 10.3
    When we make req from the client ,we are getting null response but thing is there are no log trace in the server side for that
    folllowing is the input string we are pasing to the method notifyservice
    IN the client we pass the wsdl url and then pass the following input string and hit the notifySerivce method
    Req:
    <?xml version="1.0" encoding="UTF-8" standalone="no"?><object><GLCCode>102431</GLCCode><callBackNumber>888256798</callBackNumber></object>
    Res:
    <m:notifyService xmlns:m="http://www.testportal.com/outbound/tsp/WowWebservices">
    <result xsi:nil="true"/>
    </m:notifyservice>
    Therre was an exception in the client side,plz check below
    javax.xml.rpc.soap.SOAPFaultException: Failed to get operation name from incoming request
    at weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:317)
    at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:147)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:473)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:459)
    at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:569)
    at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:422)
    Thanks For your time,
    Mouli

  • I am not able to access my photos through the photo application... when I click on the photo app, I can see the camera roll but a transparent album screen is over it and I cannot click on the photos to see it... can any one please help ???

    I am not able to access my photos through the photo application... when I click on the photo app, I can see the camera roll, but a transparent "album" screen is over it and I cannot click on the photos to see it... can any one please help ???

    Known bug.  Quit the Camera App, double-tap the home key and delete Camera from the recent apps bar. Fire it up again, should be good.

  • User has appropriate permission, still not able to access one of the sharepoint site applications.

    Hi,
    I have tried all solutions available on internet regarding this problem but none seems to work.
    As per one solution I added the user in sharepoint site collection administrator group still no luck!
    As per another solution  I tried to run “User Profile Service Application Proxy – User Profile to SharePoint Full Synchronization”
    “User Profile Service Application Proxy – User Profile to SharePoint Quick Synchronization”
    but they dont run for some reason. Both these jobs are scheduled to run everyday but last time they ran was some date in 2011. When I click on Run Now nothing happens.
    I deleted all cache, forms password history everything.  Added the site in trusted sites and all. No luck!
    User also tried to access the site by logging onto another system but still same issue.
    This user recently joined alongwith a few more people. All of them are able to access the site except this particular user. So, a web part or unpublished page cant be the reason, right?
    This user is only able to access the home page which is say http://<siteurl:1234> application while the site which this user is not able to access is
    http://<siteurl:2345>.
    I even tried to give access through sharepoint designer but no luck! Please help!
    PS: This may not be relevant but still I'm sharing. Earlier I used to add users in manage user profiles - new profile. But now as soon as the user is added into active directory there profile is getting created automatically. This might be happening due to
    active directory and user profile sync but the question is how? Because I dont remember configuring this. And it was not configured earlier too.

    Hi,
    According to your description, my understanding is that only one user cannot access the site even though he has the right permission.
    I recommend to verify the things below:
    Check the permission of the user in the site to see if the permission is right.
    Is http://<siteurl:2345> a new site collection ? Can the user access other pages except the home page in
    http://<siteurl:1234>?
    Grant needed permission to the user in the web application to see if the issue still occurs.
    Delete the user and re-add the user in AD to see if the issue still occurs.
    Check the ULS log for detailed error message.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Not able to access human task form (11.1.1.4)

    I installed SOA Suite with BPM Suite 11.1.1.4. I ran into quite a few issues. The biggest one is I am not able to access the human task form in BPM workspace even for the new application created in 11.1.14.
    Do you have such issue? I am not sure if it is a bug or is related to my specific installation. I followed the document “Quick Start Guide for Oracle® SOA Suite 11gR1 (11.1.1.4.0) Version 1.6” for the installation. The only difference is that I installed the generic version of WebLogic and JDev and configured them to use JDK 64-bit version since my OS is windows 7 (64-bit). Before, I had installed 11.1.1.3 with 64-bit and it was working fine. The only tool installed with 32-bit is the JDev 11.1.1.3. Since JDev 11.1.1.4 is supporting 64-bit, I installed everything with 64-bit for this time.
    The details of the error are the following:
    With JDev 11.1.1.4, I created a new application which has a simple BPM process with 3 flow objects: start event-user activity-end event. The human task has the auto-generated task form. I deployed the application to the SOA server.
    When testing the application, the task was created and listed in the BPM workspace. But when I clicked the task link to open the task form, the web page was hanging. I noticed the following log was REPEATED again and again in the access.log:
    140.98.125.168 - - [20/Apr/2011:10:28:08 -0400] "GET /workflow/TestpsUI/faces/adf.task-flow?bpmWorklistTaskId=2a5b4ad1-823f-4615-8a7e-c5449a7be814&bpmWorklistContext=12aa4934-991a-487c-b7f3-5159808c399a%3B%3BtbcZXSd1E1LVZv8OIaLZGd21meLUMNkYSMsmz60kNKoEaJ1N53wy3zyRYA%2BunyKF9UNi50fPHKtaXY6IqKbh%2Fu68WebTan3zCwGsUNmNMaw8aLEygS5qb2cOGx2qGal86F%2FgiRka874PYLXhohFdDPCQyoxre2p7IgpsloLHq2rh7T3zWGnyOjLdC7Qw0Geb20Kfp8XA2UUIoxaxTHS6YFPQqqs%2FzIkyEsgMNQJMDbYYGdceRL2sT8rMkBXpmQ0r&bpmWorklistHttpURL=http%3A%2F%2Flocalhost%3A7001%2Fbpm%2Fworkspace%2Ffaces&bpmWorklistHome=home.jspx&bpmWorklistReassign=reassignTask.jspx&bpmWorklistRoute=routeTask.jspx&bpmWorklistRequestInfo=requestInfo.jspx&bpmWorklistSecurity=signTask.jspx&tz=America%2FNew_York&lg=en&cy=US&vr=&dispNameLg=en&dispNameCy=US&dispNameVr=&df=medium&dt=both&tf=short&bpmWorklistSessionTimeoutInterval=900&soaUrl=http%3A%2F%2F140.98.125.168%3A7001&bpmBrowserWindowStatus=taskFlowReturn&adf.tfDoc=%2FWEB-INF%2FHumantask_TaskFlow.xml&adf.tfId=Humantask_TaskFlow&_task-flow-return=http%3A%2F%2Flocalhost%3A7001%2Fbpm%2Fworkspace%2Ffaces%2Fadf.task-flow-return%3F_adf.ctrl-state%3De1i6yi1gq_35&_adf.winId=e1i6yi1gq_26&_afrLoop=7156779026094&_afrWindowMode=0&_afrWindowId=null HTTP/1.1" 200 5478
    Please help if you know what is going on for the issue.
    Thanks a lot,
    Helen

    Go to OEM, select the SOA Composite application you deployed.
    Under Component Metrics … click the link of the Human Workflow Component that you have the issue
    The settings of the Human Workflow Component would be displayed
    Click the Administration tab, you will get the URI setting for the human task
    update the Host name etc. as you want and click "OK" then click "Apply"
    Please note: this is just a shortcut for my own dev-env. I have not got the time to figure out why this happens. It is sure not the right solution for the production if we have the issue in the prod-env, I think.

  • Not able to access DB on VM after getting Reserved IP

    Hi,
    I have Reserved an Public Virtual IP for my VM 23.102.xxx.xxx  The OS WIN server 2012 R2 and and has SQL server 2012 running on it.
    Problem:
    1. I'm not able to access the DB or connect to the server form outside( from my local machine). I was able to connect when the Public Virtual IP wasn't reserved.
    2. As my website is hosted on the same VM, I use the Internal IP address as the Binding IP address, however I recently noticed that the Internal IP address has changed and my website was down.
    3. How do I prevent the Internal IP address from changing. So that I don't have to reset my webconfig and binding IP address frequently?

    Hi,
    Thanks for your question.
    1. How did you connect to the VM? I recommend you to use DNS name of the cloud service(xxx.cloudapp.net) with the public port for RDP to connect to see if the issue persists.
    2. In general, if you shut down an Azure VM to stopped (deallocated) status, the resources for the VM will be released and the internal IP address may be changed.
    3. You can assign a static internal IP address to an existing VM if it is in a virtual network. For more detailed information, please refer to the link below:
    Configure a Static Internal IP Address for a VM
    Best regards,
    Susie
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

Maybe you are looking for

  • Monitors Blinking with Mini DisplayPort to HDMI

    I have two monitors (Samsung SyncMaster SA550 & Dell S2409W) that constantly blink when hooked up via a Mini DisplayPort to HDMI. The only thing that solves the problem is to use a Mini DiplayPort to  VGA adapter. But, I'd like to utilize the HDMI. M

  • Javascript error when adding Flash movie to DWCS3

    When I try to add a Flash movie to a page in DW CS3, I get the following message: When executing onClick Options.htm, the following Javascritp Error(s) occurred: At line 55 of the file "I:\Program FIles\Adobe\Adobe Dreamweaver CS3\Configuration|Comma

  • Using web service as data source on CRXIR2

    hello i do have some trouble connecting SYBASE ASA acting as web service and my report. it work fine with CRXI and i get error 411 on CRXIR2 when sniffing trame on network it seem that in HTTP layer the content-length is not generated by CRXI ... in

  • Exception while retrieving deleted document using metadata based query

    Hi, I am using dbxml 2.4.11 on Mac OS 10.5. My xml documents are stored in the dbxml with some metadata. Index on metadata is built. After delete a document I get an exception (error code is DATABASE_ERROR) while trying to use metadata based query: c

  • Web dynpro ALV table copy selected row

    How to copy a selected row into new row with same values. Thanks