Web Dynpro Model Wizard Exception
Hi there,
I've recently installed the latest Netweaver'04 Sneak Preview and I get the following exception when generating an R3 Adaptive RFC model (using the "create model" Wizard):
org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NoClassDefFoundError: com/sap/tc/logging/LogController)
Here are the rest of the details that the error displays:
Plugin: Web Dynpro Model Editor Services
Pugin ID: com.sap.ide.webdynpro.service.modeleditor
Class: com.sap.ide.webdynpro.modeleditor.wizards.model.creation.ModelDialog
Method: nextPressed
Message: Internal error - see detail information in exception trace.
I'm on Version: 2.0.11 of the NetWeaver Developer Studio.
Anyone else out there with the same problem?
Thanks,
Gough
Hi,
Do check if the following link helps.
Problem Connecting with SAP R3 for creating new model
Regards,
Vijith
Similar Messages
-
Web Dynpro Model Editor - Wizard Exception
Hello,
I get the following error when I want to create model in Web Dynpro (Right click on Models > Create model):
Internal error
An internal error has ocurred. See error log for more details.
Plugin name: Web Dynpro Model Editor
Plugin ID: com.sap.ide.webdynpro.modeleditor
Class: com.sap.ide.webdynpro.modeleditor.ModelEditorCallback
Method: createModel
Message: An error ocurred. See error log for more details.
Exception: java.lang.NullPointerException: null
Developer Studio version: 7.0.11
Thanks for any advice,
Peter CenscakHi Peter,
We have already faced this problem in our company with Windows Vista machines. So, if you have Windows Vista, try to run NWDS under Administrator account and in Windows XP compatibility mode...
If not, probably you should re-install your NWDS.
Best Regards,
Juraj Sedik -
can anybody help me here.
I want to take some data from the backend system and want to display it into a table.hi,
follow this procedure
1. Choose the context menu entry Create Model on the Models node.
2. Choose Import RFC Model.
3. Make the required specifications in the second wizard window to define where the generated RFC proxies are to be stored.
4. In the next wizard window, log on to the SAP System that contains the BAPIs with the business logic.
5. Select the BAPIs for which you want to create Java proxies.
6. Choose Finish to start the proxy generation process:
7. In the Web Dynpro Explorer, choose Create Component Interface Definition in the context menu for the node Web Dynpro Component Interfaces.
8. Enter a name and a package and choose Finish.
9. The following structure is created in the Web Dynpro Explorer:
10. Place the cursor on the subnode Used Models and choose Add in the context menu.
11. Select the Web Dynpro model in the dialog box.
12. Choose OK.
Regards,
Sunaina Reddy T -
Web Dynpro Model Generation for Application Services
Hi Experts,
I'm currently experimenting with the new functionality provided by CE, but there is one thing that I can't seem to figure out. How does the new Web Dynpro model generation work with regards to CAF Application Services? I'm trying to call an application service from a web dynpro application, but it seems as if models are completely different from Netweaver 7.0. What type of model do I need to create? Do I have to expose the application services as web services?
I've tried creating an EJB model and then binding the model to the context, but I kept receiving null pointer exceptions when doing this and I'm not sure if this is the correct way to do this. Can anybody point me to some good documentation on Web Dynpro/CAF interaction in CE?
Thank you,
JPHi JP,
You are right, the CAF models are completely different in NW CE 7.1 compared to NW 7.0.
CAF Application Services in CE 7.1 are in fact EJBs. So the EJB model importer is the way to go. You can find <a href="http://help.sap.com/saphelp_nwce10/helpdata/en/45/dd45e4bc295595e10000000a1553f7/frameset.htm">documentation</a> and some <a href="http://help.sap.com/saphelp_nwce10/helpdata/en/45/f7f744aea471fae10000000a1553f6/frameset.htm">tutorials</a> on help.sap.com. If you still have troubles after you go thru these, please post your concrete issues and I'm sure we'll be able to figure out what's been going wrong.
HTH!
-- Vladimir -
Hi All
I have created Web Dynpro Model out of my CAF project. I followed this <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/8b7059da-0c01-0010-e09c-9ecabaf58864">tutorial</a> to create Web Dynpro model and use it in other DC. In the other DC, I added all the other required DCs mentioned in the tutorial such as caf/core/dict, caf/ui/ptn/common and tc/col/runtime with each of them havin dependency type as build and deploy.
After I do model mappings in controller and view, deploy and run the application, I m gettin the following exception
"java.lang.NoClassDefFoundError: com/sap/tc/col/client/generic/api/IQuery "
Has anybody ever got this exception ?
any help on this will be appreciated with points
Regards
DharanishHi ,
check the following depedencies in Public part of the component,
caf/core/dict
caf/eu/gp/api/wd(GPWdbDynpro)
Caf/eu/gp/api(external)
caf/runtime/uicoupling/api(compilation)
caf/UI/ptn/common(com.sap.caf.ui.utils)
com.sap.aii.proxy.framework(defalut)
com.sap.exception(default)
com.sap.mw.jco
com.sap.security.api.sda
tc/cmi
tc/ddic/metamodel/content
tc/logging
tc/wd/webdynpro
tc/wdp/metamodel/content
and then add following two in library reference in webdynpro refrence,
if your using the GP interface we have to include the "cafeugp~api"
for caf ->sap.com/cafruntimeuicouplingapilib
Thanks,
Balaji.B -
Error when Creating Web Dynpro Model in CAF-Service
Hi All,
I reaaly need help. AFter updating to SPS 9, it was necessary to redeploy my Entity Service. That contains to "Create a Web Dynpro Model" in the Service Explorer,
to get an interface of the Service in my Web Dynpro Application.
Before I update to SPS 9, the Application works fine.
But now, when I want to "Create a Web Dynpro Model" in the NWDS I get the following Error-Message (its not a useful Error-Message):
<i>Error cannot create Web Dynpro Model:
Creation of Web Dynpro model failed. Reason: null </i>
Thanks for helping me
SteveHi Aliaksei,
the problem in the thread is the same I got.
When I use only 7 letters for the operation name, the creation work. When I use more then 7 letters the creation doesnt work.
But its hard to find a methodname with only 7 letters.
In SPS 8 I didnt have problems with the length of method names. Why is it so?
The workspace log:
!ENTRY com.tssap.util 4 0 Okt 10, 2006 15:12:45.577
!MESSAGE Oct 10, 2006 3:12:45 PM com.sap.ip.mmr.foundation.AssociationsOfObject [Thread[main,5,main]] Error: com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 35, 3c, 3f(:main:, row:1, col:3)(:main:, row=1, col=3) -> com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 35, 3c, 3f(:main:, row:1, col:3)
!ENTRY com.tssap.util 4 0 Okt 10, 2006 15:12:45.592
!MESSAGE Oct 10, 2006 3:12:45 PM com.sap.ip.mmr.foundation.AssociationsOfObject [Thread[main,5,main]] Error: com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 35, 3c, 3f(:main:, row:1, col:3)(:main:, row=1, col=3) -> com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 35, 3c, 3f(:main:, row:1, col:3)
!ENTRY com.tssap.util 4 0 Okt 10, 2006 15:12:48.705
!MESSAGE Oct 10, 2006 3:12:48 PM com.sap.ide.metamodel.core.service.FileSystemService.comp... [Thread[main,5,main]] Error: absolute path too long (253) for MDO:
!ENTRY com.tssap.util 4 0 Okt 10, 2006 15:12:48.705
!MESSAGE Oct 10, 2006 3:12:48 PM com.sap.ide.metamodel.core.service.FileSystemService.comp... [Thread[main,5,main]] Error: absolute path too long (253) for MDO:
!ENTRY com.tssap.util 4 0 Okt 10, 2006 15:12:48.705
!MESSAGE Oct 10, 2006 3:12:48 PM com.sap.ide.metamodel.webdynpro.implementation.ModelProxy... [Thread[main,5,main]] Error: could not get a valid path for ModelClass "cas.conti.com.sap.cd.database.services.cd_database.changedescriptiontableservice.QChangeDescriptionTableServiceFindByTitle" (path too long?)
!ENTRY com.tssap.util 4 0 Okt 10, 2006 15:12:48.705
!MESSAGE Oct 10, 2006 3:12:48 PM com.sap.ide.metamodel.webdynpro.implementation.ModelProxy... [Thread[main,5,main]] Error: could not get a valid path for ModelClass "cas.conti.com.sap.cd.database.services.cd_database.changedescriptiontableservice.QChangeDescriptionTableServiceFindByTitle" (path too long?)
Thanks
Steve -
Generate Web Dynpro Model?
Hi,
I'm familiar with DS 7.0, and I'm begining to lear 7.1 recently.
I searched for tutorials and in the forum, but I can't find how to create a Web Dynpro model from a CAF DC, in 7.0 it was just a right click and generate WD Model, can you help me please?
thanks a lot!Hi Maldonado,
Check this link first:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0ee5047-c7a0-2a10-70b7-9557e3e4d440
Reward points if it's helpful.
Regards, -
Web Dynpro Code Wizard doesn't have context tab
When doing web dynpro development and when clicking the Web Dynpro Code Wizard, I can't see the context tab. It looks like this: [http://twitpic.com/z2q92]. In other SAP systems I have seen the wizard look like this, where it has two tabs one of which is the context tab: [http://twitpic.com/z2qgh]. As the context tab is very useful, I would like to know how to get it to display.
I have searched in the SE80 settings and can't find any option related to this. I also searched the forums here and could not find any related posts. We're using the 700 release level 13 (as seen in this screenshot: [http://twitpic.com/z2qkf]). Is there something I can do to make this tab appear? If we need to implement a note or a newer support pack, which one would it be?As you stated the system without the context tab is NetWeaver 7.0. The context tab and the extra wizards were new features in NetWeaver 7.0 Enhancement Package 1. Your system would have to be updated to this NetWeaver Enhancement Package level in order to have this functionality.
-
Adding a Web Dynpro Model on a Composite Apllication Component in CE 7.1
Hi experts,
I am trying to add a web dynpro model to a Composite Application DC.
I am using SAP NW CE 7.1.
In CE 7.0, this was done by simple right click on the CA DC.
but i am not able to do it in CE 7.1.
Can somebody tell me how do i add a web dynpro model to a composite application DC???
basically i need to add a UI corresponding to a composite application?????
Cheers
Gaurav RaghavHi Srinivasan Subbiah,
The option you just mentioned is disabled.
how can i enable it???
Also let me explain what i need.
I have a 3 step process where in a user fills a form and sends it to his manager, who appoves/reject it based on some criterias. then the approval/rejection alert is send back to the user.
Now i need to develop the UI as well as Business Logic for this process.
How do i go about it?????
I can develop the UI in a Web Dynpro DC and the Business Logic in a Composite Application DC. How do i associte one with the other????
In CE 7.0, this was achieved by addind a Web Dynpro Model in the Composite Application Project. How do i acheive the same in CE 7.1 ?????
Thanks and cheers
Gaurav Raghav -
Web Dynpro Code Wizard - code patterns
Hello,
the code patterns that are generated by the very helpful Web Dynpro Code wizard seem to be a little inconsistent in their syntax structuring.
If I were to ask the wizard to read me a context node - I would get something like (some bits removed for brevity):
data lo_nd_result type ref to if_wd_context_node.
data lo_el_result type ref to if_wd_context_element.
data ls_result type wd_this->element_result.
* navigate from <CONTEXT> to <RESULT> via lead selection
lo_nd_result = wd_context->get_child_node( name = wd_this->wdctx_result ).
* get element via lead selection
lo_el_emp_search_result = lo_nd_emp_search_result->get_element( ).
* get all declared attributes
lo_el_emp_search_result->get_static_attributes(
importing
static_attributes = ls_emp_search_result ).
Yet if I were to ask the wizard to generate a message I would get:
* get message manager
data lo_api_controller type ref to if_wd_controller.
data lo_message_manager type ref to if_wd_message_manager.
lo_api_controller ?= wd_this->wd_get_api( ).
call method lo_api_controller->get_message_manager
receiving
message_manager = lo_message_manager
* report message
call method lo_message_manager->report_t100_message
exporting
msgid =
msgno =
msgty =
* p1 =
* p2 =
* p3 =
* p4 =
* msg_user_data =
* is_permanent = ABAP_FALSE
* scope_permanent_msg = CO_MSG_SCOPE_CONTROLLER
* view =
* show_as_popup =
* controller_permanent_msg =
* msg_index =
* cancel_navigation =
* enable_message_navigation =
receiving
message_id =
Edited by: Thomas Jung on Apr 27, 2010 8:56 AMpost split to avoid silly size/formatting limits
Ok - both work - but one is using the:
result = class_ref->methodname( parameters = paramvalue )
and one is using
call method class_ref->methodname
exporting parameters = paramvalue
receiving result = result.
As I often have to review code written by others, I encourage them to use these wizards - it helps speed code and prevents simple mistakes. But code that contains multiple different syntax structure approaches is harder to read (albeit only slightly), moreover - it looks sloppy.
But why are they not consistent in their syntax structure? (one could also argue why do we have multiple syntax structures for the same operation - but that's a different discussion).
Is there some way customers can update these structures to match with their own internal coding standards - or something we can change so that they go one way or another?
I look forward to other's thoughts on the same topic.
Cheers,
Chris -
Quick Question: ABAP web-dynpro model relies on JCO?
Hi gurus,
As mention in subject. Does ABAP web-dynpro model relies on JCO?
Did a quick search without solid answers...JCO, is Java Connectors to connect SAP from Java world
You don't need any JCO when you are in the same ABAP Stack
There is no model Nodes/Attributes in Web Dynpro ABAP as in Java, because you are in the same ABAP Stack
Abhi
Edited by: Abhimanyu Lagishetti on Jul 10, 2008 11:35 AM -
UI-Type using the Web Dynpro Dode Wizard
Hi,
every time i use the Web Dynpro Code Wizard and choose the Form i still get the UI-Element-Type "InputField". Is it possible to select ohter Element-Types for example DropDownByIndex or Text_Edit?
i hope we can fix this.
best regards,
MichaelOfcourse you ca change it to UI-type that you want.
change the Standard Cell Editor to DropDownbyKey all the UI elements will change(Default it will be InputField because most of the forms contains more number of InputFields ), also you can change the individual context attribute UI type also by changing the CellEditor of a table Column.
Abhi -
Inheritance in Web Dynpro Model
Hello
This is the current situation:
I have 3 JPA entity classes much like these (including constructors, getters, setters, ...).
@Entity
public abstract class OuComponent {
@ManyToOne
private Ou ou;
@Entity
public class Ou extends OuComponent {
@OneToMany
private Collection<OuComponent> ouComponentCollection;
@Entity
public class Person extends Component {}
In the database, OuComponent has a discriminator column.
This structure appears to work in a normal web module and an EJB Module.
In Web Dynpro, using a model, I can create a new Person and attach an existing Ou to it (through the inherited property ou from OuComponent).
However, when I try to display the information, I recieve the following error:
java.lang.IllegalArgumentException: Cannot perform write operation 'setRelatedModelObjects' on target role: Class 'Person' is not compatible to class 'OuComponent' of target role 'ouComponentCollection' in model class 'Ou'
It appears that Web Dynpro does not realise that Person is actually a subclass from OuComponent. I think it simply checks the discriminatorcolumn for the word 'OuComponent' and throws this exception because it finds a related entity of the type Person instead of OuComponent (even though, as stated, Person IS-A OuComponent. Web Dynpro just seems to ignore it).
How could I bypass this?
Thanks for your feedbackHi Vincent.
Have you resolve this problem? If yes, could you post the solution?
Regards
Marcos Brandã -
Creating web dynpro model from XMII web service
Hi All,
need some help, after creating model in Web Dynpro from XMII WSDL file everything is fine but when i execute the service. I'm getting the following error:
<b><i>Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.XmlUnmarshalException: XML Deserialization Error. XML is not valid. Element [http://www.sap.com/xMII]<OutTxRecordSetXML> is required in <OutTxExecutionMsg> but can not be found.</i></b>
Please help!
Regards,
RajHi Sam,
i am providing login details, if i dont i see the authorization error message. I'm using runner to access the BLS transaction now to get the xml data. I'm wondering if there's something wrong on the XMII side, some config?
Regards,
Raj -
I have a Web Dynpro application in which a user will enter information and click a button to call an RFC. The RFC then returns data to a new view. The user can make changes to this view, and will hit a button to call a BAPI. I am using a custom controller. I am not sure how to feed the results from my RFC to my BAPI. Can someone give me some pointers as to where to begin?
Hi Maz,
Follow This Procedure,
Create Model:
Create a new Model for Your Webdynpro Project.
Name your Model and Give The R/3 Login details
After successful login select your RFC FM module/BAPI
Add your Model to component.
Mapping:
Do Mapping between Model and Your component controller.
Do Mapping Between your component Controller and View
Binding:
Create Required UI elements.
Bind your UI elements
Code:
Write a method to execute You BAPI.
Create a Model Object in InitView and Bind it.
Call execution method.
Regards,
<b>Ramganesan K</b>
Maybe you are looking for
-
Problem with Number conversion!
Hi all I am reading data from a msSQL Database. One value is a decimal format 9(10,3)(means 10 digits in total (including the ',' ; 3 decimal afer the comma) I am receiving for instance the value 567.200 from the DB. To do an RFC to a SAP System I ha
-
My ipad mini is having a seziure
i try to go onto facebook and scroll down through my feed and then all of a sudden the screen starts jittering up and down. This is like an ipad seziure is it because my screen is cracked, illuminatti or just a bug that needs to be fixed? please help
-
Need help displaying rank of records in report
Post Author: tpoland CA Forum: General I have a report that is contains summary information that needs to be ranked at the summary level based on performance.*note, this data is completely fictional Company Location Dealer Volume Walkin Volume CarQue
-
Problem configurationing Agents for sending email
Hi, Do you know how can I configurate option for add email recipients, so that I can type an email address and send agent by email ? Nowadays the option: "add email recipients" is only enable for user administrator and I need enable for another users
-
Export photos with original metadata
I have original photos that states the time taken and all other datas of my camera but once I edited and export from aperture, the new photos do not have the original metadata in it anymore. Is it possible to export photos with the original/master me