Debugger Source Lookup

Hi,
I'm developing a simple application service in NW 7.0 SP12. This service should use an imported webservice created from a RFC. But in debug mode when it try to call the operation and I try to step into the method, an error window occure with the message:
The sore of the type
'com.sap.wspermt.extsrv.z__bapi__bupa__search.Z__BAPI_BUPA__SE
could not be shown as the type was not found.
Know anyone what is here the problem?
Thanks in advance,
Daniel

for point 2.:
the debugging process has shown that the localhome cannot be resolved when I try to inspect this variable. And when chosen as watch there's <error(s) during the evaluation>.
The error occures within this automatically generated method: Any clue about the localHome?
private Z__BAPI__BUPA__SEARCHLocal getZ__BAPI__BUPA__SEARCH() throws com.sap.caf.rt.exception.ServiceException {
        java.lang.String method = BuPaSearchServiceBean.JARM_REQUEST + ":" + "getZ__BAPI__BUPA__SEARCH()";
        java.lang.String jndiName = "localejbs/sap.com/wspermit/Z__BAPI__BUPA__SEARCH";
        java.lang.String user = sessionContext.getCallerPrincipal().getName();
         Z__BAPI__BUPA__SEARCHLocal local = null;
        com.sap.caf.rt.util.CAFPublicLogger.entering(user, JARM_REQUEST, method, location, com.sap.caf.rt.util.CAFPublicLogger.LEVEL_MEDIUM);
        try {
//Here the return value from getLocalHome is correct but is not committed to the localhome variable
            Z__BAPI__BUPA__SEARCHLocalHome localHome = (Z__BAPI__BUPA__SEARCHLocalHome) HomeFactory.getInstance().getLocalHome(jndiName);
            local = localHome.create();
        } catch (com.sap.caf.rt.exception.ServiceException se) {
             BuPaSearchServiceBean.location.catching(method, se);
            Object[] args = {jndiName};
            com.sap.caf.rt.util.CAFPublicLogger.categoryCAF.logThrowableT(com.sap.tc.logging.Severity.ERROR, location, method, "APPSRV_JNDI_LOOKUP_ERROR", args, se);
            BuPaSearchServiceBean.location.throwing(method, se);
            throw se;
        } catch (javax.ejb.CreateException e) {
             BuPaSearchServiceBean.location.catching(method, e);
            Object[] args = {method};
            com.sap.caf.rt.util.CAFPublicLogger.traceThrowableT(com.sap.tc.logging.Severity.DEBUG, location, method, "APPSRV_SIMPLE_ERROR", args, e);
            com.sap.caf.rt.exception.ServiceException se = new com.sap.caf.rt.exception.ServiceException(e);
            BuPaSearchServiceBean.location.throwing(method, se);
            throw se;
        } finally {
            com.sap.caf.rt.util.CAFPublicLogger.exiting(user, JARM_REQUEST, method, location, com.sap.caf.rt.util.CAFPublicLogger.LEVEL_MEDIUM);
        return local;

Similar Messages

  • Data Source Lookup fails

    The problem is that I get an class cast exception when doing a data source lookup. I need to know why this is happening and what can be done to avoid the exception. I have provided the following sections to document the run time environment:
    1.     The stack trace from Jdeveloper
    2.     The code that is run
    3.     The web.xml file for the application
    4.     The data source definition
    Thanks in advance for the help!!!!
    The stack trace from Jdeveloper :
    Process exited.
    C:\oracle\jdev903\jdk\bin\javaw.exe -ojvm -classpath C:\oracle\jdev903\j2ee\home\oc4j.jar -Dhttp.proxyHost=http -Dhttp.proxyPort=80 -Dhttp.nonProxyHosts= -Xverify:none -Doracle.j2ee.dont.use.memory.archive=true com.evermind.server.OC4JServer -config C:\oracle\jdev903\jdev\system9.0.3.1035\oc4j-config\server.xml
    [Starting OC4J using the following ports: HTTP=8996, RMI=23891, JMS=9227.]
    [waiting for the server to complete its initialization...]
    m_dataSourceName = oracle.jdbc.pool.OracleConnectionPoolDataSource/default/jdbc/DBConn
    Embedded OC4J startup time: 2574 ms.
    Target URL -- http://172.17.36.54:8996/design-pcat-context-root/ProcessCatagory.jsp
    Error creating the ORB :
    Oracle9iAS (9.0.3.0.0) Containers for J2EE initialized
    Entered doUpdates()
    Trace ID: 1044899698135 Date:1/10/2003 Time: 11:54:58:135 AM
    fsweb.util.FsException
    Cause:
    java.lang.ClassCastException: com.evermind.sql.OrionCMTDataSource
         void fsweb.product.ProcessCatalogCategoryThread.doUpdates()
              ProcessCatalogCategoryThread.java:54
         void ProcessCatagory.jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              ProcessCatagory.jsp:10
         void oracle.jsp.runtime.HttpJsp.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              HttpJsp.java:139
         void oracle.jsp.runtimev2.JspPageTable.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)
              JspPageTable.java:317
         void oracle.jsp.runtimev2.JspServlet.internalService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              JspServlet.java:465
         void oracle.jsp.runtimev2.JspServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              JspServlet.java:379
         void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              HttpServlet.java:853
         void com.evermind.server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              ServletRequestDispatcher.java:721
         void com.evermind.server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
              ServletRequestDispatcher.java:306
         boolean com.evermind.server.http.HttpRequestHandler.processRequest(com.evermind.server.ApplicationServerThread, com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
              HttpRequestHandler.java:767
         void com.evermind.server.http.HttpRequestHandler.run(java.lang.Thread)
              HttpRequestHandler.java:259
         void com.evermind.server.http.HttpRequestHandler.run()
              HttpRequestHandler.java:106
         void EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run()
              PooledExecutor.java:803
         void java.lang.Thread.run()
              Thread.java:484
    The code that is run:
    public void doUpdates()
    Connection con = null;
    OracleDataSource ds = null;
    try
    System.out.println("Entered doUpdates()");
    Context ctx = new InitialContext();
    ds = (OracleDataSource)ctx.lookup("jdbc/DBConn");
    con = ds.getConnection();
    ds = ds;
    catch(Throwable t)
    { handleException(t); }
    finally
    if(con != null)
    try { con.close(); }
    catch(Throwable t) { handleException(t); }
    System.out.println("Exit doUpdates()");
    The web.xml file for the application:
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <description>Empty web.xml file for Web Application</description>
    <session-config>
    <session-timeout>30</session-timeout>
    </session-config>
    <mime-mapping>
    <extension>html</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>txt</extension>
    <mime-type>text/plain</mime-type>
    </mime-mapping>
    <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>index.html</welcome-file>
    </welcome-file-list>
    </web-app>
    The data source definition:
    Location:
    C:\Program Files\Common Files\System\MAPI\1033\nt>C:\oracle\jdev903\jdev\system9
    .0.3.1035\oc4j-config\data-sources.xml
    Contents:
    <?xml version="1.0" standalone='yes'?>
    <!DOCTYPE data-sources PUBLIC "Orion data-sources" "http://xmlns.oracle.com/ias/dtds/data-sources.dtd">
    <data-sources>
         <data-source
              class="com.evermind.sql.DriverManagerDataSource"
              name="OracleDS"
              location="jdbc/OracleCoreDS"
              xa-location="jdbc/xa/OracleXADS"
              ejb-location="jdbc/OracleDS"
              connection-driver="oracle.jdbc.driver.OracleDriver"
              username="scott"
              password="tiger"
              url="jdbc:oracle:thin:@localhost:5521:oracle"
              inactivity-timeout="30"
         />
    <data-source
         class="oracle.jdbc.pool.OracleConnectionPoolDataSource"
         name="DBConn"
         location="jdbc/DBConn"
         xa-location="jdbc/xa/DBConn"
         ejb-location="jdbc/DBConn"
         connection-driver="oracle.jdbc.driver.OracleDriver"
         password="bc4j"
         username="bc4j"
         url="jdbc:oracle:thin:@nemesis:1521:fsweb"
         inactivity-timeout="30"
         min-connections="0"
         max-connections="10">
    </data-source>
    </data-sources>

    The datasource defintion is for oc4j datasources whereas the code is trying to cast it to oracle datasource implementation. Use the datsource interface instead to get the connection. I.e
    Change the lookup code to
    javax.sql.DataSource ds = (javax.sal.DataSource)ctx.lookup(..);
    ds.getConnection();
    Dhiraj

  • Debugger: 'Source Not Found"

    I have a simple WebDyn Pro application that works fine on my local J2EE engine, but would like to see the execution of one of my methods in debug mode.
    I setup my break points and run the application in debug mode and start executing the program line by line on my local J2EE engine. The first few lines work fine, but then I get a "Source Not Found" error for the <b>Node.class</b>
    The full error is message is:
    <b>The source attachment does not contain the source for the file Node.class. You can change the source attachment by clicking Change Attached Source Below</b>
    Clicking on the "Change Attached Source" button shows the following location variable path:
    <b>WD_RUNTIME/com.sap.tc.webdynpro.runtime/lib/_webdynpro_progmodel.jar</b>
    and below that, the full path is shown
    <b>C:\Program Files\SAP\JDT\eclipse\plugins\com.sap.tc.webdynpro.runtime\lib\_webdynpro_progmodel.jar
    </b>
    I have do have the <b>_webdynpro_progmodel.jar</b> file in the above mentioned folder, so why am I getting this error?
    Thanks in adavnce,
    Stefan

    Maksim,
    Im wondering if there is a way I can avoid having to go through the node class(and others) when I am debugging.
    I would like to only have to go through my own classes and skip the rest. I tried the step filter, but that did not help. I have the following in my filter configurartion
    com.ibm.*
    com.sap.*
    com.sun.*
    java.*
    javax.*
    org.omg.*
    sun.*
    sunw.*
    java.lang.ClassLoader
    Thanks again,
    Stefan

  • Problem Switching the Debugger in NWDS

    Hi all,
    I am trying to debug a Java Class in NWDS. I put a break point and went to debug perspective and I am accessing the application in run time, but still
    I donu2019t find the Java Debugger switched on and I cant find the values being passed to the variables. Can some one suggest me if I am missing some thing?
    Regards,
    Jessica Sam

    Hi Jessica,
    It seems that you have not configure Debuger in NWDS.
    1. Click on or Open Debug perspective
    2. Open Debug configuration from menu or from clicking on Icon in top level menu.
    3. From Left side expand Remote Java Application
    4. Click on New Button from bottom left Corner.
    5. Give Any name e.g. My Debug.
    6. You have 3 tab on right side Connect, Source and Common
    7. Click on Connect
    8. Click on Browse from project to debug.
    9. Select crmhomeshr
    10. Connection Type should be Standard (Socket Attache)
    11. Give Host name and Port. Generally port # is 50021 but it may different on your machine.
    12. Click on Source Tab
    13. Click on Use Default source lookup path
    14. Click on Common tab.
    15. Type of launch configuration should be local
    16. Debug Mode should be Default
    17. Select Debug in Display in favorites Menu.
    18. Click on Close.
    Before start your ISA application on debug mode you have to click on "Debug" icon from top menubar and select your created My Debug configuration. It will establish connection with your J2EE engine and switch to debug mode.
    Now access your applicationi n browser. When it hits debug command it automatically switch or transfer control to NWDS Debug window and you can go forward from there.
    I hope this information will help you to configure Debug in NWDS for ISA.
    eCommerce Developer

  • Other Problem with lookup

    What can i do in this situation? (I use Sun Application Server 8.1) :
    In this piece of code in a ejb test client:
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.cosnaming.CNCtxFactory");
    env.put(Context.PROVIDER_URL, "iiop://127.0.0.1:4700");
    //get naming context
    Context context = new InitialContext(env);
    //look up jndi name
    Object ref = context.lookup("JNDIName");I have an error in a lookup, and i tried ejb/JNDIName, java:comp/env/ejb/JNDIName but ... the error is in all situations:
    javax.naming.NameNotFoundException [Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0]
         at com.sun.jndi.cosnaming.ExceptionMapper.mapException(ExceptionMapper.java:44)
         at com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:453)
         at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:492)-- Failed initializing bean access.
    Thanks

    Originally posted by: mikhailk.qnx.com
    The debugger retrieves the name of the source file from the debug
    information associated with the current stack frame. Check if the file name
    can be found in the source lookup path.
    "Sheldon" <[email protected]> wrote in message
    news:31a9c281623f66e5ba98901be99b5ec0$[email protected]..
    > Hi all
    >
    > I am having a problem with step over in the my integrated
    > debugger, when i press step over an editor pops up saying no source found
    > with a button attached to it. I am trying to solve the problem, i need
    > some help as to where in the source i could look to solve this problem. I
    > also want to know for sure whether this is a problem with source lookup or
    > due to some other reason.
    >
    > regards,
    > Sheldon
    >

  • J2EE debugger cannot determine class type

    Hi,
    when i try to remote debug servlets, jsps or enterprisebeans, i always get the source code finder window popup writing:
    "the source of the type 'ocm.sap.internal.jcmsystool.SystoolProcessor' could not be shown as the type was not found."
    I tried to pack the web project into a jar and add it explicitely to the source code searchlist, but even that did not help.
    i use nwds 2.0.15
    thanks in advance, joerg.

    Joerg,
    In this window check what jar/zip/dirs are used for source lookup.
    With remote debugging it is common to setup debug configuration for project A, then use it for debugging project B. And debugger is unable to find sources of B in A (that is defined via configuration)
    VS

  • Payables Open Interface Program Source Problem

    Hello All,
    I am trying to import invoice using "Payable Open Interface Program".
    I have two Sources from which I am uploading invoices.
    Lets say the Sources be A and B. (in the lookup code i have added A and B under Source lookup type).
    Now the problem is Payables program is importing successfully for Source A and the program is erroring out for source B.
    Can u suggest me what could be the problem here?
    Is there any other setup required with respect to sources need to be done?
    Thanks & Regards
    Aboothahir

    hello all,
    I am able to upload the invoices now using both the sources.The problem was with source B i was not passing the group name. so i passed the group name and the records are getting uploaded.
    thanks & regards
    aboothahir

  • How to find all uses of data source views in an SSIS solution

    I am upgrading Visual Studio from 2008 to 2013 (with SSDT) and SQL Server 2008 R2 to  2012.  I have a solution with over 30 dstx files. Each file has multiple OLE data sources and lookup tasks.  There is inconsistent usage of data source views
    throughout (as compared to SQL queries or table references).  It is my understanding that all data source views need to be removed before upgrading SSIS packages from BIDS to SSDT.  I tried searching the files as XML for the DSVs but it appears the
    GUID reference changes per dstx file.  It seems like I will have to look at each source/lookup. Is there quicker way to search for where they are used? 
    Thanks
    Adding this question here.  Posted question incorrectly in VSO forum.

    All right, yes, they are dropped
    Never upgraded a package that had them.
    What happens if you just upgrade leaving a copy?
    Arthur My Blog
    This ended up being what I did for many of the packages.  Upgrading the packages severed the data source views and left the SQL in the related tasks (e.g. OLE Source task).  Sorry for the delayed mark as answered.

  • Reg: Lookup

    Hi,
    Can any one send me the steps how to use the lookup in ODI.
    I have got source, source/lookup and target.
    Thanks,
    Gvel

    Becker,
    In that case you specify your join condition to de executed on Stage or Target environnement. In first case the target-based lookup tabe will be loaded into Stage area in order to be joined. In the other case the join will be done directly on Target environnement, while inserting/updating the Target Table.
    Shamil

  • HOW TO: do external db lookups with AJAX on UCM checkin pages

    Several folks have been asking how to use ajax in UCM and how to do external data source lookups.
    So we posted the step by step for you on our C4 blog:
    http://bit.ly/bgOfm2
    The post is full of code-goodness and addresses
    * Custom Components
    * Custom Services
    * Database Providers
    * Custom Query Resources
    * Custom Java Service Handlers
    * MergeInclude
    * Resource Includes
    it assumes you are familiar with:
    * basic UCM component architecture
    * creating components using the Component Wizard
    * creating a database provider in the UCM interface
    * how to create a custom class and include it in a component.
    * how to take sample code and make it your own
    If you are not familiar with those things or if you want supported components that work on 10 and 11g then reach out to us directly and we will help
    Warmly,
    Billy Cripe
    Fishbowl Solutions

    Several folks have been asking how to use ajax in UCM and how to do external data source lookups.
    So we posted the step by step for you on our C4 blog:
    http://bit.ly/bgOfm2
    The post is full of code-goodness and addresses
    * Custom Components
    * Custom Services
    * Database Providers
    * Custom Query Resources
    * Custom Java Service Handlers
    * MergeInclude
    * Resource Includes
    it assumes you are familiar with:
    * basic UCM component architecture
    * creating components using the Component Wizard
    * creating a database provider in the UCM interface
    * how to create a custom class and include it in a component.
    * how to take sample code and make it your own
    If you are not familiar with those things or if you want supported components that work on 10 and 11g then reach out to us directly and we will help
    Warmly,
    Billy Cripe
    Fishbowl Solutions

  • NameNotFoundException for DataSource lookup

    Hi,
    I have a requirement where i need to push message from a client code (deployed in oc4j 10.1.3) to a remote queue which is deployed on weblogic server. i have used
    Context.INITIAL_CONTEXT_FACTORY = "weblogic.jndi.WLInitialContextFactory". I could send the message to the weblogic 9.2 server queue from oc4j 10.1.3 client code. But all my datasources lookups are failing in oc4j container.
    My lookup code looks as follows : context.lookup("java:comp/env/jdbc/DB");
    If the lookup is done using "jdbc/DB" , it succeeds. But currently, context.lookup("java:comp/env/jdbc/DB"); code is available in 700 places. So it is not possible to change the code.
    Any suggestions why existing data source lookup fails if initial context is set to weblogic specific. I also closed and nullified the initialcontext object related to weblogic server after usage.
    Regards,
    Prashant

    Your code is this:
    javax.sql.DataSource ds = (javax.sql.DataSource) context2.lookup ("mydbsrc");So you're trying to find your DataSource at JNDI location "mydbsrc".
    Your configuration is this:
    <JDBCTxDataSource JNDIName="myserver" Name="mydbsrc" PoolName="MyJDBC Connection Pool" Targets="myserver" />
    So your DataSource is at JNDI location "myserver".
    Change the configuration so that your DataSource's JNDIName is "mydbsrc":
    <JDBCTxDataSource JNDIName="mydbsrc" Name="mydbsrc" PoolName="MyJDBC Connection Pool" Targets="myserver" />
    You can do this via the WebLogic console if you want.
    Hope this helps.

  • Lookup columns values not visible in Sharepoint designer

    I had created a lookup column for a list.
    I had generated a stp and created a new list in the new environment.
    The lookup columns were not working, so i created new columns with the existing name.
    But when i eid t aview in designer, i dont seem to find the clumn values.
    Could you please help.

    Hi,
    It is known issue that on exporting list items, look up column values are lost.
    For your issue, you can take steps as below to retain look up column values in export list template:
    1. Browse to the source Web’s lookup list “Sub Category” and choose Modify settings and columns.
    2. Copy the source lookup list GUID from the URL. It should be a sequence of numbers and letters similar to:  %7BFFA47BF8%2D849C%2D4F20%2D9C50%2D173D2F5B6725%7D.
    3. Browse to the destination Web’s lookup list and choose Modify settings and columns.
    4. Copy the destination lookup list GUID from the URL. Similar as point 2.
    5. Delete %2D from the string and replace with a dash sign (-). There should be no dash sign (-) at the start and the end. GUID should be in the following format: FA47BF8-849C-4F20-9C50-173D2F5B6725
    6. Save the source Web’s list that contains a lookup column “Category” to the lookup list as a list template called category.stp.
    7. Export the list template STP from the source list template gallery to the file system.
    8. Rename the category.stp file to category.cab so Windows can open it.
    9. Open the file, right click on the manifest.xml file and export it to the file system.
    10. Edit the manifest.xml file; find the source Web’s lookup list GUID and replace it with the destination Web’s lookup list GUID.
    11. Save the manifest.xml file.
    12. Open a VS.NET command prompt.
    13. Run the makecab command as: makecab manifest.xml category.stp
    14. Import the new STP into the destination Web’s list template gallery. You will need to delete it if it has previously been imported.
    Reference:
    http://sharepointknowledgebase.blogspot.com/2012/09/retain-look-up-column-values-in-export.html#.VPg8d3kcQiQ
    Best Regards,
    Eric
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Source Not Found in Flex Builder Debug

    Flex Builder 2 with CF App Wizard error.
    I'm getting a souce not found message and this error in Flex
    Builder 2. Anyone else see this? Says to Edit Source Lookup Path???
    Thanks,
    Don
    [SWF] /DA8/Constellation/CxI/bin/CxI-debug.swf - 1,087,677
    bytes after decompression
    [RPC Fault faultString="Send failed"
    faultCode="Client.Error.MessageSend"
    faultDetail="Channel.Connect.Failed error
    NetConnection.Call.Failed: HTTP: Status 404"]
    at mx.rpc::AbstractInvoker/
    http://www.adobe.com/2006/flex/mx/internal::faultHandler()[C:\dev\enterprise_gmc\framework s\mx\rpc\AbstractInvoker.as:192
    at
    mx.rpc::Responder/fault()[C:\dev\enterprise_gmc\frameworks\mx\rpc\Responder.as:56]
    at
    mx.rpc::AsyncRequest/fault()[C:\dev\enterprise_gmc\frameworks\mx\rpc\AsyncRequest.as:107]
    at
    mx.messaging::ChannelSet/mx.messaging:ChannelSet::faultPendingSends()[C:\dev\enterprise_g mc\frameworks\mx\messaging\ChannelSet.as:962]
    at
    mx.messaging::ChannelSet/channelFaultHandler()[C:\dev\enterprise_gmc\frameworks\mx\messag ing\ChannelSet.as:710]
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at
    mx.messaging::Channel/mx.messaging:Channel::connectFailed()[C:\dev\enterprise_gmc\framewo rks\mx\messaging\Channel.as:736]
    at
    mx.messaging.channels::PollingChannel/mx.messaging.channels:PollingChannel::connectFailed ()[C:\dev\enterprise_gmc\frameworks\mx\messaging\channels\PollingChannel.as:203]
    at
    mx.messaging.channels::AMFChannel/mx.messaging.channels:AMFChannel::statusHandler()[C:\de v\enterprise_gmc\frameworks\mx\messaging\channels\AMFChannel.as:294]

    Can you post sample code that shows this issue?
    BaBo,

  • Probably asked before: debugging external AS files

    Ive searched and searched first off so I didnt just directly
    add a new post
    I cant for the life of me debug my actionscript classes.
    I have an AS file with an existing package so it created a
    folder with the actionscript file inside. The actionscript file has
    a class and a method inside the class and it errors out and in the
    debugger it says:
    Source Not found. [Button]Edit Source Lookup Path...[/Button]
    and when I do so and point to the folder where my actionscript
    class is it doesnt do anything and cant debug it. Ive tried a LOT
    of different things like:
    Right Click on the Project > Properties > Flex Build
    Path > Source Path > Add Folder > Pointed to my class
    folder > OK
    Compiled it and has a huge amount of compile errors basically
    describing duplicate definitions.
    So then I tried removing the generated folder from the
    project and just keeping my 'source path' folder there but then the
    source path is empty and none of my source files existed anymore.
    Guess I was trying to 'exlude' the AS files and point a source path
    to it in hopes that I can debug my AS classes. I dont know why its
    giving me this error now but its getting to point of frustration
    that I almost cannot deal with it ontop of the many other issues I
    have with Flex Builder. If anyone could PLEASE help, I would
    greatly appreciate it. Thank you

    What does iTunes > Edit > Preferences > Advnaced > Importing tab show?

  • OneToMany resulting in null field.

    I'm attempting to implement the code example from the NetBeans magazine (Nov 2006) using NetBeans 6.0 beta 2 with glassfish-v2 -b58g. It's using a simple db structure with 3 tables:
    [Platform] ---- [JSR] 1----* [Package]
    I'm running into a problem with the 1 to many between JSR and Package.
    The end result is that the jsr field in the inserted Package row is null.
    Here's the JSR class (relevant pieces only, hopefully)
    @Entity
    public class JSR implements Serializable
    private List<Package> packages;
    @OneToMany(fetch=FetchType.EAGER, cascade=CascadeType.ALL,
    mappedBy="jsr")
    public List<Package> getPackages()
    return packages;
    public void setPackages(List<Package> packages)
    this.packages = packages;
    Here's the Package class
    @Entity
    public class Package implements Serializable
    private JSR jsr;
    @ManyToOne
    public JSR getJsr()
    return jsr;
    public void setJsr(JSR jsr)
    this.jsr = jsr;
    Here's the code from a session bean that enters the data:
    @Stateless
    public class JavaPlatformManagerBean
    implements JavaPlatformManagerRemote,
    JavaPlatformManagerLocal
    @PersistenceContext
    private EntityManager em;
    public void createPlatform(Platform platform)
    em.merge(platform);
    The code that calls the session bean (from a jsp backing bean)
    public class JPMClient
    @EJB
    private JavaPlatformManagerRemote jpm;
    public void createJavaSE()
    JSR jsr1 = new JSR(176,
    "Java SE 5 Release Contents",
    new Package ("java.lang"),
    new Package ("java.util"),
    new Package ("java.sql"));
    JSR jsr2 = new JSR(166,
    "Concurrency Utilities",
    new Package ("java.util.concurrent"));
    Platform platform = new Platform ("Java SE 5", jsr1, jsr2);
    jpm.createPlatform(platform);
    And the results of quering the table (in Derby)
    PACKAGE JSR_NUM
    java.util.concurrent NULL
    java.sql NULL
    java.lang NULL
    java.util NULL
    I know this is long winded, but what am I missing in the JSR/Package classes such that the relationship back to the JSR is null?
    Thanks for any insight.
    GregM

    Unfortunately, AMF serialization is something of a black art. I'd run into multiple issues in the past (working with Granite DS, rather than Blaze--but it's essentially the same thing). I'm not sure about Blaze, but Granite has very verbose logging available if you configure log4j to DEBUG level for org.granite. The other alternative is to attach to your Java process with a debugger (Eclipse makes this fairly automagical), download the Blaze source and configure Blaze as a project in Eclipse, add it to source lookup for your project, and step through the actual serialization to see what's going on. This is moderately complicated to set up, but priceless when it comes to debugging.

Maybe you are looking for