Classification Service for ESR

Hello gurus,
does anybody know the classification service provided by SAP ES Workplace?
WSDL: http://xi.esworkplace.sap.com:50200/ClassificationService/CS?wsdl
Endpoint: http://xi.esworkplace.sap.com:50200/ClassificationService/CS?style=document
I am trying to write a simple web service client for this web service.
When calling the operation <b>getAllClassificationSystems(1, 1, 1, 1</b>) I get the following error:
An error occurred invoking the specified method.
; nested exception is:
     org.xml.sax.SAXException: Invalid element in api_v1.classification.sap.com.ClassificationSystemList - actualCount
I tested the web service with JCows Generic Web Service Client (http://www.jcows.org/?page=4&lang=de). I also get a similar error when using the Web Service Client Wizard of SAP Netweaver Composition Environment.
As I can see with TCPmonitor, from the endpoint I receive a meaningful <b>response </b> like this:
<SOAP-ENV:Envelope xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <SOAP-ENV:Header>
    <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
      <wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
        <wsu:Created>2007-05-16T13:10:10Z</wsu:Created>
        <wsu:Expires>2007-05-16T13:10:40Z</wsu:Expires>
      </wsu:Timestamp>
    </wsse:Security>
  </SOAP-ENV:Header>
  <SOAP-ENV:Body>
    <ns1:ClassificationSystemList version="10736" xmlns:rn0="http://schemas.xmlsoap.org/soap/encoding/" xmlns:rn1="java:sap/standard" xmlns:rn2="urn:uddi-org:vscache_v3" xmlns:rn3="urn:java/lang" xmlns:rn5="urn:uddi-org:api_v3" xmlns:rn4="urn:com.sap.classification.transport" xmlns:ns1="urn:com.sap.classification:api_v1">
      <ns1:listDesc>
        <ns1:actualCount>9</ns1:actualCount>
        <ns1:includedCount>1</ns1:includedCount>
        <ns1:listHead>1</ns1:listHead>
      </ns1:listDesc>
      <ns1:ClassificationSystem valuesVersion="12">
        <ns1:id>uddi:uddi.sap.com:categorization:business-object</ns1:id>
        <ns1:name>Business object</ns1:name>
        <ns1:description>The SAP business object UDDI category system and SR classification system. Business objects are part of the Enterprise Service Architecture meta-model.</ns1:description>
        <ns1:type>FLAT</ns1:type>
        <ns1:isPredifined>true</ns1:isPredifined>
        <ns1:readOnly>false</ns1:readOnly>
        <ns1:onlyOnce>false</ns1:onlyOnce>
        <ns1:mustHaveDesc>false</ns1:mustHaveDesc>
        <ns1:normalizeCodes>false</ns1:normalizeCodes>
        <ns1:mTimeCustModService>true</ns1:mTimeCustModService>
        <ns1:mTimeSapModService>true</ns1:mTimeSapModService>
        <ns1:ideCusModService>true</ns1:ideCusModService>
        <ns1:ideCustPrgService>true</ns1:ideCustPrgService>
        <ns1:ideSapModService>true</ns1:ideSapModService>
        <ns1:ideSapPrgService>true</ns1:ideSapPrgService>
      </ns1:ClassificationSystem>
    </ns1:ClassificationSystemList>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
This is how the <b>request</b> looks like:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <soapenv:Body>
    <getAllClassificationSystems xmlns="urn:com.sap.classification:api_v1">
      <listHead xsi:type="xsd:int">1</listHead>
      <maxRows xsi:type="xsd:int">1</maxRows>
      <version xsi:type="xsd:long">1</version>
      <sortType xsi:type="xsd:int">1</sortType>
    </getAllClassificationSystems>
  </soapenv:Body>
</soapenv:Envelope>
But the problem is meet when the client tries to <b>deserialize</b> the received SOAP response.
<b>Error message</b> in SAP NWCE looks like this:
May 16, 2007 3:19:49 PM org.apache.axis.client.Call invoke
SEVERE: Exception:
org.xml.sax.SAXException: Invalid element in api_v1.classification.sap.com.ClassificationSystemList - actualCount
     at org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:258)
     at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
     at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
     at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
     at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
     at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
     at org.apache.axis.client.Call.invoke(Call.java:2467)
     at org.apache.axis.client.Call.invoke(Call.java:2366)
     at org.apache.axis.client.Call.invoke(Call.java:1812)
     at ClassificationServiceWsd.CSBindingStub.getAllClassificationSystems(CSBindingStub.java:705)
     at temp.CS3.main(CS3.java:20)
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXException: Invalid element in api_v1.classification.sap.com.ClassificationSystemList - actualCount
faultActor:
faultNode:
faultDetail:
     {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException: Invalid element in api_v1.classification.sap.com.ClassificationSystemList - actualCount
     at org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:258)
     at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
     at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
     at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
     at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
     at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
     at org.apache.axis.client.Call.invoke(Call.java:2467)
     at org.apache.axis.client.Call.invoke(Call.java:2366)
     at org.apache.axis.client.Call.invoke(Call.java:1812)
     at ClassificationServiceWsd.CSBindingStub.getAllClassificationSystems(CSBindingStub.java:705)
     at temp.CS3.main(CS3.java:20)
     {http://xml.apache.org/axis/}hostname:8A9AB9F2
org.xml.sax.SAXException: Invalid element in api_v1.classification.sap.com.ClassificationSystemList - actualCount
     at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
     at org.apache.axis.client.Call.invoke(Call.java:2470)
     at org.apache.axis.client.Call.invoke(Call.java:2366)
     at org.apache.axis.client.Call.invoke(Call.java:1812)
     at ClassificationServiceWsd.CSBindingStub.getAllClassificationSystems(CSBindingStub.java:705)
     at temp.CS3.main(CS3.java:20)
Caused by: org.xml.sax.SAXException: Invalid element in api_v1.classification.sap.com.ClassificationSystemList - actualCount
     at org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:258)
     at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
     at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
     at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
     at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
     at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
     at org.apache.axis.client.Call.invoke(Call.java:2467)
     ... 4 more
Are the generated proxies for the web service client erronous?
Is this a know problem? Or is there a mismatch between WSDL and SOAP response.
Thanks for some hints!

Hi Carlos,
For this issue the best choice is create your own Java Service. I attach you the Java code:
  Put this code in a new Java Service
         boolean success = (new File("filename")).delete();
         if (!success) {
             // Deletion failed
   Before, you must to create an input parameter in the new service where you must to save the file path. Change Filename with the input parameter variable.
   It's not difficult.
Best Regards
Ivá

Similar Messages

  • Enterprise Services Repository (ESR) available in Trial?

    Does anyone know if the Enteprise Services Repository (ESR) is included in the Full Java Edition-Trial and/or Full ABAP Edition-Trial?
    I want to try out the "outside in" approach for service-enabling newly build applications that starts by creating the interface design in the Enterprise Services Repository (ESR) using the Data Type Editor (as described in this article -> https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5e144eb2-0c01-0010-aaa4-fa0e0c12aab2)
    Thanks in advance,
    Mark

    Hi Mark,
    PI 7.1 is expected to release somewhere in Second half of this year. Check this blog on the same.
    New SAP NetWeaver Process Integration Release Planned for 2007
    /people/udo.paltzer/blog/2007/04/26/new-sap-netweaver-process-integration-release-planned-for-2007
    Also check this presentation on new capabilities of PI 7.1:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/706005a3-3bd6-2910-91ae-a2016239bdcf
    Regards,
    Subhasha Ranjan
    Reward points if helpful answer. *

  • Enterprise services for business travel (trip) management

    Hi experts.
    Do you know if there are enterprise services for business travel management in SAP ECC? I need ES for create, change and query business travel calculations (TRIP transaction).

    Hi,
    Are you looking for any ES bundle related to travel management.If yes, please  have a look at the following links.
    http://wiki.sdn.sap.com/wiki/display/ESpackages/Travel+Management
    http://esworkplace.sap.com/socoview(bD1lbiZjPTAwMSZkPW1pbg==)/render.asp?sap-unique=051607&sap-params=aWQ9MzNENTlGNDlBNTQ3NDY0ODhEOEVFOEVDQzY1RjIwRDEmcGFja2FnZWlkPURFMD
    QyNkREOUIwMjQ5RjE5NTE1MDAxQTY0RDNGNDYy
    There would be some service interfaces for which wsdl will be provided, you need to select which services you want and use them.Basically you will be importing the related component into the ESR.You need to download the content from Service market place ->download->SAP installation or upgrades->search by appl componet ->xi content
    Please let us know if you are looking for similar answer, if yes i can help you more in this.
    Regards,
    Srinivas.

  • In Attachement List Services for Objects White Screen when I Display a Note

    Hi Expert,
    Need your assistance.
    I am trying to view a note in Vendor Master data but no information provided and I can only see white screen. Below are the steps that I performed:
    1. Go to FK03
    2. Open a Vendor
    3. Click the Services for Objects
    4. Attachement List
    5. Select a Note
    4. Display it
    5. Pop up window appreared and no information occurred. Only White screen
    Is there's a missing configuration, plugin, or data in my SAP system/workstation?
    I tried to login to other PC and it worked.
    Just wondering what is missing on my computer.
    Your response will be helpful.

    Hey,
    I have the exact same problem as you have described. I also used my ipod as a watch but starting from today, whenever I unlock it the screen turns white until a reset is done. Even a factory reset through itunes didn't fix it.
    Have you found any solution?
    Bah, this is annoying.
    //Gubbar

  • IDOC-Xi-IDOC: CRM - XI -R/3 (No service for system SAPOCC, client ** in ID)

    Hi all
    I am doing a scenario IDOC - Xi - IDOC where CRM sends an IDOC to R/3 via PI.
    I have configured everything in OCC (CRM system), PI and BSC (R/3 system) but when I test it with the transaction WE19 in OCC nothing happens in PI or BSC.
    All i can see if a message in SM58 transaction in OCC.
    Function Module - IDOC_INBOUND_ASYNCHRONOUS
    Target System - XI.
    Status Text - No service for system SAPOCC, client *** in Integration Directory.
    Could anyone tell me what is the problem.
    Your help will be very much appreciated
    Regards
    Naina

    Error message: No service for system SAPCRD client 201 in the integration directory
    Cause: There is no service without party in PI server that represents OCC server with client details.
    Solution:
    We send IDocs from system OCC to PI. In the control record (Segment EDIDC40) of the IDoc, the SNDPOR (SenderPort) field contains the value "SAPCRD". The client of the sending system is determined by the MANDT field of the control record. The system ID and client are then used to determine a service without party of the type (business-system/business-service)
    In System Landscape Directory (SLD) create a technical system for OCC system and assign a client for the same. Don't forget to assign an "ALE logical system" to the technical system created. Create a business system for this technical system. Then Business System can be imported under service without party/update the details existing in PI.
    Edited by: Rodrigo Alejandro Pertierra on Jun 23, 2010 10:28 AM

  • Basis: No service for system , client  in Integration Directory??

    Hi All,
    IDocs from SAP QA are not being sent to PI QA. I see error in SM58 in SAP QA as: No service for system , client  in Integration Directory.  Please dont jump to asnwers by looking at above error. I could fix that, but thats not the real problem.
    Because I have checked
    1) SLD home page ---> Technical Landscape --> Select Web AS ABAP --> Select the technical system --> Clients ---> Click on the client used as Business system --> Here look for the logical system is defined (No Problem here, as logical systems is defined).
    2) ID---> Click on Objects --> Service Without party/Party > Double click on business system>On the tright side--> Service --> Adapter specific Identifiers ---> Check IDoc Adpater, Logical System (No Problem here as I see Logical System).
    But I can't find values R/3 System ID and Client under "IDoc Adapter and RFC Adapter". I think thats problem here, when I click on "Compare with SLD" in edit mode, values are not getting populated into R/3 System ID and Client. It makes think there is communication error from ID to SLD. How I do confirm if its the real problem?
    3) Checked Note 940313 - IDoc adapter: Error messages in SM58, No problem here
    4) Did SLDCHECK from PI QA, works fine, no problems here
    Both PI DEV and PI QA pointing to the same SLD. When I send IDocs from SAP QA to PI DEV, everything works fine. I can't send IDoc from SAP QA to PI DEV (changed RFC des to point to PI QA, it shouldn't be a problem).
    How do I find out if communication between PI QA - ID is workign fine with the SLD? Is there any other issue you can think of causing the above error?
    Thank You,
    Indrasena Janga

    *I have trobleshooted  a similar issue. In my case also the tRFC failed with the error "No service for system SAP, client 400 in Integration Directory".There were 11 IDOCS associated with this tRFC and when I saw control record of first IDOC,in sender information ,the sender partner number was wrong.Instead of "SAPSID",it was found as just "SAP".Where as the remaining ten were maintained with correct sender partner number.remaining ten IDOCS were dependant on first one.
    Thanks,
    Varada Reddy

  • Issue in setting custom identity service for soa 11.1.1.4

    Hello,
    I am facing issue in setting custom identity service for soa 11.1.1.4
    It is not picking up the implemented UserManager (in custom IDM) implemented via ServiceProvider and IdentityStoreService.
    This is configured in jps-config.xml
    The same setup was working in soa 11.1.1.2
    I believe there is a change done in JpsProvider in bpm-service.jar to authenticate via default login context from oracle.security.jps.internal.jaas.module.authentication.JpsUserAuthenticationLoginModule
    If my uderstanding is correct,
    Please guide me in implementing custom identity store and services for bpm services for soa 11.1.1.4
    Tried various work arounds but no luck.
    Thanks
    Bala

    Hi...
    Can u tell me how did u set up custom identity service for 11.1.1.2 ?
    Thanks

  • Been without any phone service for over 8 hours

    There is no way to report the outage online as the diagnostic does not show anything.  All of Chihuahua Valley in Warner Springs, California has not had phone service for over 8 hours and Verizon will not admit a problem despite numerous phone calls from friends who are outside the community and have phone service.  One of the neighbours was told there are no reports of an outage and was told that she could make an appointment for a tech to come out on the 15th!!!!!  Well if anyone at Verizon is reading this then get off your **bleep** and get this fixed.   951 767

    Please go to your profile page for the forum by clicking on your name, and look at the top of the middle column where you will find an area titled "My Support Cases".
    There you will find a link to the private board where you and the agent may exchange information. This should be checked on a frequent basis as the agent may be waiting for information from you before they can proceed with any actions.  Please keep all correspondence regarding your issue in the private support portal.
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer that solved your issue as the accepted solution.

  • HT201415 I want to purchase a month of cellular service for my IPAD2.  When I use my ITunes password,  it states that I have the wrong password but does not offer a way to reset my password.  Please advise.

    I want to purchase a month of cellular service for my IPAD2.  When I use my ITunes password,  it states that I have the wrong password but does not offer a way to reset my password.  Please advise.

    Read through this link and maybe you'll see something that will help you:
    http://www.tech-recipes.com/rx/5827/ipad-3g-activating-purchasing-att-cellular-d ata-for-the-ipad-3gwifi/

  • Idoc for materials and service for same contract.

    Dear All
       I have an scope where i have to migrate the data for material and services for the same contract.Is there an Idoc which does it so or otherwise ?Earlier in scope materials contracts have been loaded with the help of idoc type :- PURCONTRACT_CREATE01  and that of Service Contract using Idoc type :- BLAORD03.No customization is however permitted .Tcode for the same is ME32K.
    Regards
    Somnath

    Hi,
    It is not clear to me if you are working with sapscript or smartforms.
    You have only to find a variable which identifies the kind of invoice
    I do not know that variable so i use an example variable
    for sapscript:
    /: IF &VBDKR-FKTYP& = '1'
    /  INVOICE
    /: ELSE
    /  SERVICE ORDER
    /: ENDIF.
    In a smartform you can also do something like that.
    but There you work with conditions (eq, BOOLEAN)
    You have only to find the right variable
    success,
    Gr., Frank

  • Short dump while executing job SM:EXEC SERVICES for EWA alert generation

    Hello All,
    I'm getting short dump error while executing job SM:EXEC SERVICES for EWA alert generation.I'm using EHP1@SP22 of Sol Man.
    Please find the logs
    Error in the ABAP Application Program
    The current ABAP program "SAPLDSVAS_PROC" had to be terminated because it has
    come across a statement that unfortunately cannot be executed.
    The following syntax error occurred in program "RDSVASCABAP_TRANS__________073
    " in include "RDSVASIABAP_TRANS__________073 " in
    line 1782:
    "Field "STATEMENT_SUMMARY001019" is unknown. It is neither in one of th"
    "e specified tables nor defined by a "DATA" statement. "DATA" statement"
    The include has been created and last changed by:
    Created by: "SAP "
    Last changed by: "SAP "
    Error in the ABAP Application Program
    The current ABAP program "SAPLDSVAS_PROC" had to be terminated because it has
    come across a statement that unfortunately cannot be executed.
    If anyone came across such kind of dump, please reply asap, due to this, i could not generate EWA report for R/3 system 6.04.
    Thanks,
    Anand.

    >
    Anand Tigadikar wrote:
    > Thx Paul, but i already did checked this note and its not solving my issue
    Dear Anand,
    Did you perform a complete service definition replacement for SDCC/SDCCN as described in the note?
    These are manual steps you need to perform on the system and are not code corrections.
    I would suggest you perform it, if you have not, and check the SDCCN logs to review the process ran cleanly.
    Note: Please make sure SDCC_OSS is functioning and a connection to SAP can be made before
    deleting the service definitions.
    If you have already replaced the service defintions on the Solution Manager system, then no point doing it again. However checking a note and applying it are not the same thing. So I am uncertain if you replaced the service definitions or not. The dump you are getting in SM:EXEC SERVICES suggests its due to a problem with the service definitons. The recommendation is to replace them according to the process described in SAP Note 727998. If you have not done so please do so.
    If you have successfully replaced the service definitions are you still getting the same dump, or has it possibly changed?
    Regards,
    Paul

  • F4 help not working in custom backend service for PD form

    Dear All,
    Iam working with the Create position HCM PD form and i have a requirement to add two fields, one for the company code and the other is for the cost center and then create the relationship betwee the position and the cost center when the form is submitted.
    I have defined a generic service and created an enhancement implementation and linked this generic service to the imppementaion. I have written the logic for the F4 help for the fields in the method GET_HELP_VALUES, i have written the scripting for the drop down field in the form to trigger the F4 help in the form.
    When the cost center is being passed to the screen, i would then read the value of the cost center in the form workflow and create the relationship between S and K in the workflow as i am unable to achiev this in the design time of the PD form.
    But my current problem in that he values are not getting passed from the method to the field on the screen. I have worked on quite a few scenarios for F4 help and doing validations in the implementation in the PA form and i have seen this functionality working fine.
    My problem here is that i am unable to understand why the F4 value help is not working in my form. The standard PD service SAP_PD is also being used in the form to have the dropdown values for the account assignment feature.
    Could you please suggest me with some clues to fix my issue? i can share more details for further analysis.
    Thanks.
    Best regards,
    Sridharan

    Hi Chris,
    Thanks for your inputs. please see my reply to your questions
    First....are you sure you have "marked" that field as possible for F4 help?
    Reply: Yes
    Second...are you populating the help values strictly from that method...ie. not also using do_operations method to do it. If you refer to the documenation, it points out that trying to use both can cause issues.
    Reply: i am using only the GET_HELP_VALUES method and nothing written in do_operations.
    Third...when you debug your method, do you "see" the help values actually populating and as you say "not coming back to the screen"? I would check this first to make sure that there are actually values being found (ie. the logic within your service is correct).
    Reply: i have put the external break-point in this method and when the form in opened for processing by the HR admininstrator,the form openes up and the control is not being sent to the debugger.  I have written the scripting in the exit event of the events and scripts as suggested in the SAP help document. SO when i click on the dropdown field in the form, the debugger starts and executes the method and the code executes, then no values are populated on the screen.
    Fourth...are you using any generic services for populating help values as well. HCM P&F has a nasty habit of "if one GS fails, they all fail" so often, your service might work fine but an error in another makes yours appear to fail as well....hard to debug and find those kind.
    Reply: Yes i am using the generic service mainly for the purpose of F4 help. I do not see any issue with other gneric services as i have implemented a few generic services for PA forms and they are working fine.
    Fifth...oops...forgot the obvious one...make sure it isn't a security issue...ie. make sure you have access to read the cost centers you want.
    Reply: I dont get any auth error in SU53 while i test the process in R3
    Lastly, you said:
    "When the cost center is being passed to the screen, i would then read the value of the cost center in the form workflow and create the relationship between S and K in the workflow as i am unable to achiev this in the design time of the PD form."
    You actually should be able to do this using an Advanced/Enhanced Generic Service (if this is in fact the step at which you want a true update to occur). Just a thought.
    Reply: Could you please give some more information about this, how can i achieve it in advanced generic service.
    Appreciate more thougts from you Chris!
    Thanks,
    Sridharan

  • Error in self service for my employee - Related Activities in MSS

    Hi,
    NW2004s SP9  EP7.0 ECC 6.0
    we are trying to implement the self service for my employee in related activites functinality from the general information of team workset ( Team --> General informatio --> Related activities --> Self service for my employee ) in MSS which is a replicaiton of ESS in MSS functionality from the previous versions.
    When
    I click on any of the options like Personal data or Addresses it gives me a blank page with no information on it. (It does give a DONE message with error/warning message on the status bar of Internet explorer. The error message says getactivetrackingEntryValue() is null)
    Do I need to do anything to get this page working. I do not see any config related to this.
    Appreciate any inputs.
    regards
    sam

    James,
    I think the note refers to note been able to display the general infromation iView itself. I have implemented the note and am able to see the genral information iView. My issue is I am not able to perform "Self service for my employees" in "related activities" iView.
    Thank for you reply and correct me if I am wrong.
    Sanjay, I have raised the issue with SAP, in the mean while if you can please let me know the patches or a list of them that are requried thyat would be awesome. Sorry for asking you this, but the basis team here asks to tell them what is requried even though I do not have sufficient authorizations to check them.
    Appreciate you help on the same.
    regards
    Sam

  • Problem with user services (creating a service for mpdas)

    Hi, I'm using mpd and using a user service to start it.
    However, I'm trying to create a service for mpdas (a mpd client for last.fm) and getting some errors:
    currently, my mpdas.service is as following:
    [Unit]
    Description=AudoScrobbler client for MPD
    After=mpd.service
    [Service]
    ExecStart=/usr/bin/mpdas
    [Install]
    WantedBy=default.target
    Which giving me the following errors:
    (14:49:55) [ERROR] You are not root. Not changing user ..
    (14:49:55) [INFO] Connected to MPD.
    (14:49:56) [INFO] Last.fm handshake successful. SessionID: ...
    terminate called after throwing an instance of 'std::ios_base::failure'
      what():  basic_filebuf::underflow error reading the file
    Aborted
    Which are the same errors I get if I run just "mpdas" instead of running it with sudo.
    If I use it as a root service (instead of a user service) it fails on startup, but works fine when I restart the server.
    So, I'm assuming:
    1) mpdas needs root permission
    2) if used as a root service, it fails at startup cause the mpd service (enabled as a user service) hasn't started yet
    3) if used as a user service, it fails cause it needs root permission
    What's the 'correct' way to solve this? (I believe mpdas should be a user service, cause it runs with a config that is just for my user).
    Is there a way to make a user service run with root privileges?
    I couldn't figure out the best way to configure it.
    Last edited by alv-r- (2014-11-29 18:37:56)

    TheSaint wrote:Why should it fails with sudo?
    It works only with sudo. It was failing as a system service because it needs mpd, which I configured as an user service. Then when systemd starts the system services (when booting) there's not mpd instance running and it fails.
    TheSaint wrote:Doesn't it works with fakeroot ?
    As a noob, I don't know exactly how fakeroot works, I'll take a better look at it, but running it with fakeroot takes rid of the errors I was getting when not running as sudo.
    The problem I have now is that it still fails on startup, but there isn't any helpful (or unhelpful) message. It just shows the PID and says it failed.
    If I run
    systemctl --user start mpdas
    it works well though. Any ideas of why this happens?
    My current unit file looks like this:
    [Unit]
    Description=AudoScrobbler client for MPD
    After=mpd.service
    Requires=mpd.service
    [Service]
    ExecStart=/usr/bin/fakeroot /usr/bin/mpdas
    [Install]
    WantedBy=default.target
    Raynman wrote:Why does it need root privileges? Maybe you just need to configure it properly to run under your normal user?
    Seeing the options in the man page and the config options for the config file, I don't see any that could do the trick.
    I'll send a message to the developer with the error I'm getting (when not running as sudo).
    Last edited by alv-r- (2014-11-29 18:36:59)

  • I have Verizon FiOS service for phone, internet and TV but I only have one TV hooked up for it for just basic cable service with no DVR and no need for widgets.  Can I use an Airport Extreme as my router and not use the FiOs router?

    I want to use an Airport Extreme as my router.  I currently have a Verizon FiOS router.  I have Verizon for phone, internet and TV.  However, TV-wise, I just have a basic service for one TV with just a regular box.  No HD, no DVR.  Don't need access to a menu, widgets, on-demand.  Can I eliminate the FiOS Router and just use the Airport Extreme and still have phone and internet?

    I know that it will increase my wireless coverage in my house but will it increase the speeds?
    Not sure what you are asking here.  The AirPort Extreme is only going to be as fast as the Internet connection that it receives.....which is 75/75. It cannot take a 75/75 connection and make it go any faster.
    If you locate the AirPort Extreme in an area where you need more wireless signal coverage, the AirPort Extreme would deliver 75/75 in that area.  But, keep in mind that the AirPort Extreme must connect to the FIOS router using a permanent, wired Ethernet cable connection.
    If you are asking if the AirPort Extreme can wirelessly connect to the FIOS modem router, and extend the FIOS wireless network, the AirPort Extreme would not be compatible with a FIOS product for that purpose.

Maybe you are looking for

  • How to uninstall pages 5 on iPad 2?

    I still use pages 4 on my Mac, and have updated my iPad2 to iOS7 and spontenuously to pages 5 as well. Then, I can't read on my Mac a document in iCloud that was altered on my iPad with pages 5. Of course, to update my Mac to pages 5 would solve this

  • K9N4 SLI Vista Drivers

    I was recently... Uh.. Well I guesse the word would be "Forced" to upgrade my Pc to Vista after my old operating System (Windows XP ME 2002 edition) was no longer supported by Microsoft and the zune software.  Basically It bricked my original Zune. 

  • MDM Business Partner 5.5 Not Creating Customer Master in SAP ECC

    Hi,   I am importing Business Partner into ECC from MDM using XI with BP Business Content. This is done using proxy.   The business partner is created sucessfully but the customer master table KNA1, KNB1 is not being populated.    Does anyone experie

  • Database-level encryption

    Does Oracle database support database-level encryption?

  • Can flex start a standard windows application

    Hi I am building an application in flex 3 and I need it to be able start other windows application and pass information to that application via the command line, is this possible? I have not been able to find any thing that says it can or cannot, I a