Templating on values

In C++ I can write code something like:
template <int N>
    class Array
        int array[N];
void main()
    Array<3> array3D; // etc
}Is this possible in Java?
John

"new E" is not allowed because the compiler has no way to know
if "E" has a noargs constructor. "new E[]" is not allowed
because the compiler doesn't have enough information to actually
allocate an array of the correct type.The error message in "new E" is correct. The syntax productions do not allow TypeVariable in a new expression.
The error message regarding "new E[]" must be a compiler error, I would think. Type variables are expressly allowed in array creation expressions according to the spec. Section 5.3. says:
"The element type in a an array creation expression is a fully parameterized type. Creating an array whose element type is a type variable generates an "unchecked" warning at compile-time."
In addition, section 2.3 allows arrays of wildcard parameterized types:
"Wildcard parameterized types may be used as component types of arrays."
Given the current specification of Java Generics, how can the compiler reject the following declarations:
package generics;
import java.util.*;
public class Arrays2<T> {
          private T[] arr = new T[0];
          private List<Integer>[] l1 = new ArrayList<Integer>[0];
          private ArrayList<? super Integer>[] l2 = new ArrayList<? super Integer>[0];
          private ArrayList<? extends Number>[] l3 = new ArrayList<? extends Number>[0];
          private List<?>[] l4 = new List<?>[0];
          private List[] l5 = new List[0];
}The compiler is truly unhappy with all these declarations, except the array of raw type:
Arrays2.java:7: arrays of generic types are not allowed
          private List<Integer>[] l1 = new ArrayList<Integer>[0];
                                     ^
Arrays2.java:8: arrays of generic types are not allowed
          private ArrayList<? super Integer>[] l2 = new ArrayList<? super Integer>[0];
                                                  ^
Arrays2.java:9: arrays of generic types are not allowed
          private ArrayList<? extends Number>[] l3 = new ArrayList<? extends Number>[0];
                                                   ^
Arrays2.java:10: arrays of generic types are not allowed
          private List<?>[] l4 = new List<?>[0];
                               ^
Arrays2.java:6: generic array creation
          private T[] arr = new T[0];
                                  ^
Arrays2.java:7: arrays of generic types are not allowed
          private List<Integer>[] l1 = new ArrayList<Integer>[0];
                                             ^
Arrays2.java:8: arrays of generic types are not allowed
          private ArrayList<? super Integer>[] l2 = new ArrayList<? super Integer>[0];
                                                          ^
Arrays2.java:9: arrays of generic types are not allowed
          private ArrayList<? extends Number>[] l3 = new ArrayList<? extends Number>[0];
                                                           ^
Arrays2.java:10: arrays of generic types are not allowed
          private List<?>[] l4 = new List<?>[0];
                                       ^
9 errorsAm I seeing compiler bugs in all these cases? Or am I seeing specification errors?

Similar Messages

  • ITS templates - checkbox value not updated

    Hi,
    I am experiencing a problem with checkboxes in my Internet Service (similar to problem described in forum: checkboxes in ITS (again) ).
    The checkboxes are inside a table (step-loop) and is blank by default. If the user selects the checkbox, the value is cleared after user input.
    I executed the dialog program and it is fine.
    The generated service template was modified to accommodate the step-loop. I'm using the SAP_TEMPLATE tags for the WEBGUI look & feel.
    To set the checkbox parameter according to the user's input, should an if-statement be inserted in the code or should I use the parameter "onclick" with a javascript function?
    I inserted an if-statement but it doesn't work.
    Here's my code:
    `SAP_TemplateTableBegin(title="Some title:", type="SAP_WEBGUI")`
    `if ( IT_BEHAV-DESCR.dim > 0 )`
    `repeat with j from 1 to IT_BEHAV-DESCR.dim`
      `SAP_TemplateTableRowBegin(isSelectable="X")`
       `SAP_TemplateTableCellBegin(subtype="NONEDIT1")`   `IT_BEHAV-DESCR[j]` `SAP_TemplateTableCellEnd()`
    <b>   `if (IT_BEHAV-SELECT[j].selected)` checked `end`
       `SAP_TemplateTableCellBegin(subtype="NONEDIT1")` `SAP_TemplateSimpleCheckBox("IT_BEHAVE-SELECT", VALUE="`j`")` </b>           
        `SAP_TemplateTableCellEnd()`
              `SAP_TemplateTableRowEnd()`
             `end`
           `end`
         `SAP_TemplateTableEnd()`
    If the check on the value of the checkbox is performed within SAP_TemplateSimpleCheckbox tag (e.g. <b>`SAP_TemplateTableCellBegin(subtype="NONEDIT1")` `SAP_TemplateSimpleCheckBox("IT_BEHAVE-SELECT", VALUE="`j`", "`if (IT_BEHAV-SELECT[j].selected)` checked `end`"
    )`</b>  ),
    the checkbox values are still not updated.
    My Business HTML and Javascript is not very good, please help.
    Your assistance will be much appreciated.
    Regards
    Liza-Marie

    Hi,
    I tried
    `if (IT_BEHAV-SELECT[j]=='X')`checked`end`
    but it is still not working. I am not sure <i>where</i> it should be inserted...? I added it inside the checkbox tag as follows:
    <b>`SAP_TemplateTableCellBegin(subtype="NONEDIT1")` `SAP_TemplateSimpleCheckBox("IT_BEHAVE-SELECT", VALUE="`j`", "`if(IT_BEHAV-SELECT[j].selected)` checked `end`")`</b>
    as well as before and after this tag, without results.
    The tag SAP_TemplateSimpleCheckbox has the parameter <i>onclick</i>. I suppose this can be used to call a javascript function to control the checkbox values. I'm currently investigating this option, not that my javascript is any good!
    If the input fields of length 1 is used inside the loop, would it still work like a checkbox? I mean, can the user input any character? Do you perhaps have example code for this?
    Unfortunately I cannot debug on the ITS at this stage since I dont have access to the ITS server and it would take too long to get access or arrange for debugging to be set up.
    Thanks for the help so far!
    Regards
    Liza-Marie

  • Change Data Entry Template variable values using javascript

    Content ServerIs there a way to change the Data Entry Template's text/Integer variable values using javascript?

    I believe you're asking if you can change the value of a content item's property using Javascript (a content item is created from a data entry template, which defines the set of properties).
    Unfortunately there is not a way to permanently change it in the content item, since Javascript is executed client-side rather than on the server. However, if you're just interested in how the value is displayed in the published HTML, you could modify the presentation template to store the property value into a Javascript variable and then manipulate it to be displayed in whatever manner you wish.

  • Problem with Cross-tab report (RTF Template) null values, current-group()

    Hi, experts!
    I generate Cross-tab report using RTF Tamlpate and I have problem with grouping.
    My XML file have to be with one group only because I want to using dynamic regrouping inside the RTF template.
    Here is my data structure (XML file):(Look the images for details)
    http://img156.imageshack.us/img156/3997/xmlstructureay9.jpg
    =======================
    WITH GROUPS
    =======================
    Here is my RTF template:
    http://img151.imageshack.us/img151/2951/resultcrosstabbycustomehf8.jpg
    When I'm using grouping and I want to have for each group cross-tab report I have the following problem: (Look the images for details)
    http://img156.imageshack.us/img156/8786/resultcrosstabbycustomect9.jpg
    And this is my code I'm using inside the RTF template with groups:(Look the images for details)
    http://img156.imageshack.us/img156/4253/fieldbrowserxb7.jpg
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    =======================
    WITHOUT GROUPS
    =======================
    Here is my RTF template:
    http://img151.imageshack.us/img151/9545/resultcrosstabwithoutgrzg7.jpg
    When I generate one cross-tab there is no problem: (Look the images for details)
    http://img156.imageshack.us/img156/7030/resultcrosstabwithoutgrsr1.jpg
    This is my code I'm using inside the RTF template WITHOUT groups:(Look the images for details)
    http://img151.imageshack.us/img151/7030/fieldbrowserwithoutgrours8.jpg
    Can someone give me a hand to deal with this?
    Thank you!

    Pitson,
    better to ask this question in the BI Publisher Forum than here in the Oracle Reports Forum:
    BI Publisher
    Regards
    Rainer

  • Creation of domain using template

    Hi All,
    I have been trying to create a domain in weblogic 10.3 using the template . The domain gets created as well the server starts but when I try to deploy my application , I get following error
    <May 10, 2010 4:58:16 PM IST> <Warning> <HTTP> <BEA-101162> <User defined listen
    er weblogic.wsee.deploy.ServletDeployListener failed: weblogic.wsee.deploy.WSEES
    ervletEndpointException: Failed to prepare wsse module: admin-tools.war.
    weblogic.wsee.deploy.WSEEServletEndpointException: Failed to prepare wsse module
    : admin-tools.war
    at weblogic.wsee.deploy.ServletDeployListener.contextPrepared(ServletDep
    loyListener.java:32)
    at weblogic.servlet.internal.EventsManager$FireContextPreparedAction.run
    (EventsManager.java:487)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at weblogic.servlet.internal.EventsManager.notifyContextPreparedEvent(Ev
    entsManager.java:156)
    Truncated. see log file for complete stacktrace
    weblogic.wsee.ws.WsException: weblogic.wsee.security.configuration.WssConfigurat
    ionException: Certificate Alias not supplied
    at weblogic.wsee.deploy.WSEEModule.prepare(WSEEModule.java:130)
    at weblogic.wsee.deploy.ServletDeployListener.contextPrepared(ServletDep
    loyListener.java:29)
    at weblogic.servlet.internal.EventsManager$FireContextPreparedAction.run
    (EventsManager.java:487)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    Truncated. see log file for complete stacktrace
    weblogic.wsee.security.configuration.WssConfigurationException: Certificate Alia
    s not supplied
    at weblogic.wsee.security.policy.SecurityPolicyCustomizer.init(SecurityP
    olicyCustomizer.java:69)
    at weblogic.wsee.security.policy.SecurityPolicyCustomizer.process(Securi
    tyPolicyCustomizer.java:75)
    at weblogic.wsee.policy.runtime.PolicyServer.processAssertions(PolicySer
    ver.java:199)
    at weblogic.wsee.policy.runtime.PolicyFinder.readPolicyFromStream(Policy
    Finder.java:99)
    at weblogic.wsee.policy.runtime.PolicyFinder.loadPolicies(PolicyFinder.j
    ava:179)
    Truncated. see log file for complete stacktrace
    weblogic.wsee.security.configuration.WssConfigurationException: Certificate Alia
    s not supplied
    at weblogic.wsee.security.bst.ServerBSTCredentialProvider.initSSLCredent
    ial(ServerBSTCredentialProvider.java:224)
    at weblogic.wsee.security.bst.ServerBSTCredentialProvider.initCredential
    s(ServerBSTCredentialProvider.java:97)
    at weblogic.wsee.security.configuration.WssConfiguration.initDefaultConf
    iguration(WssConfiguration.java:367)
    at weblogic.wsee.security.configuration.WssConfiguration.init(WssConfigu
    ration.java:128)
    at weblogic.wsee.security.configuration.WssConfiguration.getSupprotedTok
    ens(WssConfiguration.java:182)
    Truncated. see log file for complete stacktrace
    >
    <May 10, 2010 4:58:17 PM IST> <Error> <Deployer> <BEA-149265> <Failure occurred
    in the execution of deployment request with ID '1273490845596' for task 'weblogi
    c.deploy.configChangeTask.0'. Error is: 'weblogic.application.ModuleException: '
    weblogic.application.ModuleException:
    at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:387)
    at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedM
    oduleDriver.java:176)
    at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(Modu
    leListenerInvoker.java:93)
    at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(Depl
    oymentCallbackFlow.java:387)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineD
    river.java:37)
    Truncated. see log file for complete stacktrace
    weblogic.wsee.security.configuration.WssConfigurationException: Certificate Alia
    s not supplied
    at weblogic.wsee.security.bst.ServerBSTCredentialProvider.initSSLCredent
    ial(ServerBSTCredentialProvider.java:224)
    at weblogic.wsee.security.bst.ServerBSTCredentialProvider.initCredential
    s(ServerBSTCredentialProvider.java:97)
    at weblogic.wsee.security.configuration.WssConfiguration.initDefaultConf
    iguration(WssConfiguration.java:367)
    at weblogic.wsee.security.configuration.WssConfiguration.init(WssConfigu
    ration.java:128)
    at weblogic.wsee.security.configuration.WssConfiguration.getSupprotedTok
    ens(WssConfiguration.java:182)
    Truncated. see log file for complete stacktrace
    >
    <May 10, 2010 4:58:18 PM IST> <Warning> <Deployer> <BEA-149078> <Stack trace for
    message 149004
    weblogic.application.ModuleException:
    at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:387)
    at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedM
    oduleDriver.java:176)
    at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(Modu
    leListenerInvoker.java:93)
    at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(Depl
    oymentCallbackFlow.java:387)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineD
    river.java:37)
    Truncated. see log file for complete stacktrace
    weblogic.wsee.security.configuration.WssConfigurationException: Certificate Alia
    s not supplied
    at weblogic.wsee.security.bst.ServerBSTCredentialProvider.initSSLCredent
    ial(ServerBSTCredentialProvider.java:224)
    at weblogic.wsee.security.bst.ServerBSTCredentialProvider.initCredential
    s(ServerBSTCredentialProvider.java:97)
    at weblogic.wsee.security.configuration.WssConfiguration.initDefaultConf
    iguration(WssConfiguration.java:367)
    at weblogic.wsee.security.configuration.WssConfiguration.init(WssConfigu
    ration.java:128)
    at weblogic.wsee.security.configuration.WssConfiguration.getSupprotedTok
    ens(WssConfiguration.java:182)
    Truncated. see log file for complete stacktrace
    >
    <May 10, 2010 4:58:18 PM IST> <Warning> <Deployer> <BEA-149004> <Failures were d
    etected while initiating deploy task for application 'TestEAR'.>
    <May 10, 2010 4:58:18 PM IST> <Warning> <Deployer> <BEA-149078> <Stack trace for
    message 149004
    weblogic.application.ModuleException:
    at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:387)
    at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedM
    oduleDriver.java:176)
    at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(Modu
    leListenerInvoker.java:93)
    at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(Depl
    oymentCallbackFlow.java:387)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineD
    river.java:37)
    Truncated. see log file for complete stacktrace
    weblogic.wsee.security.configuration.WssConfigurationException: Certificate Alia
    s not supplied
    at weblogic.wsee.security.bst.ServerBSTCredentialProvider.initSSLCredent
    ial(ServerBSTCredentialProvider.java:224)
    at weblogic.wsee.security.bst.ServerBSTCredentialProvider.initCredential
    s(ServerBSTCredentialProvider.java:97)
    at weblogic.wsee.security.configuration.WssConfiguration.initDefaultConf
    iguration(WssConfiguration.java:367)
    at weblogic.wsee.security.configuration.WssConfiguration.init(WssConfigu
    ration.java:128)
    at weblogic.wsee.security.configuration.WssConfiguration.getSupprotedTok
    ens(WssConfiguration.java:182)
    Truncated. see log file for complete stacktrace
    >
    <May 10, 2010 4:58:18 PM IST> <Error> <Console> <BEA-240003> <Console encountere
    d the following error weblogic.application.ModuleException:
    at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:387)
    at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedM
    oduleDriver.java:176)
    at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(Modu
    leListenerInvoker.java:93)
    at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(Depl
    oymentCallbackFlow.java:387)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineD
    river.java:37)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(Dep
    loymentCallbackFlow.java:58)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(Dep
    loymentCallbackFlow.java:42)
    at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.ja
    va:615)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineD
    river.java:37)
    at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.j
    ava:191)
    at weblogic.application.internal.EarDeployment.prepare(EarDeployment.jav
    a:16)
    at weblogic.application.internal.DeploymentStateChecker.prepare(Deployme
    ntStateChecker.java:155)
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(App
    ContainerInvoker.java:60)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.cr
    eateAndPrepareContainer(ActivateOperation.java:197)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.do
    Prepare(ActivateOperation.java:89)
    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.pr
    epare(AbstractOperation.java:217)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploym
    entPrepare(DeploymentManager.java:723)
    at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploy
    mentList(DeploymentManager.java:1190)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare
    (DeploymentManager.java:248)
    at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.pre
    pare(DeploymentServiceDispatcher.java:159)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallb
    ackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallb
    ackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:12)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallb
    ackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:45)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTunin
    gWorkManagerImpl.java:516)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: weblogic.wsee.security.configuration.WssConfigurationException: Certi
    ficate Alias not supplied
    at weblogic.wsee.security.bst.ServerBSTCredentialProvider.initSSLCredent
    ial(ServerBSTCredentialProvider.java:224)
    at weblogic.wsee.security.bst.ServerBSTCredentialProvider.initCredential
    s(ServerBSTCredentialProvider.java:97)
    at weblogic.wsee.security.configuration.WssConfiguration.initDefaultConf
    iguration(WssConfiguration.java:367)
    at weblogic.wsee.security.configuration.WssConfiguration.init(WssConfigu
    ration.java:128)
    at weblogic.wsee.security.configuration.WssConfiguration.getSupprotedTok
    ens(WssConfiguration.java:182)
    at weblogic.wsee.security.policy.SecurityPolicyCustomizer.init(SecurityP
    olicyCustomizer.java:56)
    at weblogic.wsee.security.policy.SecurityPolicyCustomizer.process(Securi
    tyPolicyCustomizer.java:75)
    at weblogic.wsee.policy.runtime.PolicyServer.processAssertions(PolicySer
    ver.java:199)
    at weblogic.wsee.policy.runtime.PolicyFinder.readPolicyFromStream(Policy
    Finder.java:99)
    at weblogic.wsee.policy.runtime.PolicyFinder.loadPolicies(PolicyFinder.j
    ava:179)
    at weblogic.wsee.policy.runtime.PolicyFinder.loadPolicesFromZip(PolicyFi
    nder.java:200)
    at weblogic.wsee.policy.runtime.PolicyFinder.loadPolicies(PolicyFinder.j
    ava:154)
    at weblogic.wsee.deploy.WSEEModule.loadPolicies(WSEEModule.java:364)
    at weblogic.wsee.deploy.WSEEModule.prepare(WSEEModule.java:124)
    at weblogic.wsee.deploy.ServletDeployListener.contextPrepared(ServletDep
    loyListener.java:29)
    at weblogic.servlet.internal.EventsManager$FireContextPreparedAction.run
    (EventsManager.java:487)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at weblogic.servlet.internal.EventsManager.notifyContextPreparedEvent(Ev
    entsManager.java:156)
    at weblogic.servlet.internal.WebAppServletContext.initContextListeners(W
    ebAppServletContext.java:1766)
    at weblogic.servlet.internal.WebAppServletContext.prepare(WebAppServletC
    ontext.java:1126)
    at weblogic.servlet.internal.HttpServer.doPostContextInit(HttpServer.jav
    a:449)
    at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:424)
    at weblogic.servlet.internal.WebAppModule.registerWebApp(WebAppModule.ja
    va:910)
    at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:364)
    >
    My application is not using any type of webservice . I am not sure what configuration I am missing.
    Please let know if you need any further information from my side.
    Thanks
    Abhijeet

    Hi Sandeep,
    Thanks for your reply , there was no Web Service Security mentioned .
    But I guess I found out the Reason , In my base domain under Admin Server , the Private Key Alias is set to DemoIdentitykey and Private Key phrase is too set with some encrypted value. When I exported the template these values were not passed to the new domain from template .
    So In my new domain Private Key Alias (AdminServer --> SSL) and Private Key Phrase are empty.
    Can somebody help me how to generate Private Key Alias and Private Key phrase please or how can i add them in the template.
    When I directly copied these two value from my old domain's config.xml to new domain's config.xml I got the below error.
    <May 11, 2010 4:20:11 PM IST> <Critical> <WebLogicServer> <BEA-000386> <Server s
    ubsystem failed. Reason: java.lang.AssertionError: java.lang.reflect.InvocationT
    argetException
    java.lang.AssertionError: java.lang.reflect.InvocationTargetException
    at weblogic.descriptor.DescriptorManager$SecurityServiceImpl$SecurityPro
    xy._invokeServiceMethod(DescriptorManager.java:175)
    at weblogic.descriptor.DescriptorManager$SecurityServiceImpl$SecurityPro
    xy.decrypt(DescriptorManager.java:192)
    at weblogic.descriptor.DescriptorManager$SecurityServiceImpl.decrypt(Des
    criptorManager.java:114)
    at weblogic.descriptor.internal.AbstractDescriptorBean._decrypt(Abstract
    DescriptorBean.java:990)
    at weblogic.management.configuration.SSLMBeanImpl.getServerPrivateKeyPas
    sPhrase(SSLMBeanImpl.java:1152)
    Truncated. see log file for complete stacktrace
    java.lang.reflect.InvocationTargetException
    at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at weblogic.descriptor.DescriptorManager$SecurityServiceImpl$SecurityPro
    xy._invokeServiceMethod(DescriptorManager.java:173)
    at weblogic.descriptor.DescriptorManager$SecurityServiceImpl$SecurityPro
    xy.decrypt(DescriptorManager.java:192)
    Truncated. see log file for complete stacktrace
    weblogic.security.internal.encryption.EncryptionServiceException: com.rsa.jsafe.
    JSAFE_PaddingException: Could not perform unpadding: invalid pad byte.
    at weblogic.security.internal.encryption.JSafeEncryptionServiceImpl.decr
    yptBytes(JSafeEncryptionServiceImpl.java:78)
    at weblogic.security.internal.encryption.JSafeEncryptionServiceImpl.decr
    yptString(JSafeEncryptionServiceImpl.java:94)
    at weblogic.security.internal.encryption.ClearOrEncryptedService.decrypt
    (ClearOrEncryptedService.java:87)
    at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    Truncated. see log file for complete stacktrace
    com.rsa.jsafe.JSAFE_PaddingException: Could not perform unpadding: invalid pad b
    yte.
    at com.rsa.jsafe.JA_PKCS5Padding.a(Unknown Source)
    at com.rsa.jsafe.JG_BlockCipher.decryptFinal(Unknown Source)
    at weblogic.security.internal.encryption.JSafeEncryptionServiceImpl.decr
    yptBytes(JSafeEncryptionServiceImpl.java:68)
    at weblogic.security.internal.encryption.JSafeEncryptionServiceImpl.decr
    yptString(JSafeEncryptionServiceImpl.java:94)
    at weblogic.security.internal.encryption.ClearOrEncryptedService.decrypt
    (ClearOrEncryptedService.java:87)
    Truncated. see log file for complete stacktrace
    >
    <May 11, 2010 4:20:11 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server sta
    te changed to FAILED>
    <May 11, 2010 4:20:11 PM IST> <Error> <WebLogicServer> <BEA-000383> <A critical
    service failed. The server will shut itself down>
    <May 11, 2010 4:20:11 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server sta
    te changed to FORCE_SHUTTING_DOWN>
    Stopping PointBase server...
    PointBase server stopped.
    Autonomy server stopped.
    Please let me know if you need any further information from my side.
    Thanks
    Abhijeet

  • Calendar weekly view template

    Hello,
    Following a previous thread - Trying to modify the weekly calendar view CSS - I would really appreciate if someone from the development team will publish a skeleton template for the calendar weekly view so will be able to modify it to our needs. I spent a lot of time on it and I'm not getting anywhere.
    Thanks,
    Arie.

    <p class="MsoNormal">Hi,<o:p></o:p></p>
    <p class="MsoNormal"><o:p></o:p></p>
    <p class="MsoNormal">Here is the sample template Attribute values for Weekly and Daily calendar which you can use.<o:p></o:p></p>
    <p class="MsoNormal"><o:p></o:p></p>
    <p class="MsoNormal">All the class names prefixed with "t1" should be changed with the "t<theme number> which you are using.<o:p></o:p></p>
    <p class="MsoNormal"><o:p></o:p></p>
    <p class="MsoNormal">Example : if you are using theme 2 then class for Month title format will be class="t2WeekCalendarHolder"<o:p></o:p></p>
    <p class="MsoNormal"><o:p></o:p></p>
    <p class="MsoNormal">Weekly Calendar<o:p></o:p></p>
    <p class="MsoNormal">Month Title Format - <table cellspacing="0" cellpadding="0" border="0" summary="" class="t1WeekCalendarHolder"><o:p></o:p></p>
    <p class="MsoNormal"><tr><o:p></o:p></p>
    <p class="MsoNormal"><td class="t1MonthTitle" id="test">#WTITLE#</td><o:p></o:p></p>
    <p class="MsoNormal"></tr><o:p></o:p></p>
    <p class="MsoNormal"><tr><o:p></o:p></p>
    <p class="MsoNormal"><td><o:p></o:p></p>
    <p class="MsoNormal">Day Of Week Format - <th class="t1DayOfWeek">#IDAY#<br>#MM#/#DD#</th><o:p></o:p></p>
    <p class="MsoNormal">Month Open Format - <table border="0" cellpadding="0" cellspacing="0" summary="0" class="t1WeekCalendar"><o:p></o:p></p>
    <p class="MsoNormal"><o:p></o:p></p>
    <p class="MsoNormal">Month Close Format - </table></td></tr></table><o:p></o:p></p>
    <p class="MsoNormal"><o:p></o:p></p>
    <p class="MsoNormal">Hour Open Format - <tr><o:p></o:p></p>
    <p class="MsoNormal"><o:p></o:p></p>
    <p class="MsoNormal">Hour Close Format - </tr><o:p></o:p></p>
    <p class="MsoNormal"><o:p></o:p></p>
    <p class="MsoNormal">Day Title Format - <o:p></o:p></p>
    <p class="MsoNormal"><o:p></o:p></p>
    <p class="MsoNormal">Day Open Format - <td class="t1Day" valign="top"><o:p></o:p></p>
    <p class="MsoNormal">Day Close Format - <br /></td><o:p></o:p></p>
    <p class="MsoNormal">Today Open Format - <td class="t1Today" valign="top"><o:p></o:p></p>
    <p class="MsoNormal">Time Title Format - #TIME#<o:p></o:p></p>
    <p class="MsoNormal">Time Open Format - <th class="t1Hour"><o:p></o:p></p>
    <p class="MsoNormal">Time Close Format - <br /></th><o:p></o:p></p>
    <p class="MsoNormal">Weekend Title Format - <o:p></o:p></p>
    <p class="MsoNormal">Weekend Open Format - <td valign="top" class="t1NonDay"><o:p></o:p></p>
    <p class="MsoNormal">Weekend Close Format - <br /></td><o:p></o:p></p>
    <p class="MsoNormal"><o:p></o:p></p>
    <p class="MsoNormal">Daily Calendar<o:p></o:p></p>
    <p class="MsoNormal"><o:p></o:p></p>
    <p class="MsoNormal">Month Title Format - <table cellspacing="0" cellpadding="0" border="0" summary="" class="t1DayCalendarHolder"> <tr> <td class="t1MonthTitle">#IMONTH# #DD#, #YYYY#</td> </tr> <tr> <td><o:p></o:p></p>
    <p class="MsoNormal"><o:p></o:p></p>
    <p class="MsoNormal">Day Of Week Format -<th class="t1DayOfWeek">#IDAY# #DD#/#MM#</th><o:p></o:p></p>
    <p class="MsoNormal">Month Open Format - <table border="0" cellpadding="2" cellspacing="0" summary="0" class="t1DayCalendar"><o:p></o:p></p>
    <p class="MsoNormal">Month Close Format - </table></td> </tr> </table><o:p></o:p></p>
    <p class="MsoNormal">Hour Open Format - <tr><o:p></o:p></p>
    <p class="MsoNormal">Hour Close Format - </tr><o:p></o:p></p>
    <p class="MsoNormal">Day Title Format - <o:p></o:p></p>
    <p class="MsoNormal">Day Open Format - <td valign="top" class="t1Day"><o:p></o:p></p>
    <p class="MsoNormal">Day Close Format - <br /></td><o:p></o:p></p>
    <p class="MsoNormal">Today Open Format - <td valign="top" class="t1Today"><o:p></o:p></p>
    <p class="MsoNormal">Time Title Format - #TIME#<o:p></o:p></p>
    <p class="MsoNormal">Time Open Format - <th class="t1Hour"><o:p></o:p></p>
    <p class="MsoNormal">Time Close Format - <br /></th></p>
    Thanks
    JS

  • Issue in updating the Template definition using XDOLOADER command

    Hi All,
    My requirement is to update the territory value as 00 from 'US' in the template screen.So I am using the XDOLOADER command to update the exising template defintion and the issue here is instead of replacing the old template territory value,it is creating new entry in the template screen as well as in xdo_lobs table.I am specifying the custom mode as FORCE to update the existing template definition,but unable to understand why it is not updating the old template and creating new entry
    Below is the code snippet of the XDOLOADER command
    java oracle.apps.xdo.oa.util.XDOLoader UPLOAD \
    -DB_USERNAME apps \
    -DB_PASSWORD $pwd \
    -JDBC_CONNECTION hostname:portno:servicename \
    -LOB_TYPE TEMPLATE \
    -APPS_SHORT_NAME IBY \
    -LOB_CODE XX_FORMAT \
    -LANGUAGE en \
    -TERRITORY 00 \
    -XDO_FILE_TYPE RTF \
    -FILE_CONTENT_TYPE application/rtf \
    -FILE_NAME XXFILE.rtf \
    -CUSTOM_MODE FORCE
    Much appreciated if someone could provide an inputs on this issue.Pls let me know if you require any additional info.
    Regards,
    Rajesh

    I guess it is just not possible. The territory code is part of a key element in one of the tables.
    So, the easiest is probably to delete the old and create the new.
    Ronny

  • How to use double click trigger in ListBoxItem template?

    Hi all,
    I want to double click listBoxItem in listbox, and set this item as editable status. It says make textbox as visible, please see the below code. When press Enter key or lost focus, then make textbox as invisible and textblock as visible. It's better to use
    trigger to switch the status, but I do not know how to do it, thanks!
    <Setter Property="Template">
    <Setter.Value>
    <ControlTemplate TargetType="ListBoxItem">
    <Grid>
    <TextBlock Text="{Binding FirstName}" />
    <TextBox Text="{Binding FirstName}"/>
    </Grid>
    </ControlTemplate>
    </Setter.Value>
    </Setter>

    Did you consider using a DataGrid? This control has editing capabilities built-in:
    https://msdn.microsoft.com/en-us/library/system.windows.controls.datagrid(v=vs.110).aspx
    Otherwise you could add a boolean property to the class with the FirstName property, toggle this one in an event handler for the MouseDoubleClick event of the ListBoxItem and then use data triggers. Here is an example for you that should give you the
    idea:
    <ListBox x:Name="lb1">
    <ListBox.ItemContainerStyle>
    <Style TargetType="ListBoxItem">
    <EventSetter Event="MouseDoubleClick" Handler="OnMouseDoubleClick"/>
    </Style>
    </ListBox.ItemContainerStyle>
    <ListBox.ItemTemplate>
    <DataTemplate>
    <Grid>
    <TextBlock x:Name="tb" Text="{Binding FirstName}" Visibility="Visible"/>
    <TextBox x:Name="tx" Text="{Binding FirstName}" Visibility="Collapsed"
    LostKeyboardFocus="tx_LostFocus" PreviewKeyDown="tx_PreviewKeyDown"/>
    </Grid>
    <DataTemplate.Triggers>
    <DataTrigger Binding="{Binding IsInEditMode}" Value="True">
    <Setter TargetName="tb" Property="Visibility" Value="Collapsed"/>
    <Setter TargetName="tx" Property="Visibility" Value="Visible"/>
    </DataTrigger>
    </DataTemplate.Triggers>
    </DataTemplate>
    </ListBox.ItemTemplate>
    </ListBox>
    public MainWindow()
    InitializeComponent();
    List<YourItem> myDataType = new List<YourItem>()
    new YourItem{ FirstName = "Name..."}
    lb1.ItemsSource = myDataType;
    private void OnMouseDoubleClick(object sender, MouseButtonEventArgs e)
    ListBoxItem lbi = sender as ListBoxItem;
    YourItem item = lbi.DataContext as YourItem;
    if (item != null)
    item.IsInEditMode = !item.IsInEditMode;
    private void tx_LostFocus(object sender, RoutedEventArgs e)
    TextBox txt = sender as TextBox;
    YourItem item = txt.DataContext as YourItem;
    if (item != null)
    item.IsInEditMode = false;
    private void tx_PreviewKeyDown(object sender, KeyEventArgs e)
    if (e.Key == Key.Return)
    e.Handled = true;
    TextBox txt = sender as TextBox;
    YourItem item = txt.DataContext as YourItem;
    if (item != null)
    item.IsInEditMode = false;
    Make sure that your model class implements the INotifyPropertyChanged interface correctly:
    public class YourItem : INotifyPropertyChanged
    public string FirstName { get; set; }
    private bool _isInEditMode;
    public bool IsInEditMode
    get { return _isInEditMode; }
    set { _isInEditMode = value; NotifyPropertyChanged("IsInEditMode"); }
    public event PropertyChangedEventHandler PropertyChanged;
    private void NotifyPropertyChanged(string propertyName)
    if (PropertyChanged != null)
    PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
    Hope that helps.
    Please remember to close your threads by marking helpful posts as answer and then start a new thread if you have a new question. Please don't post several questions in the same thread.

  • PDF Template for XML Report

    We are trying to create a PDF Template for an XML Publisher Report using Adobe Acrobat Profession Version. The PDF Template works fine for one employee but when the start and end body tags are inserted in the template, the concurrent process to submit this reports completes in warning.
    The OPP Log shows the below details
    [6/30/08 1:26:36 PM] [102436:RT20660155] XML Publisher post-processing action complete.
    [6/30/08 1:26:36 PM] [102436:RT20660155] Completed post-processing actions for request 20660155.
    [6/30/08 2:29:59 PM] [OPPServiceThread0] Post-processing request 20660180.
    [6/30/08 2:29:59 PM] [102436:RT20660180] Executing post-processing actions for request 20660180.
    [6/30/08 2:29:59 PM] [102436:RT20660180] Starting XML Publisher post-processing action.
    [6/30/08 2:29:59 PM] [102436:RT20660180]
    Template code: Test123
    Template app: XBOL
    Language: en
    Territory: US
    Output type: PDF
    [6/30/08 2:29:59 PM] [UNEXPECTED] [102436:RT20660180] oracle.apps.fnd.cp.opp.PostProcessorException: XML Publisher output file not created
    at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:281)
    at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:157)
    I think this is do which how i am creating the PDF Template. When i am not inserting the repearting group tootips then the PDF Template works abosoultey fine for one employee
    the text inserted in the Toottip for the start of the repeating group - @{rep_field="BODY_START"}@
    Tootip for each repeating row @{rep_field="T1_G1"}@ ,@{rep_field="T1_G2"}@ and so on.
    Tootip for end of the repating group @{rep_field="BODY_END"}@

    XML Data
    <?xml version="1.0"?>
    <!-- Generated by Oracle Reports version 6.0.8.11.3 -->
    <MODULE1>
    <LIST_G_HGL>
    <G_HGL>
    <EMPLOYER>HWS</EMPLOYER>
    <BOX_1>YEN</BOX_1>
    </G_HGL>
    <G_HGL>
    <EMPLOYER>HGL</EMPLOYER>
    <BOX_1>YE</BOX_1>
    </G_HGL>
    </LIST_G_HGL>
    </MODULE1>
    Further when i tried using the Template Viewer of XML Publisher Desktop with the above XML File and the template i created in Adobe Acrobat Professional (i am mailing the template to [email protected]) , i got the following error
    [070808_093926007][][STATEMENT] MergerEngine.modify : template forms value is being changed......
    [070808_093926007][][STATEMENT] MergerEngine.modify(String, String, String) block ::: FieldName -> Start , FieldValue ->
    [070808_093926007][][STATEMENT] MergerEngine.modify(String, String, String) block ::: FieldName -> End , FieldValue ->
    [070808_093926038][][STATEMENT] MergerEngine.modify(String, String, String) block ::: FieldName -> EMPLOYER , FieldValue -> HGL
    [070808_093926054][][STATEMENT] MergerEngine.modify : template forms value is changed......
    [070808_093926054][][EXCEPTION] java.lang.ArrayIndexOutOfBoundsException: 0 >= 0
         at java.util.Vector.elementAt(Unknown Source)
         at oracle.apps.xdo.template.pdf.RepeatEngine.getGapBetweenGroups(RepeatEngine.java:449)
         at oracle.apps.xdo.template.pdf.RepeatEngine.<init>(RepeatEngine.java:154)
         at oracle.apps.xdo.template.pdf.RepeatEngine.<init>(RepeatEngine.java:101)
         at oracle.apps.xdo.template.FormProcessor.processRepeatableFields(FormProcessor.java:1742)
         at oracle.apps.xdo.template.FormProcessor.processRepeatableFields(FormProcessor.java:1684)
         at oracle.apps.xdo.template.FormProcessor.process(FormProcessor.java:1445)
         at oracle.apps.xdo.template.FormProcessor.process(FormProcessor.java:1583)
         at oracle.apps.xdo.runner.PDFFormRunThread.runFormProcessor(PDFFormRunThread.java:131)
         at oracle.apps.xdo.runner.PDFFormRunThread.runFormProcessor(PDFFormRunThread.java:73)
         at oracle.apps.xdo.runner.PDFFormRunThread.run(PDFFormRunThread.java:45)
    [070808_093926054][][STATEMENT] <--- before calling createContents() --->
    [070808_093926086][][STATEMENT] <--- before calling addFontInfoToResources() --->
    [070808_093926086][][EXCEPTION] oracle.apps.xdo.template.pdf.exception.FatalException: page Key can't be found to duplicate page......
         at oracle.apps.xdo.template.pdf.RepeatEngine.getDupPageKey(RepeatEngine.java:1421)
         at oracle.apps.xdo.template.pdf.RepeatEngine.composePages(RepeatEngine.java:827)
         at oracle.apps.xdo.template.FormProcessor.processRepeatableFields(FormProcessor.java:1743)
         at oracle.apps.xdo.template.FormProcessor.processRepeatableFields(FormProcessor.java:1684)
         at oracle.apps.xdo.template.FormProcessor.process(FormProcessor.java:1445)
         at oracle.apps.xdo.template.FormProcessor.process(FormProcessor.java:1583)
         at oracle.apps.xdo.runner.PDFFormRunThread.runFormProcessor(PDFFormRunThread.java:131)
         at oracle.apps.xdo.runner.PDFFormRunThread.runFormProcessor(PDFFormRunThread.java:73)
         at oracle.apps.xdo.runner.PDFFormRunThread.run(PDFFormRunThread.java:45)
    End of Process.
    Time: 0.251 sec.
    FO Formatting failed.

  • How to give loop to the template

    hello,
    i had created smartform, in that i had created the template. Now the driver program had passing two records. But the template at a time will process the one record. So can we please specify how to loop into internal table which is coming into smartform from driver program. I had check in the driver program the internal table conatins two record but at the time of execution ie after passing to smartform it is taking latest record ie second record.

    HI,
    Let me say the clear picture..
    Let us take the table below
    Fields:
    matnr werks lgort   -
    This is the template static value
    1001   09    1001         -
    This is an internal table
    1003   09    1001     
    Template just takes static values you cannot loop into it..
    please define a table by right click and pass the values.
    rewards if useful,
    regards,
    nazeer

  • Unstructured Templates

    Can templates process values from the report? I am trying to insert column values into the heading of a report using a template. The custom report layout won't recognize
    column values in the heading.

    Hi
    if you call a procedure from a UI template, you must grant that procedure to public, otherwise you don't see anything.
    #write my_schema.my_proc: for example
    create or replace my_proc as
    begin
    htp.p('Hello');
    end;
    #in sqlplus: conn my_schema/my_schema@my_sid
    grant execute on my_schema.my_proc to public;
    #in the UI template:
    <ORACLE>begin my_schema.my_proc; end;</ORACLE>
    It works,
    Ettore

  • OSA - reading final appraisal (value text)

    Hi,
    We are using Objective Setting & Appraisal and I need to display the final appraisal (text) on a form. I'm reading the final appraisal value from HTHAP_FINAL but I'm having problems reading the text. The appraisal ratings and descriptions exist in table T71GS but some of the External value id descriptions are configured differently in the Template catalog (/PHAP_CATALOG_PA):  <b>Template Category > Template > tab Value texts</b>.  In the catalog, the external values are apparently linked to the scale id which is linked to the template. I need to read the descriptions as configured in the catalog. In which table are these descriptions stored and if I need to access it via the scale id where can I find the scale id?
    We are using the old Compensation Model, not ECM.
    Your help will be much appreciated.
    Regards
    Liza-Marie

    Hi,
    I assume you read the value directly from the HRHAP_FINAL table. We don't recommend this, its easier just to use HRHAP_DOCUMENT_GET_DETAIL and read the value you want (it also delivers all the needed texts).
    However, if you want to stick with reading directly from the DB you do following. I assume you read the HRHAP_FINAL with the appraisal id and that you want the end result, so on template level (VA)!
    Then after you do this you run FM HRHAP_TEMPLATE_OF_DOCUMENT_GET to get the template ID used for the appraisal document.
    then use FM HRHAP_C_IT5022_READ to get the column configuration of the template and read the values for the FAPP column (you need the value class and type).
    then FM HRHAP_CONVERT_VALUE_DB_TO_CHAR to get the correct text to the value you read from the data base.
    But really, try to use HRHAP_DOCUMENT_GET_DETAIL instead, less programming and it does the same.
    Regards and Groetjes,
    Maurice

  • Managing Monitoring Templates Based on Target Properties (not Administration Groups)

    I understand how to create administration groups, based on a hierarchy of target properties.  In addition, I've assigned monitoring templates to these various groups with limited success.
    But I would like to be able to setup different monitoring templates, metric values, compliance configuration, etc based on the target properties themselves and not just the hierarchy.
    For example, lets say I have a hierarchy of administration groups starting with "Cost Center" at the top and "Location" as the next level.  Now, I want to set up some compliance rules based on Operating Systems and want to do this across all my systems, regardless of administration group.  (ie all Solaris 10 machines setup one way, Solaris 11 machines another).
    Can I do this?

    does your RCDC info look something like the following?
     <my:Control
    my:Name="GroupMemberOfSG"
    my:TypeName="UocListView"
    my:ExpandArea="true"
    my:Caption="Security Groups"
    my:RightsLevel="{Binding Source=rights,
    Path=isAdminAccount}">
    <my:Properties>
    <my:Property
    my:Name="ColumnsToDisplay"
    my:Value="DisplayName,Email,Domain,DisplayedOwner"
    />
    <my:Property
    my:Name="EmptyResultText"
    my:Value="There are no groups according to the filter definition." />
    <my:Property
    my:Name="PageSize"
    my:Value="20" />
    <my:Property
    my:Name="ShowTitleBar"
    my:Value="true" />
    <my:Property
    my:Name="ShowActionBar"
    my:Value="false" />
    <my:Property
    my:Name="ShowPreview"
    my:Value="false" />
    <my:Property
    my:Name="ShowSearchControl"
    my:Value="false" />
    <my:Property
    my:Name="EnableSelection"
    my:Value="false" />
    <my:Property
    my:Name="SingleSelection"
    my:Value="false" />
    <my:Property
    my:Name="ItemClickBehavior"
    my:Value="
    ModelessDialog " />
    <my:Property
    my:Name="ListFilter"
    my:Value="/Group[(Type='Security') and ((ComputedMember='%ObjectID%')
    or (ExplicitMember='%ObjectID%'))]"
    />
    </my:Properties>
    </my:Control>
    </my:Grouping>
    Anthony Marsiglia

  • EVHOT with links to source template Issue

    Hello Experts,
    I have created 2 input templates.  The first input template has an EVHOT function to the second template.  The EVHOT function is working fine.
    I am having an issue because the second template has links to cells on the first template.  The first template drivest he behavior on the second template.
    When I open the second template(using the EVHOT), it opens up fine for me.  However, when other users open the template, they keep getting the Update Links error and the template does not function properly.  Microsoft keeps putting a path (i.e. C:\...\...\...\filename.ext)  in my formulas that look to the first template for values.  This is causing me big headaches as I cannot figure out how to make this work properly.  It doesn't seem like rocket science,.
    So have any of you successfully attempted this sort of template behavior?  If so, any advice you could provide me would be appreciated.
    Some Other Facts:
    1.  Yes, my EVHOT template is in the Wizard folder and working properly
    2.  I have tried to save the source template on the server and open from there, but the other users still get the update links
    3.  I have increased the template version and synchornized all templates on the other users pc's.
    Thank you for your feedback.
    Mark Glowczewski

    Hi Mark,
    Have you tried using a relative path (../template.xls) in the template instead of an absolute path (C:/...../...../template.xls)?
    Ethan

  • XSL recursion losing value problem.

    I've created an XSL stylesheet that i'm using to create a pie chart in svg. Each slice of the pie is done in a recursive call to the draw function. The slice number is passed to each recursive call with the value of counter + 1.
    This seems to be pretty straight forward and working fine until I hit a for-each loop in the template. For some reason the for-each is setting the counter back to 1.
    for example:
    counter is now 2
    <xsl:for-each select=...>
    counter is now 1 for some reason
    <xsl:call-template with param counter + 1
    </xsl:for-each>
    So the result is whenever the for-each is enter, counter has a value of 1.
    attached is the actual stylesheet and a sample xml. I'm using oraxsl to do the transform.
    <xsl:stylesheet version="1.0" type="text/xsl"
    xmlns:xsl ="http://www.w3.org/1999/XSL/Transform"
    xmlns:Mayura ="http://www.mayura.com/"
    exclude-result-prefixes="Mayura">
    <xsl:include href="CoolColors.xsl"/>
    <xsl:include href="math.xsl"/>
    <xsl:output standalone="yes" doctype-system="svg-19990812.dtd"
    media-type="image/svg" indent="yes"/>
    <xsl:template match="/">
    <xsl:apply-templates select="/graph"/>
    </xsl:template>
    <xsl:template name="drawPie" match="graph">
    <xsl:param name="x_origin" select="0"/>
    <xsl:param name="y_origin" select="0"/>
    <xsl:param name="gWidth" select="800"/>
    <xsl:param name="gHeight" select="600"/>
    <g id="pie chart" transform="translate({$x_origin}, {$y_origin})">
    <xsl:variable name="count1" select="sum(values/value/@amount)"/>
    count1 = <xsl:value-of select="$count1"/>
    num_values = <xsl:value-of select="count(values/value)"/>
    <xsl:call-template name="drawSlice">
    <xsl:with-param name="x_origin" select="0"/>
    <xsl:with-param name="y_origin" select="0"/>
    <xsl:with-param name="gWidth" select="$gWidth"/>
    <xsl:with-param name="gHeight" select="$gHeight"/>
    <xsl:with-param name="counter" select="1"/>
    </xsl:call-template>
    </g>
    </xsl:template>
    <xsl:template name="drawSlice">
    <xsl:param name="counter" select="1"/>
    <xsl:param name="x_origin" select="0"/>
    <xsl:param name="y_origin" select="0"/>
    <xsl:param name="gWidth" select="800"/>
    <xsl:param name="gHeight" select="600"/>
    <xsl:param name="rotateMe" select="0"/>
    DRAWSLICE1: <xsl:value-of select="$counter"/>
    <xsl:for-each select="values/value">
    DRAWSLICE2: <xsl:value-of select="$counter"/>
    <xsl:if test="position()=$counter">
    <xsl:call-template name="drawSlice">
    <xsl:with-param name="counter" select="$counter + 1"/>
    <xsl:with-param name="x_origin" select="$x_origin"/>
    <xsl:with-param name="y_origin" select="$y_origin"/>
    <xsl:with-param name="gWidth" select="$gWidth"/>
    <xsl:with-param name="gHeight" select="$gHeight"/>
    </xsl:call-template>
    </xsl:if>
    </xsl:for-each>
    </xsl:template>
    </xsl:stylesheet>
    some xml for it is:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <graph width="600" height="400" type="PIE">
    <legend font_size="14"/>
    <title font_size="30" font_color="red" fill_color="red">Monthly PIRs</title>
    <title2 font_size="20" font_color="red" fill_color="red">2001</title2>
    <values>
    <value name="JANUARY" amount="25">
    <graph width="600" height="400" type="PIE">
    <title> JANUARY</title>
    <values>
    <value name="ENGINEERING" amount="3"/>
    <value name="NEW BUSINESS/PROGRAMS" amount="2"/>
    <value name="OPERATIONS" amount="16"/>
    <value name="QUALITY" amount="3"/>
    <value name="SAFETY" amount="1"/>
    </values>
    </graph>
    </value>
    <value name="FEBRUARY" amount="14">
    <graph width="600" height="400" type="PIE">
    <title> FEBRUARY</title>
    <values>
    <value name="ENGINEERING" amoun t="4"/>
    <value name="HUMAN RESOURCES" amount="1"/>
    <value name="INFO SYSTEMS" amount="1"/>
    <value name="OPERATIONS" amount="7"/>
    <value name="QUALITY" amount="1"/>
    </values>
    </graph>
    </value>
    <value name="MARCH" amount="5">
    <graph width="600" height="400" type="PIE">
    <title>MARCH</title>
    <values>
    <value name="ENGINEERING" amount="1"/>
    <value name="HUMAN RESOURCES" amount="1"/>
    <value name="INFO SYSTEMS" amount="1"/>
    <value name="OPERATIONS" amount="1"/>
    <value name="QUALITY" amount="1"/>
    </values>
    </graph>
    </value>
    </values>
    </graph>
    I've deleted alot of stuff out of it. The important lines are the DRAWSLICE.
    The expected output would have each value of DRAWSLICE1 = DRAWSLICE2, however if you run it you'll see that DRAWSLICE2 is always = 1.
    Any help appreciated,
    Jeff

    The problem is related to the fact that a call-template does not change the current node or the current node list, while a for-each does.
    When you recursively invoke call-template from within a for-each, you've changed the current node to I believe your <xsl:for-each select="values/value"> won't be finding what it thinks it will be finding.
    I hope this working stylesheet gets you going in the right direction. Given your "jeff.xml" file, it produces the output:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <root>
    <graph>
    <slice name="JANUARY" amt="25" rel-id="1" abs-id="1">
    <slice name="ENGINEERING" amt="3" rel-id="1" abs-id="2"/>
    <slice name="NEW BUSINESS/PROGRAMS" amt="2" rel-id="2" abs-id="3"/>
    <slice name="OPERATIONS" amt="16" rel-id="3" abs-id="4"/>
    <slice name="QUALITY" amt="3" rel-id="4" abs-id="5"/>
    <slice name="SAFETY" amt="1" rel-id="5" abs-id="6"/>
    </slice>
    <slice name="FEBRUARY" amt="14" rel-id="2" abs-id="7">
    <slice name="ENGINEERING" amt="4" rel-id="1" abs-id="8"/>
    <slice name="HUMAN RESOURCES" amt="1" rel-id="2" abs-id="9"/>
    <slice name="INFO SYSTEMS" amt="1" rel-id="3" abs-id="10"/>
    <slice name="OPERATIONS" amt="7" rel-id="4" abs-id="11"/>
    <slice name="QUALITY" amt="1" rel-id="5" abs-id="12"/>
    </slice>
    <slice name="MARCH" amt="5" rel-id="3" abs-id="13">
    <slice name="ENGINEERING" amt="1" rel-id="1" abs-id="14"/>
    <slice name="HUMAN RESOURCES" amt="1" rel-id="2" abs-id="15"/>
    <slice name="INFO SYSTEMS" amt="1" rel-id="3" abs-id="16"/>
    <slice name="OPERATIONS" amt="1" rel-id="4" abs-id="17"/>
    <slice name="QUALITY" amt="1" rel-id="5" abs-id="18"/>
    </slice>
    </graph>
    </root>The stylesheet looks like:
    <xsl:stylesheet version="1.0" xmlns:xsl ="http://www.w3.org/1999/XSL/Transform">
    <xsl:output indent="yes"/>
    <xsl:template match="/">
    <root>
    <xsl:apply-templates select="/graph"/>
    </root>
    </xsl:template>
    <xsl:template match="graph">
    <graph>
    <xsl:apply-templates select="values/value" mode="drawSlice"/>
    </graph>
    </xsl:template>
    <xsl:template match="value" mode="drawSlice">
    <slice name="{@name}" amt="{@amount}"
    rel-id="{position()}" abs-id="{count(preceding::value)+count(ancestor::value)+1}">
    <xsl:apply-templates select="graph/values/value" mode="drawSlice"/>
    </slice>
    </xsl:template>
    </xsl:stylesheet>I wasn't sure if you were trying to get the slice numbers to be relatively numbered to their siblings or absolutely numbered in document order, so I show both here.

Maybe you are looking for

  • Mac Pro USB Failure.

    Hello people! Several months ago, i started to notice some problems with USB devices and built-in USB Ports. The problem is started with these symptomes: After some working, all USB internal USB ports stop to giving power to usb devices. Only works t

  • Kernel Panics on my Macbook Pro Retina Late 2013

    Hello everybody I bought a Macbook Pro 15' 500Go SSD, 16Go Ram on january 2, 2014 at the Apple Store. Since this date, I encountered 4 kernels panics. The first, on january 8. The second, on january, 19. The third, on january 25. I have all the three

  • Need documentation for XI Scenarios

    Hi All, This is Revathi, I am learning XI. It would be great if anybody could send the documentation(Screen shots, navigation) for the following scenarios to [email protected] 1. FILE TO FILE 2. FILE TO JDBC. 3. HTTP TO JDBC. 4. HTTP TO SAP-R/3 5. FI

  • ADF Passing parameter between 2 Page Fragments

    Hi, I have One Bounded task flow. Inside there are 2 page framgments. 1)Header Page Pragment has table I changed table column itemId to af:commandLink to navigate to next detail page.                   <af:column sortProperty="ItemId" sortable="false

  • Asset Master - Quantity

    Hi All,       I am a SD/MM consultant, but have a doubt in Asset master. Once after raising a PO having an ASSET value, after doing MIGO and MIRO.When i go back to see the AS03 tcode its showing the exact values as of in PO is there any chance to vie