Jdeveloper Debugging Questions.

Hi All
I have a customer who has logged a SR with the following questions, may I please request one of developers to review these questions
Problem-1
When running OA framework pages from JDeveloper, is there a way to get the personalizations on the pages availabe while debugging. The pages I am able to run do not have the personalizations so cannot accurately run the page.
For iProcurement,I downloaded the pages from $ICX_TOP/mds. However the customizations done on these pages at the site/responsibility level are stored under the customizations path so not sure how to get these reflected on the downloaded seeded framework page.
Problem-2
I have a Descriptive Flexfield added on the OA Framework page. This DFF is comprising of multiple segments. I need to know a way to get the number of the child segment. [Descflex1, Descflex2 etc] to control the behavior of individual segment. Example - We have a DFF on the PO Requisition Lines comprising of 7 segments. I want to know how to get the positions of individual 7 segments.
Cheers
Roy

Hi Roy,
Problem-2
I have a Descriptive Flexfield added on the OA Framework page. This DFF is comprising of multiple segments. I need to know a way to get the number of the child segment. Descflex1, Descflex2 etc to control the behavior of individual segment. Example - We have a DFF on the PO Requisition Lines comprising of 7 segments. I want to know how to get the positions of individual 7 segments
You can get the number of child segments as :
OADescriptiveFlexBean Bean = (OADescriptiveFlexBean)webBean.findChildRecursive("testdff");
int number = Bean .getIndexedChildCount(null);
Thanks,
Gaurav

Similar Messages

  • NoClassDefFoundError: in JDeveloper debug mode

    Hi all.
    I have a strange problem. Only one JSP in my entire application fails to appear when I debug with local (embeded) OC4J. These are the first lines of the exception message:
    Exception:
    java.lang.NoClassDefFoundError: _addFile
         java.lang.Class java.lang.ClassLoader.defineClass0(java.lang.String, byte[], int, int, java.security.ProtectionDomain)
              native code
    The class _addFile is generated from addFile.jsp and is available in the output directory. Production application doesn't display the same behavior, this only happens in DEBUG mode in JDeveloper.
    OS: win2000
    JDK: 1.3.1
    JDevaloper is 9.0.2.. something.
    Thanks people.

    A few quick questions:
    1. Can you run (not debug) the application?
    2. Have you tried specifically compiling the file addfile.jsp in JDeveloper? - This will usually show the error before attempting to
    run it.
    To do this, select the file in the navigator and do a right-click Rebuild or Make..

  • OracleJSP exception in JDeveloper debug mode

    Hi all.
    I have a strange problem. Only one JSP in my entire application fails to appear when I debug with local (embeded) OC4J. These are the first lines of the exception message:
    Exception:
    java.lang.NoClassDefFoundError: _addFile
         java.lang.Class java.lang.ClassLoader.defineClass0(java.lang.String, byte[], int, int, java.security.ProtectionDomain)
              native code
    The class _addFile is generated from addFile.jsp and is available in the output directory. Production application doesn't display the same behavior, this only happens in DEBUG mode in JDeveloper.
    OS: win2000
    JDK: 1.3.1
    JDevaloper is 9.0.2.. something.
    Struts
    Thanks people.

    A few quick questions:
    1. Can you run (not debug) the application?
    2. Have you tried specifically compiling the file addfile.jsp in JDeveloper? - This will usually show the error before attempting to
    run it.
    To do this, select the file in the navigator and do a right-click Rebuild or Make..

  • Standard Debug Questions

    We have a flash application with video that was developed by
    a third party vendor
    http://www.lfg.com/LincolnPageServer?LFGPage=/lfg/ipc/index.html
    (Click on tell me more)
    We just plugged in the code on our site to open their
    application. We do not have the source code to debug.
    Management comes back to us with second hand reports that it
    is not working properly. We know since there is streaming video
    (vital stream), they can ask the user if they are using a dial-up
    connection. It always works fine for us using our high-speed
    connection.
    I was wondering what other questions you ask when people tell
    you a flash application is not working?
    Or what other things we can do to try and consistently break
    the application so we can ask the third party to fix it.
    Thanks
    Mathias

    -- Are they seeing a specific error, such as a script timeout
    error?
    -- If they right click where the content should be, what's in
    the 'About Flash Player' menu?
    -- Use right-click to check what Flash Player version they're
    using
    -- After that you just have to try to get them to clearly
    describe what they -see-. It's helpful if you have some text
    description you can give them that describes what they should be
    seeing, for comparison. For example, "if you look to the right of
    the word "Go" you should see a video player. What do you see?"
    You know what really helps for this kind of thing? Some kind
    of screen sharing/web conferencing (we use Acrobat Connect
    obviously). Although that doesn't really work if the problem was
    specific to dial-up users.

  • JDeveloper & Debug : FATAL ERROR

    Hello,
    when i try to debug any project in JDeveloper, i got the following error:
    FATAL ERROR in native method: No transports initialized
    Transport dt_socket failed to initialize, rc = 509.
    Process exited with exit code 1.
    Debugger unable to connect to local process.
    I allready reinstall JDeveloper in JDK, but no luck. Please, help. Thank you.

    hello,
    i am also getting the erro while executing project on jdeveloper using ejb and jpa entities the error is as follows :
    [EclipseLink/JPA Client] Adding Java options: -javaagent:C:\middleware\jdeveloper\..\modules\org.eclipse.persistence_1.0.0.0_2-1.jar
    c:\middleware\jdk160_21\bin\javaw.exe -client -classpath C:\Users\eaurgta\Documents\JDeveloper\mywork\cab_ejb_jpa_app\.adf;C:\Users\eaurgta\Documents\JDeveloper\mywork\cab_ejb_jpa_app\cabejbmodel\classes;C:\middleware\modules\com.oracle.toplink_1.0.0.0_11-1-1-4-0.jar;C:\middleware\modules\org.eclipse.persistence_1.0.0.0_2-1.jar;C:\middleware\modules\com.bea.core.antlr.runtime_2.7.7.jar;C:\middleware\oracle_common\modules\oracle.toplink_11.1.1\javax.persistence_2.0_preview.jar;C:\middleware\oracle_common\modules\oracle.xdk_11.1.0\xmlparserv2.jar;C:\middleware\oracle_common\modules\oracle.xdk_11.1.0\xml.jar;C:\middleware\modules\javax.jsf_1.1.0.0_1-2.jar;C:\middleware\modules\javax.ejb_3.0.1.jar;C:\middleware\modules\javax.enterprise.deploy_1.2.jar;C:\middleware\modules\javax.interceptor_1.0.jar;C:\middleware\modules\javax.jms_1.1.1.jar;C:\middleware\modules\javax.jsp_1.2.0.0_2-1.jar;C:\middleware\modules\javax.jws_2.0.jar;C:\middleware\modules\javax.activation_1.1.0.0_1-1.jar;C:\middleware\modules\javax.mail_1.1.0.0_1-4-1.jar;C:\middleware\modules\javax.xml.soap_1.3.1.0.jar;C:\middleware\modules\javax.xml.rpc_1.2.1.jar;C:\middleware\modules\javax.xml.ws_2.1.1.jar;C:\middleware\modules\javax.management.j2ee_1.0.jar;C:\middleware\modules\javax.resource_1.5.1.jar;C:\middleware\modules\javax.servlet_1.0.0.0_2-5.jar;C:\middleware\modules\javax.transaction_1.0.0.0_1-1.jar;C:\middleware\modules\javax.xml.stream_1.1.1.0.jar;C:\middleware\modules\javax.security.jacc_1.0.0.0_1-1.jar;C:\middleware\modules\javax.xml.registry_1.0.0.0_1-0.jar;C:\middleware\modules\javax.persistence_1.0.0.0_1-0-2.jar;C:\middleware\wlserver_10.3\server\lib\weblogic.jar -Djavax.net.ssl.trustStore=C:\middleware\wlserver_10.3\server\lib\DemoTrust.jks -javaagent:C:\middleware\jdeveloper\..\modules\org.eclipse.persistence_1.0.0.0_2-1.jar oracle.cab_facadeClient
    java.lang.reflect.InvocationTargetException
         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 sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:323)
         at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:338)
    Caused by: java.lang.reflect.InvocationTargetException
         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 org.eclipse.persistence.internal.jpa.deployment.JavaSECMPInitializerAgent.initializeFromAgent(JavaSECMPInitializerAgent.java:45)
         at org.eclipse.persistence.internal.jpa.deployment.JavaSECMPInitializerAgent.premain(JavaSECMPInitializerAgent.java:38)
         ... 6 more
    Caused by: javax.persistence.PersistenceException: Exception [EclipseLink-28018] (Eclipse Persistence Services - 2.1.2.v20101206-r8635): org.eclipse.persistence.exceptions.EntityManagerSetupException
    Exception Description: Predeployment of PersistenceUnit [cabejbmodel] failed.
    Internal Exception: Exception [EclipseLink-7161] (Eclipse Persistence Services - 2.1.2.v20101206-r8635): org.eclipse.persistence.exceptions.ValidationException
    Exception Description: Entity class [class oracle.T76] has no primary key specified. It should define either an @Id, @EmbeddedId or an @IdClass. If you have defined PK using any of these annotations then make sure that you do not have mixed access-type (both fields and properties annotated) in your entity class hierarchy.
         at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:1014)
         at org.eclipse.persistence.internal.jpa.deployment.JPAInitializer.callPredeploy(JPAInitializer.java:88)
         at org.eclipse.persistence.internal.jpa.deployment.JavaSECMPInitializer.initPersistenceUnits(JavaSECMPInitializer.java:256)
         at org.eclipse.persistence.internal.jpa.deployment.JavaSECMPInitializer.initialize(JavaSECMPInitializer.java:216)
         at org.eclipse.persistence.internal.jpa.deployment.JavaSECMPInitializer.initializeFromAgent(JavaSECMPInitializer.java:159)
         ... 12 more
    Caused by: Exception [EclipseLink-28018] (Eclipse Persistence Services - 2.1.2.v20101206-r8635): org.eclipse.persistence.exceptions.EntityManagerSetupException
    Exception Description: Predeployment of PersistenceUnit [cabejbmodel] failed.
    Internal Exception: Exception [EclipseLink-7161] (Eclipse Persistence Services - 2.1.2.v20101206-r8635): org.eclipse.persistence.exceptions.ValidationException
    Exception Description: Entity class [class oracle.T76] has no primary key specified. It should define either an @Id, @EmbeddedId or an @IdClass. If you have defined PK using any of these annotations then make sure that you do not have mixed access-type (both fields and properties annotated) in your entity class hierarchy.
         at org.eclipse.persistence.exceptions.EntityManagerSetupException.predeployFailed(EntityManagerSetupException.java:210)
         ... 17 more
    Caused by: Exception [EclipseLink-7161] (Eclipse Persistence Services - 2.1.2.v20101206-r8635): org.eclipse.persistence.exceptions.ValidationException
    Exception Description: Entity class [class oracle.T76] has no primary key specified. It should define either an @Id, @EmbeddedId or an @IdClass. If you have defined PK using any of these annotations then make sure that you do not have mixed access-type (both fields and properties annotated) in your entity class hierarchy.
         at org.eclipse.persistence.exceptions.ValidationException.noPrimaryKeyAnnotationsFound(ValidationException.java:1374)
         at org.eclipse.persistence.internal.jpa.metadata.accessors.classes.EntityAccessor.validatePrimaryKey(EntityAccessor.java:1366)
         at org.eclipse.persistence.internal.jpa.metadata.accessors.classes.EntityAccessor.processAccessors(EntityAccessor.java:885)
         at org.eclipse.persistence.internal.jpa.metadata.accessors.classes.EntityAccessor.process(EntityAccessor.java:691)
         at org.eclipse.persistence.internal.jpa.metadata.MetadataProject.processStage2(MetadataProject.java:1531)
         at org.eclipse.persistence.internal.jpa.metadata.MetadataProcessor.processORMMetadata(MetadataProcessor.java:474)
         at org.eclipse.persistence.internal.jpa.deployment.PersistenceUnitProcessor.processORMetadata(PersistenceUnitProcessor.java:441)
         at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:968)
         ... 16 more
    FATAL ERROR in native method: processing of -javaagent failed
    Exception in thread "main" Process exited with exit code 1.
    thanks and regards
    ankur

  • Debugging question for Forms9i

    Hello,
    I am using 9iDS, 9iDB for app development. I put breakpoints in PLSQL code and then compile/run with debug option but the execution is not stopping at breakpoints.
    Any suggestion why ?
    Thanks,
    [email protected]

    Boro,
    for the first question: Oracle Applications is migrating to Oracle9i Forms 9.0.4 which is the upcoming release being rebranded to Oracle10G Forms (9.0.4)
    References can be found on oracle.com for all products.
    http://www.oracle.com/ip/develop/ids/customers/index.html?content.html
    Partner references are at
    http://otn.oracle.com/products/forms/htdocs/partners.html
    Hope you understand that we don't broadcast reference information following teh watering can principle. Contact your local Oracle sales team if you need specific information.
    thanks
    Frank

  • Novice SG500 Debugging question

    Sorry for the basic question...I am in the process of setting up a pair of stacked SG500-28. These two units are stacked with a pair of copper 5Gb uplink cable (very short length) connecting both ports s3 and s4. My logs are filling up with errors on link up/down and STP port-status.
     I having trouble understanding the encoding of the ports listed in the debug messages in log files. I am guessing that gi1/1/19 is port 19 on the unit 2 switch (see enclosed picture)? 
    I am running the current firmware (1.4.0.88) and the switch is in L2 mode at the moment.
    Any help in decoding the log entries would be greatly appreciated.
    Enclosed is the picture of the stack showing the few ports that are active and sample of the log.
    Keith

    Aleksandra
    Thanks for the port decoding info!
    What had me confused is that I have an active connection on unit 2 port 19 but not unit 1 port 19 (going by the port number labels silk-screened on the switch).  
    What is the significance (if any) of the middle number (1 in gi2/1/19)?
    Unit 1 port 19 is a direct terminated but unconnected cable (at this time), no patch panel in the path.  Cable to the switches is all Belden DataTwist 4800. The Unit 1 port 19 cable is about 30 feet long end to end and is a 48 cable bundle drop from the ceiling. Crosstalk and noise was really low on the cables, with plenty of margin when I tested them at install time (about 9 months ago).
    I will get the tester out and measure that cable later today.
    Thanks a lot for the help.
    Keith

  • Another jsp debug question

    I now of the technique to use a script (javac -g $*) as the
              weblogic.jsp.compileCommand context-param name in a web application but
              this does not appear to be working on WL 5.1 sp6 on linux
              The following error message occures when WL attempts to compile a JSP
              Wed Dec 13 19:07:19 GMT+00:00 2000:<E> <WebAppServletContext-consumer>
              Compilation of
              /home/jamie/2020me/workspace/R0.5/src/web/consumer/WEB-INF/_tmp_war/consumer/_login/_consumer_login.java
              failed:
              Warning: UNIXProcess.forkAndExec native error: Exec format error
              java.io.IOException: Compiler failed
              executable.exec([Ljava.lang.String;[javac_debug.cmd, -classpath, <<my
              classpath here>>,  -d,
              /home/jamie/2020me/workspace/R0.5/src/web/consumer/WEB-INF/_tmp_war,
              /home/jamie/2020me/workspace/R0.5/src/web/consumer/WEB-INF/_tmp_war/consumer/_login/_consumer_login.java])
              at java.io.IOException.<init>(IOException.java:49)
              at
              weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:439)
              at
              weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:245)
              at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:300)
              at
              weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:180)
              at
              weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:181)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:118)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:141)
              at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:761)
              at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:708)
              at
              weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:252)
              at
              weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:346)
              at
              weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:246)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:135)
              where <<my classpath here>> has been replaced here for clarity and
              javac_debug.cmd is the debug script (javac -g $*)
              The script is definetly in the path since I get a "not found" exception
              if I remove it
              Any insight would be greatly appreciated
              Thanks
              Jamie
              

    Thanks Ganesh,
    One of the link you provided had resolved my issue with debugging.  All I did is remove the below two entries from portalapp.xml file
    <property name="ComponentType" value="jspnative"/>
    <property name="JSP" value="pagelet/InitialPage.jsp"/>
    These 2 entries are created by default for JSPDynPage components by the wizard in NWDS SP9.  I don't know if this is same in later releases.
    I can debug now.
    Thanks
    Siva

  • A JDeveloper Beginner question

    Hello all,
    I've just received JDeveloper + Oracle8i, and tried to test the bc4j sample located in its samples directory (the auctions sample).
    While compiling the jsps.jpr component, I got the following error:
    Error: (0) cannot access directory oracle\jbo\common\appmgr; verify that directory is reachable from classpath and/or sourcepath.
    What is JBO and how can I install it?
    Please be patient with me, as this world is really new to me :-).
    Thanks,
    Uri

    Hi..
    This #{bindings.Commit.execute} will commit whole Application module(AM).That means All altered ViewObjects in that AM will be committed.If you need to Commit a ViewObject you can do it in Application ModuleImpl.
    VO.getDBTransaction().commit();

  • Debugging question (project with Ant)

    Hi,
    Could anyone tell me how to debug a project with Ant?
    There is no main class to execute.
    Only Ant script runs it as below.
    Thanks in advance,
    <?xml version="1.0" encoding="UTF-8"?>
    <project basedir="." default="all" name="run1">
    <target name="all">
    <java classname="zeus.agents.ANServer" failonerror="true" fork="true">
    <arg line="Nameserver2 -t 0.1 -f dns.db"/>
    </java>
    </target>
    </project>

    how simple was that... Thanks Mark.
    Now I have another problem - how can I specify deployment targets when creating a new dataspace? I'm using a DspCommonCommands.py script, which targets deployments to any server and cluster in the specified domain:
    targets = wlst.get('Targets')
    wlst.invoke('createDataSpace',[dataspaceName,targets],['java.lang.String','java.util.Set'])
    which results in 2 problems:
    1. targeting projects to inappropriate servers (like AdminServer)
    2. targeting project to cluster and all servers belonging to that cluster (which results in errors when trying to start corresponding request_handlers application)
    I thought I can simply list the names of clusters I would like the project to be targeted to, but it results in:
    javax.management.RuntimeOperationsException: RuntimeException occured trying to invoke operation createDataSpace
    Caused by: java.lang.IllegalArgumentException: argument type mismatch
    I can't find the class with createDataSpace() method to check what it's all about and how should I format the target names.
    Regards,
    Tomek

  • Another VCafe debugging question

    NT 4 SP5, WL 4.5.1 (no service pack), Weblogic running under Visual Cafe
    3.0c DB edition with Sun JDK 1.2.2 as the plugin VM. I can start the
    weblogic server and debug servlets and the stateless session bean example
    (basic/statelessSession) all without leaving Visual Cafe just fine. However
    I can't debug the entity bean using the same setup. Here's the server side
    error. Any comments will be appreciated.
    Mon Nov 15 20:20:49 PST 1999:<I> <EJB> Transaction: '942725939528_2' rolled
    back due to EJB exception:
    java.lang.NoClassDefFoundError: examples/ejb/basic/beanManaged/AccountBean
    at java.lang.Class.newInstance0(Native Method)
    at java.lang.Class.newInstance(Class.java:241)
    at weblogic.ejb.internal.EJBHomeImpl.allocateBean(EJBHomeImpl.java:265)
    at weblogic.ejb.internal.BaseEJBContext.<init>(BaseEJBContext.java:60)
    at
    weblogic.ejb.internal.EntityEJBContext.<init>(EntityEJBContext.java:27)
    at weblogic.ejb.internal.Freepool.allocateEJBContext(Freepool.java:53)
    at
    weblogic.ejb.internal.EJBHomeImpl.allocateEJBContext(EJBHomeImpl.java:256)
    at
    weblogic.ejb.internal.StatefulEJBObject.getContextForInvoke(StatefulEJBObjec
    t.java:91)
    at weblogic.ejb.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:174)
    at
    examples.ejb.basic.beanManaged.AccountBeanEOImpl.create(AccountBeanEOImpl.ja
    va:42)
    at
    examples.ejb.basic.beanManaged.AccountBeanHomeImpl.create(AccountBeanHomeImp
    l.java:59)
    at
    examples.ejb.basic.beanManaged.AccountBeanHomeImpl_WLSkel.invoke(AccountBean
    HomeImpl_WLSkel.java:93)
    at
    weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(BasicServerObjectAda
    pter.java:261)
    at
    weblogic.rmi.extensions.BasicRequestHandler.handleRequest(BasicRequestHandle
    r.java:49)
    at
    weblogic.rmi.extensions.BasicRequestDispatcher$BasicExecuteRequest.execute(B
    asicRequestDispatcher.java:163)
    at weblogic.t3.srvr.ExecuteThread.run(ExecuteThread.java:106)
    Vamsee

    Vamsee Lakamsani <[email protected]> wrote in message
    news:80qlr6$am$[email protected]..
    NT 4 SP5, WL 4.5.1 (no service pack), Weblogic running under Visual Cafe
    3.0c DB edition with Sun JDK 1.2.2 as the plugin VM. I can start the
    weblogic server and debug servlets and the stateless session bean example
    (basic/statelessSession) all without leaving Visual Cafe just fine.However
    I can't debug the entity bean using the same setup. Here's the server side
    error. Any comments will be appreciated.This does not happen for the beans that are part of my app (which
    incidentally are not located in <WeblogicHome>/myserver/serverclasses). So
    I 'm more than willing to ignore this error and move on.
    Vamsee

  • 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

  • Debugging Question

    Hello-
    I am wondering if there is a way to only debug code I have
    written. The debugger generally takes one on a path through all the
    provided classes, such as "buttons" etc. I wouuld like to set the
    debugger to only step though code on my main code file. Is there a
    way to do this?

    "deuce4" <[email protected]> wrote in
    message
    news:glailk$qf9$[email protected]..
    > Hello-
    >
    > I am wondering if there is a way to only debug code I
    have written. The
    > debugger generally takes one on a path through all the
    provided classes,
    > such
    > as "buttons" etc. I wouuld like to set the debugger to
    only step though
    > code
    > on my main code file. Is there a way to do this?
    Creative use of the "step over" button and frequent break
    points.
    HTH;
    Amy

  • HELP!!!! Remote Debug SQLJ With Jdeveloper10

    How can i remote debug sqlj sources with Jdeveloper10???Can Jdeveloper10 support remote debug sqlj function???? online waiting MASTER good answer,thanks

    Ok, so the answer to your original question is: Yes, you can do remote debugging JDeveloper. If you want more info, search the help and look on otn. If you have specific remote debugging questions, post it to the JDeveloper forum.
    For myself, I've only used remote debugging for applications deployed to OC4J. I'm sure it will work for JBoss the same, but I can't be for certain.

  • How to start listener in sql developer for remote debug

    how to start listener in sql developer for remote debug ? Since the new version 1.1.0.23 is different with the old version for remote debug, I don't know how to start the listener on the new version for remote debug.
    even follow the user guide below and not work . Experts on sql developer please help me with this.
    Remote Debugging
    To debug a procedure or function for a connection where the database is on a different host than the one on which you are
    running SQL Developer, you can perform remote debugging.
    Remote debugging involves many of the steps as for local debugging; however, do the
    following before you start the remote debugging: Use an Oracle client such as SQL*Plus to issue the debugger connection command. Whatever
    client you use, make sure that the session which issues the debugger connection commands is the same session which executes your PL/SQL
    program containing the breakpoints.
    For example, if the name of the remote system is remote1, use the following SQL*Plus command to open a
    TCP/IP connection to that system and the port for the JDWP session:
    EXEC DBMS_DEBUG_JDWP.CONNECT_TCP('remote1', '4000'); The first parameter
    is the IP address or host name of the remote system, and the second parameter is the port number on that remote system on which the debugger
    is listening.
    Right-click the connection for the remote database, select Remote Debug, and complete the information in the Debugger - Attach
    to JPDA dialog box. Then, follow the steps that you would for local debugging (for example, see Debugging a PL/SQL Procedure).
    Debugger - Attach to JPDA This dialog box is displayed when you right-click a database connection name and select Remote Debug.
    Use this
    dialog box if you are using the Sun Microsystem's Java Platform Debugger Architecture (JPDA) and you would like the debugger to listen so
    that a debuggee can attach to the debugger.
    For more information about remote debugging, see Remote Debugging.
    Host: Name or IP address of
    the remote host on which SQL Developer should listen for the database to connect.
    Port: Listening port number on the remote host. You can
    choose any valid port number that is not in use by another process.
    Timeout: The number of seconds that SQL Developer will wait for the
    remote database to make a debugging connection. Don't Show Dialog Box Before Connecting: If this option is checked, this dialog box will not
    be displayed before future connections for remote debugging

    You're not the only one:
    Not able to start remote debug listener
    Re: remote debug question at version 1.1.0.23 64

Maybe you are looking for

  • 10.4.7 update ate my MacBook.  Any suggestions?

    I just tried to install the 10.4.7 update via "Software Update" and: 1) The update failed (it reported an "unknown error" and put the installer in the trash). 2) The system became unstable after that, in particular the Finder and Firefox wouldn't res

  • Beige G3 Server won't boot 9.2.1 from CD or HD

    Tried to upgrade a Beige G3 Server w/Rev3 ROM from 8.6 to Retail 9.2.1. Would not boot from CD. Gets to appletalk extention icon then gets bomb dialog box with no text. Mouse still moves pointer. Installed via alternate method to HD (ultra-wide scsi)

  • External drive not showing in fcp x but showing in finder

    I have a two gig usb external hard drive formatted for Mac OS Extended, and fcp x won't show it in the Event Library, even though it is seen in the finder.  I've put Logic Pro projects in there, but all I see is my other external firewire drive, 1 gi

  • Validation of Tax Codes in Purchase Order

    Dear All, We have different tax codes like v0, v1, v2 maintained in system and we have projects(WBS) like Project1, Project2 etc.  The scenario is such that if i am trying to create an account assigned purchase order for a project with account assign

  • Why won't Mail allow centered images, as they are sent?

    I am on a Macbook Po using 10.8.3. My trouble is with Mail. But this has been an ongoing problem for years. I send a lot of drawings and photos via email. When I send them I frequently center them in Mail. They look great. But when I send the file th