Using Coherence in Netbeans Platform application

Has anyone else tried to make a Netbeans module for a Netbeans Platform application (that includes the Netbeans IDE) that acts as a non-storage-enabled grid member?
The reason I ask is because in my attempt, getCache() returns null. I am curious what kind of situation would cause getCache() to return null without throwing any kind of exception?

Hi,
I would expect an IllegalArgumentException if a scheme mapping could not be found for the given cache name. I'm not sure when it is ever expected to return a null from getCache(). Are you just calling CacheFactory.getCache("cache-name")? Could you give some more information about your setup / configuration and how you are calling getCache()?
Thanks

Similar Messages

  • Netbeans Platform Application and JavaFX CSS API

    I'm using JavaFX in my Netbeans Platform Application. I load JavaFX scene with next code:
    SwingUtilities.invokeLater(new Runnable()
                    @Override
                    public void run()
                        javaFxPanel.setSize(getSize());
                        add(javaFxPanel, BorderLayout.CENTER);
                        Platform.runLater(new Runnable() {
                            @Override
                            public void run() {
                                    Group branchNode = new Group();
                                    Scene scene = new Scene(branchNode);
                                    try{
                                        scene.getStylesheets().add("C:\\Xlab\\pandora\\branches\\simon-welcome-screen\\TraineeGuiApp\\modules\\ui\\welcomescreen\\main.css");
                                    catch(Exception e)
                                       Exceptions.printStackTrace(e);
                                    Rectangle rect = new Rectangle(100,100);
                                    rect.setLayoutX(50);
                                    rect.setLayoutY(50);
                                    rect.getStyleClass().add("my-rect");
                                    ((Group)scene.getRoot()).getChildren().add(rect);
                                    // Add scene to panel
                                    javaFxPanel.setScene(scene);
                                    javaFxPanel.setVisible(true);
                        //Application.launch(FXApplication.class, null);
                });As you can see i provide absolute path to my css file. CSS file and class that i want to use it from are in same package. I also tried providing just a "main.css" string to scene.getStylesheets().add("main.css"); method.
    I have no idea why this is not working. Any suggestions?
    Edited by: user8867321 on 1.9.2011 9:56

    Admittedly, the stylesheet path handling is pretty bad. If you can see the .css file in your browser, then you have a valid URL. You can also use Class.getResource("blah").toExternalForm() to get the right URL string. For example, if I have my .css file in the same directory as Main.java, then I could do scene.getStylesheets().add(Main.class.getResource("sample.css").toExternalForm());

  • StartUp Time Of NetBeans Platform application.

    we have worked on NetBeans platform application .but on run it take more than 10 sec to show first window.
    can we reduce start up time of application.
    plz suggest..

    Wrong forum. Please try a different forum to ask this question.

  • Use coherence in Business Intelligence area

    Hello, Everyone,
    I am just wondering that is it possible to use coherence in business intelligence area? Does anyone has such experience?
    As we know, building BI application is quite different from the online trading applications.
    If we try to use database to fulfill a BI application, every SQL statement would process tons of data .
    Maybe we should wait hours or days for one result sometime.
    Therefore, I am thinking of the coherence. How could this platform help us? If we seperate data on different grid nodes and process on different nodes, that would be faster than pure database environment.
    However, there are two significant problems that I could not avoid.
    First, how to seperate data? if it beame a very complicated work, I think database would be better. At least, database provides one node partition mechanisms.
    Second, how about the performance of QueryMap? Unfortunately, I did some test on QueryMap, the performance of QueryMap is quite worse than Oracle database.
    Please give me some suggestions.
    Best regards
    Copper shen

    Hi Moshin,
    You have to learn SAP BW 3.5 along with ABAP and BI 7.0. Because BW 3.5 is the earlier version of BI 7.0.
    BO is widely used for Reporting which can work on any database.
    It's better to join in SAP Authorized Institutes like the following. It may be expensive.
    1. Siemens
    2. Yash
    Etc..........
    Regards,
    Suman

  • Can C++ Client use Coherence*Extend on AIX?

    Hi Experts,
    My application is a C++ client, I want to connect to Coherence Cluster using Coherence*Extend on AIX,
    I checked coherence document, I found that Coherence*Extend C++ support pure C++. But I couldn't
    find the download URL of Coherence*Extend C++ for AIX, So If C++ Client can use Coherence*Extend
    on AIX?If yes, how can I get the lib for Coherence*Extend C++ of AIX? Thanks.

    Supported environments are listed here:
    http://docs.oracle.com/cd/E24290_01/coh.371/e22839/gs_install.htm#BABDCDFG
    That does not currently include AIX; the platforms supported largely reflect the platforms that customers requested over time, so speak with your Oracle account representative.
    In the meantime, I would suggest looking at the RESTful support in Coherence that will allow you to access the caches from AIX (over REST/HTTP) without an Extend client.
    Peace,
    Cameron Purdy | Oracle

  • NetBeans IDE vs NetBeans Platform

    what is the different between NetBeans IDE and NetBeans Patform ?
    I read that NetBeans Platform from http://www.netbeans.org/downloads/, but what is the different with IDE Version.
    IDE Version can develop J2EE, J2ME but NetBeans Platform just to Dekstop. Is it right ?
    Thx 4 your reply

    IDE is based on platform. They add lots of modules (like Java editor, j2ee modumes, profiler modume, j2me modules, ant module...) to transform the platform into an IDE.
    So the platform is the base application which has some apis defined over swing. Those apis aims to simplify (at least in terms of time) the dveelopment of a complex swing application.
    So if you develop a very complex swing application then consider developing it based on platform but if you are just a regular java developer then use swing to develop your application. And for any of these aims you can use a tool like Netbeans IDE but you can seletc Eclipse too..

  • Slowness of Netbeans Platform Apps - how to mitigate?

    Hi,
    We are developing a commerical application (pretty complex) in java using Netbeans IDE. We have 2 options in netbeans to create it-
    1. Develop Java desktop app
    2. Netbeans Platform app
    We have requirement that application startup and response times should be very very fast, should be modular etc. We did Proof of Technology by creating apps using both approaches mentioned above. We found Netbeans platform apps are very slow during startup and during screen navigation compared to pure Swing based desktop apps. We tried to implement suggestions provided at http://wiki.netbeans.org/Category:Performance:FAQ and in other blogs and forums to improve on speed of the app but were not successful.
    We feel for creating a complex desktop app Netbeans platform app would be better suited, but its not meeting our performance requirements (startup and response times, memory footprints, CPU usage guidelines etc).
    Can any one guide us on how to mitigate our problem of improving performance of Netbeans Platforms apps?
    Thanks in advance for your help..
    - bhan

    This question really belongs in a Netbeans forum for any serious answers. That being said I can still give my opinion.
    I really doubt that you can improve it through software. Netbeans has to initialize and validate a complex module system during startup and the more modules that have to be started, to more time it will take. Recently OSGi support was added to Netbeans as an alternative to Netbeans' native module system; perhaps that can help, but again I doubt it.
    Let me put it in another way: I was following the 10 example videos that demonstrate how to use the Netbeans platform, and even the small test applications that were developed took several seconds to boot. It is one of the arguments I have for myself to not adopt the platform myself - not that I care about the startup time of the end product, but because I already predict high annoyance levels during development.

  • Question about netbeans platform

    I've been sifting through tutorials and the like for a few hours now and I still can't get a straight answer. I'm developing a module suit which uses the netbeans platform (my first Java endeavor). I'm working in Netbeans 5.0. I've made all my classes and forms and stuff. My question is this: how the heck to I get a form/panel to load when the application starts up? When I run the application I only get the platform without my panels and forms. What's the cleanest way to do this?

    Hehe, thanks for the advice. Yeah I wasn't saying
    that this should or shouldn't be a forum based on
    netbeans or Eclipse. It's actually a little
    refreshing to find a forum that is devoted to the
    language instead of the IDE. at the moment, it's pretty much devoted to doing peoples homework for them and generally wiping their @rses for them, hence the frosty reception you got above! don't take it to heart!
    Not really sure why my company wanted NetBeans and
    not Eclipse, but oh well.probably an assumption that since Sun wrote it, it must work better with Java. or they've heard some of the horror stories about how buggy Eclipse is. I haven't used Netbeans so I can't really comment, but buggy though Eclipse is, I still like it, both as an IDE and a platform

  • Using Coherence and Oracle Database as the CacheStore

    We are working on implementing a solution using Coherence and Oracle Database as the CacheStore. We initially implemented the Cache as a distributed-scheme which in turn uses the backing-map-scheme. We are trying to introduce transaction management and I used a scheme-ref in a transactional-scheme to point to an already existing distributed-scheme. However when I bring up the server, my custom coherence-cache-config.xml file is not recognized and Coherence comes up with the default setting. Given below is the snippet of my configuration file.
    1)     I would like to understand why the below configuration doesn’t work and am I doing it the right way? If not, what is the correct way of doing it?
    2)     There are a multiple transaction management options given in the documentation. Which are the ones that will work with a distributed-scheme and read-write-backing-map-scheme?
    3)     If transactional-schemes cannot work with distributed-scheme, what is the best way to have a distributed cache with a oracle database as a cache store?
    <caching-scheme-mapping>
    <cache-mapping>
    <cache-name>id<cache-name>
    <scheme-name>example-transactional<scheme-name>
    </cache-mapping>
    </caching-scheme-mapping>
    <caching-schemes>
    <transactional-scheme>
    <scheme-name>example-transactional</scheme-name>
    <scheme-ref>distributedcustomcache</scheme-ref>
    <thread-count>10</thread-count>
    </transactional-scheme>
    <distributed-scheme>
    <scheme-name>distributedcustomcache</scheme-name>
    <service-name>DistributedCache</service-name>
    <backing-map-scheme>
    <read-write-backing-map-scheme>
    <internal-cache-scheme>
    <local-scheme>
    <!--scheme-ref>categories-eviction</scheme-ref-->
    <scheme-name>inMemory</scheme-name>
    </local-scheme>
    </internal-cache-scheme>
    <cachestore-scheme>
    <class-scheme>
    <class-name>spring-bean:coherenceCacheStore</class-name>
    <init-params>
    <init-param>
    <param-name>setEntityName</param-name>
    <param-value>{cache-name}</param-value>
    </init-param>
    </init-params>
    </class-scheme>
    </cachestore-scheme>
    <!--refresh-ahead-factor>0.5</refresh-ahead-factor-->
    </read-write-backing-map-scheme>
    </backing-map-scheme>
    <autostart>true</autostart>
    </distributed-scheme>

    Hi,
    If you look at the documentation for transactional-scheme here: http://docs.oracle.com/cd/E24290_01/coh.371/e22837/appendix_cacheconfig.htm#BHCIABHA
    you will see that it says The transactional-scheme element defines a transactional cache, which is a specialized distributed cache. That means that a transactional-scheme is already a distributed-scheme.
    You will see from the same documentation above that there is no way in a transactional-scheme to configure things like cache-stores or listeners or even the backing-map-scheme as these are not supported on a transactional-scheme - so you cannot use a cache store.
    Personally I would not use transactional-scheme unless you have some really big reason to do so - the restrictions far outweigh any perceived advantage of having a transaction. There are better ways to build applications so they do not require transactions, that is what we have been doing for years with Coherence so far, and there is no real reason to change that.
    JK

  • Java Platform Application Mainclass

    What do I put as the main class in a Java Platform Application (modules) when deploying using JNLP?

    Hi,
    I found the solution by my self. The problem was encoding="ISO8859-1".
    But their is now a further question: Is their a possibility to send the message out in encoding ISO8859-1?
    B�rbel

  • Swing, Netbeans Platform or what else?

    Hi,
    I have this question. Is there an alternative to Swing? I started to learn Swing, but it seems a bit ackward to me, are there any other GUI libraries? I know of the Netbeans Platform, but I don't understand what's it about yet.
    I'll appreciate your help, thanks.

    kevinaworkman wrote:
    Aardenon wrote:
    I just started with Swing, I'm going through the Oracle tutorials and it is yet hard to embrace.Okay, but what about it do you find hard to embrace? If we knew what you didn't like, we'd be able to help you find something you do like. (or explain why you should like Swing anyway, heh)
    Powerful, yet sort of out of reach. Sorry, I don't really know what that means.
    I don't know, perhaps it's just a first impression.Yeah, probably. You can't expect to just "get" something as soon as you look at it. Understanding Swing will take weeks (or months, or even years).
    I think this might be what I was "affraid" of. Perhaps I didn't expect it to be that large and complex. But I am new to Java and I don't have any comparison.
    I also read that Swing will not be developed any longer.Where did you read this? It is simply not true (err.. I hope).I'm quite sure I saw this somewhere on the Netbeans website or within the Netbeans IDE 6.9.1.
    >
    So I wonder, are there any alternatives, perhaps it is wise to start with something else if there is a choice.There isn't, really. I guess you could try to use AWT, but I would bet you'd find the same things you don't like there as well.
    What about the Netbeans Platform, would anyone advise it?I don't really know what that is (GUI builders are the root of all evil), but I would definitely recommend learning how to code Swing, if you want to get into programming GUIs in Java.Thanks for your reply.

  • HT2589 We have purchase 5 apple minis and would like them all on one account.  That way we can monitor the use of these units.  they will be used strickly for a business application.  can I use one account in itunes or must i have multiple.

    We have purchased 5 apple minis and would like them all on one account, that way we can monitor the use of these units.  They will be used strickly for a business application.  Can I use one account in itunes or must i have multiple.

    Not going to happen the way you want it to.
    When you add a gift card balance to the Apple ID, it's available for the Apple ID.
    Probably best to create unique Apple ID's for each... this will also make things easier in the future as purchases are eternally tied to the Apple ID they were purchased with.

  • How to create a user in UME Database using web dynpro java custom application

    Hi,
    Can you please suggest me how to create a user in UME Database using web dynpro java custom application.
    My Requirement is user can register his/her user id in SAP Portal 7.3 UME database.
    Please suggest me.
    Thanks and Regards,
    Amit

    Hi Amit,
    Generated Documentation (Untitled)
    This is what you're looking for, there's no real cook-book -- though Amey mentioned there might be some material on SDN, perhaps some tutorials.
    You should be looking into com.sap.security.api.IUserFactory, methods newUser(String) which gives you and IUserMaint and commitUser(IUserMaint, IUserAccount) -- IUserAccount can be obtained using com.sap.security.api.IUserAccountFactory, method newUserAccount(String)
    Hope it helps,
    D.

  • Using SSO for 2 partner application that different domainname

    Dear expert,
    I have to implement the Oracle SSO with 2 existing Web Application that separate domainname (eg. domainA.com and domainB.com). I have read from OTN the SSO using HTTP Cookie for partner applications but the standard cookie can not be accessed from different domainname.
    Please, Who can help me on this case?
    Thanks in advance,
    Kotaro

    Reading and googling through much unclear RMAN content I came to the conclusion that it simply is not possible to use RMAN to copy SCHEMA_A from INSTANCE_A in MACHINE_A into INSTANCE_B without blowing away SCHEMA_B in INSTANCE_B on MACHINE_B.
    So, I need to use RMAN to set up INSTANCE_A_COPY on MACHINE_B. Then I can have both INSTANCE_B and INSTANCE_A_COPY on MACHINE_B. If MACHINE_A should fail then I can switch over to MACHINE_A_COPY and run both instances, no problem.
    Question: I would like to save time and disk space by not copying a 1TB reference tablespace/schema into INSTANCE_A_COPY. When I run INSTANCE_A_COPY it will need to join to the read-only reference tablespace/schema in INSTANCE_B. What will be the performance of a “distributed join” on tables across two instances in the same machine?

  • How can I use the open in " My application" option to open image attachments.?

    How can I use the open in " My application" option to open image attachments.?
    I am trying to use the uti's given in the apple docs but just unable to do it however its working perfect for pdf and rtf files.
    please help needed urgent.   

    Perhaps you should Contact the iTunes Store Customer Service:
    Apple - Support - iTunes Store - Contact Us

Maybe you are looking for

  • SQL Developer 1.0.0 on x86-64 (Suse Linux 10.1)

    Has anyone tried running SQL Developer on a x86-64 machine ? I am use Suse Linux 10.1 and get the following error when I try to start SQL Developer - Exception in thread "main" java.lang.NoClassDefFoundError: java/lang/StringBuilder at oracle.ide.per

  • Trouble to invoke BPEL from Java Client following rmi example

    I still have troubles to invoke my BPEL process from Java Client by following tutorial sample of 102.InvokingProcesses/rmi . I created my Java class within NetBeans IDE. And the following line of code return null for url, java.net.URL url = ClassLoad

  • In-Place Migration for a Two Node Cluster

    Hi Just after some advice. I am working with a 2 node failover cluster with shared storage (SAN) and have several VM's running. Currently running on the nodes is Server 2008 R2 and they need to be upgraded to Server 2012 so I can take advantage of Hy

  • Mighty Mouse will not scroll up!

    I didn't know where to post this but since this is the most popular place for the mighty mouse, I decided to post here. Does anyone have any ideas how to get the little scroll ball to scroll up? It stopped working last night. It will scroll down but

  • Mac Install for Messenger 2.04 - SSL Error

    Downloaded the MAC Client from our Messenger Local address 10.0.0.1:8300 Did the install but it come back with the following error. "The client is unable to establish a secure connection with the specified server; a secure connection is required." In