JMS-C debugging issue

Hi,
          I am using jmscapi for reading data from a JMS Queue.
          If I run the binary in dbx mode it stops in the JMSCreateContext() function call and displays this
          t@1 (l@1) signal SEGV (no mapping at the fault address) in (unknown) at 0xfa87fae0
          0xfa87fae0: bad opcode
          But if I run the same binary without dbx it works fine and it reads data from the JMS Queue successfully.
          Following is the stack trace with dbx mode:
          [SunOS]dbx ReadRequestQueue
          For information about new features see `help changes'
          To remove this message, put `dbxenv suppress_startup_message 7.1' in your .dbxrc
          Reading ReadRequestQueue
          Reading ld.so.1
          Reading libxerces-c.so.27
          Reading libjmsc.so
          Reading libjvm.so
          Reading librt.so.1
          Reading libCstd.so.1
          Reading libCrun.so.1
          Reading libm.so.1
          Reading libw.so.1
          Reading libc.so.1
          Reading libpthread.so.1
          Reading libnsl.so.1
          Reading libsocket.so.1
          Reading libdl.so.1
          Reading libthread.so.1
          Reading libaio.so.1
          Reading libmd5.so.1
          Reading libmp.so.2
          Reading libCstd_isa.so.1
          Reading libc_psr.so.1
          detected a multithreaded program
          (dbx) run
          Running: ReadRequestQueue
          (process id 27371)
          Reading libhpi.so
          Reading libverify.so
          Reading libjava.so
          Reading libzip.so
          t@1 (l@1) signal SEGV (no mapping at the fault address) in (unknown) at 0xfa87fae0
          0xfa87fae0: bad opcode
          Current function is main
          68 != JMS_NO_ERROR) {
          (dbx) where
          current thread: t@1
          [1] 0xfa87fae0(0xf25c6718, 0x1, 0xd, 0x34, 0xf65dcf70, 0xffbfcb50), at 0xfa87fadf
          [2] 0xfa805c64(0xf25c6568, 0xb7, 0xffbfccd8, 0xfa815238, 0xfa8150c4, 0xffbfcbf0), at 0xfa805c63
          [3] 0xfa805c64(0xf25c6568, 0xb6, 0xffbfcd60, 0xfa8151f0, 0xfa8150c4, 0xffbfcc70), at 0xfa805c63
          [4] 0xfa805b10(0xf25c6568, 0xb6, 0xffbfcde8, 0xfa815030, 0xfa8150c4, 0xffbfcd00), at 0xfa805b0f
          [5] 0xfa805b10(0xf25c6568, 0xb6, 0x8, 0xfa815030, 0xfa815284, 0xffbfcd80), at 0xfa805b0f
          [6] 0xfa805b10(0xf25c5540, 0xb7, 0x11, 0xfa815080, 0xfa815284, 0xffbfce18), at 0xfa805b0f
          [7] 0xfa805c64(0xf25c5540, 0xb7, 0xffbfcf74, 0xfa8151f0, 0xfa815284, 0xffbfce98), at 0xfa805c63
          [8] 0xfa805c64(0xf25c5540, 0xb7, 0xffbfcff8, 0xfa8151f0, 0xfa815284, 0xffbfcf18), at 0xfa805c63
          [9] 0xfa805c64(0xf25c5540, 0xb7, 0x3b, 0xfa815350, 0xf65c6180, 0xffbfcf98), at 0xfa805c63
          [10] 0xfa805c64(0x5a180, 0xb8, 0xffbfd118, 0xfa815240, 0xfa815284, 0xffbfd028), at 0xfa805c63
          [11] 0xfa805c64(0xf25c52a8, 0xb7, 0xffbfd198, 0xfa8153a0, 0xfa8150c4, 0xffbfd0b8), at 0xfa805c63
          [12] 0xfa805b54(0xf25c52a8, 0xb6, 0x23, 0xfa815238, 0xf65bb7a0, 0xffbfd138), at 0xfa805b53
          [13] 0xfa805b54(0xf25c4dd8, 0xb7, 0x8, 0xfa815080, 0xf65bb7a0, 0xffbfd1b8), at 0xfa805b53
          [14] 0xfa805c64(0xf25c4dd8, 0xb7, 0x34, 0xfa8151f0, 0xf65865c8, 0xffbfd240), at 0xfa805c63
          [15] 0xfa805c64(0xf25b2018, 0xb6, 0x8, 0xfa815240, 0xf65865c8, 0xffbfd2f0), at 0xfa805c63
          [16] 0xfa805c64(0xf25b2018, 0xb7, 0x78, 0xfa8154b0, 0xf6569f80, 0xffbfd380), at 0xfa805c63
          [17] 0xfa805c64(0x5a180, 0xb8, 0x8, 0xfa8151f0, 0xfa8153e4, 0xffbfd420), at 0xfa805c63
          [18] 0xfa805c64(0x5a180, 0xb8, 0x15, 0xfa815398, 0xf6569f80, 0xffbfd4c0), at 0xfa805c63
          [19] 0xfa805c64(0x5a180, 0xb8, 0x44, 0xfa815350, 0xf6562fd0, 0xffbfd558), at 0xfa805c63
          [20] 0xfa805c64(0x5a180, 0x0, 0x0, 0xfa8153a0, 0x361240, 0xffbfd5d8), at 0xfa805c63
          [21] 0xfa800118(0xffbfd6c4, 0xffbfd788, 0xa, 0xf6564b18, 0xfa80aae0, 0xffbfd794), at 0xfa800117
          [22] JavaCalls::call_helper(0xffbfd780, 0xffbfd77c, 0xffbfd790, 0x5a180, 0x5a180, 0x5c00), at 0xfe4d4b98
          [23] instanceKlass::call_class_initializer_impl(0xffbfd854, 0x5a180, 0xffbfd9ac, 0x5a180, 0x1, 0x0), at 0xfe4d4878
          [24] instanceKlass::call_class_initializer(0xf6564bc0, 0x5a180, 0x5a180, 0x5a180, 0xfe4dc7d4, 0xc), at 0xfe4d475c
          [25] instanceKlass::initialize_impl(0xffbfda10, 0x5a180, 0xffbfdc14, 0x10e5d8, 0x5a180, 0x1), at 0xfe4d42ac
          [26] instanceKlass::initialize(0xf6564bc0, 0x5a180, 0x5a180, 0xffbfd928, 0x2a, 0x13c), at 0xfe4d3d48
          [27] InterpreterRuntime::_new(0x5a180, 0xf6538b68, 0xb1, 0x2c4, 0xf6538b68, 0xffbfdab0), at 0xfe4dcd8c
          [28] 0xfa815854(0x5a180, 0x0, 0x0, 0xfa8104b0, 0x361240, 0xffbfdb48), at 0xfa815853
          [29] 0xfa800118(0xffbfdc34, 0xffbfdcf8, 0xa, 0xf653cab0, 0xfa80aae0, 0xffbfdd04), at 0xfa800117
          [30] JavaCalls::call_helper(0xffbfdcf0, 0xffbfdcec, 0xffbfdd00, 0x5a180, 0x5a180, 0x5c00), at 0xfe4d4b98
          [31] instanceKlass::call_class_initializer_impl(0xffbfddc4, 0x5a180, 0xffbfdf1c, 0x5a180, 0x59de0, 0x0), at 0xfe4d4878
          [32] instanceKlass::call_class_initializer(0xf653cc00, 0x5a180, 0x5a180, 0x5a180, 0x1, 0x0), at 0xfe4d475c
          [33] instanceKlass::initialize_impl(0xffbfdf80, 0x5a180, 0xffbfe604, 0x5a79c, 0x59870, 0x0), at 0xfe4d42ac
          [34] instanceKlass::initialize(0xf653cc00, 0x5a180, 0xffbfe00c, 0x0, 0x5a180, 0x0), at 0xfe4d3d48
          [35] find_class_from_class_loader(0x5a20c, 0xffbfe088, 0x1, 0xffbfe084, 0xffbfe078, 0x0), at 0xfe4e8b6c
          [36] JVM_FindClassFromClassLoader(0xfe828000, 0xffbfe100, 0x1, 0xffbfe25c, 0x0, 0x0), at 0xfe4f2780
          [37] Java_java_lang_Class_forName0(0x5a20c, 0xffbfe1e8, 0xffbfe264, 0x1, 0xffbfe25c, 0x0), at 0xfe87c1f8
          [38] 0xfa80bbc8(0xf26141e8, 0xb8, 0xffbfe2e4, 0xfa815030, 0xfa8153e4, 0xffbfe200), at 0xfa80bbc7
          [39] 0xfa805b10(0x5a180, 0xb8, 0x8, 0xfa815398, 0xf64089b8, 0xffbfe280), at 0xfa805b0f
          [40] 0xfa805b10(0xf2431840, 0xf6531a10, 0x8, 0xfa8153a0, 0xf6531a10, 0xffbfe310), at 0xfa805b0f
          [41] 0xfa805fd8(0x5a180, 0xb8, 0xffbfe494, 0xfa8154b0, 0xfa8150c4, 0xffbfe3b0), at 0xfa805fd7
          [42] 0xfa805b10(0xf26101a8, 0xb6, 0x8, 0xfa8153a0, 0xfa8150c4, 0xffbfe430), at 0xfa805b0f
          [43] 0xfa805b10(0xf24f9bf8, 0xb6, 0xffbfe590, 0xfa815030, 0xf6427128, 0xffbfe4b0), at 0xfa805b0f
          [44] 0xfa805c64(0xffbfe598, 0x0, 0x0, 0xfa815030, 0x361240, 0xffbfe530), at 0xfa805c63
          [45] 0xfa800118(0xffbfe624, 0xffbfe848, 0xa, 0xf6522130, 0xfa80aae0, 0xffbfe74c), at 0xfa800117
          [46] JavaCalls::call_helper(0xffbfe840, 0xffbfe6d8, 0xffbfe740, 0x5a180, 0x5a180, 0x5c00), at 0xfe4d4b98
          [47] jni_invoke_nonstatic(0x0, 0xfe83fdf8, 0x4000, 0x4380, 0x5a730, 0xffbfe824), at 0xfe4eb508
          [48] jni_NewObject(0x5a20c, 0x5abf4, 0xe5330, 0x5abf0, 0xff394e30, 0x20380d), at 0xfe5bd65c
          [49] JmsContextCreate(0xffbfeda4, 0x0, 0x0, 0x0, 0xffbfeda0, 0x0), at 0xff36e82c
          =>[50] main(argc = -228825368, argv = 0xf25c66e8), line 68 in "ReadRequestQueue.c"
          (dbx)
          Is there any way to skip over the JMSC function calls?
          Or can I get the source code of jmscapi so that I build it with -g option.
          Thank you in advance for your help.
          -Puja.

Hi Chirag,
In Background Job cases, I think BADI's can not be debugged directly by putting a break point. There is another way round using SM50. Please follow the below link. It may help you.
https://scn.sap.com/thread/1307038

Similar Messages

  • Debugging issue on establishing connection

    Hi,
    after reading all the comments on debugging issues using sql developer i am no step further. It seems i have a different problem.
    I'm using sql developer 1.5.1 on a windows client.
    <ul><li>connection to server is establihed via basic configuration (server, port, sid)</li>
    <li>the code is comiled for debug</li>
    <li>i do no remote debugging</li>
    </ul>
    When the debugging is startet i get the following log:
    connecting to the database XXX.
    Executing PL/SQL: ALTER SESSION SET PLSQL_DEBUG=TRUE
    Executing PL/SQL: ALTER SESSION SET PLSQL_COMPILER_FLAGS=INTERPRETED
    Executing PL/SQL: CALL DBMS_DEBUG_JDWP.CONNECT_TCP( 'xxx.xxx.xxx.xxx', '4283' )
    ORA-30683: Fehler beim Herstellen von Verbindung zu Debugger
    ORA-12570: TNS: Fehler beim Paket-Leser
    ORA-06512: in "SYS.DBMS_DEBUG_JDWP", Zeile 68
    ORA-06512: in Zeile 1
    Process exited.
    Disconnecting from the database XXX.
    (its german, sorry)
    The point is, there is a debug service listening at the named port. If i start al telnet session at the ip and port i get the response: JDWP-Handshake
    It seems the debugging process is not able to reach the db on the server? But why - since the client does?
    Any help is welcome!
    Thanx,
    Cmder

    The way debugging works is that the database session which is running your code, connects back to the debugger running within sqldeveloper. So for debugging to work, the database server needs to be able to connect to your PC.
    Is the IP address in the error message the IP address of you PC? I assume so, since you can telnet to it. If not, try checking the preference "Prompt for debugger host for database debugging" in Tools | Preferences| Debugger.
    If you have access to the database server can you connect back to your PC using telnet?

  • JMS - UserTransaction - Commit issue

    Introduction
    I am moving from WebSphere to Weblogic and have counterd an UserTransaction commit issue.
    The code have not been modified, however the logic in Weblogic and Websphere behaves different.
    The messagingsystem is Websphere MQ, in Weblogic I have QCF, destinations, host and port etc. in a .bindings file, and I have configured JMS server and JMS modules with corresponding jndi names.
    I have verified that this configuration is correct throug a custom develop testtool deployed in WL, message is sent successfully to MQ.
    The problem - description
    However in my application i'm using UserTransaction and this is not working as expected.
    I have two classes that communicate with MQ (AbcDAO.java and QueueBroker.java) AbcDAO.java creates a UserTransaction and communicates with Queuebroker throug a method called "SendToAutoS" this method retrives the corrilationId (for the message sendt to MQ) from Queuebroker.
    The SendMessage method creates qcf, queueconnection, queue etc and sends the message to MQ. When i debug this steps (line:queueSender.send(theMessage) I can verify in MQ that a message count is registerted in mq on the correct queue, but it's not shown (since its not commited). However when performing finalize in Queuebroker, which close both session and connection, the messagecount is gone in MQ, and when returing to AbcDAO.java to perform ut.commit(); there is not any message on Queue.
    For me it looks like the message is rolledback when session and connection closes.
    Actions tried
    If I change this line QueueBroker , transacted to false witch i understand sends message without the need to commit:
    boolean transacted = false;
    queueSession = queueConnection.createQueueSession(transacted, QueueSession.AUTO_ACKNOWLEDGE);
    the message is sendt successfully to MQ. However now either commit or rollback on the UserTransaction is working with transacted=false.
    I need the commit and rollback to be done on the UserTransaction for my application.
    Anyone have an idea why this is not working?
    The files - content
    AbcDAO.java - that creates a usertransaction
    ut = ServiceLocator.getInstance().getUserTransaction();
    ut.begin();
    msgCorId = sendToAutoS(userVO, messageSend, transactionQeueSend, transactionQeueFactory);
    ut.commit();
    //SendToAutoS - that calls the Queuebroker method - sendMessage
    private String sendToAutoS(UserVO userVO, String message, String transactionQueue, String transactionQueueFactory) throws DaoException {
    try {
    log.debug("..");
    return QueueBroker.getInstance().sendMessage(message, transactionQueue, transactionQueueFactory);
    } catch (BrokerException be) {
    log.error("BrokerException", be);
    QueueBroker.java - that sends the message to MQ
    public String sendMessage(String message, String transactionQueue, String transactionQueueFactory) throws BrokerException {
    try {
    // Get service locator
    ServiceLocator sl = ServiceLocator.getInstance();
    // Create QueueConnectionFactory with help form service locator
    queueConnectionFactory = (QueueConnectionFactory) sl.getQueueConnectionFactory(transactionQueueFactory);
    // Create QueueConnection
    queueConnection = queueConnectionFactory.createQueueConnection();
    // Create QueueSession, transacted - client has to commit !
    boolean transacted = true;
    queueSession = queueConnection.createQueueSession(transacted, QueueSession.AUTO_ACKNOWLEDGE);
    // Create queue with help from service locator
    queue = (Queue) sl.getQueue(transactionQueue);
    // Create QueueSender
    queueSender = queueSession.createSender(queue);
    // Create message and sent it
    Message theMessage = null;
    theMessage = queueSession.createTextMessage(message);
    // Log time
    long time = System.currentTimeMillis();
    // Set log time on message
    theMessage.setJMSTimestamp(time);
    // Send
    queueSender.send(theMessage);
    queueSender.close();
    // Return unique messageID for message just been sent
    return theMessage.getJMSMessageID();
    } catch (JMSException je) {
    BrokerException ex = new BrokerException();
    ex.setMessageKey("requisition.jms.broker.queue");
    Object[] o = {"SEND", "String to Autosys = " + message};
    ex.setMessageArgs(o);
    ex.setRootCause(je);
    throw ex;
    } catch (ServiceLocatorException e) {
    BrokerException ex = new BrokerException();
    ex.setMessageKey(e.getMessageKey());
    ex.setMessageArgs(e.getMessageArgs());
    ex.setRootCause(e.getRootCause());
    throw ex;
    } finally {
    // Clean up - close connection and session if exist
    if (queueConnection != null) {
    finalize();
    * Finalize queue handling
    * @throws BrokerException e
    protected void finalize() throws BrokerException {
    try {
    // Close connections
    queueSession.close();
    queueConnection.close();
    } catch (JMSException je) {
    BrokerException ex = new BrokerException();
    ex.setMessageKey("requisition.jms.broker.queue");
    Object[] o = {"FINALIZE", "Close connections" };
    ex.setMessageArgs(o);
    ex.setRootCause(je);
    throw ex;
    Edited by: reZer on 14.sep.2011 13:05
    Edited by: reZer on 14.sep.2011 13:06

    I know you are trying to send a JMS message, but just because this is true the generic JMS forum is not automatically the place you should ask questions like this. Your real beef is with the container you are using (Weblogic), UserTransaction and persistent JMS messages in combination with the specific JMS provider you are using.
    You will have far more chance to get help with this problem if you ask it in the Weblogic forum which you can also find on this very website. If you make a new post, be sure to create a link to it here so people can follow it.
    https://forums.oracle.com/forums/category.jspa?categoryID=193
    And perhaps more specific:
    WebLogic Server - JMS

  • Debugging Issue

    Hello Friends,
    I am a functional consultant and have some issues with sales order.
    When I am creating a sales order and enter data like customer, material , quantiy etc and press enter ..... I get a error with the error message ZZ000.
    I am trying to debug the sales order to understand how this error is occuring and on what conditions it is occuring.
    So before pressing enter ...... I put /h and enter and goes in debugging mode ......
    Here I am not able to understand how do I put break point at the error messages.
    In menumbar there is a menu for break point followed by statements ... Can some one tell me how to put the breakpoint at the error message so that I can exactly go in the code where this message is set and on what conditions its appearing.
    Many thanks
    Screams

    Hi,
    Once you select the Break Points at Satement a Pop up Box will be displayed there write the statement MESSAGE and press Enter or Tick mark in that screen and it will stop at all messages which will be displayed while creating the Sales Order. Try to concentrate on the statement MESSAGE ZZ(000) while debugging the code it will definetly stop there I guess this might be coming from the user exits MV45AFZZ or MV45FZB. Once you find this take the program name displayed in the top of the Debugging Screen (Source Code of) along with the line number in the right side.
    And now go to transaction SE38 give this program name and go to line number and have a look at the logic or else ask any ABAPer to look at it why this meaage is being triggered.
    Let me know in case of any.
    Regards
    SRinivas

  • Post Processing Error - how to debug issue?

    I copied a vanilla report and slightly modified it. the data definition is a vanilla oracle object that is un-changed.
    i copied the data to my desktop and the report runs fine (from the Desktop). However the report fails to produce output when run from the application. I get the following in the log file
    Beginning post-processing of request 15980025 on node RADON17 at 22-MAY-2008 09:07:49.
    Post-processing of request 15980025 failed at 22-MAY-2008 09:07:49 with the error message:
    One or more post-processing actions failed. Consult the OPP service log for details.
    The OPP log does not provide any details.
    [5/22/08 9:07:49 AM] [24053:RT15980025] Executing post-processing actions for request 15980025.
    [5/22/08 9:07:49 AM] [24053:RT15980025] Starting XML Publisher post-processing action.
    [5/22/08 9:07:49 AM] [24053:RT15980025]
    Template code: XXEAMWOREPORT
    Template app: XX
    Language: en
    Territory: US
    Output type: RTF
    [5/22/08 9:07:49 AM] [UNEXPECTED] [24053:RT15980025] java.lang.reflect.InvocationTargetException
         at sun.reflect.GeneratedMethodAccessor33.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at oracle.apps.xdo.common.xml.XSLT10gR1.invokeProcessXSL(XSLT10gR1.java:624)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:421)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:233)
         at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:177)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1044)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:997)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
         at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1659)
         at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:969)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5916)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3452)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3541)
         at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:244)
         at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:172)
    Caused by: java.lang.NullPointerException
         at oracle.xdo.parser.v2.PagedNodeList.readPage(PagedNodeList.java:324)
         at oracle.xdo.parser.v2.PagedNodeList.start(PagedNodeList.java:312)
         at oracle.xdo.parser.v2.XPathFunctionCall.evaluate(XPathFunctionCall.java:540)
         at oracle.xdo.parser.v2.PathExpr.evaluate(XSLNodeSetExpr.java:851)
         at oracle.xdo.parser.v2.XSLForEach.processAction(XSLForEach.java:113)
         at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
         at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
         at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
         at oracle.xdo.parser.v2.XSLForEachGroup.processLazy(XSLForEachGroup.java:622)
         at oracle.xdo.parser.v2.XSLForEachGroup.processAction(XSLForEachGroup.java:97)
         at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
         at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
         at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
         at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
         at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
         at oracle.xdo.parser.v2.XSLForEach.processAction(XSLForEach.java:147)
         at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
         at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
         at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
         at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
         at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
         at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
         at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
         at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
         at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
         at oracle.xdo.parser.v2.XSLTemplate.processAction(XSLTemplate.java:191)
         at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:512)
         at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:489)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:271)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:155)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:192)
         ... 17 more
    [5/22/08 9:07:49 AM] [24053:RT15980025] Completed post-processing actions for request 15980025.
    Any other tools I can use to debug the error??? I'm stuck

    1. Is it possible to get more debug information from the Crystal Engine to help determine which fields/formulae are causing the issue?
    Unfortunately that is it as far as errors.
    2. Does anyone have any initial ideas as to why this might be failing?
    a) Apply the latest Service pack:
    https://smpdl.sap-ag.de/~sapidp/012002523100009038092009E/cr2008win_sp2.exe
    b) In the CR designer, enable Verify on First Refresh and Verify Stored procedures on First Refresh
    c) If the above does not help, as a test create a new win app. All you should need is just the one line of code, no db code. Let the report prompt for the db logon. If the win app works, it's probably a permission issue.
    Ludek

  • JMS content conversion issue

    Hi ,
    I am facing issue in JMS content conversion
    my file looks like as below...
    field1¤field2¤
    field1¤field2¤
    field1¤field2¤
    field1¤field2¤
    in module i have used this
    AF_Modules/MessageTransformBean   PLAIN2XML
    Transform.Class                com.sap.aii.messaging.adapter.Conversion
    Transform.ContentType     text/xml;charset=utf-8
    xml.conversionType           SimplePlain2XML
    xml.documentName            MT_data  
    xml.documentNamespace  http://xyz.com    
    xml.fieldNames                   field1,field2
    xml.fieldSeparator              ¤
    xml.processFieldNames     fromConfiguration
    xml.structureTitle                records
    but i am getting following error
    Error occurred while processing message: . Detailed error (if any):  com.sap.aii.adapter.jms.api.channel.filter.MessageFilterException: Transformer Conversion3.0.5226 Error initializing Class: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: (4408) Parameter xml.fieldFixedLengths or xml.fieldSeparator is missing (4409) Consistency check: no. of arguments in xml.fieldFixedLength does not match xml.fieldNames (0 <> 2) : TransformException: Transformer Conversion3.0.5226 Error initializing Class: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: (4408) Parameter 'xml.fieldFixedLengths' or 'xml.fieldSeparator' is missing (4409) Consistency check: no. of arguments in 'xml.fieldFixedLength' does not match 'xml.fieldNames' (0 <> 2)
    ironically when i use file adapter, its reading the file properly and converting XML as expected?
    Did anyone face this issue.....
    is this issue because of an extra ¤ .. is so... why its not giving issue with File??

    You need an additional hierarchy level:
    root
    -> row
      -> data
    In your example:
    <?xml version="1.0" ?>
    <ns1:HQ_reply_MT xmlns:ns1="urn:abc.com:HQToSAP">
    <b><row></b>
    <Data1> PIPXSDI3070 00000 00342YSDI3070PROCESS_MQSERIES HQXPLOR10 XPLOR.ORDER.RESULTS 0000 000000000000000086312 Invalid Process flag : 2. 065</Data1>
    <b></row></b>
    </ns1:HQ_reply_MT>
    Regards
    Stefan

  • JMS Adapter Config issues with Plan.xml

    Hi All,
    I'm learning how to configure JMS Resources in WLS to use within a JMS adapter in my application. My approach so far has been :
    1. Configure Outbound Connection in JMS Adapter : eis/wls/Queue. I used the weblogic.jms.XAConnectionFactory as the Connection Factory.
    2. Create Queue within SOAJMSModule : jms/MyQueue and target - soa managed server.
    Updated the JMSAdapter.rar deployment and restarted the SOA server as well as the JMS module.
    3. Create JMS Adapter within JDeveloper to use jms/MyQueue as the destination and eis/wls/Queue as the JNDI source.
    On deployment and running, I see this following error. Apologies it is a bit difficult to trawl through. I did have a look in the Plan.xml and it definitely has an entry for this Adapter and the jndi-name. Any other approach?
    Oracle.sysman.emSDK.webservices.wsdlapi.SoapTestException: Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'PostException' failed due to: JCA Binding Component connection issue. JCA Binding Component is unable to create an outbound JCA (CCI) connection. ExceptionManagement:JMSPostException [ PostException_ptt::PostException(body) ] : The JCA Binding Component was unable to establish an outbound JCA CCI connection due to the following issue: BINDING.JCA-12510 JCA Resource Adapter location error. Unable to locate the JCA Resource Adapter via .jca binding file element <connection-factory/> The JCA Binding Component is unable to startup the Resource Adapter specified in the <connection-factory/> element: location='eis/wls/Queue'. The reason for this is most likely that either 1) the Resource Adapters RAR file has not been deployed successfully to the WebLogic Application server or 2) the '<jndi-name>' element in weblogic-ra.xml has not been set to eis/wls/Queue. In the last case you will have to add a new WebLogic JCA connection factory (deploy a RAR). Please correct this and then restart the Application Server Please make sure that the JCA connection factory and any dependent connection factories have been configured with a sufficient limit for max connections. Please also make sure that the physical connection to the backend EIS is available and the backend itself is accepting connections. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. at oracle.sysman.emas.model.wsmgt.WSTestModel.invokeOperation(WSTestModel.java:575) at oracle.sysman.emas.view.wsmgt.WSView.invokeOperation(WSView.java:381) at oracle.sysman.emas.view.wsmgt.WSView.invokeOperation(WSView.java:298) 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:597) at com.sun.el.parser.AstValue.invoke(Unknown Source) at com.sun.el.MethodExpressionImpl.invoke(Unknown Source) at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53) at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1256) at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96) at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:102) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96) at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:96) at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475) at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:765) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:305) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:185) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.help.web.rich.OHWFilter.doFilter(Unknown Source) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.emSDK.license.LicenseFilter.doFilter(LicenseFilter.java:101) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446) at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177) at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.security.wls.filter.SSOSessionSynchronizationFilter.doFilter(SSOSessionSynchronizationFilter.java:276) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.emas.fwk.MASConnectionFilter.doFilter(MASConnectionFilter.java:41) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:175) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.eml.app.AuditServletFilter.doFilter(AuditServletFilter.java:179) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.eml.app.EMRepLoginFilter.doFilter(EMRepLoginFilter.java:203) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.core.model.targetauth.EMLangPrefFilter.doFilter(EMLangPrefFilter.java:158) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.core.app.perf.PerfFilter.doFilter(PerfFilter.java:141) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.eml.app.ContextInitFilter.doFilter(ContextInitFilter.java:542) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111) at java.security.AccessController.doPrivileged(Native Method) at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313) at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413) at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94) at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161) at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(Unknown Source) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(Unknown Source) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120) at weblogic.servlet.internal.WebAppServletContext.securedExecute(Unknown Source) at weblogic.servlet.internal.WebAppServletContext.execute(Unknown Source) at weblogic.servlet.internal.ServletRequestImpl.run(Unknown Source) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207) at weblogic.work.ExecuteThread.run(ExecuteThread.java:176) Caused by: oracle.sysman.emSDK.webservices.wsdlapi.SoapTestException: Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'PostException' failed due to: JCA Binding Component connection issue. JCA Binding Component is unable to create an outbound JCA (CCI) connection. ExceptionManagement:JMSPostException [ PostException_ptt::PostException(body) ] : The JCA Binding Component was unable to establish an outbound JCA CCI connection due to the following issue: BINDING.JCA-12510 JCA Resource Adapter location error. Unable to locate the JCA Resource Adapter via .jca binding file element <connection-factory/> The JCA Binding Component is unable to startup the Resource Adapter specified in the <connection-factory/> element: location='eis/wls/Queue'. The reason for this is most likely that either 1) the Resource Adapters RAR file has not been deployed successfully to the WebLogic Application server or 2) the '<jndi-name>' element in weblogic-ra.xml has not been set to eis/wls/Queue. In the last case you will have to add a new WebLogic JCA connection factory (deploy a RAR). Please correct this and then restart the Application Server Please make sure that the JCA connection factory and any dependent connection factories have been configured with a sufficient limit for max connections. Please also make sure that the physical connection to the backend EIS is available and the backend itself is accepting connections. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. at oracle.sysman.emSDK.webservices.wsdlapi.dispatch.DispatchUtil.invoke(DispatchUtil.java:260) at oracle.sysman.emSDK.webservices.wsdlparser.OperationInfoImpl.invokeWithDispatch(OperationInfoImpl.java:992) at oracle.sysman.emas.model.wsmgt.PortName.invokeOperation(PortName.java:729) at oracle.sysman.emas.model.wsmgt.WSTestModel.invokeOperation(WSTestModel.java:569) ... 81 more Caused by: javax.xml.ws.soap.SOAPFaultException: Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'PostException' failed due to: JCA Binding Component connection issue. JCA Binding Component is unable to create an outbound JCA (CCI) connection. ExceptionManagement:JMSPostException [ PostException_ptt::PostException(body) ] : The JCA Binding Component was unable to establish an outbound JCA CCI connection due to the following issue: BINDING.JCA-12510 JCA Resource Adapter location error. Unable to locate the JCA Resource Adapter via .jca binding file element <connection-factory/> The JCA Binding Component is unable to startup the Resource Adapter specified in the <connection-factory/> element: location='eis/wls/Queue'. The reason for this is most likely that either 1) the Resource Adapters RAR file has not been deployed successfully to the WebLogic Application server or 2) the '<jndi-name>' element in weblogic-ra.xml has not been set to eis/wls/Queue. In the last case you will have to add a new WebLogic JCA connection factory (deploy a RAR). Please correct this and then restart the Application Server Please make sure that the JCA connection factory and any dependent connection factories have been configured with a sufficient limit for max connections. Please also make sure that the physical connection to the backend EIS is available and the backend itself is accepting connections. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. at oracle.j2ee.ws.client.jaxws.DispatchImpl.throwJAXWSSoapFaultException(DispatchImpl.java:1012) at oracle.j2ee.ws.client.jaxws.DispatchImpl.invoke(DispatchImpl.java:803) at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.synchronousInvocationWithRetry(OracleDispatchImpl.java:235) at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.invoke(OracleDispatchImpl.java:106) at oracle.sysman.emSDK.webservices.wsdlapi.dispatch.DispatchUtil.invoke(DispatchUtil.java:256) ... 84 more
    The deployment plan reads as follows :
    <deployment-plan xmlns="http://xmlns.oracle.com/weblogic/deployment-plan" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/weblogic/deployment-plan http://xmlns.oracle.com/weblogic/deployment-plan/1.0/deployment-plan.xsd" global-variables="false">
    <application-name>connectors</application-name>
    <variable-definition>
    <variable>
    <name>ConnectionInstance_eis/wls/Queue_JNDIName_13401799388390</name>
    <value>eis/wls/Queue</value>
    </variable>
    <variable>
    <name>ConfigProperty_ConnectionFactoryLocation_Value_13401801874110</name>
    <value>weblogic.jms.XAConnectionFactory</value>
    </variable>
    </variable-definition>
    <module-override>
    <module-name>JmsAdapter.rar</module-name>
    <module-type>rar</module-type>
    <module-descriptor external="false">
    <root-element>weblogic-connector</root-element>
    <uri>META-INF/weblogic-ra.xml</uri>
    <variable-assignment>
    <name>ConnectionInstance_eis/wls/Queue_JNDIName_13401799388390</name>
    <xpath>/weblogic-connector/outbound-resource-adapter/connection-definition-group/[connection-factory-interface="oracle.tip.adapter.jms.IJmsConnectionFactory"]/connection-instance/[jndi-name="eis/wls/Queue"]/jndi-name</xpath>
    <origin>planbased</origin>
    </variable-assignment>
    <variable-assignment>
    <name>ConfigProperty_ConnectionFactoryLocation_Value_13401801874110</name>
    <xpath>/weblogic-connector/outbound-resource-adapter/connection-definition-group/[connection-factory-interface="oracle.tip.adapter.jms.IJmsConnectionFactory"]/connection-instance/[jndi-name="eis/wls/Queue"]/connection-properties/properties/property/[name="ConnectionFactoryLocation"]/value</xpath>
    </variable-assignment>
    </module-descriptor>
    <module-descriptor external="false">
    <root-element>connector</root-element>
    <uri>META-INF/ra.xml</uri>
    </module-descriptor>
    <module-descriptor external="true">
    <root-element>wldf-resource</root-element>
    <uri>META-INF/weblogic-diagnostics.xml</uri>
    </module-descriptor>
    </module-override>
    <config-root>E:\oracle\product\middleware\11.1.1\soa_11.1\soa\connectors\plan</config-root>
    </deployment-plan>
    Thanks
    JB
    Edited by: 939260 on Jun 20, 2012 5:13 AM

    Hi JB,
    Please follow the below steps from beginning...
    1. Create the JMS Server in the Admin Console, the target server for the same should be the soa server
    2. create new JMS Module.
    3. Create new Connection factory in resources, give your JNDI names, the target servers should be the admin and the soa.
    4. create new queue, give the JNDI names, the target server should be the JMS Server which you have created in the step 1 above.
    5. Now go to deployments, slect the JMS adapter, click update, and say redeploy with the location of JMS-plan.xml given below...
    6. Now inside the composite while configuring the JMS adapter, select the queue which you have created above.
    If you have followed the abpve steps correctly, you should not face any problem.
    Hope this helps,
    N

  • JMS sender adapter issue for encrypted message

    Hello Folks,
    We have JMS to AS2 interface facing issues when JMS sender channel read the encrypted files placed in MQ queue, messages size is
    increasing to almost double when it reaches PI.
    When sending an encrypted message from MQ to AS2, message is showing in success flag but inbound file size is increasing almost double the size, when compared to message size placed in the MQ Queue. When partner is decrypting the message he is getting total garbage values. But it working fine for unencrypted messages,we are getting the same size as it is in MQ queue.
    Can you please trrough some light on the issue not getting excatly issue is in MQ or JMS sender adapter.
    Kind Regards
    Praveen Reddy

    Hi Praveen,
    the issue seems to be with your encryption/decryption mechanism rather then JMS adapter. if you have encrypted file in JMS queue then channel only pick the file and sent to target (i am assuming there is no tranformation). So it will not alter the file size.
    Please check how the file is encrypted before it places in JMS queue.
    regards,
    Harish

  • Can any help on JMS topic timeout issue

    Hi ,
              I am getting following error while reading the messages from JMS queue, can any one help me what time out setting i need to increase at console.
              Thanks in advance
              2005-11-03 05:02:36,839 ERROR ExecuteThread: '2' for queue: 'default' - Remote problem accessing topic
              weblogic.jms.common.LostServerException: weblogic.rjvm.PeerGoneException: ; nested exception is:
              java.io.IOException: A complete message could not be read on socket: 'weblogic.rjvm.t3.T3JVMConnection@6545d2', in th
              e configured timeout period of '60' secs
              at weblogic.jms.client.JMSConnection.jmsPeerGone(JMSConnection.java:917)
              at weblogic.jms.dispatcher.DispatcherWrapperState.peerGone(DispatcherWrapperState.java:703)
              at weblogic.jms.dispatcher.DispatcherWrapperState.callback(DispatcherWrapperState.java:562)
              at weblogic.rjvm.RJVMImpl$HeartbeatMonitorListenerDeliverer.execute(RJVMImpl.java:1554)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
              2005-11-03 05:02:36,843 ERROR ExecuteThread: '2' for queue: 'default' - Lost server, shutting down.
              weblogic.jms.common.LostServerException: weblogic.rjvm.PeerGoneException: ; nested exception is:
              java.io.IOException: A complete message could not be read on socket: 'weblogic.rjvm.t3.T3JVMConnection@6545d2', in th
              e configured timeout period of '60' secs
              at weblogic.jms.client.JMSConnection.jmsPeerGone(JMSConnection.java:917)
              at weblogic.jms.dispatcher.DispatcherWrapperState.peerGone(DispatcherWrapperState.java:703)
              at weblogic.jms.dispatcher.DispatcherWrapperState.callback(DispatcherWrapperState.java:562)
              at weblogic.rjvm.RJVMImpl$HeartbeatMonitorListenerDeliverer.execute(RJVMImpl.java:1554)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
              thanks,
              kiran

    Bunney:
    It is assumed at this point that the report script you use in essbase does NOT contain the greater than signs that the forum inserts.
    As I suggested on your other thread and Glenn has suggested here, the first step is to prototype an excel retrieval and then convert that retrieval into a report script.
    What is not well known by many is that you can use a report script inside excel too. All you need to do is go to the mode tab within essbase options and select free form instead of advanced interpretation (you'll want to revert it back for normal use). In free form mode, the report script can be used in a spreadsheet.
    Of course, the whole idea is to create the normal template that retrieves data, and then create the report script equivalent. So, the idea of using free form is just a way to help verify that you don't have an issue with the report engine itself.

  • Debugging issue with WPF

    Hello,
      I am trying to debug some of my code for a set of WPF buttons.   I am stuck with an issue that I cannot get around.  When I launch the debugger from Visual Studio 2013, I get the following in the web browser:
    An error occurred in the application you were using
    You can try the following:
    Restart the application.
    Click the "More Information" link below for
    details about this error.
    Less Information
    <textarea cols="1" id="errorInfo" readonly="readonly" rows="1" style="width:752px;height:650px;display:block;" wrap="off">Startup URI: \\mrm2inc.com\Users\Michael.Mastro2\Documents\Visual
    Studio 2013\Projects\HomeInventoryWebForms\HomeInventoryWebForms\bin\Debug\HomeInventoryWebForms.xbap Application Identity: file://mrm2inc.com/Users/Michael.Mastro2/Documents/Visual%20Studio%202013/Projects/HomeInventoryWebForms/HomeInventoryWebForms/bin/Debug/HomeInventoryWebForms.xbap#HomeInventoryWebForms.xbap,
    Version=1.0.0.0, Culture=neutral, PublicKeyToken=fc075058c6cf26e0, processorArchitecture=msil/HomeInventoryWebForms.exe, Version=1.0.0.0, Culture=neutral, PublicKeyToken=fc075058c6cf26e0, processorArchitecture=msil, type=win32 System.Security.Policy.PolicyException:
    Execution permission cannot be acquired. at System.Runtime.Hosting.ApplicationActivator.CreateInstanceHelper(AppDomainSetup adSetup) at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext, String[] activationCustomData)
    at System.Windows.Interop.PresentationApplicationActivator.CreateInstance(ActivationContext actCtx) at System.Activator.CreateInstance(ActivationContext activationContext) at System.Windows.Interop.ApplicationLauncherXappDebug.Initialize() at System.Windows.Interop.DocObjHost.MS.Internal.AppModel.IBrowserHostServices.Run(String
    path, String fragment, MimeType mime, String debugSecurityZoneURL, String applicationId, Object streamContainer, Object ucomLoadIStream, HostingFlags hostingFlags, INativeProgressPage nativeProgressPage, String progressAssemblyName, String progressClassName,
    String errorAssemblyName, String errorClassName, IHostBrowser hostBrowser) ----------------------- PresentationHost.exe v4.0.41210.0 built by: Main - C:\Windows\SysWOW64\PresentationHost.exe ntdll.dll v6.3.9600.17031 (winblue_gdr.140221-1952) - C:\Windows\SYSTEM32\ntdll.dll
    KERNEL32.DLL v6.3.9600.17031 (winblue_gdr.140221-1952) - C:\Windows\SYSTEM32\KERNEL32.DLL KERNELBASE.dll v6.3.9600.17031 (winblue_gdr.140221-1952) - C:\Windows\SYSTEM32\KERNELBASE.dll ADVAPI32.dll v6.3.9600.16384 (winblue_rtm.130821-1623) - C:\Windows\SYSTEM32\ADVAPI32.dll
    USER32.dll v6.3.9600.16384 (winblue_rtm.130821-1623) - C:\Windows\SYSTEM32\USER32.dll msvcrt.dll v7.0.9600.17415 (winblue_r4.141028-1500) - C:\Windows\SYSTEM32\msvcrt.dll ole32.dll v6.3.9600.16384 (winblue_rtm.130821-1623) - C:\Windows\SYSTEM32\ole32.dll OLEAUT32.dll
    v6.3.9600.17415 - C:\Windows\SYSTEM32\OLEAUT32.dll mscoree.dll v6.3.9600.16384 (winblue_rtm.130821-1623) - C:\Windows\SYSTEM32\mscoree.dll SHLWAPI.dll v6.3.9600.16384 (winblue_rtm.130821-1623) - C:\Windows\SYSTEM32\SHLWAPI.dll WININET.dll v11.00.9600.16384
    (winblue_rtm.130821-1623) - C:\Windows\SYSTEM32\WININET.dll urlmon.dll v11.00.9600.16384 (winblue_rtm.130821-1623) - C:\Windows\SYSTEM32\urlmon.dll SHELL32.dll v6.3.9600.17031 (winblue_gdr.140221-1952) - C:\Windows\SYSTEM32\SHELL32.dll sechost.dll v6.3.9600.16384
    (winblue_rtm.130821-1623) - C:\Windows\SYSTEM32\sechost.dll RPCRT4.dll v6.3.9600.16384 (winblue_rtm.130821-1623) - C:\Windows\SYSTEM32\RPCRT4.dll GDI32.dll v6.3.9600.17415 (winblue_r4.141028-1500) - C:\Windows\SYSTEM32\GDI32.dll combase.dll v6.3.9600.16384
    (winblue_rtm.130821-1623) - C:\Windows\SYSTEM32\combase.dll iertutil.dll v11.00.9600.16384 (winblue_rtm.130821-1623) - C:\Windows\SYSTEM32\iertutil.dll USERENV.dll v6.3.9600.16384 (winblue_rtm.130821-1623) - C:\Windows\SYSTEM32\USERENV.dll SspiCli.dll v6.3.9600.17415
    (winblue_r4.141028-1500) - C:\Windows\SYSTEM32\SspiCli.dll profapi.dll v6.3.9600.17415 (winblue_r4.141028-1500) - C:\Windows\SYSTEM32\profapi.dll CRYPTBASE.dll v6.3.9600.17415 (winblue_r4.141028-1500) - C:\Windows\SYSTEM32\CRYPTBASE.dll bcryptPrimitives.dll
    v6.3.9600.17415 (winblue_r4.141028-1500) - C:\Windows\SYSTEM32\bcryptPrimitives.dll IMM32.DLL v6.3.9600.17415 (winblue_r4.141028-1500) - C:\Windows\system32\IMM32.DLL MSCTF.dll v6.3.9600.16384 (winblue_rtm.130821-1623) - C:\Windows\SYSTEM32\MSCTF.dll shcore.dll
    v6.3.9600.16384 (winblue_rtm.130821-1623) - C:\Windows\SYSTEM32\shcore.dll PresentationHost_v0400.dll v4.0.30319.33440 built by: FX45W81RTMREL - C:\Windows\Microsoft.NET\Framework\v4.0.30319\WPF\PresentationHost_v0400.dll MSVCR120_CLR0400.dll v12.00.51670.34230
    built by: FX452RTMGDR - C:\Windows\SYSTEM32\MSVCR120_CLR0400.dll VERSION.dll v6.3.9600.17415 (winblue_r4.141028-1500) - C:\Windows\SYSTEM32\VERSION.dll PSAPI.DLL v6.3.9600.17415 (winblue_r4.141028-1500) - C:\Windows\SYSTEM32\PSAPI.DLL kernel.appcore.dll v6.3.9600.17415
    (winblue_r4.141028-1500) - C:\Windows\SYSTEM32\kernel.appcore.dll uxtheme.dll v6.3.9600.16384 (winblue_rtm.130821-1623) - C:\Windows\system32\uxtheme.dll ltc_help32-91954.dll v1, 0, 0, 1 - C:\PROGRA~2\Raptr\ltc_help32-91954.dll WINTRUST.dll v6.3.9600.17415
    (winblue_r4.141028-1500) - C:\Windows\SYSTEM32\WINTRUST.dll CRYPT32.dll v6.3.9600.16431 (winblue_gdr.131015-2301) - C:\Windows\SYSTEM32\CRYPT32.dll MSASN1.dll v6.3.9600.17415 (winblue_r4.141028-1500) - C:\Windows\SYSTEM32\MSASN1.dll clbcatq.dll v2001.12.10530.17415
    (winblue_r4.141028-1500) - C:\Windows\SYSTEM32\clbcatq.dll CRYPTSP.dll v6.3.9600.17415 (winblue_r4.141028-1500) - C:\Windows\SYSTEM32\CRYPTSP.dll rsaenh.dll v6.3.9600.16384 (winblue_rtm.130821-1623) - C:\Windows\system32\rsaenh.dll bcrypt.dll v6.3.9600.16384
    (winblue_rtm.130821-1623) - C:\Windows\SYSTEM32\bcrypt.dll ieproxy.dll v11.00.9600.17496 (winblue_r5.141121-1500) - C:\Program Files (x86)\Internet Explorer\ieproxy.dll PROPSYS.dll v7.00.9600.17031 (winblue_gdr.140221-1952) - C:\Windows\SYSTEM32\PROPSYS.dll
    dfshim.dll v6.3.9600.16384 (winblue_rtm.130821-1623) - C:\Windows\SYSTEM32\dfshim.dll mscoreei.dll v4.0.30319.34209 built by: FX452RTMGDR - C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscoreei.dll clr.dll v4.0.30319.34209 built by: FX452RTMGDR - C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
    Secur32.dll v6.3.9600.17415 (winblue_r4.141028-1500) - C:\Windows\SYSTEM32\Secur32.dll dwmapi.dll v6.3.9600.16384 (winblue_rtm.130821-1623) - C:\Windows\system32\dwmapi.dll msxml3.dll v8.110.9600.17415 - C:\Windows\System32\msxml3.dll actxprxy.dll v6.3.9600.17416
    (winblue_r4.141030-1500) - C:\Windows\SYSTEM32\actxprxy.dll sxs.dll v6.3.9600.16384 (winblue_rtm.130821-1623) - C:\Windows\SYSTEM32\sxs.dll PresentationHostProxy.dll v6.3.9600.16384 (winblue_rtm.130821-1623) - C:\Windows\SYSTEM32\PresentationHostProxy.dll
    comctl32.dll v6.10 (winblue_rtm.130821-1623) - C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.9600.17415_none_a9ed7f470139b3c1\comctl32.dll mscorlib.ni.dll v4.0.30319.34209 built by: FX452RTMGDR - C:\Windows\assembly\NativeImages_v4.0.30319_32\mscorlib\d03a3ddcd6a395878751c5e90fa16915\mscorlib.ni.dll
    System.ni.dll v4.0.30319.34239 built by: FX452RTMGDR - C:\Windows\assembly\NativeImages_v4.0.30319_32\System\1a6b5095c4416a37f9ca4cf4436d1311\System.ni.dll WindowsBase.ni.dll v4.0.30319.34209 built by: FX452RTMGDR - C:\Windows\assembly\NativeImages_v4.0.30319_32\WindowsBase\bb26d987467eca70ebc4beec29158d67\WindowsBase.ni.dll
    PresentationCore.ni.dll v4.0.30319.34209 built by: FX452RTMGDR - C:\Windows\assembly\NativeImages_v4.0.30319_32\PresentationCore\24f6c80242420a1cea5cc254bf420027\PresentationCore.ni.dll PresentationFramework.ni.dll v4.0.30319.34209 - C:\Windows\assembly\NativeImages_v4.0.30319_32\Presentatio5ae0f00f#\4136b9a7a05c8f0e2c7e15600bc20b1b\PresentationFramework.ni.dll
    dwrite.dll v6.3.9600.16384 (winblue_rtm.130821-1623) - C:\Windows\SYSTEM32\dwrite.dll wpfgfx_v0400.dll v4.0.30319.34209 built by: FX452RTMGDR - C:\Windows\Microsoft.NET\Framework\v4.0.30319\WPF\wpfgfx_v0400.dll PresentationNative_v0400.dll v4.0.30319.33440
    built by: FX45W81RTMREL - C:\Windows\Microsoft.NET\Framework\v4.0.30319\WPF\PresentationNative_v0400.dll System.Xaml.ni.dll v4.0.30319.34209 built by: FX452RTMGDR - C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Xaml\d626184834dde3f4906aff139d4e5bbf\System.Xaml.ni.dll
    clrjit.dll v4.0.30319.34209 built by: FX452RTMGDR - C:\Windows\Microsoft.NET\Framework\v4.0.30319\clrjit.dll System.Xml.ni.dll v4.0.30319.34230 built by: FX452RTMGDR - C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Xml\9a349fb029581f4752d2c6cfcfeab816\System.Xml.ni.dll
    System.Drawing.ni.dll v4.0.30319.34209 built by: FX452RTMGDR - C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Drawing\d91798a9a9fcb450351fe8e49026a69f\System.Drawing.ni.dll System.Windows.Forms.ni.dll v4.0.30319.34209 built by: FX452RTMGDR - C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Windows.Forms\a4d2243df4af8ab65ff74d436d449789\System.Windows.Forms.ni.dll
    System.Security.ni.dll v4.0.30319.34209 built by: FX452RTMGDR - C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Security\d72f65a6622be86134ba8c534acc10e5\System.Security.ni.dll System.Core.ni.dll v4.0.30319.34209 built by: FX452RTMGDR - C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Core\794a3d83e77a53d6fc029c389f9cc408\System.Core.ni.dll
    System.Deployment.ni.dll v4.0.30319.34243 built by: FX452RTMGDR - C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Deployment\84fa9fa9c4be29612f8d268246a0353c\System.Deployment.ni.dll System.Configuration.ni.dll v4.0.30319.34209 built by: FX452RTMGDR
    - C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Configuration\b5b80f1284dfa1b883da48ed58ecbc47\System.Configuration.ni.dll gpapi.dll v6.3.9600.16384 (winblue_rtm.130821-1623) - C:\Windows\SYSTEM32\gpapi.dll ncrypt.dll v6.3.9600.16384 (winblue_rtm.130821-1623)
    - C:\Windows\SYSTEM32\ncrypt.dll NTASN1.dll v6.3.9600.16384 (winblue_rtm.130821-1623) - C:\Windows\SYSTEM32\NTASN1.dll diasymreader.dll v12.0.20806.33440 built by: FX45W81RTMREL - C:\Windows\Microsoft.NET\Framework\v4.0.30319\diasymreader.dll uiautomationcore.dll
    v7.2.9600.16384 (winblue_rtm.130821-1623) - C:\Windows\System32\uiautomationcore.dll </textarea>
    Anyone have any ideas how to get around this issue, or fix the issue?
    Michael R. Mastro II

    You need to be able to debug your code.
    This is a key ability.
    So key that this is the first thing you should be thinking about with any development ( which isn't trivial. ).
    Work out how to debug your application.
    Stick break points in there and explore what is going on.
    https://nirajrules.wordpress.com/2008/06/11/debugging-an-xbap-wcf-application-%E2%80%93-windows-vista-vsnet-2008/
    Hope that helps.
    Recent Technet articles:
    Property List Editing ;  
    Dynamic XAML

  • 5.1.3 Java Collaboration Debug issues...

    Hi All,
    JCAPS Newbie here.
    I've setup debugging for Java Collaboration's deployed on a logical host.
    It seems to work as I can step through the code, except it's just not behaving as I expected with regards to hitting breakpoints & stepping over some methods.
    In a nutshell ...
    1) It doesn't stop on the breakpoints I set.
    2) It always stops in method log( LOG_LEVEL_DEBUG, "xxx" ); when I click "GO" or StepOver???
    Has anyone else seen this behaviour?
    Any ideas about how to get it working correctly???
    Thanks,
    Ken

    FYI...
    This is a known issue with eDesigner,
    I have E-mailed you a Hotfix to apply to your environment which is doing the debugging.
    I have also included a ReadMe which explains how to install the ESR
    Sun Java CAPS Support.

  • Remote debugging issue: Address already in use

    First, I want to explain that to use remote debugging in oracle UCM server (IdcServerNT.exe), I add these lines at */server/bin/intradoc.cfg*:
    JAVA_OPTIONS_debug_enable=-Xdebug
    JAVA_OPTIONS_debug_options=-Xrunjdwp:transport=dt_socket,server=y,address=8000,suspend=n
    and since the JAVA_OPTIONS is shared between admin server (IdcAdminNT.exe) and non-admin server (IdcServerNT.exe), to prevent "Address already in use" error, I added same lines but with empty value into */server/admin/bin/intradoc.cfg*:
    JAVA_OPTIONS_debug_enable=
    JAVA_OPTIONS_debug_options=
    or alternatively enable it but use different port for the "address=xxx".
    Now the issue is when I had run the non-admin UCM server with remote debugging enabled, then I tried to run the Component Wizard, I got "Address already in use" error:
    ERROR: transport error 202: bind failed: Address already in use ["transport.c",L41]
    I found out that's possible because Component Wizard (ComponentWizard.exe) is using same setting file with non-admin server (IdcServerNT.exe): */server/bin/intradoc.cfg*. It's obvious that happened because of ComponentWizard.exe is in same location with IdcServerNT.exe, so I think other tools like Batch Loader and System Properties will be affected with same issue too.
    Because of this issue, everytime I want to open Component Wizard, I had to stop the non-admin server which is inconvenient.
    So, the question is there a way to define separately or disable the JAVA_OPTIONS_debug_enable & JAVA_OPTIONS_debug_options for Component Wizard?

    WillT wrote:
    My run method was being called somewhere else and I can't find out whereOkay, but changing from implementing Runnable to extending Thread won't change that one whit. You must've also changed something else.
    Extending Thread is the wrong approach, since you're not creating a special kind of Thread.

  • IOS/AIR Running and Debugging Issues with Flash Builder

    I'm having very frustrating intermittent issues running and debugging Flex applications on an iPad 3rd generation retina with Flash Builder 4.7.
    Until this morning, launching on device using both standard and fast packaging worked pretty well. Every now and again, I'd get a dialog saying the packaging had completed successfully, but it hadn't. A quick change of the USB cable to another port on my iMac and it started working again. I'd also randomly get a "Error occurred while installing the application: Invalid <device> specified" error, which quickly went away.
    This morning, with the same code base, the same certificate and provisioning profiles, Flash Builder has only managed to successfully package and run my application on my iPad twice and I must have attempted to launch fifty or so times. Standard packaging, fast packaging and with and without the useLegacyAOT.
    Does this sound like a Flash Builder issue? Is my iMac USB driver dodgy? Has anybody else experienced this?
    Any help greatly welcomed!
    Thanks,
    Simon

    Hi I have had this problem sometimes. With my Mac Book Pro.
    Try making a new flex application and see if you have the same result.
    When I had this problem I created a new Application and copied every thing from my other application.
    This my be a hard solution but I don't no any others.

  • Debug Issue

    Hi,
    Task: I am trying to debug BAPI/FM to see when exactly IDOC is getting triggered.
    Technic: ALE Distribution model setup
    when I Confirm TO its triggering IDOC(IDOC Message Type SHP_IBDLV_CONFIRM_DECENTRAL underlying BAPI is BAPI_INB_DELIVERY_CONFIRM_DEC )
    Problem facing : when I do Confirm TO i am keeping break point in BAPI_INB_DELIVERY_CONFIRM_DEC and MASTER_IDOC_DISTRIBUTE  both the FM/BAPI but not stopping.
    Please help me to debug this.
    Thanks
    Sarath

    Hi Thanks for all the suggissions but nothing worked. Again I am trying to find when exactley IDOC is getting triggered
    Just to check I have deleted BAPI SHP_IBDLV_CONFIRM_DECENTRAL (underlying BAPI BAPI_INB_DELIVERY_CONFIRM_DEC) in ALE distribution Model.
    Below is the Error message I got, hope you can guide me in correct path for debugging to find out when exactley IDOC is getting triggered.
    No recipient could be determined for object BUS2015 method CONFIRMDECENTRAL
        Message no. VLBAPI005
    Diagnosis
        The distribution model for decentralized Warehouse Management System
        (decentralized WMS) is not set up correctly with reference to the
        recipient determination for object BUS2015 method CONFIRMDECENTRAL. This
        means that the system cannot determine a recipient for object BUS2015
        method CONFIRMDECENTRAL.
    System Response
        The system reacts by issuing a warning message, or by terminating
        processing in critical situations. If a warning message is issued,
        changes are made to the object. If processing is terminated, the object
        retains its original status.
    Procedure
        Inform your system administrator. After the distribution model has been
        corrected with regards to recipient determination for object BUS2015
        method CONFIRMDECENTRAL, you can save the document and then restart
        distribution or repeat the workstep that was canceled.
    Procedure for System Administration
        The system attempts to determine a recipient for object BUS2015 method
        CONFIRMDECENTRAL using the filter object types WHSE_NO. The system
        cannot determine a recipient. Define a filter object type WHSE_NO with a
        valid filter value for recipient determination for object BUS2015 method
        CONFIRMDECENTRAL.

  • JDeveloper debug issues

    Hi Gurus,
    I gotta problem here with Jdev(Java 1.4, Struts, OC4J), I'm trying to debug a java 'trans' class, and when the process enters to the class, the console dont show the println and doesnt concat the strings and also, dont execute the vo query well, I have program many other classes and they run and debug without any problem or issue, what can be the issue here ?
    heres my action method:
    public class RepVisitasAction extends DispatchAction {
    public RepVisitasAction() {
    public ActionForward generarReporte (ActionMapping mapping, ActionForm form,
    HttpServletRequest request,
    HttpServletResponse response) throws IOException,
    ServletException {
    AccessControlMgr ac = new AccessControlMgr();
    if (ac.isValidSession(request) == false) {
    return mapping.findForward("accessControl");
    RepVisitasForm repForm = null;
    String fwd="reporteVisitas";
    repForm = (RepVisitasForm)form;
    String zona = repForm.getZonaSelected();
    String crs = getTiendasPorZona(zona);
    XxtaReporteVisitasTransactionsAlter trans = null;
    DateFormat format;
    Date ini;
    Date fin;
    SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
    try{   
    trans = new XxtaReporteVisitasTransactionsAlter();
    format = new SimpleDateFormat("yyyy-MM-dd");
    ini = (Date)format.parse(repForm.getFechaInicialSelected());
    fin = (Date)format.parse(repForm.getFechaFinalSelected());
    String periodo = "'" + sdf.format(ini) + "' AND '" + sdf.format(fin) + "'";
    request.getSession().setAttribute("periodo", periodo);
    ArrayList nivel1 = new ArrayList();
    nivel1 = trans.getReporte1(crs,periodo);
    repForm.setNivel1(nivel1);
    repForm.setLevel("2");
    catch(Exception ex){
    ex.printStackTrace();
    finally{
    trans.releaseConnection();
    return mapping.findForward(fwd);
    private String getTiendasPorZona(String zona){
    XxtaReporteVisitasTransactionsAlter trans = null;
    String crs = null;
    try{
    trans = new XxtaReporteVisitasTransactionsAlter();
    crs = trans.getTiendasPorZona(zona);
    }catch(Exception ex){
    ex.printStackTrace();
    }finally{
    trans.releaseConnection();
    return crs;
    heres my trans code:
    public class XxtaReporteVisitasTransactionsAlter extends XxtaBaseTransactions {
    private static final String queryZonas1 = "select * from (SELECT p.zona, (SELECT COUNT(pv.cr_tienda) FROM cnt_tiendas_x_plaza_v pv INNER JOIN xxta_zonas zo ON (zo.nombre_zona = pv.zona) WHERE pv.zona = p.zona) AS total_tiendas, COUNT(DISTINCT v.cr_tienda) AS tiendas_encuestadas, round((COUNT(DISTINCT v.cr_tienda) * 100 / GREATEST((SELECT COUNT(pv.cr_tienda) FROM cnt_tiendas_x_plaza_v pv INNER JOIN xxta_zonas zo ON (zo.nombre_zona = pv.zona) WHERE pv.zona = p.zona), 1)),2) AS porcentaje_tiendas_encues, COUNT(DISTINCT a.enc_id) AS encuestas_realizadas FROM xxta_control_visitas v INNER JOIN xxta_control_enc_answers a ON (v.doc_id = a.doc_id) RIGHT JOIN cnt_tiendas_x_plaza_v tp ON (v.cr_tienda = tp.cr_tienda) INNER JOIN cnt_distritos_x_plaza_v p ON (p.plaza = v.cr_plaza) ";
    private static final String queryZonas2 = " GROUP BY p.zona )";
    private static final String queryPlazas1 = "SELECT tp.plaza, (SELECT COUNT(p.cr_tienda) FROM cnt_tiendas_x_plaza_v p) AS total_tiendas, COUNT(DISTINCT v.cr_tienda) AS tiendas_encuestadas, round((COUNT(DISTINCT v.cr_tienda) * 100 / GREATEST((SELECT COUNT(p.cr_tienda) FROM cnt_tiendas_x_plaza_v p),1)),2) AS porcentaje_tiendas_encues, COUNT(DISTINCT a.enc_id) AS encuestas_realizadas FROM xxta_control_visitas v INNER JOIN xxta_control_enc_answers a ON (v.doc_id = a.doc_id) RIGHT JOIN cnt_tiendas_x_plaza_v tp ON (v.cr_tienda = tp.cr_tienda) ";
    private static final String queryPlazas2 = " GROUP BY tp.plaza";
    private static final String queryDtos1 = "SELECT p.distrito, p.id_distrito, (SELECT COUNT(pv.cr_tienda) FROM cnt_tiendas_x_plaza_v pv WHERE pv.distrito = p.distrito) AS total_tiendas, COUNT(DISTINCT v.cr_tienda) AS tiendas_encuestadas, round((COUNT(DISTINCT v.cr_tienda) * 100 / GREATEST((SELECT COUNT(pv.cr_tienda) FROM cnt_tiendas_x_plaza_v pv WHERE pv.distrito = p.distrito), 1)),2) AS porcentaje_tiendas_encues, COUNT(DISTINCT a.enc_id) AS encuestas_realizadas FROM xxta_control_visitas v INNER JOIN xxta_control_enc_answers a ON (v.doc_id = a.doc_id) RIGHT JOIN cnt_tiendas_x_plaza_v tp ON (v.cr_tienda = tp.cr_tienda) INNER JOIN cnt_distritos_x_plaza_v p ON (p.plaza = v.cr_plaza) ";
    private static final String queryDtos2 = " GROUP BY p.distrito, p.id_distrito";
    public XxtaReporteVisitasTransactionsAlter() {
    public String getTiendasPorZona(String zona){
    XxtaTiendaPorZonaViewImpl vo = null;
    String cadena = "";
    try{
    vo = (XxtaTiendaPorZonaViewImpl)XxtaModule.findViewObject("XxtaTiendaPorZonaView");
    vo.clearCache();
    vo.setRangeSize(-1);
    if(!zona.equalsIgnoreCase("todos")){
    vo.setWhereClause("zona = '" + zona + "' ");
    vo.executeQuery();
    Row[] row = vo.getAllRowsInRange();
    for(int i = 0; i < row.length; i++){
    XxtaTiendaPorZonaViewRowImpl vor = (XxtaTiendaPorZonaViewRowImpl)row;
    if(!cadena.equalsIgnoreCase("")){
    cadena += ",'" + vor.getCrTienda() + "'";
    }else{
    cadena += "'" + vor.getCrTienda() + "'";
    }catch(Exception ex){
    ex.printStackTrace();
    }finally{
    if(vo != null){
    vo.closeRowSet();
    return cadena;
    public ArrayList getReporte1(String crs, String periodo){
    XxtaRepVisitasZonaViewImpl vo = null;
    ArrayList list = null;
    StringBuffer query = new StringBuffer();
    int totalTiendas = 0;
    int tiendasEnc = 0;
    int por1 = 0;
    int tiendasSin = 0;
    int totalInv = 0;
    int totalEnc = 0;
    int encInv = 0;
    try{
    if(!crs.equalsIgnoreCase("")){
    query.append(queryZonas1).append(" WHERE v.cr_tienda IN (").append(crs).append(") AND a.tienda_end_date BETWEEN ").append(periodo).append(queryZonas2);
    //query = queryZonas1 + " WHERE v.cr_tienda IN (" + crs + ") AND a.tienda_end_date BETWEEN " + periodo + queryZonas2;
    }else{
    query.append(queryZonas1).append(" WHERE a.tienda_end_date BETWEEN ").append(periodo).append(queryZonas2);
    //query = queryZonas1 + " WHERE a.tienda_end_date BETWEEN " + periodo + queryZonas2;
    vo = (XxtaRepVisitasZonaViewImpl)XxtaModule.findViewObject("XxtaRepVisitasZonaView");
    vo.clearCache();
    vo.setRangeSize(-1);
    //System.out.println("Query: " + query.toString());
    vo.setQuery(query.toString());
    System.out.println(vo.getQuery());
    vo.executeQuery();
    Row[] row = vo.getAllRowsInRange();
    list = new ArrayList();
    for(int i = 0; i < row.length; i++){
    XxtaRepVisitasZonaViewRowImpl vor = (XxtaRepVisitasZonaViewRowImpl)row[i];
    ReporteVisitasBean bean = new ReporteVisitasBean();
    bean.setZona(vor.getZona());
    bean.setTotalTiendas(vor.getTotalTiendas().toString());
    bean.setTiendasEncuestadas(vor.getTiendasEncuestadas().toString());
    int ti = Integer.parseInt(vor.getTotalTiendas().toString()) - Integer.parseInt(vor.getTiendasEncuestadas().toString());
    int por = (Integer.parseInt(vor.getTiendasEncuestadas().toString()) / Integer.parseInt(vor.getTotalTiendas().toString())) * 100;
    bean.setPorcentajeTiendas("%" + String.valueOf(por));
    bean.setTiendasSinEncuestas(String.valueOf(ti));
    bean.setPorcentajeTiendasSin("%" + String.valueOf(100-por));
    String invRea = getInventariosRealizados("(" + crs + ")");
    bean.setInventariosRealizados(invRea);
    bean.setEncuestasRealizadas(vor.getEncuestasRealizadas().toString());
    int per = (Integer.parseInt(vor.getEncuestasRealizadas().toString())/Integer.parseInt(invRea));
    bean.setEncuestasPorInventarios("%" + String.valueOf(per));
    list.add(bean);
    totalTiendas += Integer.parseInt(vor.getTotalTiendas().toString());
    tiendasEnc += Integer.parseInt(vor.getTiendasEncuestadas().toString());
    por1 += por;
    tiendasSin += ti;
    totalInv += Integer.parseInt(invRea);
    totalEnc += Integer.parseInt(vor.getEncuestasRealizadas().toString());
    encInv += per;
    if(list.size() > 0){
    ReporteVisitasBean bean = new ReporteVisitasBean();
    bean.setZona("TOTAL TIENDAS");
    bean.setTotalTiendas(String.valueOf(totalTiendas));
    bean.setTiendasEncuestadas(String.valueOf(tiendasEnc));
    bean.setPorcentajeTiendas(String.valueOf(por1/list.size()));
    bean.setTiendasSinEncuestas(String.valueOf(tiendasSin));
    bean.setPorcentajeTiendasSin(String.valueOf(String.valueOf(100 - Integer.parseInt(bean.getPorcentajeTiendas()))));
    bean.setEncuestasRealizadas(String.valueOf(totalEnc));
    bean.setInventariosRealizados(String.valueOf(totalInv));
    bean.setEncuestasPorInventarios(String.valueOf(String.valueOf(encInv/list.size())));
    list.add(bean);
    }catch(Exception ex){
    ex.printStackTrace();
    System.out.println(ex.getMessage());
    }finally{
    if(vo != null){
    vo.closeRowSet();
    return list;
    I hope you can help with these problems, I checked the code and doesn't look wrong, I think it might be some malfunction of the IDE (Jdev)
    Best Regards,
    Mentor

    Halim,
    Instead of deleting some cash, you could just give it to me ;)
    Sorry, couldn't resist...
    When you say "tons of modules," what do you mean? Are you talking about design-time or run-time performance? Does stopping the embedded OC4J help?
    John

Maybe you are looking for

  • Costing variant and production version

    We have two costing variants "C" (used to create current cost estimates) and "F" (Used to create Future cost estimate). All of the production versions in the system have a validity date of 9999. Is there a way to tell the system to use one production

  • Changing audio channels

    Hi there... Someone edited a sequence for me in Premiere.  The audio was recorded 4 channel on a external recorder (four mics were used). At times, he used the wrong channel in the timeline. I believe what he did was take all the channel one audio an

  • Constructor has been deprecated

    Hi , I'm getting the following warning...because of this piece of code Date dtExpiryDate = new Date(strExpiryDate); Warning(149,33): constructor Date(java.lang.String) in class java.util.Date has been deprecated Can some one help me how to resolve th

  • Jax-rpc and rmi confusion

    I'm new to the jax-rpc, and I'm very confused about jax-rpc, if it is using RPC (remote precedure call), why we have to import java.rmi.Remote ? is it somewhere still using RMI? Thank you in advance for you answer!

  • Software Update fails and shows errors in console (No Leopard 10.5.3)

    I have a MacMini with Leopard installed with boxed DVD last november (upgrade from Tiger). Every update (apps and system went fine since them). I haven't got the java update 6 since my processor is a Core Duo and not a Core 2 Duo. Since it's availabi