Problems setting up foreign provider

Hi, I'm trying to get my Weblogic 8.1 server to talk to a remote Websphere server (this is the trial installation of WS so it's not a full version of MQ).
          Basically I set up a connection factory and topic on the websphere machine. THen in Weblogic I created a foreign server containing the initial context factory com.ibm.websphere.naming.WsnInitialContextFactory and the provider url iiop://xxx.xx.xx.xx:2809 (no user/password). Then I proceded to setup a connection factory and a topic.
          I have a stand-alone client running outside the server that tries to connect to the local name of the foreign connection factory but I get an InvalidName exception when it tries to look up the connection factory. From teh stack trace it looks like it is actually trying to look it up on the foreign server but failing.
          portion of config.xml that defines the foreign JMS server:
          <ForeignJMSServer ConnectionURL="iiop://10.0.00.00:2809"
          InitialContextFactory="com.ibm.websphere.naming.WsnInitialContextFactory"
          JNDIProperties="" Name="websphere" Targets="myServer">
          <ForeignJMSConnectionFactory LocalJNDIName="com.abc.def.WSCF"
          Name="Websphere CF" RemoteJNDIName="com.abc.def.connectionFactory"/>
          <ForeignJMSDestination LocalJNDIName="com.abc.def.WSXYZ"
          Name="WSXYZ" RemoteJNDIName="XYZ"/>
          </ForeignJMSServer>
          In the code I set up the initial context with a provider URL that points to the local server (same machine actually) and the standard weblogic initial context factory class.
          The code is very simple JMS client code that works when talking to the local server with a normal connection factory etc and a local topic but when I change the connection factory to "com.abc.def.WSCF" and the topic to "com.abc.def.WSXYZ" I get the following error:
          javax.naming.InvalidNameException: Exception in lookup. [Root exception is org.omg.CosNaming.NamingContextPackage.InvalidName: IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0]
          at weblogic.corba.j2ee.naming.Utils.wrapNamingException(Utils.java:47)
          at weblogic.corba.j2ee.naming.ContextImpl.lookup(ContextImpl.java:235)
          at weblogic.corba.j2ee.naming.ContextImpl.lookup(ContextImpl.java:171)
          at javax.naming.InitialContext.lookup(InitialContext.java:347)
          at kmr.jms.PublishToTopic.main(PublishToTopic.java:95)
          Caused by: org.omg.CosNaming.NamingContextPackage.InvalidName: IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0
          at weblogic.iiop.OutboundRequestImpl.sendReceive(OutboundRequestImpl.java:187)
          at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:284)
          at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:244)
          at weblogic.corba.cos.naming.NamingContextAny_IIOP_WLStub.resolve_any(Unknown Source)
          at weblogic.corba.j2ee.naming.ContextImpl.lookup(ContextImpl.java:213)
          ... 3 more
          Caused by: org.omg.CosNaming.NamingContextPackage.InvalidName: IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0 IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0
          at org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.read(InvalidNameHelper.java:60)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:324)
          at weblogic.iiop.IIOPInputStream.readWithHelper(IIOPInputStream.java:2071)
          at weblogic.iiop.IIOPInputStream.read_IDLEntity(IIOPInputStream.java:2060)
          at weblogic.iiop.IIOPInputStream.read_IDLEntity(IIOPInputStream.java:2051)
          at weblogic.iiop.ReplyMessage.getThrowable(ReplyMessage.java:360)
          at weblogic.iiop.InboundResponseImpl.getThrowable(InboundResponseImpl.java:59)
          at weblogic.iiop.OutboundRequestImpl.sendReceive(OutboundRequestImpl.java:174)
          ... 7 more
          I took the iiop stuff in the stack trace to mean that it is actually trying to go over to the websphere server and do the lookup but it's not working for some reason...
          Can anybody give me some suggestions on what to try??

Thanks for the response Tom. Here is the classpath:
          /h/COTS/BEAPLT/weblogic81/server/lib/webservices.jar:/h/COTS/BEAPLT/weblogic81/server/lib/ejbgen.jar::::/h/COTS/BEAPLT/weblogic81/common/eval/pointbase/lib/pbserver44.jar:/h/COTS/BEAPLT/weblogic81/common/eval/pointbase/lib/pbclient44.jar:/h/COTS/BEAPLT/weblogic81/common/eval/pointbase/lib/pbtools44.jar::/utils_common.jar:/h/COTS/BEAPLT/jdk142_06/lib/tools.jar:/h/COTS/BEAPLT/weblogic81/server/lib/weblogic_sp.jar:/h/COTS/BEAPLT/weblogic81/server/lib/weblogic.jar
          wlclient.jar is the thin one right? I don't see any here that are thin and the thick one is at the end.
          Also, I'm using "t3://localhost:80" for the provider url into weblogic (I know 80 is not default but this server was configured ot use 80 for some reason).
          Thanks again for the response - any addtnl info is greatly appreciated.

Similar Messages

  • Problem setting a provider specific property : JMS adapter

    Hi Experts:
    I need to set a provider specific property as required by the third party in a IDoc to JMS scenario.
    The property name starts with JMS_ and is offcourse a property specific to the JMS provider.
    The way I am setting it is I have declared a Additional JMS message property by the same name as desired by the third party say
    JMS_XXX
    and then using the DynamicConfigurationBean I assign a value to this in the reciever channel.
    The problem that we have observed is, all other properties are set as desired, only this one for which the name starts with JMS_ is not set correctly.
    Is it possible to set such a provider specific property using XI or not?

    Hi Amol,
    Adapter-Specific Message Properties
    ·        To store adapter attributes in the message header of the XI message, select Set Adapter-Specific Message Properties.
    ·        To apply the following attributes in XI message headers, set the corresponding indicators:
           Name                                           Technical Name
    JMS Message Correlation ID               DCJMSCorreleationID
    JMS Message Delivery Mode               DCJMSDeliveryMode
    JMS Message Destination                   DCJMSDestination
    JMS Message Expiration                     DCJMSExpiration
    JMS Message ID                                DCJMSMessageID
    JMS Message Priority                         DCJMSPriority
    JMS Message Redelivered Flag            DCJMSRedelivered
    JMS Message ReplyTo Destination      DCJMSReplyTo
    JMS Message Time Stamp                   DCJMSTimestamp
    JMS Message Type                              DCJMSType
    Used JMS Message Selector                 DCJMSMessageSelector
    Used JMS Message Queue                    DCJMSMessageQueue
    JMS User                                                DCJMSUser
            If you want to set additional JMS message attributes, select Specify Additional JMS Message Properties (10 Maximum).
    ·        In the table, enter the names of the JMS message properties whose values are to be included in the message header of the XI message.
    The technical names of the additional attributes are DCJMSMessageProperty0, DCJMSMessageProperty1, ..., DCJMSMessageProperty9.
    You can enter more than 10 properties in the table, but only the first 10 are taken into account.
    The attribute namespace for the adapter is http://sap.com/xi/XI/System/JMS.
    if found worth pls do the req
    Thanx
    Sampath

  • Problems setting up static routing

    HI
    I'm having a problem setting up static routing.  I keep getting the message "invalid static route".   I have an E1550 router and my frimware is up to date.  I have tried a few different gateway addresses ie 192.168.1.1,  127.0.0.1 and my router's address on the net, but I keep getting the same message.  Has anyone else had this problem and been able to fix it?

    I think the E1550 router supports LAN to LAN routing provided that you have two local networks. If you only have a plain modem and the E1550, I believe you can't do Static routing on that type of setup. Found this link that might help: http://kb.linksys.com/Linksys/ukp.aspx?vw=1&docid=12a84336a124498eb5d6f0204b85191e_17589.xml&pid=80&...

  • Problems Setting up a Direct Debit

    has anyone experienced any problems setting up a direct debit ??
    I've been a BT customer for approximately 20 years and have had the same account number. I've moved house a few times and retained the same account. My last house move wasn't so successful as after moving in and having broadband re set up again... I received a letter in the post saying I had requested a "termination" and a parcel was included to send my router back etc... plus... I'd be charged £100+ for the disconnection...
    Anyway I got on the phone to BT and the advisor appologised for the mix up... and suggested I cancel my direct debit with the bank to make sure the disconnection fee wasn't taken from my account..... 
    Ever since then... I have not being able to set up a direct debit online or by speaking with several BT helpdesk staff.  I email BT asking for an explaination - NOTHING.  BT helpdesk staff assure me that the direct debit will work this time and will contact me if there is a problem... again NOTHING.  I even tried writing a letter to the head of customer services... I think the name Warren Buckley rings a bell..   Someone did email me back suggesting I use the online facility.... REALLY!!  Do BT not have a fault tracking database of customer issues... so they can see I've already tried to set up the direct debit online... 
    Anyway ..... I've just noticed this forum now... so this is my latest attempt to see if anyone senior enough at BT will be embarrassed and try and sort out my account so I can start paying my bill using Direct Debit again... I'm pretty sure all that needs to happen is to be given a new account number or an account alias that can be sent to my bank. Otherwise... I'll just carry on waiting to receive the automated message from BT saying I haven't paid and then go and pay online... But I am worried one of these automated messages will arrive the day I go on a 2 week holiday and I find myself cut off when I get home... giving me more pain....
    PLEASE HELP BT ;o) 
    regards
    DaveB

    I have asked a moderator to provide assistance, they will post an invite on this thread.
    They are the only BT employees on this forum, and are a UK based team of people, who take personal ownership of your problem.
    Once you get a reply, if you click on their name, you will see a screen like this. Click on the link as shown below.
    Please do not send them a personal message, as they may not be on duty for a long time, and your message will not be tracked properly.
    For your own security, do not post any personal details, on this forum. That includes any tracking number you are give.
    They will respond either by phone or e-mail within 5-6 working days.
    Please use the tracked e-mail, to reply, not via the forum. Thanks
    This is the form you should see when you click on the link. If you do not see this form, then you have selected the wrong link.
    When you submit the form, you will receive an enquiry number, so please keep a note of it
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • Problems setting up WRT54G2 router

    I'm having problems setting up my Linksys WRT54G2 router. I want my mac laptop (iBook G3 running OSX) to use a wireless connection, and the home computer (running Windows XP) to stay connected to the modem.
    I originally tried to set up the router by connecting it via ethernet to my laptop (and by ethernet to the modem), and went into the 192.168.1.1 address to configure it. The internet works fine on my laptop when connected to the wireless by ethernet but it can't connect wirelessly (it has an original airport card fitted, at first I thought I might need to upgrade the firmware but I ran a software update and one didn't come up). I then realised that I would need to MAC clone from the PC, that is connected to the modem? I tried to do this today, but I couldn't access the 192.168.1.1 address from the PC. I have tried resetting the router, and disabling the firewall but still can't access it. This PC also has anti-virus software running too - could this be the problem, or am I setting it up wrong? Thanks.

    If you are trying to Setup your Router with the setup disk, Then you can exit from the setup and configure your Router manually. Before you configure your router, you need to Press and hold the reset button for 60 seconds...Release the reset button...Unplug the power cable from your router, wait for 60 seconds and re-connect the power cable.....
    You need to connect your Modem to Linksys Router on Internet Port and your Computer to Linksys Router on Port No.1.
    If your Internet Service Providor is Cable follow this link
    If your Internet Service Providor is DSL follow this link
    Here are the Wireless Settings which you can set on your router, once done you can try connecting your MAC computer to your Wireless network and check if you are Online from MAC computer. 
    Open an Internet Explorer browser page on your wired computer(desktop).In the address bar type - 192.168.1.1
    Leave username blank & in password use admin in lower case...
    For Wireless Settings, please do the following : -
    Click on the Wireless tab
    -Here select manual configuration...Wireless Network mode should be mixed...
    -Provide a unique name in the Wireless Network Name (SSID) box in order to differentiate your network from your neighbours network...
    - Set the Radio Band to Wide-40MHz and change the Wide channel to 9 and Standard Channel to 11-2.462GHz...Wireless SSID broadcast should be Enabled and then click on save settings...
    Please make a note of Wireless Network Name (SSID) as this is the Network Identifier...
    For Wireless Security : -
    Click on the Sub tab under Wireless > Wireless Security...
    Change the Wireless security mode to WPA, For Encryption, select AES...For Passphrase input your desired WPA Key. For example , MySecretKey , This will serve as your network key whenever you connect to your wireless network. Do NOT give this key to anyone.
    NOTE : Passphrase should be more that 8 characters...
    Click on Advanced Wireless Settings
    Change the Beacon Interval to 75 >>Change the Fragmentation Threshold to 2304 Change the RTS Threshold to 2307 >>Click on "Save Settings"...
    Now see if you can locate your Wireless Network and attempt to connect...

  • Problem setting up WDS with MSI RG54GS2 & Motorola WR850g

    Problem setting up WDS with WR850g & MSI RG54GS2
    Hi,
    I'm trying to bridge 2 routers: Motorola WR850g & MSI RG54GS2 .
    I set the MSI as the main router (it works better for me as a router than the Moto), and the Moto is the repeater. I have set it up exactly as the guide on Broadbandreports.com for the Motorola , and on Tom's Networking http://www.tomsnetworking.com/2004/04/14/how_to_wds_bridge/
    The Moto sees the MAC of the MSI (Status is UP), the MSI doesn't have a page that shows WDS MACs . I know the routers are connected because when I connect a laptop to the Moto wireless network, it gets an IP (and the DHCP on the Moto is disabled) and the default gateway of the connection is the IP of the main (MSI) router.
    The problem is I can't surf anywhere. I can't even ping the MSI router - which should be possible if the WDS works properly.The Moto Wireless Bridge Operation is set properly to Access Point/Wireless Bridge .
    Can anyone solve this?
    Thanks.

    David, welcome to the discussions.
    Are you refering to Airport Extreme Setup as the Extreme base.
    Or are you using a 3rd party Router as your primary Base, or the Express as the primary base.
    Read the supplied link, Not all 3rd party routers are WDS compatible.
    http://discussions.apple.com/thread.jspa?messageID=2785566
    Who is you Internet Service Provider?
    What brand and Model Modem did they furnish?
    Are you using Dial-Up...DSL...or Cable?
    http://docs.info.apple.com/article.html?artnum=303595
    See if there is any help from this link.
    http://discussions.apple.com/thread.jspa?messageID=607414
    Cheers Don

  • I am extending my airport extreme by adding an airport express. I had no problem setting it up and got green lights but now I cannot get on either because it says it is a self assigned IP?

    I am extending my airport extreme by adding an airport express. I had no problem setting it up and got green lights but now I cannot get on either because it says it is a self assigned IP?

    i am extending my airport extreme by adding an airport express.
    Does this mean that you are connecting the AirPort Express to the AirPort Extreme using a wired Ethernet connection....or....are you connecting the AirPort Express to the AirPort Extreme wirelessly?
    but now I cannot get on either because it is a self assigned IP?
    I suggest that you first concentrate on getting the AirPort Extreme working correctly. Power off the modem and both the Extreme and Express, wait a few minutes, then power up the modem and let it run a few minutes. Then, power up the AirPort Extreme and check the network for proper operation. Leave the AirPort Express off for now. Report on your results.
    We need to know what operating system you are using on your Mac or PC in order to provide more troubleshooting help.
    If you have a Mac and do not know what operating system you are using, click the Apple icon in the upper left corner of the screen, then click About This Mac. Post back with the OS X version number that you see there.

  • JMS Foreign Provider using XAConnectionFactory for Container Managed Trans

    Hello, we've been running some proof of concepts using Weblogic 10.3 with a JMS Foreign Provider attached to MQSeries 7.
    We created a very simple MDB to read a message and output it's content.
    We created a bindings file with a Connection Factory (without XA)
    The question I have is that when I set the Transaction Management to Container and Transaction Attribute to "Required" , does Weblogic automatically look for a XAQueueConnectionFactory? We get the error below:
    [EJB:011013]The Message-Driven EJB attempted to connect to the JMS connection factory with the JNDI name: OP_CF. However, the object with the JNDI name: OP_CF is not a JMS connection factory. NestedException Message is :com.ibm.mq.jms.MQQueueConnectionFactory cannot be cast to javax.jms.XAConnectionFactory>
    When we set the transacation to Bean Managed or we set to Container Managed but set the attribute to "NotSupported" it works fine.
    My goal is to have a MDB that has Container Managed Transactions and "Requires" Attribute, but only particpates in a local transaction and does not need the overhead of XA. It will read from a Foreign MQ manager Queue, process and then write back to the same Foreign MQ manager(different queue), so only one resource (MQ) is used.
    If we set the above settings, it seems that a XAConnectionFactory is required. Is that true?

    -- If you do not enable the container transaction, then the MDB connection factory does not need to be an XA connection factory.
    -- If the application is performing messaging operations, and wants to use locally managed transactions, then you have a variety of options. These are all standard JMS:
    * Use an XA connection and XA session. Begin JTA transactions before performing JMS operations, and call commit or rollback on the JTA transaction after performing the JMS operations. For foreign vendors, you must take extra steps to ensure that the vendor enlists with the WebLogic transaction -- typically by using WebLogic resource reference wrappers.
    * Use the standard JMS API "transacted session" on a non-XA session -- the transaction will be local to the session (this is extremely similar to JDBC local transactions).
    * Use a non-transacted session. Sends will occur immediately. Receive messages will be acknowledged immediately for auto-ack sessions, or will not for non-ack.
    -- Note that if a transaction only includes a single operation, there's no need for XA or non-transacted sessions.
    -- For more information on transactions and integration, I highly recommend reading our [ Integrating Remote JMS Providers | http://download.oracle.com/docs/cd/E15523_01/web.1111/e13727/interop.htm#JMSPG553 ] FAQ. I also very highly recommend purchasing a copy of [ Professional Oracle WebLogic Server | http://www.amazon.com/Professional-Oracle-WebLogic-Server-Patrick/dp/0470484306/ref=sr_1_1?ie=UTF8&s=books&qid=1252088885&sr=8-1 ], and of course reviewing our [ JMS Information Roadmap | http://download.oracle.com/docs/cd/E15523_01/web.1111/e14529/messaging.htm#sthref23 ].
    -- Finally, you may also want to consider replacing some MQ usage with WebLogic JMS. WL JMS is a heavily adopted messaging vendor, and for obvious reasons, tends to integrate especially well with the WebLogic app server.
    Hope this helps,
    Tom

  • Distributed destination with MQ as Foreign Provider

    Hi
              Messages arrive in a set of clustered MQ Series Queues. MDBs process the messages (We use MQ as the Foreign JMS Provider). Can I set up a distributed destination (JMS Queues) in WebLogic and use those clustered MQ queues as the Foreign Provider ? I would like the MQ Series clustering to provide the redundancy/availability of the MQ Series system and the JMS distributed destination to provide high availability for the MDBs that are hosted in a set of clustered WebLogic server instances.
              Thanks

    Hi          > Messages arrive in a set of clustered MQ Series
              > Queues. MDBs process the messages (We use MQ as the
              > Foreign JMS Provider). Can I set up a distributed
              > destination (JMS Queues) in WebLogic and use those
              > clustered MQ queues as the Foreign Provider ?
              No. WL distributed destinations consist only of a set of physical WL destinations. The WL distributed destination code does not support non-WL destinations.
              > I would
              > like the MQ Series clustering to provide the
              > redundancy/availability of the MQ Series system and
              > the JMS distributed destination to provide high
              > availability for the MDBs that are hosted in a set of
              > clustered WebLogic server instances.
              If MQ Series exposes its distributed destination via the standard JMS API, then the MDBs will automatically run as MQ distributed dest clients. This is a function of MQ, not WL -- WL MDBs simply use the standard JMS API of the vendor's supplied client to get their messages.
              But note that WL MDBs use a single connection per MDB pool/deployment. Some clustering implementations (MQ?) require using multiple connections...
              >
              > Thanks

  • Problems Setting Alerts on iCal with Yosemite

    I am having problems setting alerts on iCal. Generally, I set for reminders at 1 day ahead, and then 2 hours ahead. When I enter the first alert everything is fine, and then on the second, the alerts switch places so that the one day before alert occurs as the second alert, and the 2 hours before as the first alert. Is there something I am missing?  It is purely frustrating. Using Mac Book Pro, running Yosemite 10.10.1. Thanks!

    First, verify you're using Calendar and not iCal, which was deprecated a long time ago.
    Then, update OS X. 10.10.2 is the current release.
    Using Calendar, I can't duplicate the problem, but perhaps I am misunderstanding your description of it. If you would kindly provide really simple step-by-step instructions, I'll try again and let you know what I observe. It could very well be a bug.

  • WRT120N problem setting Static IP

    My provider gives me static IP
    IP 172.17.158.183
    MASK 255.255.252.0
    GW 172.17.156.255
    There is a problem setting gateway 172.17.156.255 in WRT120N. It says that it's wrong gateway.
    On my notebook Network settings work, but how can I setup WRT120N to work with this network settings?
    Solved!
    Go to Solution.

    You are not right.
    Using search I found  solution fo my problem.
    http://homecommunity.cisco.com/t5/Wireless-Routers/Bug-report-CIDR/m-p/311698/highlight/true#M163772
    And it's work fine now.
    There is a bug in scripts that check gateway, mask and IP.

  • Problems setting up username & password for SQL

    Due to the outstanding advice I recieved from this excellent forum, I have managed to overcome my first problem with declaring a new Class.
    This leads me to request help with my next biggest problem:
    Setting up a user GUI that takes a "username" & "password" that will be used to access a password protected database.
    I am a simple bloke, with simple thought processes, so please, go easy on me...
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.sql.*;
    public class DBQuery1 {
         String username = "" , password = "";
         public static void main(String[] arguments) {
              PassDB UPass = new PassDB();
              String data = "jdbc:odbc:JavaTestDataBase";
              try {
                   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                   Connection conn = DriverManager.getConnection(data, "" + username, "" + password);
                   Statement st = conn.createStatement();
                   ResultSet rec = st.executeQuery(
                        "SELECT Title, ContactID, First, Last, Dear FROM Contacts "
                        + "WHERE (Title='Mr') ORDER BY ContactID");
              /*     ResultSet rec2 = st.executeQuery(
                        "SELECT Subject, ContactID FROM Calls "
                        + "WHERE (Subject Is Not Null) ORDER BY ContactID");
              System.out.println("\nFirst Name\tSurname\t\tNick Name\t\tSubject\n");
              while(rec.next()) {
                   System.out.println(rec.getString(3) + "\t\t" + rec.getString(4) + "\t\t" + rec.getString(5) /* + rec2.getString(1) */ );
              st.close();
              catch (SQLException s) {
                   System.out.println("SQL Error: " + s.toString() + " " + s.getErrorCode() + " " + s.getSQLState());
              catch (Exception e) {
                   System.out.println("Error: " + e.toString() + e.getMessage());
    class PassDB extends javax.swing.JFrame implements ActionListener {
         String username = "", password = "";
         JTextField uname = new JTextField(10);
         JTextField pword = new JTextField(10);
         // JPasswordField pword = new JTextField(10);
         PassDB() {
              super("duBe's database logon");
              setSize(220, 160);
              setDefaultCloseOperation(EXIT_ON_CLOSE);
              JPanel pane = new JPanel();
              JLabel unameLabel = new JLabel ("Username: ");
              JLabel pwordLabel = new JLabel ("Password: ");
              JButton submit = new JButton("OK");
              submit.addActionListener(this);
              pane.add(unameLabel);
              pane.add(uname);
              pane.add(pwordLabel);
              pane.add(pword);
              pane.add(submit);
              setContentPane(pane);
              setVisible(true);
         public void actionPerformed(ActionEvent evt) {
              PassDB clicked = (PassDB)evt.getSource();
              username = uname.getText();
              password = pword.getText();
    This code generates two errors, stating:
    C:\Java_progs>javac DBQuery1.java
    DBQuery1.java:14: non-static variable username cannot be referenced from a static context
    Connection conn = DriverManager.getConnection(data, "" +
    username, "" + password);
    ^
    DBQuery1.java:14: non-static variable password cannot be referenced from a static context
    Connection conn = DriverManager.getConnection(data, "" +
    username, "" + password);
                    ^
    2 errors*****************************
    The code works when I remove the reference to the variables "username" & "password" in Connection "conn" call & replace them with the actual username & password, but this is not exactly what I was after. I was hoping to make the program responsive to each individual user, not set in code.
    I also would like to make the program pause after the call in "main" to "PassDB" to wait for "PassDB" to exit before continuing.
    I would also like to make "PassDB" destroy itself after the "OK" button is pressed & the "username" & "password" set.
    If that isn't enough for you, I would really like the program to search 2 different database tables, return their values & compare them to be sure that they are the same.
    When I try & search 2 different tables, as in:
    ResultSet rec = st.executeQuery(
                        "SELECT Title, ContactID, First, Last, Dear FROM Contacts "
                        + "WHERE (Title='Mr') ORDER BY ContactID");
                   ResultSet rec2 = st.executeQuery(
                        "SELECT Subject, ContactID FROM Calls "
                        + "WHERE (Subject Is Not Null) ORDER BY ContactID")javac tells me that "ResultSet" is set to null 0
    As always, I am extremely appreciative of any assistance you are able to offer.
    Kind regards
    duBedat
    [email protected]

    This is where I'm at now:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.sql.*;
    public class DBQuery {
         static String username = "" ;
         static String password = "" ;
         public static void main(String[] arguments) {
         PassDB UPass = new PassDB();
         String data = "jdbc:odbc:JavaTestDataBase";
         try {
              Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              Connection conn = DriverManager.getConnection(data, "" + DBQuery.username, "" + DBQuery.password);
              Statement st = conn.createStatement();
              ResultSet rec = st.executeQuery(
              "SELECT Title, ContactID, First, Last, Dear FROM Contacts "
              + "WHERE (Title='Mr') ORDER BY ContactID");
              /*     ResultSet rec2 = st.executeQuery(
                   "SELECT Subject, ContactID FROM Calls "
                   + "WHERE (Subject Is Not Null) ORDER BY ContactID");
              System.out.println("\nFirst Name\tSurname\t\tNick Name\t\tSubject\n");
              while(rec.next()) {
                   System.out.println(rec.getString(3) + "\t\t" + rec.getString(4) + "\t\t" + rec.getString(5) /* + rec2.getString(1) */ );
              st.close();
         catch (SQLException s) {
              System.out.println("SQL Error: " + s.toString() + " " + s.getErrorCode() + " " + s.getSQLState());
         catch (Exception e) {
              System.out.println("Error: " + e.toString() + e.getMessage());
    class PassDB extends javax.swing.JFrame implements ActionListener {
         static boolean getOut = false;
         JTextField uname = new JTextField(10);
         JTextField pword = new JTextField(10);
         // JPasswordField pword = new JTextField(10);
         public PassDB() {
              super("duBe's database logon");
              setSize(220, 160);
              setDefaultCloseOperation(EXIT_ON_CLOSE);
              JPanel pane = new JPanel();          
              JLabel unameLabel = new JLabel ("Username: ");
              JLabel pwordLabel = new JLabel ("Password: ");
              JButton submit = new JButton("OK");
              submit.addActionListener(this);
              pane.add(unameLabel);
              pane.add(uname);
              pane.add(pwordLabel);
              pane.add(pword);
              pane.add(submit);
              setContentPane(pane);
              while(getOut == false)
                   setVisible(true);                         
         public void actionPerformed(ActionEvent evt) {
              PassDB clicked = (PassDB)evt.getSource();
              DBQuery.username = uname.getText();
              DBQuery.password = pword.getText();
              getOut = true;               
    }          Any advice is greatly appreciated
    duBe

  • Problems setting up an NFS server

    Hi everybody,
    I just completed my first arch install. :-)
    I have a desktop and a laptop, and I installed Arch on the desktop (the laptop runs Ubuntu 9.10). I had a few difficulties here and there, but I now have the system up and running, and I'm very happy.
    I have a problem setting up an NFS server. With Ubuntu everything was working, so I'm assuming that the Ubuntu machine (client) is set-up correctly. I'm trying to troubleshoot the arch box (server) now.
    I followed this wiki article: http://wiki.archlinux.org/index.php/Nfs
    Now, I have these problems:
    - when I start the daemons, I get:
    [root@myhost ~]# /etc/rc.d/rpcbind start
    :: Starting rpcbind [FAIL]
    [root@myhost ~]# /etc/rc.d/nfs-common start
    :: Starting rpc.statd daemon [FAIL]
    [root@myhost ~]# /etc/rc.d/nfs-server start
    :: Mounting nfsd filesystem [DONE]
    :: Exporting all directories [BUSY] exportfs: /etc/exports [3]: Neither 'subtree_check' or 'no_subtree_check' specified for export "192.168.1.1/24:/home".
    Assuming default behaviour ('no_subtree_check').
    NOTE: this default has changed since nfs-utils version 1.0.x
    [DONE]
    :: Starting rpc.nfsd daemon [FAIL]
    - If I mount the share on the client with "sudo mount 192.168.1.20:/home /media/desktop", IT IS mounted but I can't browse it because I have no privileges to access the home directory for the user.
    my /etc/exports looks like this:
    # /etc/exports: the access control list for filesystems which may be exported
    # to NFS clients. See exports(5).
    /home 192.168.1.1/24(rw,sync,all_squash,anonuid=99,anongid=99))
    /etc/conf.d/nfs-common.conf:
    # Parameters to be passed to nfs-common (nfs clients & server) init script.
    # If you do not set values for the NEED_ options, they will be attempted
    # autodetected; this should be sufficient for most people. Valid alternatives
    # for the NEED_ options are "yes" and "no".
    # Do you want to start the statd daemon? It is not needed for NFSv4.
    NEED_STATD=
    # Options to pass to rpc.statd.
    # See rpc.statd(8) for more details.
    # N.B. statd normally runs on both client and server, and run-time
    # options should be specified accordingly. Specifically, the Arch
    # NFS init scripts require the --no-notify flag on the server,
    # but not on the client e.g.
    # STATD_OPTS="--no-notify -p 32765 -o 32766" -> server
    # STATD_OPTS="-p 32765 -o 32766" -> client
    STATD_OPTS="--no-notify"
    # Options to pass to sm-notify
    # e.g. SMNOTIFY_OPTS="-p 32764"
    SMNOTIFY_OPTS=""
    # Do you want to start the idmapd daemon? It is only needed for NFSv4.
    NEED_IDMAPD=
    # Options to pass to rpc.idmapd.
    # See rpc.idmapd(8) for more details.
    IDMAPD_OPTS=
    # Do you want to start the gssd daemon? It is required for Kerberos mounts.
    NEED_GSSD=
    # Options to pass to rpc.gssd.
    # See rpc.gssd(8) for more details.
    GSSD_OPTS=
    # Where to mount rpc_pipefs filesystem; the default is "/var/lib/nfs/rpc_pipefs".
    PIPEFS_MOUNTPOINT=
    # Options used to mount rpc_pipefs filesystem; the default is "defaults".
    PIPEFS_MOUNTOPTS=
    /etc/hosts.allow:
    nfsd: 192.168.1.0/255.255.255.0
    rpcbind: 192.168.1.0/255.255.255.0
    mountd: 192.168.1.0/255.255.255.0
    Any help would be very appreciated!

    Thanks, I finally got it working.
    I realized that even though both machines had the same group, my Ubuntu machine (client) group has GID 1000, while the Arch one has GID 1001. I created a group that has GID 1001 on the client, and now everything is working.
    I'm wondering why my Arch username and group both have 1001 rather than 1000 (which I suppose would be the default number for the first user created).
    Anyway, thanks again for your inputs.

  • Problems Setting Up Developer Users

    I am having a problem setting up developer users and I am trying to determine if I am missing a step or if there is a configuration problem on my staging and production systems.
    What I want to do should be very simple. I want to create a user that can create an application and see the information under the "Application" tab in the Navigator.
    I have created the user using the following steps on 3.0.9.82 for Unix:
    1. Create the user
    2. Make the user a full administrator (rather than end user)
    3. Make the user a member of the portal_developers group
    4. Make the user's default group the portal_developers group
    However, when I do this the user does not see the information under the
    "Application" tab. The only way I can get the user to see the info under the
    "Application" tab is to make him a member of the Portal_administrators
    and/or DBA group. Both my staging and production boxes have the same result.
    Does anyone have any thoughts or suggestions on what might be happening?

    Thank you- I have read through that thread and can see some resonance with my issue.
    My AOL emails work VERY fast with BB, in fact almost simultaneously received on PC & Torch " ping ping!"
    This issue only raised its ugly head when I had 2 Torches replaced by my insurers. 
    Whilst the claim was in process I used a new Curve, loaded from backup on PC to keep emails going and of course phone & web facilities. ( I use the BB to power internet via bluetooth to my PC / laptop when living on a remote island with no phone lines or power supplies)  All was fine. Swapping email accounts took a few minutes with the usual password confirmations for each AOL screenname etc. 
    Then the new Torches came back from insurers, and I tried to swap devices. Phoning & texting is fine. Al data and contacts swap over fine.
    SETUP email accounts.............stymied every time. It says repeatedly that my user name/password is invalid etc etc etc
    Have tried security wipes. Have tried setting up new BB ID & passwords on PC website. All is OK until I try to setup emails on the Torches.  This has used up ridiculous amounts of time- all wasted.
    I love the BB phones and the fast email push......in fact I recently bought a new Sony Xperia Z1 but sent it back because of wifi coverage meant no emails on that superb phone for lots of the time.
    Good old BB I said..........I always get emails wherever I am. ( Rural Scotland has very patchy radio & wifi coverage)  
    Was about to purchase new Z10s just to get a bigger screen, but now I am averse to buying ANY BB phone again because this present mess means I may never get emails set up again.  How nuts is that?
    Many thanks for all help & suggestions..........boy do I need them!!
    Kind wishes from West of Scotland 
    Fair winds and kind landfalls

  • Problems setting up VVSA 6.0 (lookup service adresse)

    Hi,
    I was happy to see VVSA 6.0 released, but i'm having problems setting it up. It keeps saying that the lookup service adresse is not reachable. But I have tried with the VVSA 5.5 and 5.5.1.1 and they work just fine with the lookup service adresse.
    Anyone else having this issue?
    Also trying to check for updates within the appliance failes since the repository is not online at vmware it seems.
    Might not be ready for primetime (like ESXi6).

    If Developer has a separate Oracle Home on your PC, then it has a separate TNSNAMES.ORA file that is uses to connect to the database. If you search for all tnsnames.ora files, you should find the one used by Developer 6.
    Since Enterprise manager works, the tnsnames.ora in your Enterprise Manager's home will have an entry for your server database. You should be able to cut and paste this into the tnsnames.ora file used by Developer, or try copying the E.M. tnsnames.ora file directly.
    John Alexander www.SummitSoftwareDesign.com

Maybe you are looking for

  • Can I use Upsell package to go from 7 Pro to X Pro?

    As title - the blurb for the Upsell package says to use it you must have: Adobe Acrobat Standard 7, 8, 9, or X Adobe Acrobat 3D Adobe Acrobat Pro Extended 7, 8, or 9 Does this really mean I can't use an Upsell package to go from 7 Pro to X Pro?

  • Active Directory, SSO, Integrated Windows Authentication

    Hi, I have to setup a NW BPM environment using Windows/Active Directory SSO. In the desired scenario, I would use UME to create BPM specific roles and/or groups and then I would associate: - specific AD users to UME groups or roles, and/or - associat

  • Printing Process in the PO

    Hello gurus We are changing the production order, Whenever we are trying to print out through CO04N , the changes are not updating .how to update the data in the production order Thanks JJ

  • 500.000-1000000 IDOCs per day via XI?

    We are looking to implement a project that could use XI as an interface to R/3 and BW.  Initially the system would receive about 5000 files daily and convert these into 500,000 - 1,000,000 IDOCs for posting into R/3 and BW.  Is anyone doing anything

  • I accidently bought the clean version of an album, how can I get the explicit version?

    WIthout making sure it was the explicit I accidently bought the clean version and was hoping that there was some way to trade.