Unable to reimport model.
I'm using NWDS 7.2 SP03. I have to reimport several Adaptive RFC 2 Models. I successfully reimported some of them, but for some others I get a failure. In the Error Log there are these messages:
method: doReimportDynRfc2Model -> Adaptive RFC2 model reimport failed [Error: com.sap.cmi.modeltype.arfc2.wizard.ARFC2ModelCreationWizard Thread[ModalContext,6,main]]
Internal Error
Plug-In Name: Model Type Adaptive RFC 2
Internal Error : com.sap.cmi.modeltype.arfc2
Class : com.sap.cmi.modeltype.arfc2.wizard.ARFC2ModelCreationWizard$2
Method : doReimportDynRfc2Model
Message : Adaptive RFC2 model reimport failed
Exception : java.lang.NullPointerException: null
[Error: com.sap.ide.tools.services.ui.dialog.DialogService Thread[ModalContext,6,main]]
If I do a "Reimport preview" of the failing models I get a pop-up window with the message "Cannot find model delta"
and in the error log there is the message:
Internal Error
Plug-In Name: Model Type Adaptive RFC 2
Internal Error : com.sap.cmi.modeltype.arfc2
Class : com.sap.cmi.modeltype.arfc2.service.ARFC2ModelCreationService
Method : createModel()
Message : Failed to create model
Exception : java.lang.NullPointerException: null
[Error: com.sap.ide.tools.services.ui.dialog.DialogService Thread[main,6,main]]
Any help is greatly appreciated.
Regards,
Livio
Yugandhar,
thank you for your reply. I moved my workspace to another machine with a NWDS SP01 and it works!!
I got one question. At present my NWDS and the target NWCE are both at SP 03 level.
If I change the SP level of my NWDS, must I change also the NWCE?
In other words, the NWDS and NWCE can be at a different SP level?
Thank you and best regards,
Livio.
Similar Messages
-
Unable to create model out of DO
Hi,
I created a Mobile Laptop WebDynpro DC in NWDS 7.1, the build and deploy work fine.
The problem is that when I attempt to create a Model based on a Data Object from the
Mobile Middleware 7.1 DOE, I always get an exception when the Data Object metadata is
imported (the last step of the Model Creation Wizard).
Here's the exception :
Status ERROR
Plugin : com.sap.ide.cmi.core
code=0
Internal error
Plugin name: Common Model Tools Core
Internal error : com.sap.ide.cmi.core
Class : com.sap.tc.mobile.dt.metaimp.ModelImportWizard
Method : run(IProgressMonitor)
Message : Failed to create model
Exception : com.sap.ide.metamodel.general.exception.ObjectRequiredException: ModelClassPropertySetting "//WebDynpro/ModelClass:ca.test.sandbox.mitest1.test3.ZTESTDATAOBJ/Property:ACTUAL/Setting:backendKey", Role "SettingDefinition": A minimum of 1 object(s) is required
ObjectRequiredException: ModelClassPropertySetting "//WebDynpro/ModelClass:ca.test.sandbox.mitest1.test3.ZTESTDATAOBJ/Property:ACTUAL/Setting:backendKey", Role "SettingDefinition": A minimum of 1 object(s) is required
at com.sap.ide.metamodel.webdynpro.implementation.ModelClassPropertySettingProxy._validate(ModelClassPropertySettingProxy.java:358)
at com.sap.ide.metamodel.core.DevelopmentObjectProxy.validate(DevelopmentObjectProxy.java:825)
at com.sap.tc.mobile.dt.metaimp.MBOModelImporter.doImport(MBOModelImporter.java:170)
at com.sap.tc.mobile.dt.metaimp.ModelImportWizard.createModel(ModelImportWizard.java:200)
at com.sap.ide.cmi.core.model.importer.CMIWizard$2.run(CMIWizard.java:197)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
I had read a similar thread @ the same problem.
Link:[Unable to create Model from DOE Data Object]
I do not have Mobile App Offline perspective coming in My NWDS.
I am using NWDS 7.1 sp03
Please help.
Edited by: Saptak Kulkarni on Jul 28, 2008 10:31 AMHi,
what is the error message?
In his example it seems his definition is not completed. As it sais: at least one.... required. So he should most likely complete his definition and then it should work.
What are you doing? Do your try to import objects of a simple MI7.0 standard app? If this is the case you will most likely run into problems cause MI7.1 does not support T51 BOs and so you will see an error message.
Regards,
Oliver -
Hi,
I was wondering how ABAP WebDynpro handles model changes?
In Java WD, you can do something called "Reimport model", which will then regenerate the context nodes for import and export and the java representing classes of ABAP objects/ddic structures etc.
Do you need to do that in ABAP WebDynpro? Or the developer is expected to change the generated method manually?
Cheers
MichaelElton,
Vijayakhanna is right: it is necessary to re-start server. After first model usage metadata get cached and stay in cache as long as server is running. So even you have modified model, stale metadata is returned unless you restart server.
Valery Silaev
EPAM Systems
http://www.NetWeaverTeam.com -
Build ERROR after reimport model, too many datatype deleted
Hi all,
now when I reimport model of my DC, I found too many datatype would be deleted after I press Finish. I think with this deletion my dc will never pass the build. All I wonder is why this happen, what kind of operation on back end will cause this kind of deletion.
I know there must be some changes behind java layer, but I dont know why they just delete datatype, I can not continue my work with these models, they are too many, I can not fix them all or delete&recreate them.
Give me some hint?
Best Regards,
WilliamHI William
There might be some changes done in your Backend [exsisting model]
so it is throwing dump when you are trying to reimport. what you can do is delete the exsisting model and try to create a new model. first take the back up of the project and experiment on the dummy project
Best Regards
Chaitanya.A -
Hi All,
Whatever I try, the option 'Reimport Model' in the context menu is disabled for my JavaBean Model.
Get's a bit anoying after having deleted the model, rebuild it, and reworked the context mappings for the gazillionst time.
Anyone any idea?
Thanks,
JurjenHi Jurjen,
We too have to face same problem again and again. But following points may help you:
1. When you add any attribute to your java bean, ensure that it has proper getter and setter method. Then go to model class which is generated based on Java bean class and manually add the attribute in that model class. You can do manual addition by double clicking the specific model class, going to properties and then clicking on New. Make sure that whatever property you are adding must have same name as what you have added as attribute to your java bean.Reflect it in mappings also.
2. If you are deleting some attribute from java bean class, remove it's getter and setter also. Then again in properties of corresponding model class, delete the associated property. Reflect it in mappings also.
3. If you have to do complete re importing of java bean model classes then in most of the cases we found out that mapping from Component Controller to Bean model have to be reconstructed but not from view to Component controller. Only some addition deletion of some attributes have to be done from view to Component Controller.
Regards,
Gopal -
Java.lang.NullPointerException while reimporting model
Hi All,
I have a Web Dynpro project that contains several models.
When I try to add a new RFC (by reimporting the model) I get java.lang.NullPointerException.
I can add the RFC to a new model without any problem but I need to add it to this specific model.
This is the full error:
Plugin Name: Web Dynpro Model Editor Services
Plugin ID: com.sap.ide.webdynpro.service.modeleditor
Class: com.sap.ide.metamodel.importers.rfcmodel.DynamicRFCModelImporter
Method: doImportDynRfcModel()
Message: The RFC could not be imported. Please rectify the error and then try importing the model.
Exception: com.sap.ide.metamodel.importers.rfcmodel.RFCImportFailedException: RFC Import failed. Cause: class java.lang.NullPointerException:null
java.lang.NullPointerException
at com.sap.ide.metamodel.importers.rfcmodel.DynamicRFCModelImporter.ImportRFC(DynamicRFCModelImporter.java:316)
at com.sap.ide.metamodel.importers.rfcmodel.DynamicRFCModelImporter.doImport(DynamicRFCModelImporter.java:196)
at com.sap.ide.metamodel.importers.rfcmodel.reimport.DynamicRFCModelReimporter.doImport(DynamicRFCModelReimporter.java:331)
at com.sap.ide.metamodel.importers.rfcmodel.reimport.DynamicRFCModelReimporter.getImportLog(DynamicRFCModelReimporter.java:264)
at com.sap.ide.webdynpro.modeleditor.wizards.model.creation.ModelWizard$11.run(ModelWizard.java:1344)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:302)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:252)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:758)
at com.sap.ide.webdynpro.modeleditor.wizards.model.creation.ModelWizard.doReimportDynRfcModel(ModelWizard.java:1361)
at com.sap.ide.webdynpro.modeleditor.wizards.model.creation.ModelDialog.nextPressed(ModelDialog.java:69)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:316)
at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:423)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2022)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1729)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:583)
at org.eclipse.jface.window.Window.open(Window.java:563)
at com.sap.ide.webdynpro.modeleditor.ModelEditorCallback.reimportModel(ModelEditorCallback.java:218)
at com.sap.ide.webdynpro.service.modeleditor.ModelService.reImportModel(ModelService.java:207)
at com.sap.ide.webdynpro.service.modeleditor.ServiceWithUI.reImportModel(ServiceWithUI.java:120)
at com.sap.ide.webdynpro.tsmodel.application.actions.ReimportModelAction.run(ReimportModelAction.java:11)
at com.sap.ide.webdynpro.projectbrowser.actions.PBReimportModelAction.run(PBReimportModelAction.java:77)
at com.sap.ide.webdynpro.projectbrowser.actions.PBDevelopmentObjectAction.runInternal(PBDevelopmentObjectAction.java:80)
at com.sap.ide.webdynpro.projectbrowser.actions.PBDevelopmentObjectAction.run(PBDevelopmentObjectAction.java:61)
at com.tssap.selena.model.extension.action.SelenaActionCollector$GenericElementActionWrapper.run(SelenaActionCollector.java:224)
at com.tssap.util.ui.menu.MenuFactory$MuSiAction.saveRunAction(MenuFactory.java:1425)
at com.tssap.util.ui.menu.MenuFactory$MuSiAction.run(MenuFactory.java:1407)
at com.tssap.util.ui.menu.MenuFactory$DelegateAction.processInternal(MenuFactory.java:616)
at com.tssap.util.ui.menu.MenuFactory$DelegateAction.access$100(MenuFactory.java:586)
at com.tssap.util.ui.menu.MenuFactory$DelegateAction$BusyProcessWorker.run(MenuFactory.java:716)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at com.tssap.util.ui.menu.MenuFactory$DelegateAction.process(MenuFactory.java:610)
at com.tssap.util.ui.menu.internal.MenuListenerFactory$ProcessAdapter.widgetSelected(MenuListenerFactory.java:172)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2022)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1729)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1402)
at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
at com.tssap.util.startup.WBLauncher.run(WBLauncher.java:79)
at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
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:324)
at com.sap.ide.eclipse.startup.Main.basicRun(Main.java:286)
at com.sap.ide.eclipse.startup.Main.run(Main.java:795)
at com.sap.ide.eclipse.startup.Main.main(Main.java:602)
I tried to restart the NWDS or test it on another computer - didn't help.
My NWDS version is SP16.
Thanks,
OmriHi,
Check whether this helps.
RFC Reimporting failed
BAPI Reimport
-Nagarajan. -
Dont want to restart Server everytime I reimport model
Hello,
Everytime I reimport a model, I get a popup saying "Please restart your J2EE Server......" with no option to cancel it.
Any ways I can avoid this?
Regards,
ShubhamHi Shubam,
Whenever u <b>Reimport </b>the model server <b>Restart </b>is necessary otherwise the changes will not be reflected. You will get an error when you deploy the application.There is no go around except restarting the server because after first model usage metadata gets cached and stay in the cache as long as the server is running .So, Once you restart the server the cache will be cleared.
Refer to the below thread once.
Re: Need to Restart J2EE Engine after Reimporting a Model
Regards,
Jhansi -
RFC doesnt show up in reimport model
Hi,
We have created a ZRFC and when reimport and add that to the model . after i give the login credentials for the ECC and search for the RFC it doesnt show up in the search. But it still exists in the system. Do I have to do anything like exposing it as service to show up in the list.
Please let me know.
Thanks,
JamesHi,
Yes, RFC should be remote enabled. Also, make sure that your server credentials are pointing to server , where RFC exists and not any other server.
Regards,
Apurva -
NullPointer after Reimport Model
Hi,
I have reimpoert a model to add a new output-parameter. So I made a reimport. Than a DC-Build and than I edit my model binding to add the new parameter in my context.
But now I get a Nullpointer-Exception. It seems, that it makes the model-execute and the node-invalidate but there is no data in the fields.
Have I forgot something during the reimport process?Hi,
Please reffer this error :in the portal
Hope Help full !!!
Regards
Vijay -
Reimport model requires server restart for version nw 04s sp15
Hi All,
Does reimport of model requires sever restart in NW 04s sp15, Sometimes it works with out restart of server. .Please give your inputs.
Thanks.Hi,
The J2EE engine holds a cache of deployed model objects that is optimized by technical system.
Therefore if there are updates in the metadata of a deployed model object, it is necessary to restart the J2EE engine to flush this cache, and make the new interface metadata available to the Web Dynpro application.
Its not always required to restart the server.Its only required when there are updates in the model object.
Thanks n Regards,
Archana -
Reimport Model after BAPI Changes
Hi,
Understand that a workaround to refresh the cache/metadata is to restart the J2EE server, after some BAPI changes and reimport the model.
Is there any solution without restarting the J2EE server?
Thank you.Hi Vincent,
The only possible way to refresh the Metadata is to restart the J2EE server.
check this link
Reimport a Model of a Custom Bapi Function
Regards,
shyam. -
Rt - unable to deploy model and fpga code
hi all,
we are having trouble getting our code to deploy to a rt target and fpga
We are unable to use the network shared variables to communicate between the FPGA and RT target, details below, does anyone have a suggestion?
system:
Host : windows 7, NI Labview 2014, MIT / Vertistand installed
Target: PC with Labview RT & PCIe 7852R FPGA
we have a standalone working FPGA code working (verified) and we added a "Network Published Shared Variable with RT FIFO enable using Single Element"
our idea is to read an encoder and calculate the counts (this part works) using the FPGA, we then want to send that info to a vi running on RT target and display the value. eventually our RT target will have a model/controller built , but right now we only want to read and display a single value.
When we run, we get the following erros:
based on reading the forum, we tried to reset the MAX database to get the "NI Variable engine" because the windows services shows the ni variable engine is not running.... we tried this and it did not work...
any help will be apprecated,
also here is our project structure...Hi JK,
Are you sure you're trying to use network published shared variables to communicate between the FPGA and the RT target? Could you explain that a bit more or provide code screenshots (or actual code)? Typically, there are two ways to communicate with an FPGA VI: read/write controls, and a DMA FIFO (the thrid, less common way, is User-Defined I/O Variables). These methods are abstracted when using VeriStand because the XML you import (the *.fpgaconfig file) tells VeriStand how to interact with the bitfile via these methods. If you are using the Model Interface toolkit, you are using LabVIEW (not VeriStand), so you will need to get the encoder values from the FPGA via read/write controls or a DMA FIFO. This is accomplished on the RT side by using the FPGA interface functions palette:
FPGA Interface VIs and Functions
http://zone.ni.com/reference/en-XX/help/371599K-01/lvfpgahost/fpga_interface_palette/
Transferring Data between the FPGA and Host (FPGA Module)
http://zone.ni.com/reference/en-XX/help/371599K-01/lvfpgaconcepts/fpga_data_transfer_overview/
The RT code can read and write to network published shared variables, but the FPGA cannot access them.
Kevin W.
Applications Engineer
National Instruments -
Unable to Distribute Model View in BD64
Hi Gurus,
Model View - SR2CLNT251
Receiver of Model View - EA1CLNT251
i went to txcode bd64 > i clicked on model view SR2CLNT251 then went to edit > model view > distribute and clicking the logical system of EA1CLNT251. then error will be encountered.
Model view SR2CLNT251 has not been updated
Reason: No authorization to change model view SR2CLNT251
.....authorization object B_ALE_MODL
.....Parameter: activity 02, model view SR2CLNT251
i already given correct authorization to my ID, but still the error persists.
Please help. Thanks!
Regards,
TonyHi Tony,
You need authorization for authorization object 'B_ALE_MODL' in system I guess either in system SR2CLNT251 or in EA1CLNT251.
Best Regards,
Tushar -
Unable to create Model from DOE Data Object
Hi,
I created a Mobile Laptop WebDynpro DC in NWDS 7.1, the build and deploy work fine.
The problem is that when I attempt to create a Model based on a Data Object from the
Mobile Middleware 7.1 DOE, I always get an exception when the Data Object metadata is
imported (the last step of the Model Creation Wizard).
Here's the exception :
Status ERROR
Plugin : com.sap.ide.cmi.core
code=0
Internal error
Plugin name: Common Model Tools Core
Internal error : com.sap.ide.cmi.core
Class : com.sap.tc.mobile.dt.metaimp.ModelImportWizard
Method : run(IProgressMonitor)
Message : Failed to create model
Exception : com.sap.ide.metamodel.general.exception.ObjectRequiredException: ModelClassPropertySetting "//WebDynpro/ModelClass:ca.test.sandbox.mitest1.test3.ZTESTDATAOBJ/Property:ACTUAL/Setting:backendKey", Role "SettingDefinition": A minimum of 1 object(s) is required
ObjectRequiredException: ModelClassPropertySetting "//WebDynpro/ModelClass:ca.test.sandbox.mitest1.test3.ZTESTDATAOBJ/Property:ACTUAL/Setting:backendKey", Role "SettingDefinition": A minimum of 1 object(s) is required
at com.sap.ide.metamodel.webdynpro.implementation.ModelClassPropertySettingProxy._validate(ModelClassPropertySettingProxy.java:358)
at com.sap.ide.metamodel.core.DevelopmentObjectProxy.validate(DevelopmentObjectProxy.java:825)
at com.sap.tc.mobile.dt.metaimp.MBOModelImporter.doImport(MBOModelImporter.java:170)
at com.sap.tc.mobile.dt.metaimp.ModelImportWizard.createModel(ModelImportWizard.java:200)
at com.sap.ide.cmi.core.model.importer.CMIWizard$2.run(CMIWizard.java:197)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
I know this is not related to Middleware authorization, I tested with a userid with full DOE authorization.
When I display the Data Object metadata from the Middleware, it shows as status 'active'.
The exception seems to complain about the backend key, but there is a backend key field in
the Data Object.
I have the same exception even with any SAP delivered Data Objects (MAM30_001, etc..).
any thoughts on what the problem is ?
thanks,
Yanick.Hi Yannick,
This type of error can occur with local non-dc Mobile App when some jars required for the model generation are missing.
The easiest way to fix this is to create a DC for your Mobile app from the
Mobile App Offline perspective.
Let me know if it works
Genevieve -
Unable to test model-displayName argument
I am using DM4J to create a clustering [o-cluster] model. The model is created successfully but when I attempt to execute a model test, it fails immediately with the following error.
Argument "displayName" is null. Supply a non-null value.
I am running JDeveloper 9.0.3.1 with today's DM4J applied.
I have patched my database with patch #26329311
and have applied ODM patches #2498603 and #2647739.
I successfully created the tutorial clustering model and executed a test for it.
Any help would be greatly appreciated,
DiannaI am attempting to build a model against my own data, 8 features a mixture of numerical and categorical. When I built the model, I used default OCluster settings and I omitted my SHIPID for the training set [a unique identifier]. When I created a Clustering Apply component, I again used default settings but then I selected my SHIPID and the item that I wanted to uniquely identify my data. I trained on 10,000 rows and attempted to validate different size datasets from 400,000 to 50,000 [I reduced the size when I started having problems.] The data [both training and test] contains some missing values.
The error "displayName" argument not specified made me think that it was something in my configuration setup but since I am able to run the demo OCluster Model Build/Apply, it leads me to believe that it is data related.
Thanks,
Dianna
Maybe you are looking for
-
USB 3.0 Hub attached to a Mac Mini does not work
I have already 2 USB 2.0 hubs attached and work perfectly. I want to add a 3.0 USB powered hub but it does not work. The USB is a Iogear 3.0 USB Hub. Thank you
-
I've lost my calendar icon, how do I get it back?
Have an iphone 5C connected to my yahoo account. I still can view my email, but no longer have a calendar icon. Do I need to delete my yahoo account and then re-add it in order to get the calendar icon back? Any help would be appreciated....
-
Dear All, In our SAP environment I have configured SCOT.Now when I am sending the mail it is not going immediately. Instead of this it is getting delivered after 6-10 days. I have checked the SCOT configuration and it is fine. When I checked tcode SO
-
Is it possible to install App Store apps without an internet connection?
My wife and I both use the same Apple ID for everything. If she were at home, this would be a no brainer; but she is now stationed in Afghanistan. She currently does not have access to the internet. So...is it possible for me to download some games
-
How to install iOS 5 if you already have 6 of them on the Iphone 3GS
How to install iOS 5, if you have already installed iOS 6 on the Iphone 3GS. Terribly buggy. It is impossible to use.