Accessing the pageContext in sling scheduled service

I have defined a class that will implement a sling scheduler for specific jobs.  I have access to the componentContext and bundleContext.  I have tried using the bundleContext to get the referenced service for CQ5 to gain access to the request.  I have also tried using annotations and setting up a reference to the repository to get the JCR object, which is returning the node refrerence.  However, my end result is to access actual page objects from cq.  I found documentation on using JcrResourceResolverFactory to get the resourceResolver but the class has been deprecated and resourceResolverFactory is recommended for use - which is throwing type is unresolved.  So essentially I would like to just the pageContext or resourceResolver in the simpliest way for my class (I have more experience with custom taglibs).

I am getting the resourceResolverFactory from the bundleContext using the serviceReference.  I used the session for the authentication, it appears to be giving me the resourceResolver and from there I can access the pageManager.  I was able to resolve the error with the imported classes.
Thank you

Similar Messages

  • Not able to access the URL for this web service (BPR)

    1. Start SAP Solution Manager and call transaction SICF.
    2. Right-click on default_host/sap/bc/solman, for example, and
    select Enable service. When the service is enabled, additional
    subgroups are visible.
    Enabling reveals the URI of the Web service. In this case, it is
    /sap/bc/solman/bpr. The protocol type is http. If you right-click
    on bpr and select Display service i got the below error
    <soap:Envelope soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding">
    <soap:Header/>
    u2212
    <soap:Body>
    u2212
    <soap:Fault>
    <soap:faultcode>Client</soap:faultcode>
    <soap:faultstring>Missing SOAP envelope.</soap:faultstring>
    </soap:Fault>
    </soap:Body>
    </soap:Envelop
    Regards,
    Neni

    Hello Neni,
    In most circumstances this error was caused by incorrect customizing, an external alias for the default host /sap/bc/solman/defaultuser had an incorrect target handler assigned to it.
    Solution Manager's IMG and documentation (www.service.sap.com/solutionmanager) should detail the correct
    value to use.
    The correct values can be maintained in SICF.
    On top of this, please review the following URL for external aliases documentation:
    http://help.sap.com/saphelp_sm40/helpdata/en/78/9852bdc06b11d4ad310000e83539c3/frameset.htm
    Thanks,
    Mark

  • Error while accessing the transfer rules after installation

    I get the status " Idoc type in the source system is not available"  when i try to access the transfer rules of delivery service ,0sd_c04 infocube. can anyone help me to fix the error.

    Hi Hari,
    How  you installed Transfer rules, is it through BC.
    Check the Data Structure in Info Source , whether all fileds are available or not.
    First delete Transfer structure and again propose the transfer rules, activate it.
    Let us know status.....
    Reg
    Pra

  • SCCM 2012 SP1 - Offline Servicing failure - Failed to find or access the update binaries to be applied on the image

    Hi there
    Trying to patch a new Windows 7 SP1 image within SCCM 2012 SP1, but it's failing.
    I've searched for information on the failure messages I am seeing, but although there is a LOT of information online concerning Offline Servicing failures, I can't find anything on the errors I am seeing.
    I've tried injecting a single update, five updates and ten updates, no difference, same messages.
    We have McAfee Access Protection disabled, as we know Offline Servicing simply won't work if this is running.
    In the console, in Schedule Update Status for the image I am trying to update, the following message is shown:
    "Failed to find or access the update binaries to be applied on the image."
    That sounds as if the process can't find the actual .cab file for any update I've tried to inject, but I don't know why it wouldn't be able to do that, we have Software Updates configured and the .cab files are on the same server.
    When I looked at the OfflineServicingMgr.log file, I see the following entries:
    Processing image at index 1        SMS_OFFLINE_SERVICING_MANAGER        14/06/2014 14:52:49        8272 (0x2050)
    Mounting image at index 1. Image file='D:\ConfigMgr_OfflineImageServicing\PackageID\W7_Image.wim', MountDirectory='D:\ConfigMgr_OfflineImageServicing\PackageID\ImageMountDir', ImageFileType='WIM', Mode='ReadWrite'        SMS_OFFLINE_SERVICING_MANAGER       
    14/06/2014 14:52:49        8272 (0x2050)
    Image OS information : MajorVersionMS = 6, MinorVersionMS = 1, MajorVersionLS = 7601, MinorVersionLS = 17514        SMS_OFFLINE_SERVICING_MANAGER        14/06/2014 14:53:31       
    8272 (0x2050)
    Failed to find properties of file 4        SMS_OFFLINE_SERVICING_MANAGER        14/06/2014 14:53:31        8272 (0x2050)
    UnMounting Image (Commit Changes = 0) ...        SMS_OFFLINE_SERVICING_MANAGER        14/06/2014 14:53:31        8272 (0x2050)
    Completed processing image package PackageID. Status = Failed        SMS_OFFLINE_SERVICING_MANAGER        14/06/2014 14:54:04        8272 (0x2050)
    Updated history for image package PackageID in the database        SMS_OFFLINE_SERVICING_MANAGER        14/06/2014 14:54:04        8272 (0x2050)
    Schedule processing failed        SMS_OFFLINE_SERVICING_MANAGER        14/06/2014 14:54:04        8272 (0x2050)
    Processing completed for Schedule with ID 16777237        SMS_OFFLINE_SERVICING_MANAGER        14/06/2014 14:54:04        8272 (0x2050)
    STATMSG: ID=7910 SEV=E LEV=M SOURCE="SMS Server" COMP="SMS_OFFLINE_SERVICING_MANAGER" SYS=SCCMServer.domain SITE=Site_Code PID=8560 TID=8272 GMTDATE=Sat Jun 14 13:54:04.964 2014 ISTR0="16777237" ISTR1="" ISTR2=""
    ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=0        SMS_OFFLINE_SERVICING_MANAGER       
    14/06/2014 14:54:04        8272 (0x2050)
    Schedule processing thread stopped        SMS_OFFLINE_SERVICING_MANAGER        14/06/2014 14:54:05        8272 (0x2050)
    I'm not sure what file "Failed to find properties of file 4" is referring to, whether dism.exe, an update or the image itself, but immediately after this message appears the image is unmounted. After that this message shows:
    "Completed processing image package PackageID. Status = Failed"
    As I say, there's a lot of information available re Offline Servicing but I haven't found anything with these particular messages.
    If anyone has encountered this before, I'd appreciate any information you have.
    Regards,
    John.

    Hi,
    I think file named 'NO_SMS_ON_DRIVE.SMS’ might be causing this issue. If this file is present in logical drives, then please give it a shot one more time after deleting this file from the logical drives.
    Due to this file, it might be preventing 'smsexec' service to skip the drive when looking for content. So worth a try!
    After deleting this file, you also need to restart 'smsexec' service to reflect the changes. You can also verify from below registry value & ensure that all of your logical drives (specially where SCCMContentLib directory resides) should be listed
    over there 
    'HKLM\Software\Microsoft\SMS\DP\ContentLibUsableDrives'
    Hope this will help!
    Cheers | Navdeep Sidhu

  • The "Scheduler" service is not in my management panel

    I'm trying to use /sign up for the scheduler service but I can't find it in my account. Basically it doesn't show up ( http://www.windowsazure.com/en-us/services/scheduler/ ) . 

    Hi,
    Kindly follow up this thread.
    Here is a snippet of this thread.
    At the moment you can only access the scheduler through the REST API or through the Management libraries. You won't get an email when the feature is activated and you won't see it in the portal.
    More info about the API: http://msdn.microsoft.com/en-us/library/windowsazure/dn528946.aspx More info about the Management libraries:
    http://fabriccontroller.net/blog/posts/a-complete-overview-to-get-started-with-the-windows-azure-scheduler/
    Hope this helps
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to access the Web Service Browser

    Hi,
    I need to access the Web Service Browser to generate a Web Service Description.
    How can I do it?
    I use the follow url:
    http://<host_name>:<port_number>/sap/bc/bsp/sap/WebServiceBrowser/search.html?sap-client=<relevant_client>
    but I can't say how to determine values for the three placeholders.
    Help me please.
    THANKS

    Hi Andrea,
    you can access the web services in sap transaction SICF. Then right click on the
    service and choose "test". The hostname is the host on where the sap system
    runs.
    The port ´number can be seen in transaction SMICM -> shift + F1. Here you can see
    the portnumer assigned to the HTTP protocol.
    And the client is the sap client (standard client) for which the service is configured.
    Hope this helps.
    KR,
    Andreas

  • Excel Automation with Interop - Windows Service - Microsoft Excel cannot access the file

    I have a windows console application, which automates Excel. In our scenario the application gets called from a Windows Service. If the console app is executed directly everything works fine. If the console app is executed through the Win Service, we get
    the following error when trying to open the excel file:
    Unhandled exception Occured : 'Microsoft Excel cannot access the file 'bla.xls'. There are several possible reasons:
    The file name or path does not exist.
    The file is being used by another program.
    The workbook you are trying to save has the same name as a currently open workbook.'.'
    The code snippet used to open the file:
    xlApp = new Application();xlApp.Visible = false;xlApp.UserControl = false;xlApp.Application.ScreenUpdating = false;xlApp.DisplayAlerts = false;xlWorkbook = xlApp.Workbooks.Open( Filename: filePath,  UpdateLinks: 2,  IgnoreReadOnlyRecommended: true, Editable: false);
    The console app and windows service are running on a Win Server 2008 64-bit OS with Excel 2013 32-bit installed. The service is running with a special user account, which has all the right permissions on accessed files and folders. The excel process is also
    started with the same account (I cheched that one). 
    I already tried to do the following, but to no avail:
    Run excel.exe /automation -> worked fine
    Created the folders and also gave full control to the account under which the service is run (even gave full control to Everyone)
    C:\Windows\SysWOW64\config\systemprofile\Desktop
    C:\Windows\System32\config\systemprofile\Desktop
    Configured DCOM
    Excel Application -> Identity -> Specific user account
    Excel Application -> Identity -> Interactive User
    Excel Application -> Security -> Launch permissions -> Everyone full control
    Several combinations of the above
    So I really am stuck with this problem right now. Any input on this is appreciated.

    I have a windows console application, which automates Excel. In our scenario the application gets called from a Windows Service. If the console app is executed directly everything works fine. If the console app is executed through the Win Service, we get
    the following error when trying to open the excel file
    Microsoft does not currently recommend, and does not support, Automation of Microsoft Office applications from any unattended, non-interactive client application or component (including ASP, ASP.NET, DCOM, and NT Services), because Office
    may exhibit unstable behavior and/or deadlock when Office is run in this environment.
    If you are building a solution that runs in a server-side context, you should try to use components that have been made safe for unattended execution. Or, you should try to find alternatives that allow at least part of the code to run client-side.
    If you use an Office application from a server-side solution, the application will lack many of the necessary capabilities to run successfully. Additionally, you will be taking risks with the stability of your overall solution.
    You can read more about that in the
    Considerations for server-side Automation of Office article.

  • An error occurred while trying to access the service?

    I'm trying to convert a PDF into Excel but I get the message 'an error occurred while trying to access the service'.
    I have tried logging into my Adobe account online and doing it within there, but once I have exported the file and pressed 'convert' it simply says 'conversion failure' with no explanation.
    My subscription is still valid, so I don't see why the problems?  Has anyone else had this issue and managed to fix it?  I get the error message regardless of whether I'm trying to convert to Word or Excel.
    Any ideas greatly appreciated!!
    Thanks
    Sophie

    Hi SHurcs,
    I'm sorry that you're having such trouble with your ExportPDF subscription. Does this error occur for one particular file, or with any file that you try to convert? What operating system and browser are you using?
    To get us started, here are a few things that you can try:
    In Reader, sign out, and then sign back in.
    Use a supported web browser:  http://www.adobe.com/acom/systemreqs/
    Clear the browser cache.
    If you're using a networked computer, make sure that there are no firewall/proxy settings that prevent you from uploading files to the Internet.
    Make sure that the files you're trying to convert are within the file-size limits for ExportPDF (100 MB).
    If the problem persists, please let us know, and tell us a bit more about the files that you're converting.
    Best,
    Sara

  • An error occured while trying to access the service

    i'm continually having issues with trying to convert my files from PDF to excel.  I keep on getting the error message "An error occured while trying to access the service" with no real explanation as to what is wrong.  I've tried several times on several different computers, logging on and off, changing users...same message everytime.  I have a time sensitive project to complete, and can't get it done if this conversion can't be done.  HELP!

    Hi J,
    Here are a couple documents that may assist you:
    'Getting started' guide
    FAQ
    Let me know if those help!
    Kindest regards, Stacy

  • Im trying to convert a PDF into an excel document and I keep getting an error message that reads "An error has occurred while trying to access the service". WHat am I doing wrong?

    Im trying to convert a PDF into an excel document and I keep getting an error message that reads "An error has occurred while trying to access the service". WHat am I doing wrong?

    it seems my subscription had expired so I signed up again.. It was still having trouble so I repeated the sign up process again.. Then it worked perfectly.. Unfortunately, I think I just subscribed twice and need to cancel one of them. Ugh. Such a pain when I'm trying to get this project completed. I'll be canceling at least one of the subscriptions in the morning. Adobe is not my favorite company right now. None of this was intuitive. And trying to get help was an absolute waste of an hour.
    Regards,
    Nathaniel
    [removed by moderator]

  • Why am I getting an error while accessing the service pop up when I try to convert a doc from pdf to a doc?

    I keep getting a pop up of "error while trying to access the service" when I am trying to convert a pdf to a doc?

    Hi snork8253,
    Please let me know the exact workflow you are following when you get this error.
    Are you trying to convert from within Reader or from Browser?
    If from Reader then make sure you are signed in within Reader
    Also try updating Reader to the latest v11.0.09 and check.
    Regards,
    Florence

  • "error while trying to access the service"

    I am trying to convert a pdf file to an excel file.  I get a completely unhelpful message that says  "error while trying to access the service" .
    What does this mean and how do i fix it?

    Hi sd433m,
    Thank you for posting on the Adobe forums. If you are already subscribed to the service, kindly try the steps mentioned below.
    1) Open Adobe Reader  Edit>preferences
    2) Go to Adobe Online services>change the email address to the one you have subscribed the service with
    3) Go to identity> change the email address there as well
    4) Click OK
    5) Restart the Adobe Reader and try to access the service again.
    If you have not subscribed to the service please do that as, we do not offer trial for Create PDF.
    Thanks,
    Vikrantt Singh

  • Getting Error while accessing the data using odata service

    Hi All,
    Iam new to SAP FIORI. 
    Iam getting the below error while accessing the data using odata service.
    "Failed to load resource: the server responded with a status of 404 (Not found)"
    "No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin "
    i have tried all the solutions like changing the url pattern "proxy/htttp".
    and disabled - security in chrome (Chrome is Updated version).
    i tried with IE still got the same problem.
    And installed all the required software in eclipse
    While installing GWPA plugin i got the following error.
    let me know if any one have idea.
    Thanks in advance.

    > Do you want to add and/or update the data in the already existing tables or do you want to replace the content completely?
    >
    > so in that way :
    > bot the options are fine what ever take less time.
    Sorry mate, but YOU have to know what you want here.
    I gave you an easy to follow set of steps.
    As you don't seam to mind the outcome, just might just use them...
    > I wanted to know weathe i can use the  loadercli for thie export import or not? if yes then is there any new steps to do before i do the export import?
    We had this discussion before...
    >
    > For that the easiest option would be just to drop the tables of SAPR3 and run the import again.
    >
    > For ease of use you could also just do:
    > - logon as superdba
    > - drop user SAPR3
    > - create user SAPR3 password SOMEPW not exclusive dba
    >
    > After these steps you can easily pump the data into the database again.
    >
    > So here in th above given steps , i am creating a new SAPR3 user and why it is not exclusive dba ?
    >  i already have that user SAPR3 can i use the same.
    Yes, you do have the SAPR3 user.
    But you don't seem to like to read documentation or learn about how the tools work or anything like that.
    Therefore I gave you s simple way to reach your goal.
    Of course it's possible to reuse the user.
    But then you would have to deal with already existing tables, already existing data etc.
    You don't seem to be able to do that. So, the easy steps might be better suited for your needs.
    regards,
    Lars

  • Accessing the service desk message from satellite system

    gurus  ,
    after creating a creating a service desk message to solution manager system via HELP->CREATE SUPPORT MESSAGE ,
    how does the message creator from satellite system will view/change the message created by them at late point of time ?

    Susin,
    the problem is a commonly asked one that I get when I present the Solution Manager to customers. There is always the question: How can the user see the status of the ticket?
    From my point of view you can give them access to the worklist but I guess it is really a pain for the user to log on to SolMan and to access the information from there through a complex transaction.
    Alternatively to provide the user with access to the ticket system, you could consider sending out an email on (all or only critical) status changes from the system bei assigning an activity to the status change. That might be much easier for the user (and for you).
    After looking at and working with work centres I think it would be worth to install the neccesary patch level. It is really beneficial, for the user reporting a problem, as well as for your help desk monitoring their issues.
    Since it is a very common question, and Ruediger seems to be close to the source, can you (Ruediger) maybe provide some information how SAP is going to handle that in the future? Is SAP purely focussing on the work centers in Solution Manager, or is SAP planning on a track & trace possibility within the satellite system for the users?
    I guess there is no easy solution to your problem, but maybe I was able to provide some ideas how to provide more funtionality.
    Cheers
    Markus

  • Not able to access the links to Planning and Shared Services

    Hi,
    I am trying to access the links to Planning and Shared Services but I get the following error message.
    Error 404--Not Found
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.5 404 Not Found
    The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
    If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.
    I tried to restart all the services on all the servers and also restarted the servers but it didn't work.
    Please let me know how to fix this issue. Also please let me know where else can I find the logs to the errors.
    Thanks.

    The logs would be a good place to start, if you are not sure where to look post your OS and planning version.
    Cheers
    John
    http://john-goodwin.blogspot.com/

Maybe you are looking for