JPA Namespace missing
Hello,
I'm trying to follow "SAP JPA 1.0, EJB 3.0 and WebService -Modeling Your First JPA Entity in CE 7.1" tutorial.
All is running well till I try to generate the DDL file (on my ejb project, I right click and select JPA Tools).
Each time I'm getting the same error : "ERROR: Namespace in FORMINFO is missing (Rule: namespace_suffix)" where FORMINFO is the name of the table to which my JPA entity FormInfo is linked.
I get also the same error in JPA entity class.
I was not able to fin a way to solve this issue. Anyone can help?
Thanks,
I am working with 7.2 ... and it seems that the DDL is not generated (at least it is nowhere I searched )
It initially complained that it was not connected to the dictionnary.
After I restarted the IDE, it did not complained anymore
The only major difference I find between the Tutorial and my project is the file persistence.xml
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
<persistence-unit name="LocalDevelopment~LocalDevelopment~employee_app~demo.vertomind.com">
<jta-data-source>EMPLOYEE_DS</jta-data-source>
</persistence-unit>
<!--
Trying to map the name used generated Errors
<persistence-unit name="EMPLOYEE_PU">
</persistence-unit>
-->
</persistence>
\T,
I feel like an idiot ...
I created a new Connection employee_conn2 and now DDL generation worked ....
Grrrrrrrrrrrr ...
Edited by: tsmets on Aug 13, 2010 4:15 PM
Edited by: tsmets on Aug 13, 2010 4:18 PM
Similar Messages
-
Namespace missing in java mapping DOM ?
Hi,
I am creating java mapping using DOM, but why i cannot create a namespace using this code ?
Document targetDoc = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();
Node docRoot = targetDoc.appendChild(targetDoc.createElementNS("urn:sap-com:atp:ABC40:base", "ns1:Vendor_SQL"));
TransformerFactory tFactory = TransformerFactory.newInstance();
Transformer transformer = tFactory.newTransformer();
transformer.setOutputProperty(OutputKeys.INDENT, "yes");
// create source and result wrappers and perform transformation
DOMSource source = new DOMSource(targetDoc);
StreamResult result = new StreamResult(outputStream);
transformer.transform(source, result);
expected result in xml :
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Vendor_SQL xmlns:ns0="urn:sap-com:atp:ABC40:base">
</ns0:Vendor_SQL>
result :
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Vendor_SQL>
</ns0:Vendor_SQL>
Please advise whether i was missing any other required step ?
Note : testing using NWDS 7.0 SP 17
Thank You and Best Regards
FernandHi Lesmana,
Can you change the second line in the code like below and give a try::
Node docRoot = targetDoc.appendChild(targetDoc.createElementNS("ns1:urn:sap-com:atp:ABC40:base", "ns1:Vendor_SQL"));
Regards,
---Saish -
Namespace missing in the payload
Hi ,
I doing a JDBC to IDoc scenario.I am using a JDBC sender Adapter to get data using a select query from DB Table ,every thing works fine.The Structure get filled up ,but the namescape is missing in the source payload (SXMB_MONI).Anyone knows why this is happening.
Thanks,
VenuHi Venu,
looks like you are missing namespace in the JDBC data, you should mention the docNamespace in the JDBC sender adapter.
Copy your payload and paste this in your mapping test tab. How ? After copying the payload go to Message mapping, there is Tab for Test right next to the Design. click on that and then click on the SRC button in the source message and paste your XML and do a test. Then you will know whats going wrong.
One other precaution is, you can fill the fields in the test tab then click on SRC button to look at what the source XML should look like.
hope you understand, if not post the question again.
Thanks. -
EclipseLink JPA 2: Missing Descriptor
Hi All,
I have a SessionBean that, when initialized, also initializes a LookupJpaController class. Here is the code for LookupJpaController:
public class LookupJpaController {
private static final String _QueryGetLookupForUI =
"SELECT l "
+ "FROM lookup l "
+ "WHERE l.lookup_type = :LookupType "
+ "AND lookup_domain = :Domain";
public List<SelectItem> getLookupForUI(enumLookupType lookupType, String domain) throws Exception {
if (domain == null || domain.trim().equals(""))
throw new Exception("Parameter domain cannot be null or empty.");
else if (!this.isInitialized())
throw new Exception("Entity Manager not set.");
Query query = this._EM.createNativeQuery(_QueryGetLookupForUI, Lookup.class);
query.setParameter("LookupType", lookupType.toString());
query.setParameter("Domain", domain.trim());
List<SelectItem> selectItems = null;
List<Lookup> lookupList = (List<Lookup>) query.getResultList();
if (lookupList == null || lookupList.size() < 1)
return null;
else {
selectItems = new ArrayList<SelectItem>(lookupList.size());
for (Lookup lookUp : lookupList) {
selectItems.add(new SelectItem(lookUp.getLookupValue(), lookUp.getLookupName()));
return selectItems;
When LookupJpaController is called with the following parameters ("Global", "Compound/Project Code"), it fails with the following exception:
Caused by: Exception [EclipseLink-6007] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.QueryException
Exception Description: Missing descriptor for [class Novartis.OTM.Data.Db.Entities.Lookup].
Query: ReadAllQuery(referenceClass=Lookup sql="SELECT l FROM lookup l WHERE l.lookup_type = :LookupType AND lookup_domain = :Domain")
at org.eclipse.persistence.exceptions.QueryException.descriptorIsMissing(QueryException.java:433)
at org.eclipse.persistence.queries.ObjectLevelReadQuery.checkDescriptor(ObjectLevelReadQuery.java:660)
at org.eclipse.persistence.queries.ObjectLevelReadQuery.prePrepare(ObjectLevelReadQuery.java:1895)
at org.eclipse.persistence.queries.ObjectLevelReadQuery.checkPrePrepare(ObjectLevelReadQuery.java:748)
at org.eclipse.persistence.queries.ObjectLevelReadQuery.checkEarlyReturn(ObjectLevelReadQuery.java:681)
at org.eclipse.persistence.queries.DatabaseQuery.execute(DatabaseQuery.java:619)
at org.eclipse.persistence.queries.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:958)
at org.eclipse.persistence.queries.ReadAllQuery.execute(ReadAllQuery.java:432)
at org.eclipse.persistence.queries.ObjectLevelReadQuery.executeInUnitOfWork(ObjectLevelReadQuery.java:1021)
at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:2857)
at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1225)
at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1207)
at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1181)
at org.eclipse.persistence.internal.jpa.EJBQueryImpl.executeReadQuery(EJBQueryImpl.java:453)
at org.eclipse.persistence.internal.jpa.EJBQueryImpl.getResultList(EJBQueryImpl.java:681)
at Novartis.OTM.Data.Db.Controllers.LookupJpaController.getLookupForUI(LookupJpaController.java:92)
at Novartis.OTM.Data.DataManager.getLookupForUI(DataManager.java:59)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1056)
at org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1128)
at com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:5292)
at com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:615)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:797)
at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:567)
at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doAround(SystemInterceptorProxy.java:157)
at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundInvoke(SystemInterceptorProxy.java:139)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:858)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:797)
at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:367)
at com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:5264)
at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:5252)
at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:201)
... 81 more
I don't understand what is going on here as my entity Lookup is there and this code also jives with Pro JPA 2.0, written by Oracle gurus. Thanks!
Chris
Edited by: user10773481 on Feb 11, 2011 8:37 AM
Edited by: user10773481 on Feb 11, 2011 8:43 AM
Edited by: user10773481 on Feb 11, 2011 12:10 PMChris,
At first glance, your code looks fine. I assume that you are injecting your (this._EM) entityManager on your session bean via the @PersistenceContext DI annotation. If so can you verify that your entity is getting processed on the predeploy of your ear. Or check the metamodel on the EM or EMF (you don't need to enable JPA 2 in persistence.xml) and see if your model is loaded there correctly.
From your logs and the fact that you are using SVN rev# 6600 (2.0.1.v20100213-r6600) - it looks like you are using GlassFish 3.0.1.
The following changes to your persistence.xml will enable finer logs so that you can see metadata processing and verify that your descritors are being loaded (they should be if you are running on the container - unless you are using multiple locations)
<property name="eclipselink.logging.level" value="FINEST"/>
<!-- enable SQL parameter binding visibility logging to override ER 329852 -->
<property name="eclipselink.logging.parameters" value="true"/>thank you
Michael O'Brien
http://www.eclipselink.org -
ODI-Webservice Invocation- Namespace missing in BPEL
Hi,
I have installed ODI (10.1.3.4).While trying to invoke a webservice(simple BPEL process) by giving the wsdl url, and giving the inputs and executing it, the request to the webservice(BPEL process) reaches without the namespace spacified but for the root element. Could anyone suggest a solution to this missing namespace during webservice invocation in ODI
Thanks in advance.
Regards,
PraveenWere you able to find any fix for this issue. We are having a major show stopper because of this. Your help will be appreciated. Thank you.
-
Namespaces missing in destination xml
Hello,
I have BPEL composite that will take a input xml. This xml has couple of namespaces.
I used Assign activity to copy the input TO output (input and output are of SAME type. Meaning using same XSD)
As I run the process and view the generated output XML, it gives me error stating that namespace is used in xml but not declared. following is the sample output xml.
<CreateService>
<Service:Data>
<Service:CreateService>
<Service:Service>
</Service:ServiceOrder>
</Service:CreateService>
</Service:Data>
</CreateService>
u see Service is namespace used but not declared.
how to add those declaration at the top of XML ? Transform will add those declarations ? How ?<CreateService xmlns:Service="and your namespace over here">
<Service:Data>
<Service:CreateService>
<Service:Service>
</Service:ServiceOrder>
</Service:CreateService>
</Service:Data>
</CreateService>
or when you're using the xslt mapper try adding at the top in your 'xsl:stylesheet' element something like
xmlns:Service="and your namespace over here" -
The Windows.Application.VoiceCommandnamespace is missing for JavaScript applications on the phone. Attempts to access properties such as VoiceCommandDefinitionManagerwill return a null or undefined result. As such it is not possible to register voice commands
or call voice command APIs.There is no workaround for phone. However, you can retarget your application for the local machine (desktop) and call the APIs from that environment.
-
Eclipse IDE: missing context menu "JPA"
I want to try out the Generate Custom JPA Entities* feature but the context menu option JPA is missing. I have only JPA Tools (Hibernate tool plugin). I have already installed Oracle Enterprise Pack for Eclipse. I am using the latest Eclipse Java EE IDE (20120216-1857).
I navigated to the project properties dialog, and examined "JPA" settings
Platform: Hibernate (JPA 2.X)
JPA Implementation: Hibernate
Connection: MyOwnConnection
Annotated Classes must be listed in persistence.xml is checked.
Source Folder: srcWhat perspective are you using? The alternative to context menu is to access via New > Other...
- New > Other | JPA | JPA Entities from Tables -
Missing data in Output Mapping
Hi all,
I have configured a scenario RFC -> XI -> Webservice. I am getting the response from the webservice and can see it in the SXMB_MONI. But this is not getting mapped back to the RFC output. I checked for all the mappings and those are perfectly fine. Can any body please suggest me what could be the reason and what all i need to check. I have all the mappings and objects activated.
Thanks and best regards,
KulwantHi sekhar,
Thanks for the quick reply.
I checked that anmd found that thers is one namespace missing in my mapping which is creating the problem
Here is what i get from Webservice
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <ns1:generateResponse xmlns:ns1='http://xml.avaya.com/diamond/schema/2007/07/utils/sessionidgenerator' >
<ns1:sessionId>AAAAABDxRtA=7IWEUw==-_2_1</ns1:sessionId>
</ns1:generateResponse>
What i get from Test mapping
<ns0:generateResponse xmlns:ns0="http://xml.avaya.com/diamond/schema/2007/07/utils/sessionidgenerator">
<sessionId>dsfa</sessionId>
</ns0:generateResponse>
Here ns0 is missing in front of my mapping. I am not sure how to bring it.
I have created a data type generateResponse using another data type session ID.
then i created a message type with change in default XML name space. I tried creating even sessionID Message Type and use it in my message type so that i could change the default name space.
but it didn't worked?
Can any body please suggest what to do?
Thanks,
Kulwant -
Xmp METADATA ADDING NAMESPACES
hi,
In Bridge, i have to update the information to the XMP metadata(File Info). In advanced tab,It contains namespaces. Based on that ,im updating the metadata to the corresponding images through scripting. Sometimes, Some of the namespaces missing. How can i include those namespaces here.
please help me...
Thanx in advance.hi paul,
Through scripting i have to updated the field, Sometimes in (advanced) tab, some of the namespaces missing, second oftenly it shows engine busy.If i keep on working with particular files, it shows the xmp metadata error, cannot write the datas. i use coded :
md.namespace = "http://ns.adobe.com/photoshop/1.0/";
mdpurl.namespace = "http://purl.org/dc/elements/1.1/";
mdrights.namespace ="http://ns.adobe.com/xap/1.0/rights/";
mdiptc.namespace="http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/";
mdtiff.namespace = "http://ns.adobe.com/tiff/1.0/" ;
md.Headline = Headline[cnt];
md.Source = Source[cnt];
md.Author = Creator[cnt];
md.Title = Title[cnt];
md.Credit=Provider[cnt];
mdiptc.CiEmailWork=CreatorWebsite[cnt];
mdiptc.CiUrlWork=CreatorEmail[cnt];
md.Instructions = Instructions[cnt];
mdiptc.Location = Location[cnt];
md.Copyright = Copyright[cnt];
md.TransmissionReference =JobIdentifier[cnt];
md.Keywords=Keywords[cnt];
mdrights.Marked="True";
mdrights.UsageTerms= RightsUsageTerms[cnt];
md.Caption = Description[cnt];
cnt: referes the index no, reading from csv -
Enabling user namespace in kernel
Hi everyone,
I hope this is the right place for this post.
I want to experiment with unpriviledged lxc-containers. Therefore I need User Namespace enabled in the kernel, which is not:
[root@alexarch karlyan]# lxc-checkconfig
--- Namespaces ---
Namespaces: enabled
Utsname namespace: enabled
Ipc namespace: enabled
Pid namespace: enabled
User namespace: missing <-----------------------
Network namespace: enabled
Multiple /dev/pts instances: enabled
--- Control groups ---
Cgroup: enabled
Cgroup clone_children flag: enabled
Cgroup device: enabled
Cgroup sched: enabled
Cgroup cpu account: enabled
Cgroup memory controller: enabled
Cgroup cpuset: enabled
--- Misc ---
Veth pair device: enabled
Macvlan: enabled
Vlan: enabled
File capabilities: enabled
I tried recompiling the kernel with user namespace enabled in the config file but I still got hte same result.
I also found this which confused me even more...was this change revoked?
I'm running the standart linux kernel
[root@alexarch karlyan]# pacman -Q linux
linux 3.18.2-2
Any help is appreciated
Cheers,
Karlyankarlyan wrote:
I want to experiment with unpriviledged lxc-containers. Therefore I need User Namespace enabled in the kernel, which is not:
[root@alexarch karlyan]# lxc-checkconfig
--- Namespaces ---
Namespaces: enabled
Utsname namespace: enabled
Ipc namespace: enabled
Pid namespace: enabled
User namespace: missing <-----------------------
Network namespace: enabled
Multiple /dev/pts instances: enabled
--- Control groups ---
Cgroup: enabled
Cgroup clone_children flag: enabled
Cgroup device: enabled
Cgroup sched: enabled
Cgroup cpu account: enabled
Cgroup memory controller: enabled
Cgroup cpuset: enabled
--- Misc ---
Veth pair device: enabled
Macvlan: enabled
Vlan: enabled
File capabilities: enabled
I wouldn't recommend enabling user namespaces on the main (host) kernel yet.
If it's just for experimentation, then simply boot latest Ubuntu in a VM and deploy LXC there. If you need want to have CONFIG_USER_NS, but not unprivileged containers, try Fedora 20+ (kernel 3.17.8+)... The latter is somewhat safer because only this month there were CVEs related to the USERNS code. -
Error while processing message to remote system
Hi,
I am trying to load the data from flat file to R/3. I am using the file adapter to pick the file and RFC adapter to transfer into R/3. I am getting the success status in the sxmb_moni and adapter framework(green for both the adapters). But when i check the status in the RWB message monitoring, I am getting the error.
I am using the message interface defined in the software component for R/3 system which has a different namespace. When i am trying to upload data, i am getting the error as namespace missing in RWB. The detailed error in RWB is as follows:
Exception caught by adapter framework: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: could not get functionname from XML requst: com.sap.aii.af.rfc.RfcAdapterException: failed to read funtionname from XML document: missing namespace declara
Delivery of the message to the application using connection AFW failed, due to: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: could not get functionname from XML requst: com.sap.aii.af.rfc.RfcAdapterException: failed to read funtionname from XML document: missing namespace declara.
The previous thread relating this is:
Process Integration (PI) & SOA Middleware
Requesting for a solution.
Regards,
RaghavendraHi,
>>><i>So i tried creating a RFC(using sm59)in the R/3,
When i try to import the RFC i have created, I am not able to see the one i have created.</i>
In your R/3 system, go to se38, enter your RFC name. Go to attributes tab, and click on the radio button named "remote enabled"
This will enable your RFC to be called by an application outside the R/3 system.
>>><i>Can you please let me know as to what is it that it is connecting to the R/3(destination) and why am i not able to find my RFC.</i>
You are tyring to log on to your R/3 system, from xi, in order to import the RFC that you have created. Hence you are asked for user id and password.
You are not able to find your RFC since it has not been remotely enabled or has not been activated.
Regards,
Smitha. -
Import Mapping...
Hi guys,
Still with Java Mapping...
After creating the Java Mapping I've imported it and tested, but although the test gives me:
"Messages:18:52:52 Start of test
Executed successfully
18:52:52 End of test"
, I'm not getting any on the side of the RFC...meaning, I'm not getting the xml file.
I've tested the JAVA class and I generate correctly the xml output.
Despite the fact that I wasn't getting anything on the side of the RFC, I've tested the whole scenario and I get an error on message monitoring.
" Exception caught by adapter framework: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: could not get functionname from XML requst: com.sap.aii.af.rfc.RfcAdapterException: failed to read funtionname from XML document: missing namespace declara"
I've checked if there is any namespace missing but the namespace is correct... What am I missing...?Hi Michal,
What you are saying is to check the two xml outputs, right?
Creating a message mapping from the message to the RFC and compare it to the xml generated from my JAVA mapping?
I've done that and the two xml are identicals...
When I test the java mapping should i get the xml result on the side of the target (rfc)?
Do you have any idea?
Thanks Michal -
Do I need additional Driver/Clients when accessing Oracle from CSharp ?
I am trying to connect from within a CSharp program to Oracle database 10g Express.
I coded in CSharp:
using System.Data.OracleClient;
but this line gives an unresolve error: Type or namespace missing ...?
As far as I thought VisualStudio 2005 provides a standard client for Oracle database.
How do I enable it ?
Or do I need some additional files from Oracle to get it working ?You may find useful these links from the Oracle technology corner >
http://www.oracle.com/technology/sample_code/tech/windows/ole_db/oledb92/index.html
http://www.oracle.com/technology/sample_code/tech/windows/ole_db/oledb8/index.html
Regards. -
Proxy Error Message - Regenerate
Hi All,
I made some modifications to the message structure and tried to regenerate the proxy but am getting the following error,
<b>Objects from other namespaces missing, unable to save text, see long text</b>
Message no SPRX109
Any thoughts, Its urgent
Thanks
SelvamHi,
I think u have used data types from different namespace in your current namespace.
you need to generate the data types in the other namespace first.
When generating an ABAP proxy object, you need to make sure that any objects it uses in other namespaces are already generated.
see the below thread also....
Re: proxy problem
Maybe you are looking for
-
I have a HP Large format printer, HP Officejet 7610. When I first got it I used to be able to print on 12 x 12 paper, that size showed as an option when I went to print. Well, I didn't try it for a long time, now when I go to print the 12 x 12 siz
-
How can I build an app in workshop without including the built-in controls
I don't want the TimerControl, EventControl, MDBListener. When I deploy it can't find SLSBContainerBean and I don't want to add it to the classpath. I don't want any BEA stuff in my application. Thanks!
-
Metric threshold Blocking session count
Hi, I am trying to modify the blocking session count threshould and making warning threshold as null and critical threshold > 0. When i create a blocking session in the database i get the warning for application wait class but i don't get a critical
-
Canon HF G10 Camcorder - "Cannot Record" error message when trying to make new recordings
Hi All, I purchased Canon HF G10 camcorder 6 months ago and suddenly I am getting a "Cannot Record" error message each time I press the record button - it simply stopped working and I am puzzled about this - has anyone else faced this problem? if ye
-
Creating an EventObject.....
How to create an EventObject such that it allow me to compare the the source of the object inside the interface method that I have created? public void ListenerEvent (ListenerEvent evt) { if (ListenerEvent.getSource () == DataIn){ Please give me some