Problem when importing the complex bean model into webdynpro

hi all,
when importing the complex bean model into the webDynpro, it was returning the blank.
Thanks in advance

Hi,
  show your code for see and understand what could be wrong.
Here one mine example:
The model class
* Created on 27-ott-2006
* To change the template for this generated file go to
* Window>Preferences>Java>Code Generation>Code and Comments
package tmp.userslist.comp.model.userslist;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import javax.sql.DataSource;
import java.util.Collection;
import java.util.ArrayList;
import java.io.Serializable;
* @author rtagliento
* To change the template for this generated type comment go to
* Window>Preferences>Java>Code Generation>Code and Comments
public class AllUsers {
// implements Serializable {
     private Connection con;
     private ResultSet rs;
     private Statement stmt;
     private String SqlQuery;
     private Collection usersList = null;
     private UserElement users = null;
//     private Collection empDetailsList=null;
//     private EmpDetailsHelperClass  empdetails=null;
     public AllUsers(){
          con = null;     
          java.sql.ResultSet rs = null;
          rs = null;
          SqlQuery  = "SELECT * FROM TMP_USERSLIST ; ";
     public Connection getConnection (){
               return con;
     public void setConnection (Connection c){
          con = c;
     public Collection getUsersList()
          return usersList;
     public UserElement getUsers()
          return users;
     public void setUsers(UserElement class1)
          users = class1;
     public void execute() throws Exception {
          String DEBUG = new String("");
          try {
               stmt = con.createStatement();
               rs = stmt.executeQuery(SqlQuery);
               usersList = new ArrayList();
               usersList.clear();
               while (rs.next()){
                    users = new UserElement();
                    users.setID(rs.getString("ID"));
                    DEBUG += "ID: " + rs.getString("ID") + " | ";
                    users.setName(rs.getString("NAME"));
                    DEBUG += "NAME: " + rs.getString("NAME") + " | ";
                    users.setSurname(rs.getString("SURNAME"));
                    DEBUG += "SURNAME: " + rs.getString("SURNAME") + " | ";
                    users.setBirthDay(rs.getDate("BIRTHDAY"));
                    DEBUG += "BIRTHDAY: " + rs.getDate("BIRTHDAY").toString() + " ---------- ";
                    usersList.add(users);
               rs.close();
          } catch (Exception e) {
               // TODO Auto-generated catch block
               e.printStackTrace();
               throw new Exception(e.toString() + DEBUG);
//          throw new Exception(new Integer(usersList.size()).toString() + DEBUG);
when use it:
     AllUsers AllU = new AllUsers();
//     AllU.setConnection(myJdbc.getConnection());
     wdContext.nodeAllUsers().bind(AllU);
     wdContext.currentAllUsersElement().setConnection(myJdbc.getConnection());
     try {
          wdContext.currentAllUsersElement().modelObject().execute();
     } catch (Exception e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
Hope can help.
Bye

Similar Messages

  • Connection problem when importing SAP NW BW models into HANA developer ed

    I have successfully installed "AS ABAP 7.4 SP5 incl. BW on SAP HANA SP7 [Developer Edition]" and connected with the SAP GUI and added the system into HANA Studio and Eclipse.
    Being connected as SYSTEM in the modeleler (Eclipse & HS) I choose: File->Import->SAP HANA Content->SAP NetWeaver BW Model
    After selecting 'Next' I enter the following:
    Server name: A4H
    Host name: abapci
    Instance number: 00
    Client number: 001
    SAProuter string: <nil>
    User name: <BW user-id>
    Password: <BW pwd>
    When testing the connection or pressing 'Next' in order to connect the following happens:
    HS: nothing
    In Eclipse I get the followin message:
    Initialization of destination generatedJcoDestinationKey_6b3184ab-fb19-4073-9346-c8581df8c15f failed: Connect to SAP gateway failed
    Connection parameters: TYPE=A DEST=generatedJcoDestinationKey_6b3184ab-fb19-4073-9346-c8581df8c15f ASHOST=abapci SYSNR=00 PCS=1
    LOCATION    CPIC (TCP/IP) on local host with Unicode
    ERROR       hostname 'abapci' unknown
    TIME        Tue Sep 02 16:14:31 2014
    RELEASE     721
    COMPONENT   NI (network interface)
    VERSION     40
    RC          -2
    MODULE      nixxhl.cpp
    LINE        193
    DETAIL      NiHLGetNodeAddr: hostname cached as unknown
    COUNTER     8
    It seems to me as if the message is indicating that the 'hostname' is not abapci' which surprises me since on page 13 in the guide ( 
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/601fec98-f975-3110-a397-a322039ecc1a?QuickLink=index&… ) it explicitly is stated that the hostname is "abapci" (which also can be seen in the SAP GUI).
    Anybody got any ideas what is going on???

    Instead of 'abaci' you enter the IP-address.

  • Importing Complex JavaBean model into WebDynpro

    Hi,
    I am trying to get Data from the EJB, in my Case, Command Bean to WebDynpro.
    So i followed this thread:
    <a href="/people/balaramnaidu.bankuru/blog/2006/04/23/importing-complex-javabean-model-into-webdynpro-by-creating-relationships-for-the-model-classes in WebDynpro</a>
    But one thing does't work here:
    I can't import the Complex type java.util.Collection.
    But i need to get Data from a DB-View into my WebDynpro.
    Is there any other chance to do that?
    Here a CodeSnippet from my Command Bean Class:
    public BusinessDelegate() throws CreateException
              try
                   Context ctx = new InitialContext();
                   OracleSessionLocalHome home = (OracleSessionLocalHome)ctx.lookup("localejbs/OracleSessionBean");     
                   session = home.create();
              } catch (Exception e)
                   e.printStackTrace();
         public void getAllOracleDetails()
              try
                   OracleDTO helper[] = session.getOracleData();
                   oracleDetailsList = new ArrayList();
                   for (int i = 0; i < helper.length; i++)
                        oracleDetailsList.add(helper(i));
              } catch (Exception e)
                   e.printStackTrace();
    OracleDTO is my HelperClass, where i made all Variable-Declarations I need in the View.
    Any ideas?
    Would appreciate that!
    Bernd

    You are not unable to import collection type means u are not able to see that variable in attribute list while importing the model?
    This may be due to you have not added getter and setter function for that collection type.

  • What user should be used when importing a Power Pivot model into SSAS tabular?

    I created a Power Pivot model using my own userid.
    In SSDT I can import that model but it saves the model in my own My Documents folder. In SSMS, other users can browse the data in that model.
    If I tell SSDT to save the model in the Public user's My Documents, the model is not visible in SSMS for anyone to see.
    If a colleague imports the model, it can be seen in SSMS but there is no data when it is browsed.
    There seems to be a tie up with the user id I used when the model was first created. Is it possible to break that link, or should we have a user id specifically for creating and deploying Power BI models via SSAS tabular?
    Propdev

    inputComboboxListOfValues
    selectOneChoice
    inputListOfValues

  • A problem when importing an Adobe Premiere project into AE

    Hi
    I've recently had to reinstall my entire hard drive (all my Adobe software is CS5)
    After the reinstallation I created a new Premiere project, but when I tried to open it in AE as I always did (file-import-adobe premiere pro) it open an empty composition in AE.
    The composition is the same length as my Premiere project, and same size, but it is empty, and non of the video files appear in the Project window.
    I also tried to import a dynamic link - and I got the entire premiere edit, BUT it was all one layer, no cuts, and I can't work with that.
    Does anyone know how to fix this? It's quite urgent!!!
    Tnx

    Check your media cahce and its settings.
    My disk cache is enabled, and the maximum disk cache size is 10GB
    Other than that, can you be more specific, as to what I should look for there? And if it's a codec issue, is there any way to check which one?
    Tnx
    Shir

  • Problems when calling the SOAP adapter from a Webdynpro

    Hi,
    An error occurs in the SOAP adapter when sending a message from a Webdynpro client. I have downloaded the SAP Soap Client and made the same test and that works fine.
    I had to do some debugging to finally find the stack trace found below.
    Does anybody have an idea of why the call doesn't work from Webdynpro?
    <text>com.sap.aii.af.service.cpa.CPAException: invalid channel (party:service:channel) = &lt;null&gt;
         at com.sap.aii.af.mp.soap.web.MessageServlet.getChannelID(MessageServlet.java:415)
         at com.sap.aii.af.mp.soap.web.MessageServlet.doPost(MessageServlet.java:377)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:95)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:160)</text>
    </s:SystemError>
    Thanks for help,
    Hans

    Hi Suraj
    First I should mention that I have imported a generated WSDL from XI to create the Model and thus the port configuration. The URL looks like this:
    http://<host>:<port>/XISOAPAdapter/MessageServlet?Version=3.0&amp;Channel=:Telia_Kundservice_portal:Sender_SOAP&amp;version=3.0&amp;Sender.Service=Telia_Kundservice_portal&amp;Interface=urn%3Aacandofrontec.se%2FTelia%2Ffaktura%5ETelia_faktura_4
    Service = Telia_Kundservice_portal
    Channel = Sender_SOAP
    I've also tried with a modified shorter version which is also the one I'm using from the SAP SOAP client.
    http://<host>:<port>/XISOAPAdapter/MessageServlet?channel=:Telia_Kundservice_portal:Sender_SOAP
    The actual call is a typical one:
    wdContext.currentRequest_Faktura().modelObject().execute();
    Before this call the Basic authentication (user/passw) is set.
    Regards,
    Hans

  • How can I include Java Bean model into the model outside the component

    Hi All,
    I am new to SAP portal. I wanted to create a bean for storing the data and to include that into the application model.
    Please help me with an example .
    Regards,
    Saroj

    Hi,
      Check these blogs.
    The specified item was not found.
    Importing Complex JavaBean model into WebDynpro by creating relationships for the model classes
    JavaBean Model Import: when it really works
    Issue in Importing Java Bean Model
    Regards,
    Harini S
    Consider rewarding points for helpful answers. Post this thread in WD forums for more results.

  • Problem when importing two photo galleries with the same name. Please Help!

    Hi Guys,
    I'm not a pro in dreamweaver so I would appreciate if your answer wouldn't be too technical...
    Anyway I have experienced a problem. Heres the sotory, I have been making a websie in DW and used Adobe Bridge CS5 to create a photo gallery SWF file that I would use for my website. The problem is that I want to use two different photo galleries on two different pages however when I save my second photo gallery in bridge, it saves every file with the exact name as the first photo gallery I created and is working fine... Thus when I try to import the photo gallery files into my website folder structure, I find that it asks me to rename them because the files from the first photo gallery are called the exact same names.. Now obviously when I try to rename them dreamweaver gets confused and goes to the wrong folder and uses the images from my first photo gallery in the second one.
    So I guess my question is how can I organize my folder structure to be able to import multiple galleries without dreamweaver getting confused because bridge names all the files the same. Or how could I save the files through bridge so that they have different names and will work fine when I import into DW...
    Thanks and sorry for the essay,
    Patrick

    #1 You cannot have two files / folders or galleries with the same name.  Redo your image Galleries with different names.
    #2 SWF (flash) is not visible to iPhone, iPad, iTouch, Android or other web devices that don't support Flash Player.  These users will see nothing.  You might wish to explore other photo gallery / slideshow options that rely on jQuery instead of Flash technology.  Some links below.  A Google search will reveal many others.
    jQuery WOW Slider
    http://wowslider.com/
    jQuery Cycle
    http://www.malsup.com/jquery/cycle2/
    jQuery Nivo Slider
    http://dev7studios.com/nivo-slider/
    Nancy O.

  • I am using Lightroom on my MAC where I import the finalized JPEG-pictures into iPhoto to create a slideshow (for instance in combination with films). When exporting the slideshow with a 1080p resolution to iTunes I experience difficulties (missing slides

    I am using Lightroom on my MAC where I import the finalized JPEG-pictures into iPhoto to create a slideshow (for instance in combination with films). When exporting the slideshow with a 1080p resolution to iTunes I experience difficulties (missing slides and black transitions). When using JPEG-pictures directly from the camera there are no problems, so the manipulation in Lightroom seem to cause corrupt files. Does anyone recognize tje problem and could it have anything to do with the introduction of the Yosemite software? Is Lightroom already Yosemite-proof?

    In iPhoto 11 the Originals folder is renamed Masters.
    IPhoto menu -> Provide iPhoto Feedback and report the bug.
    Regards
    TD

  • Problem while importing the ejbean jar file as model

    hi
    i created one sample ejb appication and jar the same and then trying to import the same as model(using option like Import JavaBean Model) in my webdynpro,but is giving error there are no java beans to import.
    is it possible to import ejbbean like normal javabean?
    if yes,why the above problem is coming?
    can anyone give the solution?
    thanks in advance
    Vasu

    Satish,
    thank you for reply.
    this way i already implemented and it was worked fine.
    we can not suggest to publish our own ejb component as webservice right?
    and i am thinking one more way of doing that is, we can implement one value bean(normal java bean to communicate ejb component internally)and import that jar as our model class in webdynpro.
    is this scenario will work?
    if this works,then how to make jar file which is maintain the both javabean and ejbcomponent as one thorugh NWStudio.
    Thanks
    Vasu

  • I tried to import a PDF of a line drawing into Photoshop Elements. The thumbnail looks fine, but when imported the file is empty. This used to work in the past. What is wrong and how do I solve this?

    I tried to import a PDF of a line drawing into Photoshop Elements. The thumbnail looks fine, but when imported the file is empty. This used to work in the past. What is wrong and how do I solve this?

    Hi
    The value of the Channel Strip volume etc is not stored within the C Strip setting, as you have discovered.
    If you really wanted, you could add a Gain plug to the strip, with it set to give the correct output level with the Fader set to 0
    (Or just set the fader manually in MS)
    CCT

  • FK DELETE RULE problem when importing 8i SCHEMA on 10g

    Hi everyone,
    I´m having the following problem:
    When importing a SCHEMA dump from an 8i database to a 10g one, some foreign key´s delete rule are changed from 'no action' to 'set null' automatically, even though the whole SCHEMA was imported.
    Has anyone ever had the same problem?
    Thanks a lot,
    Bruno

    I did some more research and I think I was completely misunderstanding Oracle's implementation of delete rules. Now I believe that Oracle implements the "RESTRICT" option in SQL Developer Data Modeler as "No Action", which is the default option, hence why no DDL option is generated. However, it would still be nice if Data Modeler could detect this fact when comparing two models. What I mean it, if comparing an Oracle DB to a model, treat Restrict and No Action as the same, and thus don't attempt to re-generate the DDL for this "difference". For now, I'll just change the action on my models to No Action, and this should resolve the issue.

  • TS5179 I've been bitten by the "Missing MSVCR.dll file" problem when downloading the latest iTunes update (PC w/ Win-7 & Outlook-2007#. 'Have followed Apple's instructions of un-installing all Apple software, and re-installing it. #out of space...??)

    I've been bitten by the "Missing MSVCR.dll file" problem when downloading the latest iTunes update, 11.4.62 (on a PC w/ Win-7 & Outlook-2007#. 'Have followed Apple's instructions of un-installing all Apple software, and re-installing it (Ugh).  First result Outlook couldn't find my 1,385 item contact file in iCloud, although the outlook distribution lists were there.  Second result, upon installing iCloud again, I have two iCloud contact files shown in outlook - "iCloud" & iCloud, within iCloud".  1,332 & 1,385 contacts respectively. 
    Plus an iCloud installation error message saying iCloud moved 6,835 files to a "deleted items folder" somewhere.  This is NOT fun at 72-yrs old...!!
    So, how do I make sure I haven't lost anythying from Outlook?   Russ-AZ

    Interesting response, Kappy  -  Back to original post: "First result: Outlook couldn't find my 1,385 item contact file in iCloud, although the outlook distribution lists were there (therefore, initially I had lost my contact file from Outlook).  Second result, upon installing iCloud again, I now have two iCloud contact files shown in Outlook - "iCloud" & iCloud, within iCloud".  W/ 1,332 & 1,385 contacts respectively.  
    Plus an iCloud installation error message saying iCloud moved 6,835 files to a "deleted items folder" somewhere.  This is NOT fun at 72-yrs old...!!
    So, how do I make sure I haven't lost anythying from Outlook?   Russ-AZ"
    You can safely assume that I have tried using it!   So, to make things a little clearer:
         1)  I now have two iCloud "contacts files", w/ a different total count. What's the difference?  Why the different toatl count?
         2)  Since re-installing the Apple software (part of the MSVCR" recovery instructions) "couldn't possible affected Outlook", why am I getting an iCloud installation error message saying iCloud moved 6,835 files to a "deleted items folder" somewhere.  What's in those files? And where are they?
    Probably more important questions get down to:
         3)  Why is a basic Apple product upgrade "screwing-up Outlook"?  This iTunes upgrade, failing to install properly forced Outlook 2007 into a 2-min start-up cycle.  Which was fixed with this "Goat-Rpdeo" of re-installing MSVCR80.dll.
         4)  And under the latest release of iOS-7.0.4 on our iPhones, why is Apple now forcing us to use the iCloud to back-up our contacts, calendars & tasks, vs. allowing these files to be backed-up directly on our PC's via the USB cable?
    Thanks again for your interest and comments.  - Russ-AZ

  • Audio problem when importing video files.

    Hello everyone,
    I just started using FCP X a few days ago for a university project and I seem to encounter an audio problem when importing videos in .mp4, .mov format or via the import from camera option.
    Indeed I need to import videos in .mp4 and .mov format into FCP X. The import in itself is normal I can see my videos into the events/clips library and if I play them from the library I can hear the sound quite perfectly.
    However, when I want to edit my videos and put it in the timeline, there is no audio. As a result I started to think that my videos could be the problem so I tried the option "import from camera" option using the Isight camera of my macbook pro but the same things happened. I could hear the sound from the events/clips library but not from the timeline (I can't see any audiowaves in the timeline).
    I found a solution using quicktime and extracting the audio of the video in .m4a then importing the videos files and the audi files corresponding but it's a long process and a waste of time  as FCP X should be able to import the audio of my video into the timeline directly. Especially if it can read it from events/clips library.
    I hope I explained myself clearly and you could help me resolve my problem.
    Cheers
    Christophe
    PS: I'm using FCP X version 10.0

    Update to 10.0.5.
    You have an incorrect setting when you edit. Try trashing your preferences. Post screen shots of your timeline and toolbar.

  • I am currently using Lightroom 5.6 and operating on a Mac with OSX Ver 10.9.5. I am receiving an error problem when doing the following -  I am exporting selected photos from a particular Catalogue saved on Drive 1 to a folder created on another Drive whe

    Hi, I am having a little trouble with exporting images to another drive and Catalogue and need some help if anyone can give me some advice
    I am currently using Lightroom 5.6 and operating on a Mac with OSX Ver 10.9.5.
    I am receiving an error problem when doing the following -
    I am exporting selected photos from a particular Catalogue saved on Drive 1 to a folder created on another Drive where a Lightroom Catalogue has been created. In this Catalogue I have arranged for the images once exported to be moved to a different folder - I used the Auto Import process under the File dialogue box.
    When processing the Export I receive an error message for each of the images being exported indicating the following -
    Heading Import Results
    Some import operations were not performed
    Could not move a file to requested location. (1)
    then a description of the image with file name
    Box Save As                                  Box  OK
    If I click the OK button to each image I can then go to the other Catalogue and all images are then transferred to the file as required.
    To click the OK button each time is time consuming, possibly I have missed an action or maybe you can advise an alternative method to save the time in actioning this process.
    Thanks if you can can help out.

    Thank You, but this is a gong show. Why is something that is so important to us all so very, very difficult to do?

Maybe you are looking for