Errors in vectors as sets

I developed this class Set that has methods to add, remove elements from a set etc. The code is as follow:
public class Set {
private Vector aSet = new Vector();
public Set (int n) {
aSet.setSize(n);
// check if object is in the set
public boolean isInSet (Object o){
if (!aSet.contains(o)) return true;
else return false;
//check if set is full
public boolean isFull(){
int size = aSet.size();
if (aSet.elementAt (size) ==null) return true;
else return false;
// check if set is empty
public boolean isEmpty(){
if (aSet.isEmpty()) return true;
else return false;
// add element to a set
public void addElement (Object o){
if(!isFull()) aSet.addElement (o);
// remove element
public void removeElement (Object o){
if (isInSet(o)) aSet.addElement (o);
I tested this with the following code:
public class TestSet {
public static void main (String [] args) {
System.out.println ("Testing the methods of Set\n");
// Create strings to be elements in a Set
String s1 = "String1";
String s2 = "String2";
// TEST Set and isEmpty
//System.out.println("Create new empty Set size 2");
Set aSet = new Set(2);
if (aSet.isEmpty()) {
System.out.println ("New empty set, size 2, has been created\n");
// TEST addElement AND printSet
aSet.addElement(s1);
System.out.println ("After adding String1 set = ");
aSet.printSet();
aSet.addElement(s1);
System.out.println ("\nAfter trying to add Sting1 again, set =");
aSet.printSet ();
// TEST isFull
aSet.addElement(s2);
System.out.println ("\nAfter adding String2, set is =");
aSet.printSet ();
if (aSet.isFull())
System.out.println ("\nAfter adding String2, set is full");
// TEST removeElement
aSet.removeElement(s1);
System.out.println ("\nAfter removing String1, set = ");
aSet.printSet ();
aSet.removeElement(s2);
if (aSet.isEmpty())
System.out.println ("\nAfter removing String2, set is empty ");
I receive the message that method printSet () is not found in class Set. Could anyone please point out what am I doing wrong here.
Many thanks

Hi,
You are trying to call the method printSet, but you have not implemented a method named printSet in the Set class that you posted.
/Kaj

Similar Messages

  • Quicktime gets a file not found error in running of set up.  tried downloading twice

    Quicktime gets a file not found error in running of set up.  tried downloading twice

    Hi Spex,
    I can import the VI Logger task OK (from another PC running VI Logger 2.0), but I can't run the task.  I've attached the file.  The "1 channel" task runs OK.  The "x-probe" task starts, takes 1 or 2 data points, then hangs for a few seconds, then pops up the "file not found" error. The data acquisition taks run OK, so I don't think they're the problem.
    This file I've attached includes 2 good data tasks ("1 channel" and xprobe"), 1 good VI Logger task ("1 channel"), and my non-working VI Logger task ("x-probe", which works fine on the PC it was exported from).
    I have also tried exporting the non-working VI Logger task on its own, and it still imports OK, but still doesn't run, and gives the same error.
    Thanks,
    Jake
    Attachments:
    configData1.zip ‏353 KB

  • Error while filling the set up table for 2LIS_11_VAITM

    Dear Experts,
    i am facing an error while filling the set up table for 2LIS_11_VAITM in the source system.
    The error was "Company code for sales org 9000 does not exist (document 1326)".
    when i checked the document in the Header table VBAK,company code was blank for the document .
    Company code was there in the selections for the setup table.
    The error means that company code should be maintained for the sales document as per my knolwedge.i think document was not created properly in the source system.
    Could you please help me out to over come the problem.
    Regards,
    Sunil...

    in the selection screen for filling the setup table, there is a parameter No. tolerated faulty documents
    you'll have to enter at least '1' here in your case
    it might be that there are other erronuous records, in that case it will crash again, and you'll have to increase the value for this parameter
    (under "normal" circumstances, all documents in the source should be correct... but apparently it's possible to circumvent this)

  • Trying to install Premiere Elements 10 on Windows 7 but keep getting error message 'A reduced set of content has been installed' - help!

    We bought Premiere Elements 10/Photoshop Element 10 a while ago and it worked brilliantly on our Window XP machine, but since we moved to Windows 7 last year we can't get Premiere Elements 10 to work properly and always get the error message 'A reduced set of content (Instant Movie Themes, Title and Menu templates, etc) has been installed. You can install the full content by inserting your Content DVD or downloading it. Do you want to install now?'. So I've tried reinserting the DVDs and installing them. I've uninstalled all the software and started again, but each time I get the same message at the end of the process. I've spoken to the computer shop I bought the computer from and they say Windows 7 is incompatible, but that doesn't seem to be what the Adobe web site says. Please, any advice welcome as I've got a year's worth of videos I need to edit.
    Thank you!
    Adobe Premiere Elements 10.0 
    Windows 
    2 GHz or faster processor with SSE2 support; dual-core processor required for HDV or AVCHD editing and Blu-ray or AVCHD export.
    Microsoft Windows XP with Service Pack 2, Windows Media Center, Windows Vista® (all applications run native on 32-bit operating systems and in 32-bit compatibility mode on 64-bit operating systems), or Windows 7 (Adobe® Premiere® Elements Editor runs native on 32-bit and 64-bit operating systems; all other applications run native on 32-bit operating systems and in 32-bit compatibility mode on 64-bit operating systems)

    cathyj
    Are you working with Windows 7 32 bit or 64 bit? What video card/graphics card does your computer use? NVIDIA GeForce? And, are you doing your download and installing with antivirus and firewall(s) disabled?
    Premiere Elements 12 is compatible with Windows 7, 8, or 8.1 64 bit.
    If you have tried to obtain the Premiere Elements 10 Content from the installation disc labelled for Content for your version and operating system and that is not working, then can try downloading and installing the Content from the following Adobe link if you do not decide to click on the message to initiate the content download from within the program.
    http://www.adobe.com/special/premiereel/downloads/
    We will be watching for your progress.
    ATR

  • Error " conversion error between two character sets" in PI MONI

    Hi Experts
    I am doing file to Idoc scenario. I am getting the following error in PI MONI "conversion error between two character sets".
    please suggest me how to solve the issue.
    thanx in advance.

    Hi Mickael
    Below is the complete error message found in PI MONI.
    SAP:Error SOAP:mustUnderstand="1" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="INTERNAL">SYSTEM_DUMP</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:Stack>PI Server : XBTO80__0000 : Conversion error between two character sets.</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>

  • When opening iTunes, I get the following error message: the registry setting used by the iTunes drivers for importing an burning CDs and DVDs are missing.  This can happen as a result of installing other CD burning software.  Please reinstall iTunes.

    When opening iTunes, I get the following error message: "The registry setting used by the iTunes drivers for importing an burning CDs and DVDs are missing.  This can happen as a result of installing other CD burning software.  Please reinstall iTunes."
    I have reinstalled iTunes twice and still get the message.
    Any clues??
    Thank you.

    I'd start with the following document, with one modification. At step 12 after typing GEARAspiWDM press the Enter/Return key once prior to clicking OK. (Pressing Return adds a carriage return in the field and is important.)
    iTunes for Windows: "Registry settings" warning when opening iTunes

  • Blackberry Z10,post security wipe...BBM Not working..Showcasing error Unable to complete Set Up and Temporary Server Error"

    I would request you to please help fixing the BBM error - Unable to complete Set Up and Temporary Server Error”.
    I am using a BB Z10 with Software version 10.1.0.4181 and OS version 10.1.0.4633
    Already tried resetting device to Factory Settings and Security Wipe...
    Please help.

    Hey KaranPrabhakar,
    Welcome to the BlackBerry Support Community Forums.
    Thanks for the question.
    Follow the steps in this KB article to resolve the issue: www.blackberry.com/btsc/KB33780
    Let me know if you have any more questions.
    Cheers.
    -ViciousFerret
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Like! for those who have helped you.
    Click  Accept as Solution for posts that have solved your issue(s)!

  • HFM EPMA application deployment aborted with error Object reference not set

    HFM EPMA application deployment aborted with error Object reference not set to an instance of an object when trying to validate/deploy any HFM application in EPMA. This has started happending after we have deleted a Dimension in one of HFM applications. The deleted dimension is a shared dimension.
    We are facing this issue in a distributed environment with version 11.1.2.1. This applications are built here newly.
    Following is the error log entry
    16] ERROR Object reference not set to an instance of an object.
    at Hyperion.DimensionServer.CompareCriteria.<>c__DisplayClass5.<GetMemberClassProperties>b__4(Dimension dim)
    at Hyperion.DimensionServer.Library.IterateDimensions(Action`1 action)
    at Hyperion.DimensionServer.CompareCriteria.GetMemberClassProperties(ApplicationClass appClass, DimensionClass dimClass, MemberClass mbrClass)
    at Hyperion.DimensionServer.CompareCriteria.GetCommonMemberClassProperties(RelationshipMember fromMember, RelationshipMember toMember, ApplicationClass fromAppClass, ApplicationClass toAppClass)
    at Hyperion.DimensionServer.CompareMemberEvaluator.CompareProperties(RelationshipMember fromMember, RelationshipMember toMember, ApplicationClass fromAppClass, ApplicationClass toAppClass, List`1 propertyDifferences)
    at Hyperion.DimensionServer.CompareMemberEvaluator.Compare(RelationshipMember sourceMember, Application sourceApp, Application targetApp, Boolean firstPass, Int32 level, Boolean continueCheckingAfterDifferences)
    at Hyperion.DimensionServer.CompareMemberEvaluator.Compare(List`1 sourceTopMembers, List`1 targetTopMembers, Application sourceApp, Application targetApp, Boolean firstPass, Boolean continueCheckingAfterDifferences)
    at Hyperion.DimensionServer.CompareMemberEvaluator.Execute(List`1 fromTopMembers, List`1 toTopMembers, Dimension fromDimension, Dimension toDimension, Boolean continueCheckingAfterDifferences)
    at Hyperion.DimensionServer.CompareDimensionEvaluator.Execute(Dimension fromDimension, Dimension toDimension, ApplicationClass fromAppClass, ApplicationClass toAppClass)
    at Hyperion.DimensionServer.CompareEngine.CompareDimensions(Dimension fromDimension, Dimension toDimension)
    at Hyperion.DimensionServer.CompareEngine.StartCompare()
    at Hyperion.DimensionServer.Validations.HFMApplicationValidation.CheckStaticDimension(Library snapShot, Dimension dim, Application oldApp, String[] skipProperties)
    at Hyperion.DimensionServer.Validations.HFMApplicationValidation.CheckStaticDimensions(Application baselineApp)
    at Hyperion.DimensionServer.Validations.ApplicationValidation.ValidateAgainstBaseline()
    at Hyperion.DimensionServer.Validations.HFMApplicationValidation.InternalValidate()
    at Hyperion.DimensionServer.Validations.ApplicationValidation.Validate()
    at Hyperion.DimensionServer.Validations.ApplicationValidation.<ValidateAsync>b__0()System.NullReferenceException: Object reference not set to an instance of an object.
    at Hyperion.DimensionServer.CompareCriteria.<>c__DisplayClass5.<GetMemberClassProperties>b__4(Dimension dim)
    at Hyperion.DimensionServer.Library.IterateDimensions(Action`1 action)
    at Hyperion.DimensionServer.CompareCriteria.GetMemberClassProperties(ApplicationClass appClass, DimensionClass dimClass, MemberClass mbrClass)
    at Hyperion.DimensionServer.CompareCriteria.GetCommonMemberClassProperties(RelationshipMember fromMember, RelationshipMember toMember, ApplicationClass fromAppClass, ApplicationClass toAppClass)
    at Hyperion.DimensionServer.CompareMemberEvaluator.CompareProperties(RelationshipMember fromMember, RelationshipMember toMember, ApplicationClass fromAppClass, ApplicationClass toAppClass, List`1 propertyDifferences)
    at Hyperion.DimensionServer.CompareMemberEvaluator.Compare(RelationshipMember sourceMember, Application sourceApp, Application targetApp, Boolean firstPass, Int32 level, Boolean continueCheckingAfterDifferences)
    at Hyperion.DimensionServer.CompareMemberEvaluator.Compare(List`1 sourceTopMembers, List`1 targetTopMembers, Application sourceApp, Application targetApp, Boolean firstPass, Boolean continueCheckingAfterDifferences)
    at Hyperion.DimensionServer.CompareMemberEvaluator.Execute(List`1 fromTopMembers, List`1 toTopMembers, Dimension fromDimension, Dimension toDimension, Boolean continueCheckingAfterDifferences)
    at Hyperion.DimensionServer.CompareDimensionEvalua
    There was a bug in earlier releases for deleting dimensions with children, making the children orphans.
    Heard from release notes that it has been fixed, but we are seeing this issue in 11.1.2.1 again.
    Please help us out in resolving this error.

    Hi,
    I always ask this first, have you installed all the planning and epma patches as there have been many issues addressed in 9.3.1
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Informix: Error while trying to set up start or end key for index read

    Hi all
    Im moving an application from weblogic 6.1 to 8.1, we're using informix as our databasemanager and are using informix's XA driver. However im running into the following error:
    SQL State: IX000, Exception: java.sql.SQLException: [Internal] Error while trying to set up start or end key for index read [fmstopset_release],
    SQL ErrorCode: -9847, Error Message: [Internal] Error while trying to set up start or end key for index read [fmstopset_release], RSAM ErrorCode: -101
    ...while accessing a table.
    The same code runs fine twice, but the third and following times it fails with the above error code. I've tried setting the various XA flags available in the weblogic console but with no success so far.
    Anyone have any input to this problem? Ive not seen many postings about this error out in the cyberspace and the fews ive seen never gets any response...so i just have to hope anyone in here know anything about it.
    Best regards
    JM

    Ulf Akerberg wrote:
    Hello
    I managed to work around my problem by setting the "statement cache size" in the jdbc connection pool to 0. At least that seems to be a work around, im not fully happy with it.
    I attach the stack trace from the exception, perhaps it will give someone an idea.
    Btw, we're using sun.jdbc.rowset.ExtendedCachedRowSet to populate the resultset to a "disconnected resultset" which the application works with instead of the resultset. Any statements and resultsets that are created are closed before returning the ExtendedCachedRowSet to the application.
    If the application works when statement caching is turned off, then it implies a bug in the
    informix driver to do with re-using a prepared statement. Is the PreparedStatement used
    the same way each time? (the one at AbstractDAO.java:166) What I mean to ask is, If/when
    this statement is created with a given SQL string, are the parameters for that SQL always
    set the same way?
    thanks,
    Joe
    >
    2004-09-10 15:45:05,603 ERROR [ExecuteThread: '14' for queue: 'weblogic.kernel.Default'] - SQLException: Generic SQL failed:
    SELECT d.*,dt.dokument_typ FROM dokument d, OUTER dokument_typ dt WHERE d.dok_typ_id = dt.dok_typ_id AND d.dokument_id = ? ( 0:894),
    SQL State: IX000, Exception: java.sql.SQLException: [Internal] Error while trying to set up start or end key for index read [fmstopset_release],
    SQL ErrorCode: -9847, Error Message: [Internal] Error while trying to set up start or end key for index read [fmstopset_release], RSAM ErrorCode: -101
    java.sql.SQLException: [Internal] Error while trying to set up start or end key for index read [fmstopset_release]
         at com.informix.jdbc.IfxSqli.addException(IfxSqli.java:3105)
         at com.informix.jdbc.IfxSqli.receiveError(IfxSqli.java:3419)
         at com.informix.jdbc.IfxSqli.dispatchMsg(IfxSqli.java:2282)
         at com.informix.jdbcx.IfxXASqli.receiveMessage(IfxXASqli.java:119)
         at com.informix.jdbc.IfxSqli.sendStatementQuery(IfxSqli.java:1464)
         at com.informix.jdbc.IfxSqli.executeStatementQuery(IfxSqli.java:1403)
         at com.informix.jdbc.IfxSqli.executeStatementQuery(IfxSqli.java:1333)
         at com.informix.jdbc.IfxResultSet.executeQuery(IfxResultSet.java:223)
         at com.informix.jdbc.IfxStatement.executeQueryImpl(IfxStatement.java:843)
         at com.informix.jdbc.IfxPreparedStatement.executeQuery(IfxPreparedStatement.java:244)
         at weblogic.jdbc.wrapper.PreparedStatement.executeQuery(PreparedStatement.java:80)
         at infrastructure.dao.AbstractDAO.genericSqlRead(AbstractDAO.java:166)
         at se.migrationsverket.dhs.domain.dao.DokumentDAO.findByDokId(DokumentDAO.java:64)
         at se.migrationsverket.dhs.domain.dao.DokumentDAO.findByDokId(DokumentDAO.java:43)
         at se.migrationsverket.dhs.generator.impl.pipeline.LoadDocumentPipeline.buildMultiDocument(LoadDocumentPipeline.java:99)
         at se.migrationsverket.dhs.generator.impl.pipeline.LoadDocumentPipeline.process(LoadDocumentPipeline.java:53)
         at se.migrationsverket.dhs.generator.impl.DHSDocumentGenerator.loadDocument(DHSDocumentGenerator.java:63)
         at se.migrationsverket.dhs.generator.DocumentGeneratorInternalHelper.loadDocument(DocumentGeneratorInternalHelper.java:129)
         at se.migrationsverket.dhs.services.document.internal.InternalDocumentManagerBean.loadDocument(InternalDocumentManagerBean.java:185)
         at se.migrationsverket.dhs.services.document.internal.InternalDocumentManager_6sz7e8_EOImpl.loadDocument(InternalDocumentManager_6sz7e8_EOImpl.java:532)
         at se.migrationsverket.dhs.action.documentgenerator.GeneratorAction.load(GeneratorAction.java:147)
         at se.migrationsverket.dhs.action.documentgenerator.GeneratorAction.perform(GeneratorAction.java:49)
         at se.migrationsverket.dhs.servlet.AbstractController.doPost(AbstractController.java:84)
         at se.migrationsverket.dhs.servlet.AbstractController.doGet(AbstractController.java:54)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6310)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3622)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2569)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    Regards
    JM

  • Can't open Documents. Error message-No App set to open Document

    can't open any file in DOCUMENTS. Get error message -"No Application set to open document".

    I do have the Same Problem with on file in my numbers app. Since i have connected to iCloud and since i have Downloaded iOS on my iPad1.
    I can't just Accent that the Doc is gone, since ist has very Important Information for me.
    Apple support dös Not really send helpfull Information and it seams they know well about this Problem.
    Even if I spend the Time and work on this sheet again...who can Tell it does Not happen again?

  • SIOCSIFFLAGS: Unknown error 132, could not set interface eth1 UP. Help

    After lots of trouble getting my wireless card working and installing the ipw2200-fw drivers to get it working i have encountered an other problem.
    I set up a netcfg profile called mynetwork but now whenever i try to connect using netcfg mynetork, i get:
    SIOCSIFFLAGS: Unknown error 132
    Could not set interface 'eth1' UP
    Being a noob I have no clue how to fix this. Anyone know how to make it work?

    See this bug report for some clues:
    https://bugs.archlinux.org/task/19507
    Also, duck duck go/google is your friend: please search before posting...

  • Import error due to character set difference?

    hi,
    hoping anyone to explain reason for the following import error.
    here's the situation,
    - export client used WE8MSWIN1252 charset (release v10.02.01)
    - import server used WE8ISO8859P1 charset (release v10.1.0.4)
    all tables appeared to be imported without error, except that import terminated unsuccesfully due to oracle error 2248
    "ALTER SESSION SET PLSQL_OPTIMIZE_LEVEL =1 NLS-LENGTH_SEMANTICS = 'BYTE' PLSQL_CODE_TYPE = 'INTERPRETED' PLSQL_DEBUG = FALSE PLSQL_WARNING = 'DISABLE:ALL' PLSQL_CCFLAGS =''"
    ORA-02248: invalid option for ALTER SESSION
    was error due to the difference release version? char set conversion to non superset?
    appreciate any help pls

    It is difficult to say what is the current state of the database, so it is recommended to reexport and reimport the object definitions. You may miss some other stuff like object types, contraints, etc. Table data should be OK, so reexport should not include data.
    As far as character sets are concerned, because of the difference between the export client character set and the import server character set, you may have lost some characters in the code range 0x80-0x9f. This includes Euro sign, TM, sign, "smart" quotes, en- and em-dash, etc. Use the Windows charmap.exe to see all the codes. If you have some of these codes in the source database, you have lost them on import (they got converted to the reverse quotation mark code 0xbf).
    -- Sergiusz

  • While making 103 mvt for PO error'Aceptance at vendor set for po Item'

    Dear Sir,
    While making 103 mvt for PO, we are getting error 'Acceptance at vendor set for PO item'
    Rgs
    Kumar

    Hi
    Check the PO delivery tab. Origin acceptance will be flagged. It means material is accepted at vendor's premises. You need to use movement type 107 which will take stock to valuated GR blocked stock.It means once you do 107 material is valuted in your books. Then 109 to bring to your stock. You should not do 103 and 105 if the origin acceptance is flaged in GR.
    Regards
    Antony

  • Error "Members, tuples or sets must use the same hierarchies in the function" in MDX

    the following MDX returns error: "Members, tuples or sets must use the same hierarchies in the function"
    WITH
    MEMBER [Measures].[Prev Year] AS
    [Measures].[returns],
    PARALLELPERIOD
    [Exec Date].[Year].Levels('Year'),
    1,
    [Exec Date].[Year].CURRENTMEMBER
    MEMBER [Measures].[Prev Month] AS
    [Measures].[returns],
    PARALLELPERIOD
    [Exec Date].[Month Num].Levels('Month Num'),
    1,
    [Exec Date].[Month Num].CURRENTMEMBER
    MEMBER [Measures].[Prev Day] AS
    [Measures].[returns],
    PARALLELPERIOD
    [Exec Date].[Day].Levels('Day'),
    1,
    [Exec Date].[Day].CURRENTMEMBER
    SELECT NON EMPTY { StrToMember("@ExecDateLevel"), [Measures].[returns] } ON COLUMNS, NON EMPTY { ([Employees].[Company].[Company].ALLMEMBERS ) } DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS FROM (
    SELECT (
    STRTOSET(@ExecDateHierarchy, CONSTRAINED)
    ) ON COLUMNS FROM [cbSales]) WHERE ( IIF( STRTOSET(@ExecDateHierarchy, CONSTRAINED).Count = 1, STRTOSET(@ExecDateHierarchy, CONSTRAINED), [Exec Date].[Hierarchy].currentmember ) ) CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS
    and when I replace "StrToMember(@ExecDateLevel)" with
    StrToMember("[Measures].[Prev Month]") the MDX is compiled correctly.
    what is the problem?
    How can I solve that?

    Hi Breceive,
    In your scenario, the issue is caused by that you select dimension members and measures on the same axis without a crossjoin.
    SELECT NON EMPTY {  StrToMember("@ExecDateLevel"), [Measures].[returns] } ON COLUMNS
    To avoid this issue, you can use the query below.
    WITH
    MEMBER [Measures].[Prev Year] AS
    [Measures].[returns],
    PARALLELPERIOD
    [Exec Date].[Year].Levels('Year'),
    1,
    [Exec Date].[Year].CURRENTMEMBER
    MEMBER [Measures].[Prev Month] AS
    [Measures].[returns],
    PARALLELPERIOD
    [Exec Date].[Month Num].Levels('Month Num'),
    1,
    [Exec Date].[Month Num].CURRENTMEMBER
    MEMBER [Measures].[Prev Day] AS
    [Measures].[returns],
    PARALLELPERIOD
    [Exec Date].[Day].Levels('Day'),
    1,
    [Exec Date].[Day].CURRENTMEMBER
    SELECT NON EMPTY { StrToMember("@ExecDateLevel")*[Measures].[returns] } ON COLUMNS, NON EMPTY { ([Employees].[Company].[Company].ALLMEMBERS ) } DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS FROM (
    SELECT (
    STRTOSET(@ExecDateHierarchy, CONSTRAINED)
    ) ON COLUMNS FROM [cbSales]) WHERE ( IIF( STRTOSET(@ExecDateHierarchy, CONSTRAINED).Count = 1, STRTOSET(@ExecDateHierarchy, CONSTRAINED), [Exec Date].[Hierarchy].currentmember ) ) CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS
    Here is a similar thread for you reference.
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/3c21d9a8-640d-4dde-bc76-08d1fcbb3a31/multiple-dimension-query?forum=sqlanalysisservices
    Regards,
    Charlie Liao
    TechNet Community Support

  • Failing to Delete/Remove Project Server Service Application, giving error "Object reference not set to an instance of an object"

    I have installed Project Server 2013 on SharePoint 2013, and installed the first PWA which worked. But I needed to change some configurations and so I deleted the PWA instances, but now I cannot delete the Project Server Service Application. Every attempt
    to delete the Service Application it gives the error above, namely:
    Sorry, something went wrong
    Object reference not set to an instance of an object.
    Technical Details
    Troubleshoot issues with Microsoft SharePoint Foundation.
    Correlation ID: ecaeaf9c-9fec-3049-ba23-d9a18337b9e2
    Date and Time: 8/18/2014 12:55:31 PM
    I'd urgently appreciate help.

    Thanks Paul for the reply. Here's the error, and the logs below covering the time the error occurred.
    I've tried to extract a section of the log file below:
    ==========================================================                                                        
    08/18/2014 19:20:19.07 w3wp.exe (0x542C)                      
    0x6DF4 SharePoint Foundation                 DistributedCache                             
    00000    Unexpected       SPDistributedCachePointerWrapper::InitializeDataCacheFactory - No cache hosts are present or running in the farm.
    08/18/2014 19:20:19.07 w3wp.exe (0x542C)                      
    0x6DF4 SharePoint Foundation                 DistributedCache                             
    ah24w   Unexpected       Unexpected Exception in SPDistributedCachePointerWrapper::InitializeDataCacheFactory for usage 'DistributedLogonTokenCache' - Exception 'System.InvalidOperationException: SPDistributedCachePointerWrapper::InitializeDataCacheFactory
    - No cache hosts are present or running in the farm.     at Microsoft.SharePoint.DistributedCaching.SPDistributedCachePointerWrapper.InitializeDataCacheFactory()'.     
    08/18/2014 19:20:19.07 w3wp.exe (0x542C)                      
    0x6DF4 SharePoint Foundation                 DistributedCache                             
    air4g      Monitorable       Token Cache: Failed to initialize SPDistributedSecurityTokenCache  Exception: 'System.InvalidOperationException: SPDistributedCachePointerWrapper::InitializeDataCacheFactory
    - No cache hosts are present or running in the farm.     at Microsoft.SharePoint.DistributedCaching.SPDistributedCachePointerWrapper.InitializeDataCacheFactory()     at Microsoft.SharePoint.DistributedCaching.SPDistributedCache..ctor(String
    name, TimeSpan timeToLive, SPDistributedCacheContainerType containerType, Boolean encryptData)     at Microsoft.SharePoint.IdentityModel.SPDistributedSecurityTokenCache..ctor(String name, TimeSpan timeToLive, SPDistributedCacheContainerType
    containerType, Boolean encrptyData, TimeSpan minimumTokenExpirationWindow)     at Microsoft.SharePoint.IdentityModel.SPDistributedSecurityTokenC...   
    08/18/2014 19:20:19.07*               w3wp.exe (0x542C)                      
    0x6DF4 SharePoint Foundation                         DistributedCache             
                   air4g      Monitorable       ...acheInitializer.Init(Object state)'.        
    08/18/2014 19:20:19.07 w3wp.exe (0x7240)                      
    0x7370  SharePoint Foundation                 General                      
                    af4yd     High       [Forced due to logging gap, cached @ 08/18/2014 19:20:18.99, Original Level: Verbose] TenantAppEtag
    record requested but there is no sitesubscription or tenantId for site {0} so we will use the WebApp Id for the cache.               f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
    08/18/2014 19:20:19.07 w3wp.exe (0x7240)                      
    0x7370  SharePoint Foundation                 Asp Runtime                                  
    aj1kp     High       [Forced due to logging gap, Original Level: Verbose] SPRequestModule.PreSendRequestHeaders     f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
    08/18/2014 19:20:19.10 w3wp.exe (0x7240)                      
    0x7370  Project Server                   Unified Logging Service                      
    b8fx       High       ULS Init Completed (w3wp.exe, Microsoft.Office.Project.Server.Native.dll)        f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
    08/18/2014 19:20:19.15 w3wp.exe (0x7240)                      
    0x7370                                  0x6FB7007                    
          6t8h       High                    [Forced due to logging gap, cached @ 08/18/2014 19:20:19.07, Original
    Level: Verbose] {0}            f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
    08/18/2014 19:20:19.15 w3wp.exe (0x7240)                      
    0x7370  Project Server                   Provisioning                      
    9or8                High       [Forced due to logging gap, Original Level: Verbose] Unprovisioning service app {0}        
    f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
    08/18/2014 19:20:19.16 w3wp.exe (0x7240)                       
    0x7370  Project Server                   Provisioning                      
    8ig5                High       Unregistering project psi shared application timer job.   f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
    08/18/2014 19:20:19.21 w3wp.exe (0x7240)                      
    0x7370  SharePoint Foundation                 General                      
                    8nca       Medium               Application error when access /_admin/ServiceApplicationDelete.aspx,
    Error=Object reference not set to an instance of an object.   at Microsoft.Office.Project.Server.Administration.PsiServiceApplication.get_ServiceAppTimerJob()     at Microsoft.Office.Project.Server.Administration.ProjectPSISharedApplicationTimerJob.Unregister(PsiServiceApplication
    psi)     at Microsoft.Office.Project.Server.Administration.PsiServiceApplication.Unprovision(Boolean deleteData)     at Microsoft.SharePoint.ApplicationPages.ServiceApplicationDeletePage.OkButton_Click(Object sender,
    EventArgs e)     at System.EventHandler.Invoke(Object sender, EventArgs e)     at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)     at System.Web.UI.Page.ProcessRequestMain(Boolean
    includeStagesBeforeAsyn...             f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
    08/18/2014 19:20:19.21*               w3wp.exe (0x7240)                      
    0x7370  SharePoint Foundation                 General                      
                    8nca       Medium               ...cPoint, Boolean includeStagesAfterAsyncPoint)           
    f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
    08/18/2014 19:20:19.23 w3wp.exe (0x7240)                      
    0x7370  SharePoint Foundation                 Runtime                                      
    tkau       Unexpected       System.NullReferenceException: Object reference not set to an instance of an object.    at Microsoft.Office.Project.Server.Administration.PsiServiceApplication.get_ServiceAppTimerJob()    
    at Microsoft.Office.Project.Server.Administration.ProjectPSISharedApplicationTimerJob.Unregister(PsiServiceApplication psi)     at Microsoft.Office.Project.Server.Administration.PsiServiceApplication.Unprovision(Boolean deleteData)    
    at Microsoft.SharePoint.ApplicationPages.ServiceApplicationDeletePage.OkButton_Click(Object sender, EventArgs e)     at System.EventHandler.Invoke(Object sender, EventArgs e)     at System.Web.UI.WebControls.Button.RaisePostBackEvent(String
    eventArgument)     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoin... f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
    08/18/2014 19:20:19.23*               w3wp.exe (0x7240)                      
    0x7370  SharePoint Foundation                 Runtime                      
                    tkau       Unexpected       ...t)         f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
    08/18/2014 19:20:19.24 w3wp.exe (0x7240)                      
    0x7370  SharePoint Foundation                 General                      
                    ajlz0       High       Getting Error Message for Exception System.Web.HttpUnhandledException (0x80004005): Exception
    of type 'System.Web.HttpUnhandledException' was thrown. ---> System.NullReferenceException: Object reference not set to an instance of an object.     at Microsoft.Office.Project.Server.Administration.PsiServiceApplication.get_ServiceAppTimerJob()    
    at Microsoft.Office.Project.Server.Administration.ProjectPSISharedApplicationTimerJob.Unregister(PsiServiceApplication psi)     at Microsoft.Office.Project.Server.Administration.PsiServiceApplication.Unprovision(Boolean deleteData)    
    at Microsoft.SharePoint.ApplicationPages.ServiceApplicationDeletePage.OkButton_Click(Object sender, EventArgs e)     at System.EventHandler.Invoke(Object sender, EventArgs e)     at System.Web.UI.WebControls.Button.Rais...               
    f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
    08/18/2014 19:20:19.24*               w3wp.exe (0x7240)                      
    0x7370  SharePoint Foundation                 General                      
                    ajlz0       High       ...ePostBackEvent(String eventArgument)     at System.Web.UI.Page.ProcessRequestMain(Boolean
    includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)     at System.Web.UI.Page.HandleError(Exception e)     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)    
    at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)     at System.Web.UI.Page.ProcessRequest()     at System.Web.UI.Page.ProcessRequest(HttpContext context)    
    at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()     at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)   f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
    08/18/2014 19:20:19.32 w3wp.exe (0x14A4)                      
    0x6508  SharePoint Foundation                 DistributedCache                             
    00000    Unexpected       SPDistributedCachePointerWrapper::InitializeDataCacheFactory - No cache hosts are present or running in the farm. 67c4af9c-afed-3049-ba23-d538b7dde463
    08/18/2014 19:20:19.32 w3wp.exe (0x14A4)                      
    0x6508  SharePoint Foundation                 DistributedCache                             
    ah24w   Unexpected       Unexpected Exception in SPDistributedCachePointerWrapper::InitializeDataCacheFactory for usage 'DistributedLogonTokenCache' - Exception 'System.InvalidOperationException: SPDistributedCachePointerWrapper::InitializeDataCacheFactory
    - No cache hosts are present or running in the farm.     at Microsoft.SharePoint.DistributedCaching.SPDistributedCachePointerWrapper.InitializeDataCacheFactory()'.               
    67c4af9c-afed-3049-ba23-d538b7dde463
    08/18/2014 19:20:19.32 w3wp.exe (0x14A4)                      
    0x6508  SharePoint Foundation                 DistributedCache                             
    air4g      Monitorable       Token Cache: Failed to initialize SPDistributedSecurityTokenCache  Exception: 'System.InvalidOperationException: SPDistributedCachePointerWrapper::InitializeDataCacheFactory
    - No cache hosts are present or running in the farm.     at Microsoft.SharePoint.DistributedCaching.SPDistributedCachePointerWrapper.InitializeDataCacheFactory()     at Microsoft.SharePoint.DistributedCaching.SPDistributedCache..ctor(String
    name, TimeSpan timeToLive, SPDistributedCacheContainerType containerType, Boolean encryptData)     at Microsoft.SharePoint.IdentityModel.SPDistributedSecurityTokenCache..ctor(String name, TimeSpan timeToLive, SPDistributedCacheContainerType
    containerType, Boolean encrptyData, TimeSpan minimumTokenExpirationWindow)     at Microsoft.SharePoint.IdentityModel.SPDistributedSecurityTokenC...               
    67c4af9c-afed-3049-ba23-d538b7dde463
    08/18/2014 19:20:19.32*               w3wp.exe (0x14A4)                      
    0x6508  SharePoint Foundation                         DistributedCache             
                   air4g      Monitorable       ...acheInitializer.Init(Object state)'.        
    67c4af9c-afed-3049-ba23-d538b7dde463
    08/18/2014 19:20:19.38 w3wp.exe (0x7240)                      
    0x7370  SharePoint Foundation                 Upgrade                      
                    aiaih       High       [Forced due to logging gap, Original Level: Verbose] desiredVersion: {0}               
    f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
    08/18/2014 19:20:19.41 w3wp.exe (0x7240)                      
    0x7370  SharePoint Foundation                 General                      
                    aat87     Monitorable                      f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
    08/18/2014 19:20:19.43 w3wp.exe (0x7240)                      
    0x7370  SharePoint Foundation                 DistributedCache                             
    00000    Unexpected       SPDistributedCachePointerWrapper::InitializeDataCacheFactory - No cache hosts are present or running in the farm. f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
    08/18/2014 19:20:19.43 w3wp.exe (0x7240)                      
    0x7370  SharePoint Foundation                 DistributedCache                             
    ah24w   Unexpected       Unexpected Exception in SPDistributedCachePointerWrapper::InitializeDataCacheFactory for usage 'DistributedViewStateCache' - Exception 'System.InvalidOperationException: SPDistributedCachePointerWrapper::InitializeDataCacheFactory
    - No cache hosts are present or running in the farm.     at Microsoft.SharePoint.DistributedCaching.SPDistributedCachePointerWrapper.InitializeDataCacheFactory()'.               
    f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
    08/18/2014 19:20:19.43 w3wp.exe (0x7240)                      
    0x7370  SharePoint Foundation                 General                      
                    ajb4s     Monitorable       ViewStateLog: Failed to write to the velocity cache:
    http://sharepoint:48488/_admin/ServiceApplicationDelete.aspx?id=24024e6bfd8f486ea7ab0b68658ce165&IsDlg=1               
    f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
    08/18/2014 19:20:19.46 w3wp.exe (0x7240)                      
    0x7370  SharePoint Foundation                 Monitoring                                   
    b4ly        Medium               Leaving Monitored Scope (Request (POST:http://sharepoint:48488/_admin/ServiceApplicationDelete.aspx?id=24024e6bfd8f486ea7ab0b68658ce165&IsDlg=1)).
    Execution Time=550.415729455012 f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
    08/18/2014 19:20:20.08 w3wp.exe (0x542C)                      
    0x6EC4  SharePoint Foundation                 DistributedCache                             
    00000    Unexpected       SPDistributedCachePointerWrapper::InitializeDataCacheFactory - No cache hosts are present or running in the farm.
    08/18/2014 19:20:20.08 w3wp.exe (0x542C)                      
    0x6EC4  SharePoint Foundation                 DistributedCache                             
    ah24w   Unexpected       Unexpected Exception in SPDistributedCachePointerWrapper::InitializeDataCacheFactory for usage 'DistributedLogonTokenCache' - Exception 'System.InvalidOperationException: SPDistributedCachePointerWrapper::InitializeDataCacheFactory
    - No cache hosts are present or running in the farm.     at Microsoft.SharePoint.DistributedCaching.SPDistributedCachePointerWrapper.InitializeDataCacheFactory()'.     
    08/18/2014 19:20:20.08 w3wp.exe (0x542C)                      
    0x6EC4  SharePoint Foundation                 DistributedCache                             
    air4g      Monitorable       Token Cache: Failed to initialize SPDistributedSecurityTokenCache  Exception: 'System.InvalidOperationException: SPDistributedCachePointerWrapper::InitializeDataCacheFactory
    - No cache hosts are present or running in the farm.     at Microsoft.SharePoint.DistributedCaching.SPDistributedCachePointerWrapper.InitializeDataCacheFactory()     at Microsoft.SharePoint.DistributedCaching.SPDistributedCache..ctor(String
    name, TimeSpan timeToLive, SPDistributedCacheContainerType containerType, Boolean encryptData)     at Microsoft.SharePoint.IdentityModel.SPDistributedSecurityTokenCache..ctor(String name, TimeSpan timeToLive, SPDistributedCacheContainerType
    containerType, Boolean encrptyData, TimeSpan minimumTokenExpirationWindow)     at Microsoft.SharePoint.IdentityModel.SPDistributedSecurityTokenC...   
    08/18/2014 19:20:20.08*               w3wp.exe (0x542C)                      
    0x6EC4  SharePoint Foundation                         DistributedCache             
                   air4g      Monitorable       ...acheInitializer.Init(Object state)'.        
    08/18/2014 19:20:20.30 OWSTIMER.EXE (0x09C4)                             
    0x09F8  SharePoint Foundation                 Monitoring                                   
    nasq      Medium               Entering monitored scope (Timer Job SchedulingUnpublish). Parent No acba9844-723f-4477-901c-adfdcae98e4e
    08/18/2014 19:20:20.30 OWSTIMER.EXE (0x09C4)                             
    0x09F8  SharePoint Foundation                 Logging Correlation Data               xmnv    
    Medium               Name=Timer Job SchedulingUnpublish  f1c4af9c-ffd4-3049-ba23-d4fe1cc1d1d7
    08/18/2014 19:20:20.31 OWSTIMER.EXE (0x09C4)                             
    0x0A10 SharePoint Foundation                 Monitoring                                   
    nasq      Medium               Entering monitored scope (Timer Job SchedulingUnpublish). Parent No 5dbf5387-ba14-4980-bc61-5ba5490870fa
    ==============================================
    Thanks for the attention.

Maybe you are looking for

  • How to write a multi threaded Cache Event Listener

    I have a distributed data cache called tokenCache for my application. I have also added a mapListener to this cache to listen to a particular kind of events. tokenCache.addMapListener((MapListener) new TokenCacheListenerBean(), new MapEventFilter(tok

  • Regarding "Find My iPad"/iCloud

    Regarding "Find My iPad" , when setting up a second iCloud account, it gives me the option on or off , so do I choose "on" for iCloud or "on" on the general setting?  It wont let me turn it on for both.

  • How do you set email so that it is in html instead of plain text on ATT email?

    I would like to view my emails in html but do not know how to change it off of the current settings where it always displays it in plain text. I have att yahoo email.

  • Dlv. type (dlv. catgry  for mat. 1133 and BWART ) cannot be determined

    Hi, Am getting the error while doing the transaction me2o the error is like this"Dlv. type (dlv. catgry  for mat. 1133 and BWART ) cannot be determined" Message no. VL295    please help me on this

  • TDS on interest for loans

    Dear Experts, How can I map the following entry in Interest Rate Instrument? Interest Exp - Dr---- 10/-            TDS - Cr---- 1/-             Bank Outgoing - Cr---- 9/- I have created a new derived flow for TDS and I assigned the respective G/L acc