HSP_Rates dimension

Hi,
Per my undestanding, the rates in exchange rate table are present in HSP_Rates dimension. Now I want to view the rates in HSP_Rate_USD and so on. I have the below dimentions in the application.
Account
Entity
Currency (Reporting curr is GBP)
Scenario
Period (Dec)
Year (FY10)
Version
Department
In each dimensions, there is a "no" member like "no entity".
Can you please let me know what would be the member selection in excel add-in to query the rate value?
Thanks.
Edited by: user13325223 on 22 Dec, 2010 2:55 PM

Here is an example using the Planning sample application.
Create new exchange rate table, edit the exchange rate table, select year as FY10, enter exchange rates for EUR for Jan-Dec. Save
Edit the actual member and apply it against the exchange rate table.
Run a refresh.
Retrieve using excel addin
POV =
Account = HSP_Average
HSP_RATES = HSP_Rate_EUR
Year = FY10
Scenario = Actual
Remaining = Entity, Version, Currency, Segments, Jan:Dec
Exchange rate values are retrieved.
Cheers
John
http://john-goodwin.blogspot.com/

Similar Messages

  • HSP_Rate dimension not showing in Smartview 11.1.2.1 Adhoc Analysis Conn.

    I have an out of box currency conversion planning application.
    The issue is that if I create Essbase connection via Smartview I can see the HSP_Rate dimension,however if I create Planning connection and use Ad hoc Analysis option I do not see the HSP_Rate dimension.
    Is this a normal behavior ?
    Thanks in advance

    Hi,
    We just upgraded from 11.1.2.0 to 11.1.2.1 and are facing the same issue. I haven't found any reference to ER 8246706: CANNOT SUBMIT DATA FROM ADHOC VIEW FOR A MULTICURRENCY DATA FORM in support.oracle.com or a patch for 11.1.2.1.
    Are you aware of any patch available for release 11.1.2.1?
    Simon

  • Hsp_Rate Dimension on data form

    Hi,
    I have a multicurrency planning application and have web many webforms to input data. When i open a web form in edit mode i dont see any member from the dimension HSP_Rates dimesion on form. I guess its not possible to not select any member from that dimension?
    IS there a default value of member that all the data forms take to input the values?
    Please advise!
    Thanks

    Yes it is HSP_InputValue.
    More information from the documentation
    Multiple-currency applications include the Hsp_Rates dimension for storing exchange rates. It includes these members and others that store currency rates:
    * Hsp_InputValue: Stores data values
    * Hsp_InputCurrency: Stores currency types for data values
    When generating reports or loading data, refer to the Hsp_InputValue member. When loading data, you must load data against the local currency. You need not refer to the Hsp_InputCurrency member.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • ERPI Data write back not working due to unmapped dimension

    Hi,
    I am using version 11.1.2.1 of erpi with E-Business version 12. We have a hyperion Planning application. We are trying to write data back to e-business but the process is failing. The data goes into the staging tables but does not go into e-business due to unmapped dimensions. However, all the available dimensions have been mapped. The planning application contains multiple currencies and the hsp_rates dimension is not shown in erpi. We think this could be the unmapped dimension but there is no option to do this.
    Has anyone experienced this issue? The hsp_rates is a theory but a probable one since it is in essbase where the data is held.
    Thanks,
    Nathan

    we are unable to use the write-back feature.
    it keep give an error as the following :
    java.lang.NullPointerException
    ERPI Process Start, Process ID: 50
    ERPI Logging Level: DEBUG (5)
    ERPI Log File: C:\DOCUME~1\hyperion\LOCALS~1\Temp\1\/aif_50.log
    Jython Version: 2.1
    Java Platform: java1.4.2_08
    ERPI Process End, Process ID: 50
    any ideas?
    Aly

  • Help Needed in resolving problems with Hyperion Planning Web Forms

    Hi,Can anyone help me with this problem?Problem:We are running Planning 2.3.1 I have created Webform & security(application owner has the ownership).Somehow Iam getting only 7 dimensions into webform & 1 dimension is missing in that. But whereas 8 dimensions are there in Essbase.Hsp_Rates dimension is available in essbase outline but Iam unable to see that dimension in the webform selection.And using the webform Iam unable to load any data ...the form is graded/protected.Is this happening because i dont have the requirement of 1 member from each Dimension?Please someone let me know why this is happening what might be the reason.ThanksUser

    Hi,The dimension Hsp_Rates is a hide dimension used by Planning to store the exchange rates for the differentes exchanges.All the standard information is stored on HSP_InputValue member (in this dimension).When you create a web form, Planning automatically asign this member (but don't show it).Probably you can't load data because you are selected on Version dimension a Standard Botton Up version, and you only can load data on level 0 members in this type of version.If you want to load data on upper level members, then you need to create a Standard Target version (in the Version dimension) and select it in the form.Please, advice if this solve your problemClaudioBPD Solutions

  • Currency UDA in EPMA Planning app

    Hi All,
    Version 11.1.2.0;
    I've just upgraded a Classic multi currency Planning app to EPMA. The currency conversion is a manual HBR rule and was working fine in Classic.
    Now after converting the rule to Calc Manager, I get the validation error for the part where it looks for the Entity members currency UDA.
    ( @ISUDA("Entity","NZD") )
    I believe that Business Rules (HBR) validate the code against Essbase application while Calculation Manager does it against Planning. Can someone point out how I may resolve this issue. I haven't worked with Calc Manager before.
    Cheers,
    Abhishek

    I was pointed to the below bug, which I believe was fixed in some patch for 11.1.1.3. Due to this one would have believed that 11.1.2.0 would have been fine.
    Hsp_Rates dimension members other than Hsp_InputValue and Hsp_InputCurrency (for example, HSP_Rate_USD) do not validate successfully against Planning in Calculation Manager. To work around this, deploy these rules to Planning and launch them without validating them in Calculation Manager (7163027)
    I did deploy the rules without validating and they run successfully when launched from Planning. I'm pretty sure now that this bug has somehow remained in 11.1.2.0
    Thanks for your responses
    Cheers,
    Abhishek

  • USD reflecting in Web form

    Hi All,
    Entire Webform is refelcting with USD, i have not selected as "enable multicurrency" while creating the form. Can somebody tell me how is it reflecting automaticaly. It very important for me to resolve this issue ASAP.
    Thnks

    The currency code is displayed whenever there are currency overrides. The most likely cause for this is if a member formula or a business rule does not take into account the HSP_RATES dimension. The rule or member formula should only be applied when the HSP_InputValue member is addressed and filtered out otherwise.
    If you do not have any currency overrides but may have inadvertently set the currency code then you may clear the codes with a business rule. However, I would caution just clearing all codes since the code does match a currency it may not have been unintentional. If after clearing the codes you still see currency codes then you should check if there are any member formulas inadvertently setting the code as well.
    In general we use the following script to clear out currency codes:
    FIX ([list of members to clear], HSP_InputCurrency)
    CLEARDATA [member];
    ENDFIX
    Planning stores currency codes in the Hsp_InputCurrency member so by fixing on this member you will only clear currency codes and not actual data values.
    You may add IF (@ISMBR("HSP_InputValue")) in the beginning of the script and check if that helps.
    HTH-
    Jasmine.

  • Essbase export question

    I have the strangest error.
    I am trying to export Level 0 and import in our new enviornement.
    Versions for target and source: 11.1.2.2
    My method of export:*
    Right click [database name] --> Export
    Export to file [ name.txt]
    Export option: Level0 data blocks
    Export in column format
    Expected output.
    Header: Begbalance, jan -------> Dec, Period
    This output
    Header: "HSP_InputValue" "HSP_InputCurrency" "HSP_Rate_USD" "HSP_Rate_RMB" "HSP_Rate_CNY" "HSP_Rate_PLN" "HSP_Rate_EUR" "HSP_Rate_GBP" "HSP_Rate_MXP"
    Now I have exported and imported other applications successfully and all of them include HSP_Rate dimension.
    other info if you need:
    These are EPMA history applications of from 11.1.1.3.
    I am creating new BSO applications in our OOD 11.1.2.2 and importing the data (yes i am not migrating the planning app itself, just migrating the data into this bso)
    please let me know what you think.
    I have even tried restructuring the outline since HSP was the first dimension, i dont know why that was the first. But either way I relocated it in essbase. (did not do it in planning because it was deleted long before. Only essbase app is left. )
    Edited by: 997328 on Jun 7, 2013 2:05 PM
    Edited by: 997328 on Jun 7, 2013 2:24 PM

    997328 wrote:
    Thanks for pointing out the "error" in the subject i changed it.
    Yes I have tried it.
    The thing is, in the output file there is no way to determine which member of the HSP_Rate dimension belongs where in the data. That being said there is no way the load rule will validate either. Here see below.
    HSP_InputValue     HSP_InputCurrency     HSP_Rate_USD     HSP_Rate_RMB     HSP_Rate_CNY     HSP_Rate_PLN     HSP_Rate_EUR     HSP_Rate_GBP     HSP_Rate_MXP     HSP_Rate_INR     HSP_Rate_THB     HSP_Rates
    Jul     FY13     BA     Working     Local     Stat_Center     230     xxx - CC10     4210C     100           
    Jul     FY13     BA     Working     Local     Stat_Center     230     xxx- CC10     4210M     1000          
    Jul     FY13     BA     Working     Local     Stat_Center     230     xxx- CC10     4250M     -100     
    Jul     FY13     BA     Working     Local     Stat_Center     230     xxx- CC10     4299M     -132          
    Jul     FY13     BA     Working     Local     Stat_Center     230     xxx- CC10     4501M     0          
    Thats just first few lines of the data. But how can it tell. You see what I mean??
    Edited by: 997328 on Jun 7, 2013 2:23 PMActually there is a way to know what value is what member. The line
    HSP_InputValue     HSP_InputCurrency     HSP_Rate_USD     HSP_Rate_RMB     HSP_Rate_CNY     HSP_Rate_PLN     HSP_Rate_EUR     HSP_Rate_GBP     HSP_Rate_MXP     HSP_Rate_INR     HSP_Rate_THB     HSP_RatesIs a listing of the data values in order. It would start with the first numeric column after the members. from the look of the sample data it looks like these are all hsp_inputvalue. scroll through the file or import it to excel and look at the columns to see if any of the other columns have numeric values.
    To be on the safe side, create a dummy file that has the dimension names like
    Period Years ???? Version Currency entity ????? ????? ?????? then all of the hsp values and use that to build your load rule, that way if there is a row 20000 rows down that has more than hsp_inputvalue, you won't get an error when trying to load the file

  • How to view exchange rate table in essbase?

    Hi,
    I have created exchange rate table in Hyperion-Planning application.
    Now I have to view that exchange rate table in essbase.
    By using HSP_rate...? is it the write answer to view the exchange rate table?
    If I am wrong then Could you please tell me how to view the exchange rate in essbase?

    Hi,
    Exchange rates are stored in the Planning Relational store and refreshed to Essbase. Below is a guide to help you find exchange rates that Planning should have refreshed to Essbase in, for example, Essbase Excel addin.
    You can set up the Essbase Excel addin to look at the following intersections, for example:
    Rows
    Accounts
    HSP_RateType
    HSP_Historical
    HSP_Average
    HSP_Ending
    HSP_Rates Dimension
    HSP_Rates
    HSP_Rate_USD
    HSP_Rate_AUD
    HSP_Rate_CAD
    HSP_Rate_JPY
    HSP_Rate_GBP
    HSP_Rate_EUR
    Columns
    Months of the Fiscal year's rates you want to see.
    Other Selections
    Select the specific Scenario (i.e. Forecast, Actuals)
    Select the specific year the rates were entered to (i.e. FY02, FY03)
    Specify the TOP LEVEL of Versions, Entities, or Currencies.
    If the retrieval informs you that you must select a value for any required custom dimensions, make sure to select the top level member for that dimension on your spreadsheet.
    Hope it helps...
    KosuruS

  • Failed to Initialize hspDSUserDimDB

    Hi - I had wanted to remove the HSP_Rates Dimension in Planning, so I went and removed that Dimension from a few tables.
    Specifically, HSP_Object, HSP_Member, HSP_MRU_Member, HSP_Dimension, HSP_Unique_Names
    I have restarted the application server for the changes to take into effect. Now, when I try to launch that Application again, in Planning, I get that err message 'Failed to Initialize HspDSUserDIMDB.
    Please help.

    In the HSP_SYSTEMCFG table have you set fields MULTI_CURRENCY, MULTI_CUR4ENT to 0 ?
    I really wouldn't advise hacking the tables unless you know what you are doing.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Retrieving of exchange rate - Excel Add-in/Planning

    <p>We have entered exchange rates in Hyperion Planning desktop andrefreshed it to Essbase.  We would like to be able to retrievethese rates in Essbase Addin and have not been able to do itdespite retrieving all the possible combinations ofdimensional members.  We are sure that something ismissing but is unable to detect it.  Can someone please adviseon this?  Le'ts just assume that we only have Accounts andEntities in Custom dimensions.  The others being the defaultScenarios, Versions, Time Periods and Years.  Appreciate anyfeedback.  Thanks</p>

    You will be able to use Essbase Excel Add-in to view the exchange rates. They are stored under the HSP_Rates dimension. Just make sure that you use the dimension name itself during member selection for Entities, Versions, and Currencies dimensions.<BR><BR> Select the members for each dimension as follows:<BR><BR> Scenarios: (scenario associated with the exchange rate table)<BR> Years: (year(s) to which the rates apply)<BR> Time Periods: (level zero time period(s) to which the rates apply)<BR> Versions: "Versions"<BR> Currencies: "Currencies"<BR> Entities: "Entities"<BR> Accounts: "HSP_Average", "HSP_Ending" or "HSP_Historical"<BR> HSP_Rates: "HSP_Rate_currencycode" eg. "HSP_Rate_USD"<BR><BR><BR>-Shoba

  • WebForm currency code display issue

    User is still be able to see the currency code displaying on his form after un checking 'display multiple currencies' option in form options. This option was checked before.... I am not seeing the code, but the user can...I verified if there is any user specific preference setting... but can't find anything...
    Any advise on what could be the reason for this... We are on 9.3.x
    Thanks...

    Sometimes this can happen when you have Dynamic Calc Member on the form and that Dynamic Calc formula on that member hasn't got "HSP_InputValue" specified in the formula. i.e its running the calc for all rates in the HSP_Rates dimension
    Thanks
    Anthony

  • Currencies in Hyperion Planning

    Hi, I'm working with Oracle Hyperion Planning, and I'm trying to create an application with multiple currencies. From what i read in the users guide there is an automatic calculation that should be created, as well as the dimension for manage the currencies.
    I see the dimension but where can i see this calculation?? and if it doesn't appear why could it be?
    Thanks a lot!!!
    Nidia

    Hi Nidia,
    Multiple-currency applications store exchange rates with the HSP_Rates dimension, which includes these members and others that store currency rates:
    HSP_InputValue: Stores data values
    HSP_InputCurrency: Stores currency types for data values
    For that matter you can create :
    1) Select Administration, then Manage Exchange Rates.
    2) Select Administration, then Manage Currency Conversion.
    If multiple currencies are enabled for the Planning application when you create a currency
    conversion, a currency conversion calc script is created, based on selected scenarios, versions,
    and currencies. A second calc script is generated by Planning. It copies appropriate exchange
    rates to the account, based on account rate types. For currency conversion, the Account type
    always takes precedence. Data type evaluation order is not considered. The copy calc script is
    named HspCrtB.csc for bottom-up versions and HspCrtT.csc for target versions. Running
    the copy calc script enables the currency conversion calc script to run in BLOCK mode, which
    is more efficient than CELL mode.
    For more information check out planning Admin guide.
    Cheers...!!!

  • Sample Planning Application Doesn't Create Entity Dimension Members in Essb

    Hello all,
    I created a SAMPLE application in planning and then did a "refresh database" so that it would create the outline in Essbase. When I goto Essbase and expand the outline I see seven dimensions: HSP_Rates(3), Account(1), Period(2), Year(4), Scenario(1), Version(1), Currency(2), Entity. It seems to me that not all members are appearing in the outline, I think Accounts is supposed to have 19 members, in my case it only has 1. Scenario only has the member "Current". Entity doesn't have any members at all. Can anybody shed light on why this might be the case? This isn't the way a sample application is supposed to be is it ?

    hi John,
    I was hoping you'd reply to this thread! Yes I did initialize the sample planning application after you told me to, and yes I am using Classic Planning...I dont have EPMA installed, it requires IIS and all that so there were some constraints on my part. I'm still getting the same error.
    So a quick rehash: I reset my system clock to 2007, successfully created the sample app, then refreshed the database (Adminstration -> Manage Database), and then when I look at the outline that was built in Essbase I got HSP Rates (3), Accounts (1), Period (2) Year (4), Scenario (1), Version (1), Currency (2) and Entity with no children. Based on Rittman Mead's blog, I believe I should have more than that. And when I try to load the data it tells me E01 is an unknown member and the data load fails.
    What could be the problem ?

  • Missing Standard Dimension Column for data load (MSSQL to Essbase Data)

    This is similar error to one posted by Sravan -- however I'm sure I have all dimensions covered -- going from MS SQL to SunOpsys Staging to Essbase. It is telling me missing standard dimension, however I have all accounted for:
    org.apache.bsf.BSFException: exception from Jython:
    Traceback (innermost last): File "<string>", line 23, in ? com.hyperion.odi.essbase.ODIEssbaseException: Missing standard dimension column for data load
    at com.hyperion.odi.essbase.ODIEssbaseDataWriter.loadData(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    I'm using multiple time period inputs -- BegBalance,Jul,Aug,Sep,Oct,Nov,Dec,Jan,Feb,Mar,Apr,May,Jun (target has all of those in place of Time Periods)
    I'm using hard coded input mapping for Metric, Scenario, Version, HSP_Rates and Currencies. -> 'Amount', 'Actual', 'Final', 'HSP_InputValue','Local' respectively.
    The only thing I can think of is that since I'm loading to each of the months in the Time Periods dimension (the reversal was set up to accomodate that)... and now its somehow still looking for that? Time Periods as a dimension does not show up in the reversal -- only the individual months named above.
    Any ideas on this one??

    John -- I extracted the data to a file and created a data load rule in Essbase to load the data. All dimensions present and accounted for (five header items as similar here) and everything loads fine.
    So not sure what else is wrong -- still getting the missing dimension error.
    Any other thoughts?? Here's the entire error message. Thanks for all your help on this.
    org.apache.bsf.BSFException: exception from Jython:
    Traceback (innermost last):
    File "<string>", line 23, in ?
    com.hyperion.odi.essbase.ODIEssbaseException: Missing standard dimension column for data load
         at com.hyperion.odi.essbase.ODIEssbaseDataWriter.loadData(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java)
         at org.python.core.PyMethod.__call__(PyMethod.java)
         at org.python.core.PyObject.__call__(PyObject.java)
         at org.python.core.PyInstance.invoke(PyInstance.java)
         at org.python.pycode._pyx8.f$0(<string>:23)
         at org.python.pycode._pyx8.call_function(<string>)
         at org.python.core.PyTableCode.call(PyTableCode.java)
         at org.python.core.PyCode.call(PyCode.java)
         at org.python.core.Py.runCode(Py.java)
         at org.python.core.Py.exec(Py.java)
         at org.python.util.PythonInterpreter.exec(PythonInterpreter.java)
         at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:144)
         at com.sunopsis.dwg.codeinterpretor.k.a(k.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt(SnpSessTaskSqlI.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.k(e.java)
         at com.sunopsis.dwg.cmd.g.A(g.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)
    Caused by: com.hyperion.odi.essbase.ODIEssbaseException: Missing standard dimension column for data load
         at com.hyperion.odi.essbase.ODIEssbaseDataWriter.validateColumns(Unknown Source)
         ... 32 more
    com.hyperion.odi.essbase.ODIEssbaseException: com.hyperion.odi.essbase.ODIEssbaseException: Missing standard dimension column for data load
         at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:146)
         at com.sunopsis.dwg.codeinterpretor.k.a(k.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt(SnpSessTaskSqlI.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.k(e.java)
         at com.sunopsis.dwg.cmd.g.A(g.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)

Maybe you are looking for

  • Add field in listing/exclusion selection screen

    Hi, expert, i have create a condition table for my listing type Z001. there is a field name ZZABCD in the condition table. In VB03, I can see the conditon table in 'Key combination'. Now i want to add the field into the selection screen when i click

  • Change sender e-mail notification

    HI. I implement Service Desk E-Mail Functionality. How can I change Sender this e-mail notification to constant address (support @ myconpany.com for example)? At present Sender is the Person who make change in support notification. Thank you.

  • How to refresh JPA cache from non-JPA code(JDBC)

    In the system, let say there are two different tools are available, Tool-A_Uses_JPA and Tool_B_Uses_JDBC. As the name of tools is self explanatory what persistence technology used by tools. Say,there is a table COMMON_TABLE. This can be used by both

  • Automatic Excise Invoice Print

    Dear All, I executed the normal sales process as mentioned below. Sales order - 4000040010 Delivery - 5000000096 Commercial Invoice u2013 6000000073 Excise Invoice u2013 3000063 I enabled automatic invoice printing, but the printout comes without val

  • Regex matcher class

    Hi I have a simple problem in regex. Whenever i try to write this piece of code i get an illegalStateException Matcher m = p.matcher(" absdsdfksj "); while (m.find()) {      System.out.println("At loc : " + m.start());      System.out.println("Found