Bluetooth simple client example question

Dear all,
 I am not sure whether I am close to make it. I update my bluetooth driver {http://forums.ni.com/ni/board/message?board.id=170&message.id=301780#M301780}, so it seem the labview (simple bluetooth server example) can work with my bluetooth (please read the first picture). However, the error message comes up when I run the simple client program. I have a question. Do I have to make the client and the server program in two computer?
 I need your help
Thanks
====================
=Labview 7.0 & 8.0 & 8.5=
=====================
Attachments:
labview5.JPG ‏203 KB
labview6.JPG ‏214 KB

Just want to make a couple things clear
1. my bluetooth device is working well, after I remove dell driver and using XP bluetooth stack <-----I think
2. I can run the server without no problem, the problem comes from the client part.
I have attached the pic from the device manager
Please help, failure will lose my job
====================
=Labview 7.0 & 8.0 & 8.5=
=====================
Attachments:
labview7.JPG ‏41 KB

Similar Messages

  • Just need a simple client sending message to server example????

    Im trying to find a simple client-server example, where i can put the client on one laptop, server on the other and pass messages from the client to the server.
    I've been trying to follow examples and ive had problems with policies, stubs(?) etc etc
    Would someone please be able to provide me with an example i can follow and show me how to setup a policy. Im not a business user, i just want to learn how to make a simple message-sending app with RMI

    Ok! rmiregistry is working (i think), ie no error messages.
    But, when i execute i now get this:
    init:
    deps-jar:
    compile:
    run:
    Server exception: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
            java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
            java.lang.ClassNotFoundException: test.hello
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
            java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
            java.lang.ClassNotFoundException: test.hello
            at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:396)
            at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250)
            at sun.rmi.transport.Transport$1.run(Transport.java:159)
            at java.security.AccessController.doPrivileged(Native Method)
            at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
            at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
            at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
            at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
            at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
            at java.lang.Thread.run(Thread.java:619)
            at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
            at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
            at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:359)
            at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)
            at test.Server.main(Server.java:33)
    Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
            java.lang.ClassNotFoundException: test.hello
            at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
            at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:386)
            at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250)
            at sun.rmi.transport.Transport$1.run(Transport.java:159)
            at java.security.AccessController.doPrivileged(Native Method)
            at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
            at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
            at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
            at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
            at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
            at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.ClassNotFoundException: test.hello
            at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
            at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Class.java:247)
            at sun.rmi.server.LoaderHandler.loadProxyInterfaces(LoaderHandler.java:711)
            at sun.rmi.server.LoaderHandler.loadProxyClass(LoaderHandler.java:655)
            at sun.rmi.server.LoaderHandler.loadProxyClass(LoaderHandler.java:592)
            at java.rmi.server.RMIClassLoader$2.loadProxyClass(RMIClassLoader.java:628)
            at java.rmi.server.RMIClassLoader.loadProxyClass(RMIClassLoader.java:294)
            at sun.rmi.server.MarshalInputStream.resolveProxyClass(MarshalInputStream.java:238)
            at java.io.ObjectInputStream.readProxyDesc(ObjectInputStream.java:1531)
            at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1493)
            at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
            at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
            at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
            ... 12 more

  • Simple client - proxy - server toy program

    Hi.
    I haven't done many cs courses yet, lately i am reading on some introduction to network programming, and i thought i should create a simple toy program to test a bit.
    Essentially i'd like to keep the communication between client and server using bytes, so i'll but input/output streams. At the same time, i'd like to have the proxy and server and client hosted on the same pc. So, i'll be using local IP's like 127.xx.xx.xx
    Client part:
    1. open a socket to connect to proxy
    2. get input and output streams
    3. use loop to write random data to output stream, and read feedbacks from inputstream.
    Proxy Part
    1. opens a server soc to listen to client
    2. opens a soc to connect to server
    3. create 2 service objects to take care of IO, one for upstream(to server) and other for downstream
    4. display and verify content.
    Server Part:
    1. open a server socket to listen to connections
    2. create a service object to take care of stream IO
    3. display IO streams to counter verify with client IO
    Questions:
    1. When constructing a socket for client side, i should be including proxy IP and proxy listened_port as parameters right?
    if I try to put in a local ip such as 127.99.99.99, and port number 5999. At the same time i set my proxy port_to_listen_to as 5999
    how will I know which address represents my proxy?
    Will any random local IP work?
    Will a thread be more appropriate since i am using threads in proxy and server?
    2. My understanding of proxy is that it is partly a server, and partly a client. But i am not sure if i am right to create 2 threads to handle upstream and downstream operations independently. I have tried to stay out of global/static variable so that i can avoid synchronization part.
    3. As for the server side. i have similar issues regarding the IP address problems mentioned above.
    Can some one help me sort out my concepts?

    1. When constructing a socket for client side, i should be including proxy IP and proxy listened_port as parameters right?Yes.
    if I try to put in a local ip such as 127.99.99.99, and port number 5999. At the same time i set my proxy port_to_listen_to as 5999
    how will I know which address represents my proxy?That address represents your proxy.
    Will any random local IP work?127.0.0.* will work. I don' t know about the others like 127.99.99.99.
    Will a thread be more appropriate since i am using threads in proxy and server?Only if you have multiple connections in the client at the same time, or if the client's input and output are unco-ordinated. From your description it sounds like you are writing requests and reading responses, which you can do serially without threads.
    2. My understanding of proxy is that it is partly a server, and partly a client. But i am not sure if i am right to create 2 threads to handle upstream and downstream operations independently.You are right.
    3. As for the server side. i have similar issues regarding the IP address problems mentioned above.I don't know exactly what you mean by 'issues' or 'problems'. You can run the whole setup using 127.0.0.1, or 'localhost', with one listening port for the proxy and another for the server.

  • OCA example questions on Oracle website

    May I ask those with more experience -- the sample OCA exam questions on the Oracle website (not any purchased practice test, just the 8 example questions) seem more devilish to me than any training materials or books I have read. The code is unformatted and unindented, deliberately tricky, static blocks popping up willy-nilly outside of methods and such, and for every question you just have to hack it out line by line. Whereas on practice tests I am scoring well, I got most of these samples wrong at first pass. There's not a single sample question there that's anything like the simple multiple choices I am getting in practice exams about basic concepts such as what is inheritance, what are interfaces, what is an abstract class, etc. etc. I guess my question is -- should I really be getting ready for 90 scary code-deciphering questions, even though my training materials reassure me I am doing just peachy? [I am keenly worried, by the way, about this question making it look like I don't like digging into troublesome code or that I am whining that it is "too hard."]
    P.S. I am such a newbie I guess that I don't know basic things, but I am curious as to what the term "brain dump" means -- I have read on the forum that it is a form of cheating. I infer that it is basically training for exams by using quickie cheat-sheets instead of truly absorbing and knowing the material? Is that the definition? Why in heck would somebody want to get a certification that way if they couldn't actually do the work?
    Best wishes to all.

    967292 wrote:
    May I ask those with more experience -- the sample OCA exam questions on the Oracle website (not any purchased practice test, just the 8 example questions) seem more devilish to me than any training materials or books I have read. The code is unformatted and unindented, deliberately tricky, static blocks popping up willy-nilly outside of methods and such, and for every question you just have to hack it out line by line. Whereas on practice tests I am scoring well, I got most of these samples wrong at first pass. There's not a single sample question there that's anything like the simple multiple choices I am getting in practice exams about basic concepts such as what is inheritance, what are interfaces, what is an abstract class, etc. etc. I guess my question is -- should I really be getting ready for 90 scary code-deciphering questions, even though my training materials reassure me I am doing just peachy? [I am keenly worried, by the way, about this question making it look like I don't like digging into troublesome code or that I am whining that it is "too hard."]
    P.S. I am such a newbie I guess that I don't know basic things, but I am curious as to what the term "brain dump" means -- I have read on the forum that it is a form of cheating. I infer that it is basically training for exams by using quickie cheat-sheets instead of truly absorbing and knowing the material? Is that the definition? Why in heck would somebody want to get a certification that way if they couldn't actually do the work?
    Best wishes to all.I sometimes refer, somewhat cynically as is my way, to the 8 or so samples questions as the 'beta rejects' ... questions that were tried on the beta exam but rejected for the production exam. From my memory (perhaps a little poor) some are less than perfect.
    If you want background on braindumps try the following links:
    http://www.certguard.com/information.asp
    https://blogs.oracle.com/certification/entry/0477
    http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=562#9
    Edited by: bigdelboy on Oct 23, 2012 8:25 PM

  • Simple JMS example.

    simple JMS example.
    i am trying to execute this simple example SimpleQueueSender.java from the tutorial provided at http://java.sun.com/products/jms/tutorial/1_3_1-fcs/doc/client.html#1027210
    in this example it is creating empty initial context;
    jndiContext = new InitialContext();
    with empty InitialContext i got (javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial)
    so i have modified it to
    Properties prop = new Properties();
    prop.setProperty(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
    prop.setProperty(Context.PROVIDER_URL, "t3://192.168.3.91:7001");
    jndiContext = new InitialContext(prop);
    after making this changes and looking up for
    queueConnectionFactory = (QueueConnectionFactory) jndiContext.lookup("QueueConnectionFactory"); // here it is returning weblogic.jms.common.DestinationImpl.classs
    i am still getting java.lang.ClassCastException
    i have configured weblogic 8.1 and created new JMS server and created JMSQueue named 'QueueConnectionFactory' and JNDI name 'jndi_QueueConnectionFactory'
    what else do i need to add or change to my code or environment
    also tell me is this
    Context.INITIAL_CONTEXT_FACTORY = "weblogic.jndi.WLInitialContextFactory" right value
    ******************************************************************************************

    hmnn...well if I remember correctly you need to create an instance of a ConnectionFactory or a QueueConnectionFactory in weblogic and then request that via jndi.
    To explain, what I believe is happening is that you've said you created a Queue in weblogic and named it xxxQueueConnectionFactory. You are then trying to cast this Queue to a QueueConnectionFactory. Based on what I thought I understood of jms this doesn't work. You need to lookup an instance of an actual ConnectionFactory and then use that to create a queue.
    good luck.

  • A Simpler, More Direct Question About Merge Joins

    This thread is related to Merge Joins Should Be Faster and Merge Join but asks a simpler, more direct question:
    Why does merge sort join choose to sort data that is already sorted? Here are some Explain query plans to illustrate my point.
    SQL> EXPLAIN PLAN FOR
      2  SELECT * FROM spoTriples ORDER BY s;
    PLAN_TABLE_OUTPUT
    |   0 | SELECT STATEMENT |              |   998K|    35M|  5311   (1)| 00:01:04|
    |   1 |  INDEX FULL SCAN | PKSPOTRIPLES |   998K|    35M|  5311   (1)| 00:01:04|
    ---------------------------------------------------------------------------------Notice that the plan does not involve a SORT operation. This is because spoTriples is an Index-Organized Table on the primary key index of (s,p,o), which contains all of the columns in the table. This means the table is already sorted on s, which is the column in the ORDER BY clause. The optimizer is taking advantage of the fact that the table is already sorted, which it should.
    Now look at this plan:
    SQL> EXPLAIN PLAN FOR
      2  SELECT /*+ USE_MERGE(t1 t2) */ t1.s, t2.s
      3  FROM spoTriples t1, spoTriples t2
      4  WHERE t1.s = t2.s;
    Explained.
    PLAN_TABLE_OUTPUT
    |   0 | SELECT STATEMENT       |              |    11M|   297M|       | 13019 (6)| 00:02:37 |
    |   1 |  MERGE JOIN            |              |    11M|   297M|       | 13019 (6)| 00:02:37 |
    |   2 |   SORT JOIN            |              |   998K|    12M|    38M|  6389 (4)| 00:01:17 |
    |   3 |    INDEX FAST FULL SCAN| PKSPOTRIPLES |   998K|    12M|       |  1460 (3)| 00:00:18 |
    |*  4 |   SORT JOIN            |              |   998K|    12M|    38M|  6389 (4)| 00:01:17 |
    |   5 |    INDEX FAST FULL SCAN| PKSPOTRIPLES |   998K|    12M|       |  1460 (3)| 00:00:18 |
    Predicate Information (identified by operation id):
       4 - access("T1"."S"="T2"."S")
           filter("T1"."S"="T2"."S")I'm doing a self join on the column by which the table is sorted. I'm using a hint to force a merge join, but despite the data already being sorted, the optimizer insists on sorting each instance of spoTriples before doing the merge join. The sort should be unnecessary for the same reason that it is unnecessary in the case with the ORDER BY above.
    Is there anyway to make Oracle be aware of and take advantage of the fact that it doesn't have to sort this data before merge joining it?

    Licensing questions are best addressed by visiting the Oracle store, or contacting a salesrep in your area
    But I doubt you can redistribute the product if you aren't licensed yourself.
    Question 3 and 4 have obvious answers
    3: Even if you could this is illegal
    4: if tnsping is not included in the client, tnsping is not included in the client, and there will be no replacement.
    Tnsping only establishes whether a listener is running and shouldn't be called from an application
    Sybrand Bakker
    Senior Oracle DBA

  • I can't get the VI Server/Client example to work on my PC

    Hi, I was trying to run the VI server and client example but the client could not find the server even when the server was running and both VI's were running on the same computer.
    I checked the VI Server configuration and found that the TCP/IP was not checked off - so I enabled TCP/IP. This did not solve the problem.
    Your help is appreciated
    Keita

    Are you running LabVIEW 7.0? The 7.1 version seems to work reliably but the 7.0 version does not to seem to work most of the time. I am having the same problems as you describe. Must be some bug in 7.0, but I have not had time to compare the code. Anyone?
    LabVIEW Champion . Do more with less code and in less time .

  • Have you a simple client for send message on oc4j 9.0.2.0.0 ?

    Hi to All!
    Have you a simple client to send message on a queue in OC4J 9.0.2 ?
    Can you show me how is possible to write the config file to connect to oc4j application server?
    thanks very much
    Andrea

    I added -Xcheck:jni and -Xcheck:nabounds to the command line and got this one now :
    500 Internal Server Error
    Error parsing JSP page /westflo-fsweb/main/header.jsp
    Error creating jsp-page instance: java.lang.ClassFormatError: __jspPage8_main_header_jsp (Method "pushBody" has illegal signature "()Ljavax/servonInfo.classjavax/servlet/j")
    My whole command line is :
    /usr/java130_wei/bin/java -ms128m -mx256m -Xcheck:jni -Xcheck:nabounds -Xnoclassgc -verbosegc -Duser.dir=/usr/oc4j/j2ee/home -Denvironment=DEV2GMSFS -Dwestflo.dir=/website/DEV2/GMSFS/oc4j_instance2/westflo/westflo/ -Ddeployment.dir=/website/DEV2/GMSFS/oc4j_instance2/pie/gms/ -Demissionrc.dir=/website/DEV2/GMSFS/oc4j_instance2/emissionrc/emissionrc-web/ -jar /usr/oc4j/j2ee/home/oc4j.jar -out /website/DEV2/GMSFS/oc4j_instance2/oc4j_config/log/server.log -err /website/DEV2/GMSFS/oc4j_instance2/oc4j_config/log/oc4j.err -config /website/DEV2/GMSFS/oc4j_instance2/oc4j_config/config/server.xml

  • Simple Client for web service ...Perl way

    II need to get information from a web service (with a defined WSDL)...I have been able to do that with Perl ((using SOAP:Lite) which is pretty staight forward....
    I was trying to do the same with Java ..I tried to find tutorials ...but was overwhelmed with the amount of information ..in there .(They talk about writing the server installing axis etc ..but fail interms of a simple explanation to create a simple client
    I was wondering if you could help me to get hold of a tutorial/resource which helps in simply creating a connection and getting information from the remote application...

    hi
    writing webservices using tomcat and axis is pretty easy ..... you have to create a java class to describe your service .... and save it in the axis subdirectory of tomcat .... and call the service from a client on a remote machine using the IP address and port details ...

  • Simple Java Example for DI API

    Hello,
    I have a Java Application and would like to connect to a SAP BO Database using JCO and DI API.
    I want a simple java example that just connects to the BO Database and returns an item name or value or a recordset from the database.
    Since i dont have the names of what kind of fields, items , tables exist in the SAP BO Demo database i need a basic example to make sure that i can connect to the database and retrieve data from the DB.
    Any help in this regard would be appreciated...
    Amit

    Dear Amit Hingher,
    The B1 JCO is a java wrapper for DI API so basically you could refer to DI help for all objects, methods and properties.
    Here the jave sample for connection function:
    package test;
    import com.sap.smb.sbo.api.*;
    public class ConnectSAP {
         // company interface
         public ICompany company;
         private SBOErrorMessage errMsg = null;
         public static void main(String[] args) {
              ConnectSAP company = new ConnectSAP();
              company.conn();
         //method make connection andinitialize company instance
         public int conn() {
              int rc = 0;
              try {
                   company = SBOCOMUtil.newCompany();
                   company.setServer("(local)");
                   company.setCompanyDB("test");
                   company.setUserName("manager");
                   company.setPassword("manager");
                   company.setDbServerType(...);
                   company.setUseTrusted(new Boolean(false));
                   company.setLanguage(SBOCOMConstants.BoSuppLangs_ln_English);
                   company.setDbUserName("Sa");
                   company.setDbPassword("123");
                   company.setAddonIdentifier("...");     
                   company.setLicenseServer("...");
                   rc = company.connect();
                   if (rc == 0) {
                        System.out.println("Connected!");
                   } else {
                        errMsg = company.getLastError();
                        System.out.println(
                             "I cannot connect to database server: "
                                  + errMsg.getErrorMessage()
                                  + " "
                                  + errMsg.getErrorCode());
              } catch (Exception e) {
                   e.printStackTrace();
                   return -1;
              return rc;
         public void freeConnection(){
              company.disconnect();
    Best Regards
    Jane Jing
    SAP Business One Forums team

  • Error running A Simple MDB example with oc4j

    Hi All,
    I am new to OC4J, I am trying the example for MDB from OTN's site, A Simple MDB example with OC4J. When I start my OC4J on the command line > java -jar oc4j.jar
    I get the following exception:
    Error deploying file:/C:/unzipped/mdb_hello_world/build/mdb/mdb.jar homes: No lo
    cation set for Topic resource MessageDrivenBean MDB
    Error in application mdb: Error loading package at file:/C:/unzipped/mdb_hello_w
    orld/build/mdb/mdb.jar, Error deploying file:/C:/unzipped/mdb_hello_world/build/
    mdb/mdb.jar homes: No location set for Topic resource MessageDrivenBean MDB
    04/07/09 15:21:40 Error instantiating application 'mdb' at file:/C:/unzipped/mdb
    helloworld/build/mdb.ear: Error initializing ejb-module; Exception Error in ap
    plication mdb: Error loading package at file:/C:/unzipped/mdb_hello_world/build/
    mdb/mdb.jar, Error deploying file:/C:/unzipped/mdb_hello_world/build/mdb/mdb.jar
    homes: No location set for Topic resource MessageDrivenBean MDB
    04/07/09 15:21:41 Error starting HTTP-Server: Address already in use: JVM_Bind
    04/07/09 15:21:41 Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)
    initialized
    I have just followed all the steps provided to run the example exactly as given.
    I did add my Topic and TopicConnectionFatory entries in my jms.xml -
    <topic name="The Topic" location="jms/theTopic">
    <description>A MDB topic</description>
    </topic>
    <topic-connection-factory location="jms/theTopicConnectionFactory" />
    Here is the ejb-jar.xml given in the example:
    <?xml version="1.0"?>
    <!DOCTYPE ejb-jar>
    <ejb-jar>
    <enterprise-beans>
    <message-driven>
    <description>My message driven bean</description>
    <ejb-name>MDB</ejb-name>
    <ejb-class>MDB</ejb-class>
    <transaction-type>Container</transaction-type>
    <message-driven-destination>
    <destination-type>javax.jms.Topic</destination-type>
    <subscription-durability>NonDurable</subscription-durability>
    </message-driven-destination>
    <resource-ref>
    <description>The log topic where log events are broadcasted...</description>
    <res-ref-name>jms/theTopic</res-ref-name>
    <res-type>javax.jms.Topic</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    <resource-ref>
    <description>The Factory used to produce connections to the log topic...</description>
    <res-ref-name>jms/theTopicConnectionFactory</res-ref-name>
    <res-type>javax.jms.TopicConnectionFactory</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    </message-driven>
    </enterprise-beans>
    <assembly-descriptor>
    <container-transaction>
    <method>
    <ejb-name>MDB</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Supports</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>
    Here is my orion-ejb-jar.xml:
    <?xml version="1.0"?>
    <!DOCTYPE orion-ejb-jar PUBLIC "-//Evermind//DTD Enterprise JavaBeans 1.1 runtime//EN" "http://xmlns.oracle.com/ias/dtds/orion-ejb-jar.dtd">
    <orion-ejb-jar deployment-version="1.0.2.2" deployment-time="e7f5a3f42d">
    <enterprise-beans>
    <message-driven-deployment name="MDB" destination-location="jms/theTopic" connection-factory-location="jms/theTopicConnectionFactory">
    <resource-ref-mapping name="jms/theTopic" />
    <resource-ref-mapping name="jms/theTopicConnectionFactory" />
    </message-driven-deployment>
    </enterprise-beans>
    <assembly-descriptor>
    <default-method-access>
    <security-role-mapping name="&lt;default-ejb-caller-role&gt;" impliesAll="true" />
    </default-method-access>
    </assembly-descriptor>
    </orion-ejb-jar>
    I don't know what is wrong. Please help me.
    Rohini

    Hello,
    I guess that you didn't define the Topic and/or TopicConnectionFactory on your OC4J
    Inside $J2EE_HOME/config (see: subfolders .../j2ee/home/config e.g.)folder are several xml files appropriate for OC4J configuration. There's also jms.xml. Please, verify this one, it should have some entries for your settings.
    Just like in an example below:
    <topic-connection-factory name="TopicConnectionFactory" location="jms/TopicConnectionFactory"/>
    <topic name="theTopic" location="jms/theTopic"/>
    The names should be the same like in your MDB deployment descriptors. It works of course after next OC4J server restart.
    I hope helped you
    Krzysztof

  • Need a simple Dashboard example

    Hello All,
    Can any one provide me an simple Dashboard example (Charts)  using Flex 3 .
    The dashboard should use a MYSQL database as a source.
    Many thanks,

    this is the mxml file
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" creationComplete="init()">
        <mx:Script>
            <![CDATA[
                import mx.collections.ArrayCollection;
                import mx.rpc.events.ResultEvent;
                [Bindable] private var dataColl:ArrayCollection;
                private function init():void{
                    xmlServ.send();
                private function handleResult(event:ResultEvent):void{
                    dataColl = (event.result as ArrayCollection).getItemAt(0).main as ArrayCollection;
            ]]>
        </mx:Script>
        <mx:HTTPService id="xmlServ" url="data.xml" resultFormat="array" result="handleResult(event)"/>
        <mx:TabNavigator id="myTabz" width="100%" height="100%">
            <mx:Canvas label="DataGrid" width="100%" height="100%">
                <mx:DataGrid dataProvider="{dataColl}" width="100%" height="100%">
                    <mx:columns>
                        <mx:DataGridColumn dataField="Products" headerText="Products"/>
                        <mx:DataGridColumn dataField="stock" headerText="Stock"/>
                    </mx:columns>
                </mx:DataGrid>
            </mx:Canvas>
            <mx:Canvas label="Line Chart" width="100%" height="100%">
                <mx:LineChart id="myLineChart" dataProvider="{dataColl}" showDataTips="true" width="100%" height="100%">
                    <mx:horizontalAxis>
                        <mx:CategoryAxis dataProvider="{dataColl}" categoryField="Products"/>
                    </mx:horizontalAxis>
                    <mx:series>
                        <mx:LineSeries yField="stock" displayName="Stock"/>
                    </mx:series>
                </mx:LineChart>
            </mx:Canvas>
            <mx:Canvas label="Bar Chart" width="100%" height="100%">
                <mx:BarChart id="myBarChart" dataProvider="{dataColl}" showDataTips="true" width="100%" height="100%">
                    <mx:verticalAxis>
                        <mx:CategoryAxis dataProvider="{dataColl}" categoryField="Products"/>
                    </mx:verticalAxis>
                    <mx:series>
                        <mx:BarSeries yField="Products" xField="stock" displayName="Stock"/>
                    </mx:series>
                </mx:BarChart>
            </mx:Canvas>
            <mx:Canvas label="Pie Chart" width="100%" height="100%">
                <mx:PieChart id="myPieChart" dataProvider="{dataColl}" showDataTips="true" width="100%" height="100%">
                    <mx:series>
                        <mx:PieSeries field="stock" nameField="Products" labelPosition="inside"/>
                    </mx:series>
                </mx:PieChart>
            </mx:Canvas>
        </mx:TabNavigator>
    </mx:Application>
    and the data.xml is
    <?xml version="1.0"?>
    <main>
        <Products>Products 1</Products>
        <stock>36</stock>
    </main>
    <main>
        <Products>Products 2</Products>
        <stock>48</stock>
    </main>
    <main>
        <Products>Products 3</Products>
        <stock>46</stock>
    </main>
    <main>
        <Products>Products 4</Products>
        <stock>78</stock>
    </main>

  • (DII) Client Example - - missing class error

    To jump into DII, I have copied the source for the "Dynamic Invocation Interface (DII) Client Example" into a new class created in netbeans. The api jar for JAX-RPC has been mounted in the environment. The example compiles fine, but upon execute the following error comes up:
    javax.xml.rpc.ServiceException: java.lang.ClassNotFoundException: com.sun.xml.rpc.client.ServiceFactoryImpl
    at javax.xml.rpc.ServiceFactory.newInstance(ServiceFactory.java:65)
    at node.HelloClient.main(HelloClient.java:29)
    Do I need to get another api here? Looking into the jax-rpc jar file I can see the javax.xml.rpc.ServiceFactory class, but can not see com.sun.xml.rpc.client.ServiceFactoryImpl .
    Could someone point me to an answer? Thanks in advance for the help.

    The jaxrpc jar that I downloaded was from under the xml downloads (jaxrpc-1_0-fr-api-class.zip). Once extracted this gave me a jar file of jaxrpc-api.jar.
    It seems that you might be using a different jar? (jaxrpc-ri.jar)?
    Under my downloaded jar file, there is no client belwo the heirarchy of javax/xml/rpc . Where could I find the download for the jar file that you are refrencing?
    Thank you for your help.
    R

  • Simple jsp example of using BI Bean in Myeclipse

    hi
    anyone can show me a simple jsp example of using BI Bean in Myeclipse
    or how to import BI Bean into Myeclipse
    I would so thankful for who can answer me.. please its urgent
    thanks

    Sorry, I was not very clear in my last message.
    I need all my webservices to share the same bean during one user session.
    Then, if a page calls 2 different web services, only 1 database connection is made instead of 2. And if the user opens other pages which call other webservices, they will use the connection kept into the session bean.
    Anyway, I tried to do like it is said in your website but I can not build my project. I have an error : java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloader, but this RI (from jar:file:/C:/.../build/web/WEB-INF/lib/jaxb-impl.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class) needs 2.1 API. Use the endorsed directory mechanism to place jaxb-api.jar in the bootstrap classloader. I do not understand because I have downloaded the jax-ws 2.1.1 api and no other libraries are imported in my project. :-(
    I wonder if it is not related to netbeans...

  • Simple JSP example problems

    Hello, I am new to JSP and I was wondering if I could get some help from some people that know what they are doing. I'm trying to run a simple JSP example that I got out of a book. But I've modified it a bit to just play around with it. But it doesn't want to run. I'm starting to think it's something wrong with the way I'm building/installing the stuff. I'm running IBM WebSphere 4 and JBuilder 8. I was just wondering if you could look at my code just to make sure I'm doing this right.
    It's a pretty simple example. A JSP calls a class to get a message to print out.
    Here's the code for the class: (HelloWorld.java)
    package helloworld;
    public class HelloWorld
    private String message = "No message specified";
    public String getMessage()
    return(message);
    public void setMessage(String message)
    this.message = message;
    =================================================================
    Here's the code for the JSP: (HelloWorld.jsp)
    <html>
    <head>
    <title>Using JavaBeans with JSP</title>
    </head>
    <body>
    <jsp:useBean id="helloWorld" class = "helloworld.HelloWorld" />
    <ol>
    <li>Initial Value (JSP Expression):
    <%= helloWorld.getMessage() %></li>
    <li><jsp:setProperty name="helloWorld"
    property="message"
    value="Hello World" />
    Value after setting property with setProperty:
    <jsp:getProperty name="helloWorld"
    property="message" /></li>
    </ol>
    </body>
    </html>
    I just wanted to be able to test out a JSP hitting a class file. Does someone have a better/easier way to do this? Or do you see anything wrong with my example? Thanks in advance.

    The 1 thing missing in your example is the import directive for the helloworld.HelloWorld class.
    Add the following line somewhere around the start of your jsp and things should be fine
    <%@ page import="helloworld.HelloWorld" %>
    Cheers

Maybe you are looking for

  • Problem in deleting Handling unit

    Hi,   I have created a program in which I have to create a HU and pack a material into it. For this I have used BAPI BAPI_HU_CREATE. Then I am packing this newly created HU to another HU using BAPI BAPI_HU_PACK. In between these 2 BAPI calls I made g

  • How do I clear or delete the DTP ERROR STACK..?

    HI Experts I have a number of records written to a DTP Error Stack for a Master Data load. Subsequent executions of the DTP result in further records being written to the stack if they have the same semantic key (even if they are not in error). I kno

  • Function Module to save existing Shipment Document

    Hello, I have a list of deliveries and I want to re-save the shipment document so the corresponding output types of the shipment documents are re-triggered. I am currently working in 4.6C and there is no BAPI to change the shipment document. Please l

  • Content Type policy template - labels

    Hello,  I have create "Content Type policy template" .  I enable "Labels" policy. When I press "Ok" , show the following error :           "The label reference, ProjectName, could not be found"    So What is wrong ?        Thanks ASk

  • I beg you, please let me go back to iOS 6

    Ok, I've tried to be open minded - I've tried iOS7.  But it doesnt work for me. Please, for the love of humanity, let me go back to iOS6. Its bad enough that I cant see the washed out screen prompts and the icons look like something my 3-year old wou