Cannot save modified connection properties

SQL Developer 2.1.1.64. I create a database connection and use it for some time. Now I right click on connection to modify its properties. Then I click on Save but the changes are never saved. No matter what I do, the connection keeps pointing to original parameters. When I press Connect, nothing happens. The only way to change is to delete and create a new one. Is there something I am doing wrong?
Thanks...
Arun

There is no output in the console window.
I will give an example. I have a connection entry like
Connection Name: ORCL_system
Username: system
Password: abcdefg
Save Password is checked
Role: default
Connection type: Basic
Hostname: server1.abc.com
Port: 1521
Service Name: orcl.abc.com
Now I want to change this entry to use TNS. I right click on ORCL_system and select "Properties" from context menu. I change these properties as:
Connection Name: ORCL_system
Username: system
Password: abcdefg
Save Password is checked
Role: default
Connection type: TNS
Network alias : ORCL (select this from the drop down list which is generated from my tnsnames.ora file)
Now I click "Test". I get a success message. This means that SQL Developer has established the connection. I do either of the following actions and they fail:
a) I click "Save". The changed properties are not saved. If I close SQL Deveoper and start it again, the connection goes back to using "Basic".
b) I click "Connect" and nothing happens. The SQL Worksheet does not open. The connection properties are not saved if I close SQL Developer.
I am very sure that this used to work in earlier versions.

Similar Messages

  • Cannot save after download

    Refers Firefox V3.6.12. under Windows XP Pro SP3: I download an archived Word file and view but do not alter it, then I download a 2nd file but get message saying "cannot save - change file properties or save elsewhere". I get same problem even in Firefox Safe Mode, but not with Opera or IE8.
    Recently had a problem when an Acrobat Reader update automatically took place causing Firefox to be unable to open - cured by downloading again then also deleting plug-ins on that occasion. Cannot do a System Restore (attempt failed).

    the file is named with " Unconfirmed 23270.crdownload" .
    ".crdownload" is a name given to files incompletely downloaded by Chrome.
    I'd try doing the download using a different web browser. Do you have any better luck if you use Firefox instead of Chrome?

  • ODT Connection Filter cannot be modified

    I have the ODT 11.1.0.7.20 installed.
    If I select "Modify connection - Filters" tab, I cannot modify or add anything of the "Connection" collection properties. All properties are greyed out. If I select a different schema in the "Display schemas" section, but I still get the old value after I selected the new one. I want to see a different schema, but I can't.
    I am working 5 minutes with ODT and nothing works as expected. This really is poor quality guys.
    Tobias

    Hello Regis,
    Did you install the Application Server as a "double stack"? If the AS is already using ABAP as the data source, it is too late, you cannot change it. You must reinstall with the AS Java as the data source (usage type AS Java). If you are not sure, take a look at the Configuration file field. If anything r3 or abap appears, you have an AS ABAP as the data source.
    By changing the field configuration file, you are modifying the property ume.persistence.data_source_configuration. You can also modify the properties from here:
    http://help.sap.com/saphelp_nw04/helpdata/en/0b/50ad3e1d1edc61e10000000a114084/frameset.htm
    The UME LDAP Data tool is there to make this task easier though.
    -Michael

  • After downloading Maverick I cannot save or email scans from my HP L7780. I receive  error message "An error has occurred saving the file because it could not be written to.  Check the properties for the file to make sure it is not read-only. "

    After downloading Maverick I cannot save or email scans from my HP L7780. I receive  error message "An error has occurred saving the file because it could not be written to.  Check the properties for the file to make sure it is not read-only.

    Read the user manual that came w/the scanner and/or contact HP Support.
    http://support.apple.com/kb/PH14141 OS X Mavericks: Reset the printing system 
    http://support.apple.com/kb/HT3669 Printer and scanner software available for download 
    A scanner driver you may wish to consider:  VueScan Scanner Software

  • Cannot save gauge properties

    I create a basic gauge. I click on Edit Gauge Properties Properties and change any of the options like Style, Scale, Titles and Labels. The then choose ok. I cannot save and I get the message are your sure you want to navigate away from this page. The changes you made to this object have not been saved.
    Has anyone else seen this issue?
    Thank you

    Based on your last point 'The ok button is not active'
    changes are not interpreted or not valid to apply.
    Do it once again with the following:
    Create a gauge
    Save
    Open Properties
    Change gauges per row
    Save--------->Added

  • Cannot create connection or view connection properties in 1.5.4

    After upgrading to 1.5.4 I cannot create new connections or edit properties of existing connections. I've upgraded from 1.5.3.
    I tried the fix suggested in the following link but it did not work for me. Re: Cannot create connection with SQL Developer
    Another co-worker of mine has the same issue since upgrading to 1.5.4.
    Regards,
    Todd

    More Information...
    After starting SQL Developer I see the following errors in the "Extensions - Log" window.
    Error: Duplicate declaration of addin oracle.dbtools.sqlworksheet.sqlview.SqlEditorAddin. Previously defined in extension oracle.sqldeveloper.sqlworksheet
    Error: Duplicate declaration of addin oracle.dbtools.thirdparty.access.AccessBrowserAddin. Previously defined in extension oracle.sqldeveloper.thirdparty.access
    Error: Duplicate declaration of addin oracle.dbtools.thirdparty.sqlserver.SQLServerBrowserAddin. Previously defined in extension oracle.sqldeveloper.thirdparty.sqlserver
    Error: Not loaded: Missing dependencies: oracle.ide.daf, oracle.ide.palette2
    Error: Duplicate declaration of addin oracle.dbtools.raptor.snippet.SnippetAddin. Previously defined in extension oracle.dbdev.snippet
    Error: Duplicate declaration of addin oracle.dbtools.raptor.snippet.SaveSnippetAddin. Previously defined in extension oracle.dbdev.snippet
    Error: Duplicate declaration of addin oracle.dbtools.thirdparty.mysql.MySQLBrowserAddin. Previously defined in extension oracle.dbtools.thirdparty.mysql

  • Why cant I rotate and save a picture from iphone 4s in windows photo viewer windows 7? the error is cannot save because there is a problem with the photo properties. I can rotate and save screenshots

    why cant i rotate and save a picture from iphone 4s in windows photo viewer windows 7? the error is cannot save because there is a problem with the photo properties. I can rotate and save screenshots

    Windows do not repect the digital EXIF specification. Use a free viewer http://www.irfanview.net/ for Windows.

  • Cannot save as PDF - "Could not save a copy as (filename) because the file is already in use..."

    I have a number of PSD files I've created and I'm trying to save them as PDFs.
    I can Save for Web and Devices, I can save as a .gif, .eps., and every other format I've tested, but I cannot save as a PDF. I get the error:
    "Could not save a copy as (filename) because the file is already in use or was left open by another application."
    I'm running Adobe Master Collection CS5 with Photoshop CS 5.5 (12.0.4 x64) on a Windows 7 64-bit machine.
    I have a 928 GB HD with 697 GB free.
    I have rebooted and tried saving the files immediately after I reboot. I have killed my virus scanner. I have killed a number of other possible culprits including Acrotray.exe and CS5ServiceManager.ext
    I have run Process Explorer as recommended by Microsoft and found no applications using the file. I've also tried saving the file to my external hard drive and/or renaming the file with only rare luck.
    Nothing seems to fix it.
    The boards seem to suggest Adobe isn't taking responsibility for this and pointing it back to the OS or other software. I'm willing to believe them if someone can show me how/where to kill whatever process it is - but at this point, all my indicators point back to Photoshop.

    Here is a clip from a past post where user could not drag and drop files to hard drive.
    To my great relief I have now sorted this issue and offer the following as the Correct Answer. My sincere and grateful thanks go to Curt and Yammer, above, who have helped me so much in sorting this Windows 7 issue which is clearly very relevant to Bridge users also. Any slowness to grasp what they have been saying is down to me!
    The key to solving this issue lies is understanding that in terms of Windows 7 Security, every internal or external hard drive, plus folders, sub-folders and files thereon has an OWNER. Also each OWNER has a certain level of PERMISSION to do things such as moving files to a different folder, deleting or re-naming them etc. If you try to do things that you don't currently have Permission to do, that is when you get an ‘Access Denied’ error message. Also your system has an Admistrator or Administrators and at the outset you need to ensure through the Control Panel that you are listed as one of them. .
    If, like me, you didn't realise these things, (and why would you if Microsoft or your computer or hard drive suppliers couldn't be bothered to really make sure you knew about them), then trying to fathom the ‘Access Denied’ problem becomes a stressful and frustrating nightmare as I can testify having spent a week at it!
    The steps that I took to resolve the issue and which I believe now constitute the 'Correct Answer' are as follows:
    First make sure that you have Administrator rights on your system via the Control Panel
    Next ‘right click’ on the Drive whose files you want to gain full access to, for example the drive that your pictures are stored on, and click on 'Properties'.
    Under the Security tab you will see a list of Groups and Users on this drive and the Permissions that they have to do things.
    Before doing anything to edit these Permissions, first click on the Advanced button. This opens another window with a tab showing the Owner of this drive.
    Click on the Owner tab and if you are not already listed as the owner, make yourself the owner by selecting your name from the list. I believe it should appear there if you are an admistrator or user. (In my case at this stage the owner was initially shown as an obscure string of numbers and letters which I believe identified the drive when it was connected to the lap top I was using before I upgraded my machine)
    Now be sure to check the box that says "Replace Owner on Subcontainers and Objects" and the click Apply. On completion of this step, the drive in question and all the folders, subfolders and files thereon should now be 'owned' by you. You could check this out by right clicking on a particular folder then clicking Properties > Security > Advanced > Owner. Your name should appear. So far so simples!
    Now go back to the Security Tab for your drive (Step 2 / 3 above) and look at the Permissions you currently have. Your aim now is to allow yourself 'Full Control.' If you don’t currently have this level of permission click Edit, select your name on the list, check ‘Full Control’ and 'Apply' the change.
    I think I'm right in saying that at this point whilst still working in the Drive directory you are now given the option of ticking boxes which allow you to, in effect, cascade the permission you have just granted yourself to all the files and folders on that drive. Tick the box to allow this and Windows should then take care of the rest.If I'm not quite correct here then in my particular case, for example, all my images were stored on my external drive. The top level, or 'parent' folder in which all my pictures could be found was the 'My Pictures' folder and I had created a number of folders and subfolders ('child ' folders) within that folder. The permissions I gave to the Parent folder – My Pictures – were cascaded down through the Child folders.
    On completion of the above step I tested the result in Windows Explorer by dragging a few files back and forth between folders and it now worked perfectly - I was now able to move / delete / rename etc all files without now getting the dreaded access denied message. What a sense of relief! This meant that I could now open Bridge normally rather than having to right click it and 'Run As Admistrator' - albeit that is a very useful thing to do until you get the problem sorted as described.

  • How to modify LobSystemInstance properties after deployment

    Hi,
    I've added some properties to my LOBSystemInstance (like explained here:http://social.technet.microsoft.com/Forums/en-US/sharepoint2010programming/thread/01ad2bf2-7ebc-434f-beac-e2d934847b34)
    I cannot find where to modify the properties once the BDC is deployed.
    Is it possible to have an administrator change the property values once the BDC is deployed? For instance when a DB password changes?
    regards, Felix

    Hi Felix,
    You need to be using a custom connector to be able to use those properties and interfaces.
    I have managed to get those elusive properties you are after, I followed the book from Scot Hiller and also this blog:
    http://jardalu.blogspot.com/2010/03/writing-custom-connector-for-bcs.html
    I have written an internal document for us at Lightning Tools explaining how to transform a BCS Meta Man project to a Custom Connector. This is the full model I used
    <?xml version="1.0" encoding="utf-8"?>
    <Model Name="CustomConnectorMashupLobSystemModel" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/windows/2007/BusinessDataCatalog">
    <LobSystems>
    <LobSystem Name="CustomConnectorMashupLobSystem" Type="Custom">
    <Properties>
    <Property Type="System.String" Name="SystemUtilityTypeName">CustomConnectorMashup.Custom.Connector, CustomConnectorMashup, Version=1.0.0.0, Culture=neutral, PublicKeyToken=02df3463d06f0080</Property>
    </Properties>
    <LobSystemInstances>
    <LobSystemInstance Name="CustomConnectorMashupLobSystemInstance">
    <Properties>
    <Property Name="ConnectionString" Type="System.String">Persist Security Info=False; Integrated Security=SSPI; Server=.\;Connect Timeout=30;Database=AdventureWorksLT;</Property>
    </Properties>
    </LobSystemInstance>
    </LobSystemInstances>
    <Entities>
    <Entity Name="Product" Namespace="CustomConnectorMashup.Model" Version="20.0.0.0">
    <Properties>
    <Property Name="OriginalTableName" Type="System.String">[SalesLT].[Product]</Property>
    <Property Name="IsCustomCode" Type="System.Boolean">false</Property>
    <Property Name="Class" Type="System.String">CustomConnectorMashup.Model.ProductEntityService, CustomConnectorMashupLobSystem</Property>
    <Property Name="Title" Type="System.String">Name</Property>
    </Properties>
    <Identifiers>
    <Identifier Name="ProductID" TypeName="System.Int32" />
    </Identifiers>
    <Methods>
    <Method Name="Test">
    <Parameters>
    <Parameter Name="returnParameter" Direction="Return">
    <TypeDescriptor Name="ProductList" TypeName="System.Collections.Generic.IEnumerable`1[[CustomConnectorMashup.Model.GetAllProductEntitysProperties, CustomConnectorMashup, Version=1.0.0.0, Culture=neutral, PublicKeyToken=02df3463d06f0080]]" IsCollection="true">
    <TypeDescriptors>
    <TypeDescriptor Name="Product" TypeName="CustomConnectorMashup.Model.GetAllProductEntitysProperties, CustomConnectorMashup, Version=1.0.0.0, Culture=neutral, PublicKeyToken=02df3463d06f0080">
    <TypeDescriptors>
    <TypeDescriptor Name="ProductID" TypeName="System.Int32" IdentifierName="ProductID" ReadOnly="true" />
    <TypeDescriptor Name="Name" TypeName="System.String" />
    </TypeDescriptors>
    </TypeDescriptor>
    </TypeDescriptors>
    </TypeDescriptor>
    </Parameter>
    </Parameters>
    <MethodInstances>
    <MethodInstance Name="Test" DefaultDisplayName="FinderTest" Type="Finder" ReturnParameterName="returnParameter" />
    </MethodInstances>
    </Method>
    </Methods>
    </Entity>
    </Entities>
    </LobSystem>
    </LobSystems>
    </Model>
    This was my connector class
    using System;
    using System.Collections;
    using System.Collections.Generic;
    using CustomConnectorMashup.Model;
    using Microsoft.BusinessData.Infrastructure;
    using Microsoft.BusinessData.MetadataModel;
    using Microsoft.BusinessData.Runtime;
    namespace CustomConnectorMashup.Custom
    public class Connector : ISystemUtility, IAdministrableSystem
    #region IAdministrableSystem Members
    public IList<AdministrableProperty> AdministrableLobSystemProperties
    get { return null; }
    public IList<AdministrableProperty> AdministrableLobSystemInstanceProperties
    get
    return new List<AdministrableProperty>
    // Add the Connection String to the Administrable Properties so it can be changed in Central Administration
    new AdministrableProperty("Connection String", "The Connection String", typeof (string), "ConnectionString", typeof (string), true)
    #endregion
    public IEnumerator CreateEntityInstanceDataEnumerator(object rawStream, ISharedEntityState sharedEntityState)
    var enumerableStream = rawStream as IEnumerable;
    if (enumerableStream != null)
    return enumerableStream.GetEnumerator();
    throw new InvalidOperationException("Invalid stream returned");
    public ITypeReflector DefaultTypeReflector
    get { return null; }
    public IConnectionManager DefaultConnectionManager
    get { return null; }
    public void ExecuteStatic(IMethodInstance methodInstance, ILobSystemInstance lobSystemInstance, object[] args,
    IExecutionContext context)
    if (methodInstance == null)
    throw (new ArgumentNullException("methodInstance"));
    if (lobSystemInstance == null)
    throw (new ArgumentNullException("lobSystemInstance"));
    if (args == null)
    throw (new ArgumentNullException("args"));
    // Read Connection string from LobSystem Instance
    var connectionString = lobSystemInstance.GetProperties()["ConnectionString"] as string;
    switch (methodInstance.MethodInstanceType)
    case MethodInstanceType.Finder:
    // Added switch to allow multiple instances of each type
    switch (methodInstance.Name)
    case "Test":
    ExecuteTestMethod(connectionString, args);
    break;
    break;
    default:
    throw new NotImplementedException("Only Finder Method Implemented");
    private static void ExecuteTestMethod(string connectionString, object[] args)
    // Call default method and assign to 0 index of args
    args[0] = ProductEntityService.TestMethod(connectionString);
    I hope this helps a bit, I do have a project that worked for me that I could send to you to pick apart if that would be helpful. I think I might need to write a blog post so others can benefit from it.
    All the best
    Phill
    helpful? …please mark it so!
    Lightning Tools Check out our SharePoint Tools and Web Parts
    BCS Meta Man Automatic BCS Model Generation
    BCS Tester Man Open Source BCS test client

  • Microsoft Office 2004 (Word) unable to save files  I have been running Office 2004 on my Intel iMac with Snow Leopard for some time and all of a sudden I cannot save a document. Word just stopped responding and I have to force quit. I can open Word and cr

    Microsoft Office 2004 (Word) unable to save files
    I have been running Office 2004 on my Intel iMac with Snow Leopard for some time and all of a sudden I cannot save a document. Word just stopped responding and I have to force quit. I can open Word and create a new document but I cannot save it. I reinstalled Word but that didn’t help. Then went to the Internet and found at least one other Mac user having the same problem which it suggests is caused by a recent Mac Security Update:
    http://answers.microsoft.com/en-us/mac/forum/macoffice2004-macword/word-2004-wil l-not-open-or-save-documents/b04eb870-9b0d-4f3b-bb47-b122301e36f6
    So I check for a new Mac Security Update and sure enough there was one. I downloaded it and now Word seems to be working, as it should. I can both open and save files. The only problem remaining is that when I open Word I get the following error message “An unexpected error occurred while trying to load the Microsoft Framework library”. I contacted Apple but they were unable to help.
    How can I get rid of this error message?

    Look, I realize you might have to get your machine working, so this is how you revert back.
    Restore proceedure to pre-Security Update 2012-001 v 1.0 & v 1.1
    #1 Backup your personal data off the machine.
    Backup files off the computer (not to TimeMachine). If you don't have a external drive, get one and connect to the USB/Firewire port and simply drag and drop copy your User folder to the external drive, it will copy all your files. It's best to have two backups of your data off the machine when trying to restore.
    Disconnect all drives now to prevent any mistakes from occuring.
    #2 Reinstall OS X 10.6 from disk
    Get out your 10.6 install disk and make sure it's clean and polished (very soft cloth and a bit of rubbing alcohol, no scratches) If your disk is borked, you'll have to order a new one from Apple with your serial number.
    Hold c boot off the 10.6 disk (wired keyboard, internal optical drive), use Disk Utility First Aid to >Repair Disk  of your internal drive  (do not format or erase!!), Quit DU and simply re-install 10.6.
    Note: Simply reinstalling 10.6 version from disk (without erasing the drive) only replaces 10.6.8 with 10.6.x and bundled Apple programs, won't touch your files (backup anyway)  or most programs, unless they installed a kext file into OS X itself. (only a few on average do this)
    #3 Update to 10.6.8 without Security Update 2012-001 v1.0 or v1.1
    Reboot and log in, update to 10.6.8 via Software Update, but EXCLUDE THE Security Update 2012-001 by checkinig the details and unchecking the blue check box.
    #4 Reinstall any non-working third party programs
    When you reboot, make sure to reinstall any programs that require kext files installed into OS X, you'll know, they won't work when you launch them or hang for some reason as they are missing the part they installed into OS X.
    If for some freakish reason you get gray screen at any time when booting (possible it might occur when you reinstall older programs), hold the shift key down while booting (Safe Mode, disables kext files) and update your installed third party software so it's compatible with 10.6.8.
    https://support.apple.com/kb/TS2570
    That's it really.

  • I cannot save my work in Illustrator CC2014.1 due to an 'unknown error'. Any ideas on a solution?

    Hi there,
    I have produced some work in illustrator and wanting to save before I proceed but Illustrator will not allow me due to an unknown error. I have tried some ideas posted on the web (turning off the visibility of layers, saving as an EPS) but to no avail. I have tried resetting my preferences and turning off sync settings but again no luck. Is anyone else experiencing this and anyone have any ideas on a solution?
    Many thanks,
    Matt

    Hi Jacob,
    Thanks for the idea.
    Tried that, (tried all the Save As options) and the same 'unknown error' occurs. I have tried saving as an Illustrator EPS and a different alert comes up as 'Cannot Save. A necessary item is missing: ID: 192'. No idea what the necessary item is? Mithril? Gold?
    Raghuveer- yes, it still is an issue- joined the connect session and waiting for your response.
    Many thanks,
    Matt

  • How do I get a new value for the service name field and update it in Connection Properties?

    I am running Windows Vista. I just upgraded to Firefox 4. When I try to log on to the internet, it tells me the proxy server is refusing connections. A diagnostic reported Error 815 and said the remote server is not responding because there is an invalid value for the "Service Name" field. It said to get a new value and update it in Connection Properties. How do I do this?

    When you create a new film script, the first page you see is a title page.
    The page after this title page is the one where you generally type in your scenes.
    It looks like you are facing some issue and not able to delete any text.
    Can you please send me this script so that I can have a better look at your issue?
    You can save this script to disk by using option 'File -> Save to disk'. This will create a '.stdoc' file on your system.
    Just mail this '.stdoc' file to me at 'roverma <at> adobe <dot> com'
    Thanks

  • Clients using Word cannot save docs to their network home folders

    Hi, We're experiencing an odd behavior that I think began when we upgraded from Tiger to Leopard server. When a document is opened or started, users go to save and get a message like:"You cannot save this because it is already open somewhere else". Changing the name sometimes helps, but after changing the name five or eight times it becomes hard to tell which is most recent, and this shouldn't be happening.
    We upgraded the server and all clients to 10.5.7, and Word 2008 to 12.1.7, but the behavior persists. When it began, the server was on 10.5.6 and the clients were 10.4.11, mostly using Word 2004.
    Apparently folks are aware of this and are working on it, but I have not seen any solutions.
    Can anyone shed light here?
    Many thanks, ...Tom

    Also know that this problem with MS Office apps has been seen as far back as with 10.3 Server.
    Similarly to Adobe apps, they don't actually (not officially) support saving directly to a network volume.
    There has been much finger-pointing between these 3rd-parties towards Apple, none of which helps to resolve matters.
    However, as far as Office apps go, look at the top-level of your sharepoint housing user homes, for
    an item named:
    .Temporary Items
    (note the dot)
    and if it's not there, create it, via the Terminal:
    cd /path/toyourdrive/NetworkHomeSharepoint
    mkdir .Temporary Items
    sudo chmod 777 .Temporary Items
    *Please note that* having a globally-modifiable item (world-writable) is less than ideal in the grand scheme of things,
    but should provide a workaround.

  • JCA adapter outbound connection properties values are not populating ..

    Hi ,
    I am struggling to find a solution for this problem.
    My managed connection factory impl has all the properties as per the java bean spec. I have also implemented hashcode and equals but i still don't see the custom outbound custom properties information populated into my ManagedConnectionFactoryImpl properties. I checked property names in both weblogic-ra.xml and ra.xml. The names are consistent.
    As per this discussion (BINDING.JCA-12510 JCA Resource Adapter location error in SOA 11g Suite i saved the properties using Keyboard entered. I restarted my server and also i can see the saved values
    I also verified the Plan.xml that gets created when the values are updated. Please find the provided the code snippets. Any help appreciated.
    Please let me know if i need to post this in a different forum. We use weblogic 10.3.5 application server. Let me know for any more details.
    Thanks,
    Sri
    For more information:
    Following is the managed connection factory Impl
    package com.cgi.cml.common.sample.connector.ra.outbound;
    import java.beans.PropertyChangeListener;
    import java.beans.PropertyChangeSupport;
    import java.io.PrintWriter;
    import java.io.Serializable;
    import java.util.Iterator;
    import java.util.Set;
    import javax.resource.ResourceException;
    import javax.resource.spi.ConnectionManager;
    import javax.resource.spi.ConnectionRequestInfo;
    import javax.resource.spi.ManagedConnection;
    import javax.resource.spi.ManagedConnectionFactory;
    import javax.security.auth.Subject;
    public class SampleManagedConnectionFactoryImpl
         implements ManagedConnectionFactory, Serializable {
    private transient PropertyChangeSupport changes =new PropertyChangeSupport(this);
         private String databaseFileName = "";
    private String database = "";
    private String user = "";
    private String password = "";
    private String dtdPath = "";
    private String protocol = "";
    private String serverAddress = "";
    private Boolean debugMode = false;
         private PrintWriter writer;
         * Constructor for SampleManagedConnectionFactoryImpl
         public SampleManagedConnectionFactoryImpl() {
         * @see ManagedConnectionFactory#createConnectionFactory(ConnectionManager)
         @Override
         public Object createConnectionFactory(ConnectionManager cm)
              throws ResourceException {
              return new MomapiConnectionFactoryImpl(this, cm);
         * @see ManagedConnectionFactory#createConnectionFactory()
         @Override
         public Object createConnectionFactory() throws ResourceException {
              return new MomapiConnectionFactoryImpl(this, null);
         * @see ManagedConnectionFactory#createManagedConnection(Subject, ConnectionRequestInfo)
         @Override
         public ManagedConnection createManagedConnection(
              Subject subject,
              ConnectionRequestInfo cxRequestInfo)
              throws ResourceException {
              System.out.println("createdManaged Connection called");
              return new SampleManagedConnectionImpl(subject,cxRequestInfo);
         * @see ManagedConnectionFactory#matchManagedConnections(Set, Subject, ConnectionRequestInfo)
         @Override
         public ManagedConnection matchManagedConnections(
              Set connectionSet,
              Subject subject,
              ConnectionRequestInfo cxRequestInfo)
              throws ResourceException {
              System.out.println("match managed Connections called---->"+getDatabaseFileName());
              ManagedConnection match = null;
              Iterator iterator = connectionSet.iterator();
              if (iterator.hasNext()) {
                   match = (ManagedConnection) iterator.next();
              return match;
         * @see ManagedConnectionFactory#setLogWriter(PrintWriter)
         @Override
         public void setLogWriter(PrintWriter writer) throws ResourceException {
              this.writer = writer;
         * @see ManagedConnectionFactory#getLogWriter()
         @Override
         public PrintWriter getLogWriter() throws ResourceException {
              return writer;
    * Checks whether this instance is equal to another.
    * @param obj other object
    * @return true if the two instances are equal, false otherwise
         @Override
    public boolean equals(Object obj)
              System.out.println("equals method called");          
    boolean equal = false;
    if (obj != null)
    if (obj instanceof MomapiManagedConnectionFactoryImpl)
         SampleManagedConnectionFactoryImpl other = (SampleManagedConnectionFactoryImpl) obj;
    equal = (this.databaseFileName).equals(other.databaseFileName) &&
    (this.database).equals(other.database) &&
    (this.user).equals(other.user) &&
    (this.password).equals(other.password) &&
    (this.dtdPath).equals(other.dtdPath) &&
    (this.protocol).equals(other.protocol) &&
              (this.serverAddress).equals(other.serverAddress) &&
              (this.debugMode==other.debugMode);
              System.out.println("equals method returning -->"+ equal);
    return equal;
    * Returns the hashCode of the ConnectionRequestInfoImpl.
    * @return the hash code of this instance
    public int hashCode()
    //The rule here is that if two objects have the same Id
    //i.e. they are equal and the .equals method returns true
    // then the .hashCode method must return the same
    // hash code for those two objects      
    int hashcode = new String("").hashCode();
    if (databaseFileName != null)
    hashcode += databaseFileName.hashCode();
    if (database != null)
    hashcode += database.hashCode();
    if (user != null)
    hashcode += user.hashCode();
    if (password != null)
    hashcode += password.hashCode();
    if (dtdPath != null)
    hashcode += dtdPath.hashCode();
    if (protocol != null)
    hashcode += protocol.hashCode();
    if (serverAddress != null)
    hashcode += serverAddress.hashCode();
              System.out.println("hascode method called and the value is -->"+hashcode);
    return hashcode;
    * Associate PropertyChangeListener with the ManagedConnectionFactory,
    * in order to notify about properties changes.
    * @param lis the PropertyChangeListener to be associated with the
    * ManagedConnectionFactory
    public void addPropertyChangeListener(PropertyChangeListener lis)
         System.out.println("addPropertyChangeListener called");
    changes.addPropertyChangeListener(lis);
    * Delete association of PropertyChangeListener with the
    * ManagedConnectionFactory.
    * @param lis the PropertyChangeListener to be removed
    public void removePropertyChangeListener(PropertyChangeListener lis)
         System.out.println("removePropertyChangeListener called");      
    changes.removePropertyChangeListener(lis);
    public String getDatabaseFileName() {
              return databaseFileName;
         public void setDatabaseFileName(String databaseFileName) {
              this.databaseFileName = databaseFileName;
         public String getDatabase() {
              return database;
         public void setDatabase(String database) {
              System.out.println("hellloooooooooooo---->"+database);
              this.database = database;
         public String getUser() {
              return user;
         public void setUser(String user) {
              this.user = user;
         public String getPassword() {
              return password;
         public void setPassword(String password) {
              this.password = password;
         public String getDtdPath() {
              return dtdPath;
         public void setDtdPath(String dtdPath) {
              this.dtdPath = dtdPath;
         public String getProtocol() {
              return protocol;
         public void setProtocol(String protocol) {
              this.protocol = protocol;
         public String getServerAddress() {
              return serverAddress;
         public void setServerAddress(String serverAddress) {
              this.serverAddress = serverAddress;
         public Boolean isDebugMode() {
              return debugMode;
         public void setDebugMode(Boolean debugMode) {
              this.debugMode = debugMode;
         public PrintWriter getWriter() {
              return writer;
         public void setWriter(PrintWriter writer) {
              this.writer = writer;
    weblogic-ra.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <weblogic-connector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:j2ee="http://java.sun.com/xml/ns/j2ee"
         xmlns:javaee="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://xmlns.oracle.com/weblogic/weblogic-connector/1.0/weblogic-connector.xsd"
         xmlns="http://xmlns.oracle.com/weblogic/weblogic-connector">
         <jndi-name>jca/sampleRA</jndi-name>
         <enable-access-outside-app>true</enable-access-outside-app>
         <outbound-resource-adapter>
              <connection-definition-group>
                   <connection-factory-interface>javax.resource.cci.ConnectionFactory</connection-factory-interface>
                   <connection-instance>
                        <jndi-name>jca/sampleCon</jndi-name>
    <connection-properties>
    <properties>
    <property>
    <name>databaseFileName</name>
    </property>
    <property>
    <name>database</name>
    </property>
    <property>
    <name>user</name>
    </property>
    <property>
    <name>password</name>
    </property>
    <property>
    <name>dtdPath</name>
    </property>
    <property>
    <name>protocol</name>
    </property>
    <property>
    <name>serverAddress</name>
    </property>
    <property>
    <name>debugMode</name>
    </property>
    </properties>
    </connection-properties>                
                   </connection-instance>
              </connection-definition-group>
         </outbound-resource-adapter>
    </weblogic-connector>
    ra.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <connector xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    http://java/sun.com/xml/ns/j2ee/connector_1_5.xsd" version="1.5">
    <display-name>MomapiConnector</display-name>
    <vendor-name>CGI</vendor-name>
    <eis-type>SAMPLE</eis-type>
    <resourceadapter-version>1.0</resourceadapter-version>
    <license>
    <license-required>false</license-required>
    </license>
    <resourceadapter>
    <resourceadapter-class>com.cgi.cml.common.sample.connector.ra.SampleResourceAdapterImpl</resourceadapter-class>
    <outbound-resourceadapter>
    <connection-definition>
    <managedconnectionfactory-class>com.cgi.cml.common.sample.connector.ra.outbound.SampleManagedConnectionFactoryImpl</managedconnectionfactory-class>
              <config-property>
         <config-property-name>databaseFileName</config-property-name>
         <config-property-type>java.lang.String</config-property-type>
         </config-property>
    <config-property>
         <config-property-name>database</config-property-name>
         <config-property-type>java.lang.String</config-property-type>
         </config-property>
              <config-property>
         <config-property-name>user</config-property-name>
         <config-property-type>java.lang.String</config-property-type>
         </config-property>
              <config-property>
         <config-property-name>password</config-property-name>
         <config-property-type>java.lang.String</config-property-type>
         </config-property>
              <config-property>
         <config-property-name>dtdPath</config-property-name>
         <config-property-type>java.lang.String</config-property-type>
         </config-property>
              <config-property>
         <config-property-name>protocol</config-property-name>
         <config-property-type>java.lang.String</config-property-type>
         </config-property>
              <config-property>
         <config-property-name>serverAddress</config-property-name>
         <config-property-type>java.lang.String</config-property-type>
         </config-property>
              <config-property>
         <config-property-name>debugMode</config-property-name>
         <config-property-type>java.lang.Boolean</config-property-type>
         </config-property>
              <connectionfactory-interface>javax.resource.cci.ConnectionFactory</connectionfactory-interface>
    <connectionfactory-impl-class>com.cgi.cml.common.my.connector.ra.outbound.SampleConnectionFactoryImpl</connectionfactory-impl-class>
    <connection-interface>javax.resource.cci.Connection</connection-interface>
    <connection-impl-class>com.cgi.cml.common.sample.connector.ra.outbound.SampleConnectionImpl</connection-impl-class>
    </connection-definition>
    <transaction-support>NoTransaction</transaction-support>
         <reauthentication-support>false</reauthentication-support>
    </outbound-resourceadapter>
    </resourceadapter>
    </connector>
    Edited by: 931395 on May 2, 2012 7:43 AM
    Edited by: 931395 on May 2, 2012 8:15 AM

    Arun,
    I tried, no luck and it is giving me the following error. Once the Plan.xml is created I am usinng "update" button on the console to redeploy the application using Plan.xml. When I take this route it gives me 2 options (1. update this application in place with new deployment plan 2. redploy this application using the following deployment files).
    When I use the second option eventhough there is a change in the Plan.xml nothing happens. If I use the first option then I am getting the following exception. If I put the module-override for application then only the ear is getting deployed.
    Thanks,
    Sridhar
    [BaseFlow] : No UpdateListener found or none of the found UpdateListeners accepts URI
    <May 9, 2012 9:37:47 AM EDT> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1336570667598' for task '10'. Error is: 'weblogic.management.DeploymentException:
    The application SampleApp cannot have the resource META-INF/weblogic-ra.xml updated dynamically. Either:
    1.) The resource does not exist.
    or
    2) The resource cannot be changed dynamically.
    Please ensure the resource uri is correct, and redeploy the entire application for this change to take effect.'
    weblogic.management.DeploymentException:
    The application SampleApp cannot have the resource META-INF/weblogic-ra.xml updated dynamically. Either:
    1.) The resource does not exist.
    or
    2) The resource cannot be changed dynamically.
    Please ensure the resource uri is correct, and redeploy the entire application for this change to take effect.
         at weblogic.application.internal.flow.DeploymentCallbackFlow.addPendingUpdates(DeploymentCallbackFlow.java:375)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.makePendingUpdates(DeploymentCallbackFlow.java:394)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepareUpdate(DeploymentCallbackFlow.java:407)
         at weblogic.application.internal.BaseDeployment$PrepareUpdateStateChange.next(BaseDeployment.java:685)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         Truncated. see log file for complete stacktrace
    >
    <May 9, 2012 9:37:47 AM EDT> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating update task for application 'SampleApp'.>
    <May 9, 2012 9:37:47 AM EDT> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    weblogic.management.DeploymentException:
    The application SampleApp cannot have the resource META-INF/weblogic-ra.xml updated dynamically. Either:
    1.) The resource does not exist.
    or
    2) The resource cannot be changed dynamically.
    Please ensure the resource uri is correct, and redeploy the entire application for this change to take effect.
         at weblogic.application.internal.flow.DeploymentCallbackFlow.addPendingUpdates(DeploymentCallbackFlow.java:375)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.makePendingUpdates(DeploymentCallbackFlow.java:394)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepareUpdate(DeploymentCallbackFlow.java:407)
         at weblogic.application.internal.BaseDeployment$PrepareUpdateStateChange.next(BaseDeployment.java:685)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         Truncated. see log file for complete stacktrace
    >
    <May 9, 2012 9:37:47 AM EDT> <Error> <Console> <BEA-240003> <Console encountered the following error weblogic.management.DeploymentException:
    The application SampleApp cannot have the resource META-INF/weblogic-ra.xml updated dynamically. Either:
    1.) The resource does not exist.
    or
    2) The resource cannot be changed dynamically.
    Please ensure the resource uri is correct, and redeploy the entire application for this change to take effect.
         at weblogic.application.internal.flow.DeploymentCallbackFlow.addPendingUpdates(DeploymentCallbackFlow.java:375)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.makePendingUpdates(DeploymentCallbackFlow.java:394)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepareUpdate(DeploymentCallbackFlow.java:407)
         at weblogic.application.internal.BaseDeployment$PrepareUpdateStateChange.next(BaseDeployment.java:685)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         at weblogic.application.internal.BaseDeployment.prepareUpdate(BaseDeployment.java:439)
         at weblogic.application.internal.EarDeployment.prepareUpdate(EarDeployment.java:58)
         at weblogic.application.internal.DeploymentStateChecker.prepareUpdate(DeploymentStateChecker.java:220)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepareUpdate(AppContainerInvoker.java:149)
         at weblogic.deploy.internal.targetserver.operations.DynamicUpdateOperation.doPrepare(DynamicUpdateOperation.java:130)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:747)
         at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1216)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:250)
         at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:171)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:13)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:46)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    >

  • Can't save a connection on SQL Developer 1.5

    I just installed SQL Dev 1.5. The first time I run it all was fine. The second time it was giving me severe errors.
    The first one was 'failed to create naming Context for db connections at url: file:/C:/Documents and Settings/thatzi/Application Data/SQL Developer/system1.5.0.53.38/o.jdeveloper.db.connection.11.1.1.0.22.49.35/connections.xml'.
    The second one was 'DatabaseConnections has no JNDI context so cannot list connections.'
    After I deleted the 'C:/Documents and Settings/thatzi/Application Data/SQL Developer' directory I was able to run the app one more time, but had the same problem next time I run the app.
    There must be a way to fix this. Can anybody help?

    I can save new connections to my existing connections.xml file, and I can save to a new connections file. I just can't save existing connections.
    I looked at the xml for the old version, and compared to the new version, and they are quite different. I tried deleting the system1.5.1.54.40\o.jdeveloper.db.connection.11.1.1.0.22.49.35 directory, so it would ask me about migrating old settings again, and this time I selected the directory for the previous version, 1.5.0.53.38. The connections weren't migrated. Apparently I can't save the existing connections because the old connections.xml format is not valid. How can I migrate/convert my old connections file to work in the new version. For all I know, this could have been an existing problem from when I converted from 1.2. This is just the first time I've had an occasion to change connection info, so I might be using a connections.xml file from 1.2.
    Here is one of my connection xml configs that I am unable to update:
    <Reference className="oracle.jdeveloper.db.adapter.DatabaseProvider" name="DB1">
    <Factory className="oracle.jdeveloper.db.adapter.DatabaseProviderFactory"/>
    <RefAddresses>
    <StringRefAddr addrType="subtype">
    <Contents>oraJDBC</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="user">
    <Contents>myuser_id</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="password">
    <Contents>myPassword</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="SavePassword">
    <Contents>true</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="DeployPassword">
    <Contents>false</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="driver">
    <Contents>oracle.jdbc.OracleDriver</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="customUrl">
    <Contents>jdbc:oracle:thin:@ (DESCRIPTION= (ADDRESS_LIST= (ADDRESS= (PROTOCOL=TCP) (HOST=NNN.NNN.NNN.NNN) (PORT=NNNNN) ) ) (CONNECT_DATA= (SID=db1) ) )</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="oraDriverType">
    <Contents>thin</Contents>
    </StringRefAddr>
    </RefAddresses>
    </Reference>

Maybe you are looking for

  • Deskjet 3050 not connecting to my wifi network

    Accidentally pressed Restore Default and my printer will not connect to my wifi network. How do reinstall it please?

  • Calculate Date IN APEX

    Hi Friends, I have 2 Items one is date item(Date Picker) and another one is textfield item. If i pick the date from Date picker then the output will automatically come to the 2 textfield item. My Requirement output is: For Example: If i select 07.07.

  • Elements 12 Photo Editor stopped working

    I recently purchased a brand new HP with Windows 8.  I downloaded PS Elements 12 from Amazon last month and a few weeks in, Photoshop Editor stoped working.  I ended up uninstalling it then reinstalling and it worked great for a few days before the E

  • My DVD drive is faulty, HELP!

    My Mac is nearly 2 years old now and just recently when I try to eject an audio CD from the DVD drive it won't let me. It just keeps saying 'this audio cd is in use with another application please try quiting the application and try again' even when

  • Anybody using a firewire volume as a startup disk?

    I am Anybody able to go straight to the Startup firewire volume without the Option key? I can't Is this the way it is supposed to work? Did not work this way in the bad old days of Mac OS and skuzzy