Using a precondition strict to a specified Class

Dear All:
               Now I have a class X , the class has two characteristics A and B ,  A has values a1 and a2 , B has values b1 and b2 . In the configration , when I choose a1 for A then b2 cannot be chosen . To fulfill that I can creat a precondition dependency “  A <> 'A1'  ” and assign it to the value b2 in ct04. But by doing this all configuration  materials have characteristics A and B with other classes(not X)would be effected.
               The question is how I can fulfill this purpose strict to the class X but not other classes?
               PS:I donnot want to use overwritten in class.
Any help would be appreciated.

Hi Senthilkumar:
This is really a good solution.
Actually there are more values in our business, which means the dependency is quite redundant.
If there is a optimized alternative solution?
Thank you very much for you help!

Similar Messages

  • How to specify class name in environment or system property

    Hi,
    Iam learning ejb. I was practicing the stateless session bean. I wrote a sample hello world application. While executing the client am getting the following error.
    {color:#ff0000}Exception in thread "main" javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
    at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
    at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
    at javax.naming.InitialContext.getURLOrDefaultInitCtx(Unknown Source)
    at javax.naming.InitialContext.lookup(Unknown Source)
    at hw.HelloClient.main(HelloClient.java:20){color}
    My Client program:
    {color:#3366ff}package hw;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.*;
    import java.util.*;
    public class HelloClient {
    public static void main(String[] args)throws Exception {
    Properties prop = System.getProperties();
    Context ctx= new InitialContext(prop); {color:#800000}// {color}{color:#800000}(Line no :20) here only error is pointing{color}
    Object obj = ctx.lookup("HelloHome");
    HelloHome home = (HelloHome)javax.rmi.PortableRemoteObject.narrow(obj,HelloHome.class);
    Hello hello = home.create();
    System.out.println(hello.hello());
    hello.remove();
    }{color}
    please suggest me a solution.
    note: iam using eclipse ganymede and jboss app server
    Edited by: Arun_ece on Mar 10, 2009 1:13 AM

    Hi,
    You need to create a ejb-jar.xml and jboss.xml files to deploy the application on the servers.
    Also, put these lines of codes after getting System Properties.
    prop.put(Context.PROVIDER_URL, "iiop://localhost:[port_no]");Thanks,
    Srikant

  • Javax.naming.NoInitialContextException: Need to specify class name...

    Hello,
    I am trying to use a Database Connection Pool.
    Here is the test class am using to verify the connection pool:
    public static void main(String[] args) { Connection connection = null; try { InitialContext initialContext = new InitialContext(); DataSource dataSource = (DataSource)initialContext.lookup("jdbc/<alias>"); connection= dataSource.getConnection(); } catch (SQLException e) { //   TODO Auto-generated catch block e.printStackTrace(); } catch (NamingException e) { //   TODO Auto-generated catch block e.printStackTrace(); } Statement stmt = null; try { String query = ""; stmt = connection.createStatement(); ResultSet resultSet = null; query = "SELECT <column> ...'"; resultSet = stmt.executeQuery(query); while(resultSet.next()){ System.out.println(resultSet.getString(<column>)); } stmt.close();   stmt = null; connection.close(); connection = null; } catch (SQLException e1) { // TODO Auto-generated catch block e1.printStackTrace(); }finally{ if (stmt != null) {   try {   stmt.close();   } catch (SQLException sqlex) {   // ignore -- as we can't do anything about it here   }   stmt = null;   }   if (connection != null) {   try { connection.close();   } catch (SQLException sqlex) {   // ignore -- as we can't do anything about it here   } connection = null;   } } }
    I get following exception..
    javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:640) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243) at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:280) at javax.naming.InitialContext.lookup(InitialContext.java:347) at com.internal.test.TestRun.main(TestRun.java:53) java.lang.NullPointerException at com.internal.test.TestRun.main(TestRun.java:66) Exception in thread "main"
    The exception points to
    DataSource dataSource = (DataSource)initialContext.lookup("jdbc/OrderStatus");
    Is this the correct way to test...?
    Thanks
    Srinivas

    java_2006 wrote:
    You can't access a jdbc pool like that (simply with a main method).
    The Database connection pool must be managed by a container (a servlet or application server) like tomcat.
    That is not entirely true but it certainly helps and is generally the only way it is used anyway so one might as well do it.

  • Automation interface for specified class cannot be obtained

    I am trying to use a TestStand UI Expression Edit Control in LabVIEW to undertake an Expression.Evaluation, but I feel I must be missing something. I have a TestStand UI ExpressionEdit Control on the LabVIEW front panel, and when i try to evaluate it, or anything else (properties or methods) for that matter, the error is always the same:
    "Automation Interface for the specified class cannot be obtained. Check if the automation refnum type is the correct class for this operation" Error Code 3008; User defined error code.
    Any help tips or pointers would be appreciated.

    Hi
    To help resolve this issue can you post the VI which gives you this error.
    Regards
    Anand Jain
    National Instruments.

  • Is it possible to use a secondary index in embedded persistent class

    Hi,
    I'm new to Berkely DB Java Edition and have just started playing with it.
    To express a relation between two entities Foo and Bar, I am trying with an assocation class FooBarAssociation that is not an entity but rather a @Persistent-annotated embedded class in Foo (Foo has a collection of FooBarAssociations). Now I'm looking for a way to find all Foos associated with a given Bar id by use of an index. Can this be done? Is the use of the SecondaryKey in the embedded class at all correct? If this is not the way to go, can it be done any other way (except from using three entities)?
    @Entity
    class Bar {
        @PrimaryKey
        private int id;
    @Persistent
    class FooBarAssocication {
        @SecondaryKey(relatedEntity=Bar.class, relate=Relationship.ONE_TO_ONE)
        private int barId;
    @Entity
    class Foo {
        @PrimaryKey
        private int id;
        private Set<FooBarAssocication> fooBarAssociations = new HashSet<FooBarAssocication>();
    }Any help much appreciated.
    /Martin Söderström

    Martin,
    So could this be done with the embedded persistent class like this, or should I give up and make the FooBarAssociation class an entity of its own?A separate relationship entity class will definitely work, as described in the SecondaryIndex javadoc.
    But SecondaryKey fields have to be at the top level of an entity class, so an embedded class that contains the secondary key (and other attributes) won't work.
    Logically, you have a one-to-many relationship from Foo-to-Bar, and the relationship has attributes.
    If you store the relationship in the Bar entity, then it's pretty easy because there is one Bar instance per relationship and other attributes can easily be stored there. I know you said you want to put it in the Foo class because it logically belongs there, but I'll show this alternative anyway for completeness:
    @Entity
    class Bar {
        @PrimaryKey
        private int id;
        @SecondaryKey(relatedEntity=Foo.class, relate=Relationship.MANY_TO_ONE)
        private int fooId;
        private Date createTime;
    @Entity
    class Foo {
        @PrimaryKey
        private int id;
    }If it's really important to put the relationship fields into the Foo class, then you can do something like the following. It's messy to attach relationship attributes, but it can be done with either a parallel list or map.
    Also, be sure to read the "Key Placement with Many-to-Many for Related Entities" section of the SecondaryIndex javadoc page.
    @Entity
    class Bar {
        @PrimaryKey
        private int id;
    @Entity
    class Foo {
        @PrimaryKey
        private int id;
        // Use one of the following, either this:
        @SecondaryKey(relatedEntity=Bar.class, relate=Relationship.ONE_TO_MANY)
        private List<Integer> barIds = new ArrayList<Integer>;
        private List<Date> barCreateTimes = new ArrayList<Date>;
        // Or this:
        @SecondaryKey(relatedEntity=Bar.class, relate=Relationship.ONE_TO_MANY)
        private Set<Integer> barIds = new HashSet<Integer>;
        private Map<Integer, Date> barCreateTimes = new HashMap<Integer, Date>;
    From reading the documentation I also get the feeling that I could use the Base API and set up a SecondaryDatabase to create a secondary index for a case like this (correct?).Yes, you could do that, but I would hate to see you move to the base API just for this issue. The DPL is much easier to use (and easier for us to support).
    Anyway, so far the BDBJE looks very promising to us. It may replace our current Hibernate solution.Great. We'd love to hear more about what you're doing, why JE works well for you, etc, either on the forum or privately if you prefer (mark.hayes at o.com). It helps us a lot to know what people are doing with JE.
    --mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • [svn] 2716: SDK-15848 - Conditional compilation constants defined in flex-config. xml are never used if a single constant is specified on the command line

    Revision: 2716
    Author: [email protected]
    Date: 2008-08-04 01:18:12 -0700 (Mon, 04 Aug 2008)
    Log Message:
    SDK-15848 - Conditional compilation constants defined in flex-config.xml are never used if a single constant is specified on the command line
    * There's a possibility this will break a conditional complication test which disallows overwriting an existing definition -- I don't know if that will break the build, but the test should be removed either way.
    * Using append syntax ("-define+=" on the command line or ant tasks, or append="true" in flex-config) and redefining a value works now if you use an already-defined namespace and name.
    * So your flex-config may have -define=CONFIG::debug,false, and you may want -define+=CONFIG::debug,true from the commandline build, or FB build.
    * Made the ASC ConfigVar fields final as a sanity check since overwriting is now allowed. It would be harder to track changes and subtle bugs if they were mutable. This means that you must build a new ConfigVar object if you need to make changes.
    Bugs: SDK-15848
    QA: Yes. Please read the updated javadocs in CompilerConfiguration. Tests need to be added to validate that overwriting is allowed, and happens correctly in different situations: I believe the order should be that flex-config is overwritten by a custom config (can we have more than one user config? is the order deterministic? I forget...), is overwritten by commandline or OEM. Did I miss any? (I didn't write code which changes this, it works however the existing configuration system allows overwriting and appending; if we have tests for that, maybe we don't need them duplicated for this feature.)
    Doc: Yes. Please read the updated javadocs in CompilerConfiguration.
    Reviewer: Pete
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-15848
    http://bugs.adobe.com/jira/browse/SDK-15848
    Modified Paths:
    flex/sdk/trunk/modules/asc/src/java/macromedia/asc/embedding/ConfigVar.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/CompilerConfiguration.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/internal/OEMConfiguration.java

    Please note: I AM USING:
    JkOptions ForwardKeySize ForwardURICompat -ForwardDirectories
    And that's what's supposed to fix this problem in the first place, right??

  • Using System.err.println() from within the classes of WAS ?

    hi,
    I am using admin.jar,a jar file which is being used by Web Application Server in my own class.
    I am referencing some of the classes from admin.jar from my class.
    I tried to print some trace statements,using System.err.println() from within the classes in admin.jar but they did not reflect in defaulttrace0.trc.
    I made these changes in the admin.jar being used by WAS.
    I restarted the server and even restarted the machine but without success.
    I want to know how to print System.out.println() statements from within the classes in admin.jar.
    Also, am i looking for these statements in the right file for eg. defaulttrace0.trc. or is it some other file that i need to look into.
    I need urgent help on this.
    Reward points assured.
    thanks a lot.
    Saurav

    thanks craig,
    ur answer has helped me a lot.but it didnt quite help me.
    nevertheless i am trying to set different levels of severity.
    Is there anything else that i can do.
    Also,i commented out a line of code today in one of the class DataSourceManagerImpl.java in sapj2eenginedeploy.jar
    for eg. temp.delete in it deploy method.Buth that line still executed.
    I m totally lost as to wht to do.
    I m trying to create a datasource from my application in WAS.For that i m using the WAS APIs.But its not working completely.
    I am using the above jar and its method createdatasource.
    I am callin it from my application's class.
    It creates a datasource and i can see it in JDBC Connector list in Visual Administrator.But it appears with red sign meaning its not started.When i start it from the tool then it starts.
    But in defaulttrace.trc file it shows an error "FileNotFindException". This happens,and i am very much sure, in the deploy() of DataSourceManagerImpl.java class of sapj2eenginedeploy.jar.
    i want to apply println inside this method so i may know where exactly i ma getting the error and get so more info so i may solve my problem.
    pls help me.
    its really urgent.
    thanks again
    saurav

  • Are there any advantages to using a Data Value Reference for LabVIEW Classes?

    Hi
    I recently came across an example where the developer had used a data value reference for the class cluster in LabVIEW.
    What are the advantages of doing this?
    Doesn't the use of LV objects already avoid the creation of multiple copies of data thereby reducting memory usage?
    Thanks
    AD

    LabVIEW's OOP is implemented as a By Value.  This means, as Tst stated, branches in wires could mean copies in the object.  The DVR is a way to make it By Reference.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Error : 'RepeatingSeparator' is used but either it was not specified or it

    Hi All,
    I am trying to enqueue a EDIFACT ORDERS(version D07B) xml to the IP_OUT_QUEUE and getting the following error.
    Error : 'RepeatingSeparator' is used but either it was not specified or it was suppressed.
    Any pointers on what to check here????
    Regards,
    Praveen
    Edited by: Praveen I on Mar 22, 2010 11:37 AM

    Hi Praveen,
    Not sure if your payload has internal properties, which consists of delimiters. If so, since the delimiters are configured in B2B as well, do not provide the internal properties
    Regards,
    Dheeraj

  • This error is often caused by incorrect use of the "Strict" document type

    Okay...so I have 6 errors - all the same and has to do with my document type.
    I've searched the code and I am using a transitional doc type so why the errors?
    http://02cada7.netsolhost.com/Stasik_Family_Website/index.html

    Yeah I did that...but the cause doesn't make sense to me.
    You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).
    This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.
    How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.
    I'm not using a strict document time - I am using transitional and I am not using proprietary extensions.

  • The key could not be obtained. You may need to use the -keystore argument with the specified keystor

    I am getting this error: "The key could not be obtained. You may need to use the -keystore argument with the specified keystore type." when trying to create an apk file using adt. I am following the steps mentioned here: http://blogs.adobe.com/ria/2010/10/28/creating-an-apk-file-using-flashbuilder-4-0/

    Could a self save from premiere cause the problem? By this i don't mean the autosave.
    Autosave is the only kind of 'self save', and is not likely to 'cause' project corruption.
    thnx for your reply. My first question came from a remark of Gakhue:
    "I'm using CS6 and I got that warning, I copied my project file on usb stick and re-opened in a different computer using CS5, it then gave me a few warnings about changing the name and saving it to auto save fault, I clicked away and said yes to each one"
    So i wondered how he did it
    The second question came from the fact that my last save was from 17 minutes after i left my studio. And i am not talking about an autosave. It was the main save of the corrupted videofile. And since i did not do it myself, the only option left is that Premiere did it? Or that premiere does not use the internal Mac clock and is on a different time. Which is not the case (just tested).

  • Unable to find associated SLD for specified class(SAP_XIIntegration Directory)

    Hi All,
    We have installed PI 7.4  dual stack on windows platform. All Post Installation activities were completed succesfully. I am able to succesfully execute transactions: SLDCHECK, SXMB_ADM (check) etc.
    All RFC connections are also configured properly. SXI_CACHE working fine.
    But when I tried to create a communication channel it gives me following warning message:
    " Unable to find associated SLD element for specified class (source element: SAP_XIIntegrationDirectory "., CreationClassName,SAP_XIIntegrationDirectory,string, Name, directory.sxi.ict-vxi-65,string)target element class: SAP_XIIntegrationServer).
    Please suggest what needs to be done to solve this issue.
    Thanks
    Pawan

    Hi Pawan,
    SAP note #764176  should be applied. Before you do that, apply note #1117249 Incomplete Registration of PI components in SLD.
    Hopefully this will resolve the error.
    Regards,
    Naveen

  • Using mx:itemRenderer for my extended List class

    Create a new class MyList extends mx:List; then
    <my:MyList> mxml tag can't enclose <mx:itemRenderer>.
    How can I keep using <mx:itemRenderer> with MyList class in
    MXML?
    (I can create a separate MyItemRenderer class and set to
    <my:MyList itemRender="my.MyItmeRenderer"> but I prefer using
    MXML tags to creating extra little classes if possible.)
    Thanks,
    -James

    Components and Modules are two topics that should start from
    in the FB help.
    Briefly, yes you can and should put these two into separate
    files. Call components.
    If you want to keep load time of your app short, you might as
    well turn the view after successful login into a Module. A module
    unlike a component can be loaded/unloaded on demand.

  • *Use ReportSource or DataBindigs property to specify a report source.*

    Hi Everyone,
    Iu2019m having issues viewing any report in my application.  I deployed .NET 2003 application which contains a Crystal Report Viewer. 
    ERROR MSG: Load report failed.
    The following renders on the page......
    CrystalReportViewer - CrystalReportViewer1
    Use ReportSource or DataBindigs property to specify a report source.
    It appears the aspx page is rendered exactly as it appears in my IDE when no code is ran.  I step through the code and see that data is being returned.  On the client site I see this in SQL Profiler Trace.
    The application works on other web servers. 
    MS Windows Server 2003/Enterprise Edition/Service Pack 2
    MS Windows Server 2003/Web Edition/Service Pack 2
    The problem server properties are as follows:
    MS Windows Server 2003 R2/Standard x64 Edition/Service Pack 2
    During the install of my application, a virtual directory was created CrystalReportWebFormViewer2:
    C:\Program Files (x86)\Microsoft Visual Studio .NET 2003\Crystal Reports\Viewers\
    I downloaded NET Framework Version 1.1 and installed.  The following frameworks are now installed
    C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705
    C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
    I created a new Application Pool for my application and the accompanying  CrystalReportWebFormViewer2.  The respective virtual directories were assigned to use this app pool.  The default web site and other virtual directories use the default Application Pool.
    The following files exist and are registered.
    C:\Program Files\Common Files\Crystal Decisions\1.0\bin\Keycodev2.dll
    C:\Program Files\Common Files\Crystal Decisions\1.0\bin\Crqe.dll
    I notice another virtual directory unrelated to my install
    C:\Program Files (x86)\Business Objects\Common\3.5\crystalreportviewers115
    As well as another Desktop Application using Crystal Reports 11.5
    Iu2019m not sure what other information you guys may need.  Can anyone recognize this issue so far?  Please let me know if you need more information. 
    TIA
    Edited by: Jerry Wood on Apr 29, 2009 4:53 PM

    64Bit ISSUE:
    64 Bit - Running different .NET CLRs(frameworks) within IIS
    When running 32 bit Web applications in 64 bit server, you have to enable a setting to allow these 32 bit applications to run :
    http://support.microsoft.com/?id=894435
    This turns OFF the ASP.NET tab within IIS which means you have to manually (through ASPNET_RegIIS tool register a specific CLR .NET version to sepcific web applications).
    http://support.microsoft.com/kb/816782
    Details about the ASP.NET Registration Tool:
    http://msdn.microsoft.com/en-us/library/k6h9cz8h(VS.80).aspx

  • Specifier class, does it work?

    Hi all,
    I seem to have a problem with the specifier class.
    It claims it recognises patterns like:
    s1*s2* -- starts with s1, contains s2
    However, that doesn't seem to work. To test it, I've
    compiled the following very simple thingy:
    import com.sun.tools.doclets.util.*;
    public class kk {
    public static void main(String args[]){
    Specifier sp=new Specifier(args[0]);
    System.out.println("Specifier: "+sp.toString());
    boolean result=sp.match(args[1]);
    System.out.println("Result: "+result);
    Then compile and do:
    java kk "s*a*e" siliceSpecifier: s*a*e
    Result: true
    The result, however, should be false, for there is no
    "a" contained in the word "silice".
    Does anybody know what's going on?
    Cheers,
    P.

    There seems to be a bug in the class itself. Substitue
    in the code where it says:
    while (plt.hasNext()) {
    String x = (String) plt.next();
    if (x.equals("*")) continue;
    containsStrings.add(x);
    for:
    while (plt.hasNext()) {
    contains=true;
    String x = (String) plt.next();
    if (x.equals("*")) continue;
    containsStrings.add(x);
    and it works.
    P.

Maybe you are looking for

  • How to use old digital av adapter?

    I have a digital av adapter for my iphone4. And now I want to reuse this with my new iphone5. Lightning to 30pin adapter support this configuration?

  • HT4915 duplicates online

    is there a way to remove albums from the cloud which no longer show in itunes library as i have duplicates on the cloud but only 1 shows in iTunes. driving me mad!!! the problem came about after renaming/deleting albums locally and ended up with only

  • Copy Ipod classic to a iTunes

    I had troubles with my computer and all files was erased but my ipod its full with music, videos etc. How can i do for send all music from my ipod to a new itunes??? without los any data?? Thank you

  • Microsoft Project Standard vs. Microsoft Project Professional

    Hey gang, I always thought that the difference between Standard and Professional could be summed up this way: One of them (Professional) permits you to connect to Microsoft® Project Server (particularly now in version 2013). However, in reading this:

  • Reconfigure EM for auto backup

    Hi Experts, We have 10.2.0.4 RAC database. I configured a auto database backup by EM. When node down, the auto backup job does not work. how to remove this schdule backup job and reset new schdule backup job? I could not find any buttom to remove old