Problem getting MySQL driver to work with JAVA

Hi
I have downloaded this driver for MySQL 'mysql-connector-java-3.0.16-ga-bin.jar' what should I do with this to make it work with my instalation of jdk1.3.1_15?
I have placed it in the folder C:\jdk1.3.1_15\lib but I am getting the following error on compilation:
MyClass.java:9: <identifier> expected
Class.forName("com.mysql.jdbc.Driver").newInstance();
^
MyClass.java:9: cannot resolve symbol
symbol : class forName
location: class java.lang.Class
Class.forName("com.mysql.jdbc.Driver").newInstance();
^
2 errors
or am i doing something else wrong?

Here's a snippet of the code I am using if this helps
import java.util.*;
import java.sql.*;
class MyClass{
     Class.forName("com.mysql.jdbc.Driver").newInstance();
         Connection connection = DriverManager.getConnection("jdbc:mysql://localhost/myDB?user=admin&password=admin", "", "");
     Statement statement = connection.createStatement();
     public void MyClass(){
              // count the number of records in the database table
          ResultSet rsCount = statement.executeQuery("SELECT COUNT(*) AS tCount FROM myTable");     
          rsCount.first();
          int tCount = rsCount.getInt("tCount");
          rsCount.close();
}

Similar Messages

  • WD Elements external hard drive getting 1 drive to work with 10.4 and 10.5

    I have a WD 2TB Elements new drive ready to start using. Anyone know the tricks to be able to get this drive to work right with 10.4 Power PC AND 10.5 Mac Pro? I have another WD drive (same type, the "Elements") and it won't copy most files that were made on my 10.5 machine. It was formatted on the 10.4 machine and I may not have formatted it right.  Works fine on the 10.4 machine but when I use that drive on the 10.5 Mac Pro, it often doesn't like files made on 10.4, and vice versa. Is it impossible to get the WD to be compatible with both or am I stuck dedicating the new drive to either the 10.4 or the 10.5 exclusively?  I've only had this compatibility issue with WD drives. No problems like this with Seagate and other brands. Also do not have this problem with WD's tiny 750GB drive that is powered by USB. That one works like a charm.  So I'm wondering if I just need to reformat it correctly - maybe I didn't get the partioning right-- however I have read comments by others who have had the same problem with WD Elements drives.  A -36 Error message pops up and the drive will not copy the file, and then it craps out and you cannot see the files listed - it goes blank. Then the only way to quit the drive is to pull the USB or power cord and kill it - then put it back in right away.  Force Quitting by relaunching Finder still doesn't allow a Trashing of the drive - has to be done by yanking out the connection or the power.

    These are what WD lists for Mac, so no I wouldn't buy WD Elements and while their drives are fine, I don't recommend any external or MyBook series.
    http://www.wdc.com/en/products/external/desktopformac/
    G4 uses one partition map and Intel Macs use GUID.
    Your actions are contributing to directory corruption, pulling plug and killing power to the unit.

  • Having problems getting Comcast internet to work with my power Mac running 10.5.8  Help needed

    Just got Comcast Cable and everything works: phone, WiFi, and TV, BUT ethernet won;t work with my power mac tower running 10.5.8 . Hooked modem to laptop running Microsoft and no problem, but it won't work with my Mac.  Any solutions out there?

    Hi, see if this changes anything...
    Make a New Location, Using network locations in Mac OS X ...
    http://support.apple.com/kb/HT2712
    10.5, 10.6, 10.7 & 10.8…
    System Preferences>Network, top of window>Locations>Edit Locations, little plus icon, give it a name.
    10.5.x/10.6.x/10.7.x/10.8.x instructions...
    System Preferences>Network, click on the little gear at the bottom next to the + & - icons, (unlock lock first if locked), choose Set Service Order.
    The interface that connects to the Internet should be dragged to the top of the list.
    If using Wifi/Airport...
    Instead of joining your Network from the list, click the WiFi icon at the top, and click join other network. Fill in everything as needed.
    For 10.5/10.6/10.7/10.8, System Preferences>Network, unlock the lock if need be, highlight the Interface you use to connect to Internet, click on the advanced button, click on the DNS tab, click on the little plus icon, then add these numbers...
    208.67.222.222
    208.67.220.220
    (There may be better or faster DNS numbers in your area, but these should be a good test).
    Click OK.

  • Sudden problem getting CD-LabelPrint to work with Canon ip5200R

    The last time I successfully printed a disc label on my Canon ip5200R was in November last year - until then, I'd had no problems printing from a couple of different iMacs & my MacBook Air. I have recently tried to print a new label, but am receiving the message: "The Paper Settings are not correct. Please check the paper size, magnification ratio, and the paper orientation. To set the paper settings, please click on "Settings". To cancel printing, please click "Cancel"." All of my settings are correct! I used to get a message that advised me to check the "Quality & Media" settings, where I could make further adjustments (eg, tick "greyscale printing"), but I can no longer access this option.
    A Google search revealed that others have had similar problems - solutions suggested included updating the software. I was using CD LabelPrint v.1.3. I have installed v.1.7, but the problem persists. (When I installed v.1.8, the message indicated that there was no printer installed that would work with the program!) (I uninstalled the previous versions correctly by deleting the folder from Applications as well as from Preferences in the Library.) I have attempted to print from 4 different Macs - three of them are running Mac OS 10.5.8 and one is running 10.4.11- no luck with any of them! The only change that is consistent between them since November last year is that they have all received software updates for their operating systems. I am wondering whether something in these updates is now interfering with CD LabelPrint?
    I am frustrated with the amount of time this has taken so far, and so am hoping that someone will please be able to help me rectify the problem.
    - Merrilly

    Hi there,
    I have v1.60 of CD LabelPrint on my 10.5.8 VM and it is working fine. It also has all the Apple updates installed so I don't think this would be the cause.
    I also have v1.80 on 10.6 and it is working fine as well.
    The version 1.60 on 10.5.8 generates a pop-up as soon as the Print icon is pressed. This takes you to the Page Setup menu for CD LabelPrint to ensure you have the 'Format for' set to the iP5200R and the 'Paper Size' set to 'CD Tray C'. With these selected and the OK button pressed, the next warning window appears regarding the Quality & Media settings.
    If you manually open Page Setup in your CD LabelPrint, does it have the iP5200R set as the printer and the CD Tray C set for the paper size?
    Regarding the v1.8 and the error, this version was released to add support for Snow Leopard. Since you have to use the CUPS v10.26 driver on Snow Leopard (the v4.8.3 driver for Leopard cannot be used on SL) then maybe the same driver would have to be installed on Leopard in order for CD LabelPrint to function?
    Pahu

  • Can't get IDE drive to work with K8N NEO2

    I built my computer two months ago.  The only hard drive I installed was a Samsung 160GB SATA.  The Windows XP installation was flawless and the system has worked perfectly ever since.  
    This past week I decided to install my old Western Digital IDE hard drive.  I connected it to PATA port 1 on the motherboard.  It's jumpered as a Primary device and connected to the primary port on the IDE cable.  
    The problem is that when I boot the computer with the IDE drive connected it will hang on the gray Platinum screen for around 5 minutes.  If I hit DEL and enter BIOS after 5 minutes I can see that the drive is detected and the boot order already was set for the SATA drive first and the IDE drive second.  Then if I reboot it hangs on the Platinum screen again for five minutes.  When it finally clears that I get messages indicating that no boot device is available.  If I shut down, disconnect the IDE drive, and reboot with only the SATA drive connected it boots flawlessly.  
    I checked my device manager and see that the nvidia nforce3 250 Parallel ATA controller and Serial ATA controller drivers are installed.  
    Is there anything else I can check or do to get the computer to boot with an IDE drive connected?  
    Thanks!

    WD drives are special compared to others .
    If they are alone on the ide channel they shall not be jumpered as master .
    This is only when it is sharing the channel with another ide/atapi device .
    Instead the jumper shall be removed , they call it single drive jumpering (SD).
    And the reason why bios get hung is :
    It finds a master jumpered drive , and since it does it will try to detect the slave
    but there isn't one .

  • Problems getting e-mac to work with AEBS.

    I have been having some major problems getting connected to our network. We have most of our e-macs connected to the network via AEBS. The AEBS unit is connected by an ethernet connection. I have been trying to get connection to one of our computers for some time now, without any luck. Last night I finally had some connection, but was still unable to connect to the Internet. I was able to see some of the other base stations in the airport admin utility. I don't know what I did any different though to get the base station to recognize other base stations. I am really at a loss as to what to do to get connection.
    I have noticed that under system preferences, when I try to use DHCP, I am given a self-assigned ip address. I can put the ip address in manually. I also put the router in manually.
    I guess one of my questions would be how should I set up the base station and how should I set up the e-mac DHCP services? I currently have DHCP set up on the e-mac using Airport. I have the base station set up with the ethernet connection plugged into the LAN connector. This is the way that our other computers seem to be set up.
    I have heard talk about setting up WDS on the base station, but none of the other computers are set up this way and still receive connection to the Internet. If I were to set up WDS, what would I need to do? I still would like to connect by using ethernet connection to the base station.

    I have the aebs connected via an ethernet connection.
    OK, that is different that what I understood from your previous posts.
    I have the ethernet connection plugged into the LAN port on the back of the aebs.
    That is OK if there is another router on your network providing IP addresses AND this AEBS is configured so that the option to distribute IP addresses is DISABLED.
    Otherwise, it should be plugged into the WAN port.
    ...so should I have the e-mac set up using Airport to get connection to the aebs?
    The eMac should be set to use AirPort and DHCP to get an IP address.

  • Problem Getting HD Receiver to Work With PC

    I just got a new HD Receiver and am trying to set up to work with my PC using Windows Media Center (Windows 7 64 bit).
    None of the codes or options I have tried are working.
    I am being asked
    - How many digits to enter for a channel number (2, 3 or 4)
    - Whether to enter OK after entering the channel number
    I have tried with all options and setting up automatically, by choosing a manufacturer and code and by doing it manually by pressing every key on the remote and none work.
    What should the remote code be for the Motorola QIP7100-1? I have tried entering every code available for Motorola and have also tried General Instrument codes based on advice from another posting.

    Hi max7539! I recommend that you try setting up a new Wi-Fi connection to your phone on your camera from scratch, then see if the new app does not recognize the camera. After setting this up from scratch, does the Camera Connect app still not see the camera? If this is a time sensitive-matter, additional support options are available at Contact Us.  

  • Problem getting MySQL driver loaded in ODI Studio (ODI 11g)

    Hello -
    I am trying to create a new data server in the physical architecture under the MySQL technology. Since there is no MySQL JDBC driver included as there was in ODI 10g, I looked into the documentation to find a similar drivers directory that I had used in ODI 10g for loading other JDBC drivers. I would like to be able to select the MySQL Connector/J driver from the drop-down list of usable drivers in the Driver dialog window. I found this link, that explains how to install drivers:
    http://download.oracle.com/docs/cd/E14571_01/core.1111/e16453/install.htm#CHDBIFAJ
    I followed the documents instructions, added the file "mysql-connector-java-5.1.13-bin.jar" to my directory "C:\Documents and Settings\<my username>\Application Data\odi\oracledi\userlib" and restarted ODI Studio. I still cannot get the app to recognize the new driver to use, am I missing a step or is there a known issue with this method? More importantly has anyone been able to get this to register with the Driver dialog box successfully?
    With ODI Studio open, I attempted to delete the mysql jar file from my userlib directory and there was an error that said the file was in use... so I assume that ODI Studio is using the file but not registering it within the Driver selection dialog.

    I think we found our own answer... apparently the ODI Studio interface does not dynamically load that drop-down list from registered drivers in the classpath. We can still use the driver name by manually typing it into the "JDBC Driver:" text box.

  • Anyone having problems getting Photoshop CC14 to work with Lightroom 5.5?

    I installed Photoshop CC 2014, but Lightroom wouldn't export photos to it. Spent 3hours on the phone with Adobe support, they wiped all my Adobe apps without warning me and I lost all my presets. Was told higher level support would contact me - didn't happen. System still not fixed, even after an hour trying to get to the right person today. I've never had a problem installing before - anyone else having a similar issue? Who do I contact for better "customer service" (or does it exist)?

    Hi David_B,
    Thanks for your reply! I've installed PS many times (since version 3, I think), and nothing like this has ever happened. I use and teach PS and LR for a living. The tech person I spoke with told me it is not unusual to have this happen when upgrading to CC 2014.
    What happened is that PS CC2014 would not open the image in PS if I used the Photo>Edit In>PS 2014 command unless I used Photo>Edit In>Open as Smart Object. Once opened as a smart object, PS would not save the file. I think it said Error 2.
    The tech took control of my computer, removed PS and LR and all the associated files a few times. He told me I'd have to have a high level person help me, but they didn't call me, so I phoned in. After waiting an hour to get to the correct person (not a high level tech) he said he'd have to uninstall everything again and start over and that it would take over an hour. I don't have the time right now to fix it as I'm headed out of town until the end of the month to teach LR.
    In the meantime, LR works, but I'm using a trial version that expires in 30 days. It exports to PS ok, but I had to reload all my plug-ins, and apparently LR can't find Photomatix. LR is not installed in my usual applications folder - the tech put it on my system backup drive.
    My case number is: 185696477
    Thanks so much for your willingness to help!
    Terry

  • Problem getting XA Datasources to work with Toplink inside Weblogic

    Hello,
    I am using POJOs inside weblogic 7.1, and I am having some difficulties. Of picked up a jdbc driver called JSQLConnect and it sets up fine from the Weblogic console. This is the only 3rd party XA driver that I have successfully got working inside weblogic.
    I've set up the Weblogic datasource in toplink per the documentation/examples I found. I've included a stack trace of where things blow up. From your source code, it looks like the AbstractSynchronizationListener thinks that the unit of work is not active. Thanks in advance for any assistance. Mike
    UnitOfWork(2416860)--release unit of work
    UnitOfWork(2416860)--JTS#beforeCompletion()
    UnitOfWork(2416860)--JTS#afterCompletion()
    UnitOfWork(2416860)--release unit of work
    ClientSession(2454268)--client released
    <May 14, 2003 3:39:10 PM MDT> <Error> <EJB> <010026> <Exception during commit of transacti
    on 12:591b650d7f28edb9: weblogic.transaction.internal.AppSetRollbackOnlyException
    at weblogic.transaction.internal.TransactionImpl.setRollbackOnly(TransactionImpl.j
    ava:467)
    at oracle.toplink.jts.JTSSynchronizationListener.rollbackGlobalTransaction(Unknown
    Source)
    at oracle.toplink.jts.AbstractSynchronizationListener.beforeCompletion(Unknown Sou
    rce)
    at weblogic.transaction.internal.ServerSCInfo.callBeforeCompletions(ServerSCInfo.j
    ava:540)
    at weblogic.transaction.internal.ServerSCInfo.startPrePrepareAndChain(ServerSCInfo
    .java:92)
    at weblogic.transaction.internal.ServerTransactionImpl.localPrePrepareAndChain(Ser
    verTransactionImpl.java:1044)
    at weblogic.transaction.internal.ServerTransactionImpl.globalPrePrepare(ServerTran
    sactionImpl.java:1581)
    at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransa
    ctionImpl.java:237)
    at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImp
    l.java:208)
    at weblogic.ejb20.internal.BaseEJBObject.postInvoke(BaseEJBObject.java:278)
    at com.icat.server.infrastructure.legacyint.LegacyIntegrationServiceImpl_eayqrf_EO
    Impl.transferLegacyData(LegacyIntegrationServiceImpl_eayqrf_EOImpl.java:56)
    at com.icat.common.infrastructure.legacyint.LegacyIntegrationTask.execute(LegacyIn
    tegrationTask.java:165)
    at com.icat.common.infrastructure.scheduling.ScheduledTask.executeMyTask(Scheduled
    Task.java:142)
    at com.icat.common.infrastructure.scheduling.ScheduledTask.run(ScheduledTask.java:
    297)
    at java.lang.Thread.run(Thread.java:479)

    Hi Michael,
    I will have to set things up again to try it. I've been in the middle of doing other development and haven't gotten back to the XA Driver attempts again. Can you send me an email where I can fire a note to you directly once I try this again? I will probably need to send you code, etc. Mine is [email protected]
    As for your questions, let me address them below:
    How are you using XA (e.g. are you talking to two different databases)? Are you using TopLink any differently (e.g. using SessionBroker)? Is your transaction being propagated to multiple servers? What exactly has changed, or have you simply started using a different driver/data source? (Sorry for all the questions, just want to try to hone in on what components we are looking at).
    BTW, do transactions ever get started by the client and span multiple server requests?
    1) Yep, I am reading from one database, and writing to the other. So its not a two phase commit right now, but we will have one in the future.
    2) I'm not using your session broker. We have a framework, where we can get a client session from a named server session. This works pretty well for us. Right now, we are using the same framework to access two databases. I'm just not setting external tx control, session synchornization,etc
    3) I can use the third party jdbc driver in a non-XA transaction. So it doesn't seem to be a property of the JDBC driver alone. It seems to be when I attempt to set things up in XA mode.
    4) Transactions are controlled at the Session Bean level. They only last for one bean request.
    If you have any cycles, I was wondering if you could try getting the XA transaction to work in your environment? I was using Net-Direct's driver, along with Weblogic 7.1 sp1, and Toplink 9.0.3.3 (Build 430). An example of how you got things to work may point out what is different about my useage....

  • Getting remote messaging to work with Java/Spring and Flex

    I am trying to get remote messaging working on a Flex client with a Java/Spring backend.
    I have the channel is setup on the server as such:

    channel-definition id="long-polling-channel"
    class="mx.messaging.channels.AMFChannel">
    <endpoint
    url="http://{server.name}:{server.port}/{context.root}/messagebroker/amflongpolling"
    class="flex.messaging.endpoints.AMFEndpoint" />
    <properties>
    <!-- Values for near-real time messaging -->
    <polling-enabled>true</polling-enabled>
    <polling-interval-millis>0</polling-interval-millis>
    <wait-interval-millis>-1</wait-interval-millis>
    <max-waiting-poll-requests>
    10
    </max-waiting-poll-requests>
    </properties>
    </channel-definition>
    In the Spring context, I am setting up the MessageBroker, MessageTemplate, and some custom wrapper code:
    <? 
    xml version="1.0" encoding="UTF-8"?>< 
    beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:flex="http://www.springframework.org/schema/flex" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
    http://www.springframework.org/schema/flex
    http://www.springframework.org/schema/flex/spring-flex-1.0.xsd" >
    <flex:message-broker id="messageServiceBroker" />
    <flex:message-destination id="event-bus"
    message-broker="messageServiceBroker" channels="long-polling-channel"
    message-time-to-live="1000"
    subscription-timeout-minutes="5"
    throttle-inbound-max-frequency="500" throttle-inbound-policy="ERROR"
    throttle-outbound-max-frequency="500" throttle-outbound-policy="IGNORE" />
    <bean id="defaultMessageTemplate" class="org.springframework.flex.messaging.MessageTemplate">
    <property name="defaultDestination" value="event-bus" />
    <property name="messageBroker" ref="messageServiceBroker" />
    </bean>
    <bean id="MessagingServices" class="com.bofa.esm.utility.messaging.MessagingServices">
    <property name="messageTemplate" ref="defaultMessageTemplate" />
    <property name="destinationName" value="event-bus" />
    <property name="scheduler" ref="PersistentQuartzScheduler" />
    </bean></ 
    beans>
    The custom wrapper code is insignificant, but it basically creates a thread and posts a custom context over and over every minute.  The actual message is posted with this bit of code:
         messageTemplate.send(msgCtx);
    On the Flex side, I create a Channel and ChannelSet like thus:
    public  
    static function getMessageChannelSet():ChannelSet{ 
    if(messageChannelSet == null){messageChannelSet =
    new ChannelSet();
    //e.g. 'http://{server.name}:{server.port}/{context.root}/messagebroker/amfpolling';
    var messageURL:String = getBaseUrl() + MESSAGE_URL; 
    var channel:AMFChannel = new AMFChannel(MESSAGE_CHANNEL_NAME,messageURL);messageChannelSet.addChannel(channel);
    return channelSet;}
    And then, latter I create a Consumer and add the channelset to it:
    var  
    _messageConsumer:Consumer = new Consumer(); 
    var msgChannel:ChannelSet = RemotingUtility.getMessageChannelSet();
    var encrypted:Object = this.encrypt(_sessionModel.username, _sessionModel.password); 
    var token:AsyncToken = msgChannel.login(encrypted.userId, encrypted.password); 
    _messageConsumer.channelSet = msgChannel;
    _messageConsumer.destination =
    "event-bus";_messageConsumer.addEventListener(MessageEvent.RESULT,
    this.onMessage);
    The problem is, I dont get the messages from the server.  In fact, from what I can tell by the logs when I post a message from the server, it doesn't appear that anything is listening to the channel:
    09:32:03,106 INFO [MessagingServices] Posting message...
    09:32:08,184 INFO [STDOUT] [BlazeDS]Before invoke service: message-service
    incomingMessage: Flex Message (flex.messaging.messages.AsyncMessage)
    clientId = CC2B0D5D-B00A-CD8B-CE43-0430C8CC10DF
    correlationId = null
    destination = event-bus
    messageId = CC3211B4-F80E-15FE-076C-00C963ED5D01
    timestamp = 1278595928184
    timeToLive = 0
    body = com.bofa.esm.utility.messaging.SimpleMessageContext@159a771
    09:32:08,200 INFO [STDOUT] [BlazeDS]Before invoke service: message-service
    incomingMessage: Flex Message (flex.messaging.messages.AsyncMessage)
    clientId = CC2B0D5D-B00A-CD8B-CE43-0430C8CC10DF
    correlationId = null
    destination = event-bus
    messageId = CC3211B4-F80E-15FE-076C-00C963ED5D01
    timestamp = 1278595928184
    timeToLive = 0
    body = com.bofa.esm.utility.messaging.SimpleMessageContext@159a771
    09:32:08,200 INFO [STDOUT] [BlazeDS]Sending message: Flex Message (flex.messaging.messages.AsyncMessage)
    clientId = CC2B0D5D-B00A-CD8B-CE43-0430C8CC10DF
    correlationId = null
    destination = event-bus
    messageId = CC3211B4-F80E-15FE-076C-00C963ED5D01
    timestamp = 1278595928184
    timeToLive = 1000
    body = com.bofa.esm.utility.messaging.SimpleMessageContext@159a771
    to subscribed clientIds: []
    09:32:08,200 INFO [STDOUT] [BlazeDS]Sending message: Flex Message (flex.messaging.messages.AsyncMessage)
    clientId = CC2B0D5D-B00A-CD8B-CE43-0430C8CC10DF
    correlationId = null
    destination = event-bus
    messageId = CC3211B4-F80E-15FE-076C-00C963ED5D01
    timestamp = 1278595928184
    timeToLive = 1000
    body = com.bofa.esm.utility.messaging.SimpleMessageContext@159a771
    to subscribed clientIds: []
    09:32:08,200 INFO [STDOUT] [BlazeDS]After invoke service: message-service; execution time = 0ms
    09:32:08,200 INFO [STDOUT] [BlazeDS]After invoke service: message-service; execution time = 0ms
    09:32:08,200 INFO [STDOUT] [BlazeDS]After invoke service: message-service
    reply: null
    09:32:08,200 INFO [STDOUT] [BlazeDS]After invoke service: message-service
    reply: null
    09:32:12,075 INFO [STDOUT] [BlazeDS]Before invoke service: message-service
    incomingMessage: Flex Message (flex.messaging.messages.AsyncMessage)
    clientId = CC2B0D5D-B00A-CD8B-CE43-0430C8CC10DF
    correlationId = null
    destination = event-bus
    messageId = CC3236D0-7B0D-182C-5632-C84FB4D1E215
    timestamp = 1278595932075
    timeToLive = 0
    body = com.bofa.esm.utility.messaging.SimpleMessageContext@1a6595b
    09:32:12,075 INFO [STDOUT] [BlazeDS]Before invoke service: message-service
    incomingMessage: Flex Message (flex.messaging.messages.AsyncMessage)
    clientId = CC2B0D5D-B00A-CD8B-CE43-0430C8CC10DF
    correlationId = null
    destination = event-bus
    messageId = CC3236D0-7B0D-182C-5632-C84FB4D1E215
    timestamp = 1278595932075
    timeToLive = 0
    body = com.bofa.esm.utility.messaging.SimpleMessageContext@1a6595b
    09:32:12,075 INFO [STDOUT] [BlazeDS]Sending message: Flex Message (flex.messaging.messages.AsyncMessage)
    clientId = CC2B0D5D-B00A-CD8B-CE43-0430C8CC10DF
    correlationId = null
    destination = event-bus
    messageId = CC3236D0-7B0D-182C-5632-C84FB4D1E215
    timestamp = 1278595932075
    timeToLive = 1000
    body = com.bofa.esm.utility.messaging.SimpleMessageContext@1a6595b
    to subscribed clientIds: []
    09:32:12,075 INFO [STDOUT] [BlazeDS]Sending message: Flex Message (flex.messaging.messages.AsyncMessage)
    clientId = CC2B0D5D-B00A-CD8B-CE43-0430C8CC10DF
    correlationId = null
    destination = event-bus
    messageId = CC3236D0-7B0D-182C-5632-C84FB4D1E215
    timestamp = 1278595932075
    timeToLive = 1000
    body = com.bofa.esm.utility.messaging.SimpleMessageContext@1a6595b
    to subscribed clientIds: []
    09:32:12,075 INFO [STDOUT] [BlazeDS]After invoke service: message-service; execution time = 0ms
    09:32:12,075 INFO [STDOUT] [BlazeDS]After invoke service: message-service; execution time = 0ms
    09:32:12,075 INFO [STDOUT] [BlazeDS]After invoke service: message-service
    reply: null
    09:32:12,075 INFO [STDOUT] [BlazeDS]After invoke service: message-service
    reply: null
    Shouldn't the "subscribed clientIds: []" have something listed as subscribed?  What am I missing?

    I made some modifications to the code section that registers the Consumer:
      Alert.show(
    "onRegister running","AppShellMediator",Alert.OK); 
      var _messageConsumer:Consumer = new Consumer(); 
      var msgChannel:ChannelSet = RemotingUtility.getMessageChannelSet();  _messageConsumer.channelSet = msgChannel;
      _messageConsumer.destination =
    "event-bus";  _messageConsumer.addEventListener(MessageEvent.RESULT,
    this.onMessage);  _messageConsumer.subscribe(
    "MessagingClient"+Math.random()); 
    if(_messageConsumer.connected)      Alert.show(
    "Message Channel is connected","AppShellMediator",Alert.OK); 
      if(_messageConsumer.authenticated)      Alert.show(
    "Message Channel is authenticated","AppShellMediator",Alert.OK); 
      if(_messageConsumer.subscribed)      Alert.show(
    "Message Channel is subscribed, clientId: "+_messageConsumer.clientId,"AppShellMediator",Alert.OK);
    I am now calling the subscribe method, then testing to see if the consumer is connected, authorized, and subscribed.  The first two return True, the last one does not.  So, despite the call to subscribe(), the Consumer is not subscribed.  Is there a way to figure out why?  Possibly there was an error somewhere?

  • Problem getting custom workflow to work with BPEL Worklist

    I am currently working through the DocumentReviewWorklow custom workflow example in the Oracle Content Services 10g Custom Workflows document and cannot get the workflow to prompt approvers through the BPEL Worklist application that an action must be taken.
    When I run the workflow, the process gets to the point of calling the TaskActionHandler and the approver is told that a process is pending their approval in the Content Services Console.
    The following appears in the BPEL Process Manager when I Audit the workflow:
    onMessage (137) - pending
    [2006/03/20 08:57:42] Waiting for message from "TaskManagerService", operation is "onTaskSuspended".
    onMessage (126) - pending
    [2006/03/20 08:57:42] Waiting for message from "TaskManagerService", operation is "onTaskUpdated".
    onMessage (118) - pending
    [2006/03/20 08:57:42] Waiting for message from "TaskManagerService", operation is "onTaskErrored".
    onMessage (110) - pending
    [2006/03/20 08:57:42] Waiting for message from "TaskManagerService", operation is "onTaskWithdrawn".
    onMessage (102) - pending
    [2006/03/20 08:57:42] Waiting for message from "TaskManagerService", operation is "onTaskCompleted".
    onAlarm (161) - pending
    [2006/03/20 08:57:42] Alarm started. Alarm will go off at time "2006/03/22 08:57:42".
    onAlarm (156) - pending
    [2006/03/20 08:57:42] Alarm started. Alarm will go off at time "never".
    onAlarm (151) - pending
    [2006/03/20 08:57:42] Alarm started. Alarm will go off at time "never".
    After a period of time, the workflow eventually times-out because it is neither approved or disapproved. I have got the other non-blocking custom workflow examples to work without any problems.

    Thanks bnainani, you solved my problem!
    Despite the fact that the approver's username is in the Oracle Collabortion Suite OID as all lower case letters (and you can still login to worklist with lower case letters), you were right in saying that you have to use all upper case letters when logging into the worklist application in order to see the pending tasks.
    Just out of curiousity, do you have any idea why worklist requires upper case letters for the username?
    Message was edited by:
    middaymag
    Message was edited by:
    middaymag

  • Problems getting Urban Airship to work with DPS

    I am also having a problem with the Urban Airship push connector. My devices are registered correctly on Urabn Airship. I can send a test push notification from UA to my devices.
    But I can't use the push connector to push. I am getting this error: "Error - could not connect to your UA account. Verify that credentials for application are correct."
    My credentials seem to work, though, as my devices are registered with UA and also If am acces the UA service directly at https://go.urbanairship.com/api/device_tokens/ with my credentials, I can see my registered devices as well.
    What could cause this problem?
    I think it's somewhere near these lines in index.php of http://www.adobe.com/devnet/digitalpublishingsuite/articles/urban-airship-as-dps-push-prov ider.html
    $url = "https://go.urbanairship.com/api/device_tokens/";
                        $opts = array('http' =>
                        array(
                                  'method'  => 'GET',
                                  'header'  => 'Content-type: application/json',
                                  'header'  => "Authorization: Basic " . base64_encode("$user:$pass")
                        $context  = stream_context_create($opts);
                        $result = @file_get_contents($url, false, $context);
    Or does anyone else have this problem or maybe found a solution? Thank you very much in advance.
    Richard

    Okay,
    I could solve this problem myself. As I remembered our provider/hoster doesn't allow fopen request as default. Yo I had to add a php.ini with the following content in the base directory:
    [PHP] allow_url_fopen = On

  • Problems getting NXT toolkit to work with version 8.5

    I recently downloaded the nxt toolkit to use with  labview version 8.5 when i select tools and go to the nxt module it minimises the labview window for a few seconds and then the nxt module opens for around a secondand then disappears, does anyone know whats causing this any help greatly appeciated.

    You could try to do a File->Save for Previous Version on the PID VIs that you want to use.  However,
    if one of the PID subVIs was saved without a block diagram then this
    won't work. Also, I'm not sure if the toolkit is backwards compatible
    in this way. Also, when you do this you will effectively be saving the
    VI hierarchy into a new location.
    However, your best bet (and my recommendation) is to contact your local NI sales rep to see if they can get you a CD with the 8.5 version. Since you have a license for the toolkit it's probably not going to be an issue.

  • Problem getting DB Link to work with Warehouse Builder ...

    Warehouse builder has a new Module wizard that attempts
    to create a database link to a source Metadata Data Dictionary.
    When I enter the DB link parameters after selecting 'New DB
    Link'
    I get a successful confirmation however when I try to click
    on the 'Next' button on the wizard window I get 'Connection
    Validation failed - the database link is incorrect'.
    How is it that I success in creating a link then it fails
    when I try to move to the next step in the wizard?
    I tried many different ways of creating db links that I have
    tested successfully but don't work within Warehouse Builder.
    My environment is simple, both my Oracle 8i and Warehouse
    Builder
    are on the same machine and installed in the same home
    directory.
    Any suggestions would be appreciated.

    Hi max7539! I recommend that you try setting up a new Wi-Fi connection to your phone on your camera from scratch, then see if the new app does not recognize the camera. After setting this up from scratch, does the Camera Connect app still not see the camera? If this is a time sensitive-matter, additional support options are available at Contact Us.  

Maybe you are looking for