[
https://issues.apache.org/jira/browse/OLINGO-1364?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Muyyed resolved OLINGO-1364.
----------------------------
Resolution: Fixed
Fix Version/s: V2 2.0.11
I figured out the issue. I did a silly mistake.. I was passing a wrong
persistenceUnitName in
Persistence.createEntityManagerFactory method.
> Exception when calling Function Import for JPA Model
> ----------------------------------------------------
>
> Key: OLINGO-1364
> URL: https://issues.apache.org/jira/browse/OLINGO-1364
> Project: Olingo
> Issue Type: Bug
> Components: odata2-jpa
> Affects Versions: V2 2.0.11
> Environment: macOS 10.14.3, eclipse Oxygen.3a Release (4.7.3a)
> Reporter: Muyyed
> Priority: Blocker
> Fix For: V2 2.0.11
>
>
> Hi,
>
> Your support is highly appreciated on below Function Import issue.
>
> I have followed the tutorial to add function import for JPA Model in the
> following Olingo documentation link.
> [https://olingo.apache.org/doc/odata2/tutorials/jpafunctionimport.html]
>
> When I call the function import I am receiving the following exception:
> "OData - JPA Runtime: Internal error [null]"class
> java.lang.reflect.InvocationTargetException : null
>
> When I remove the function import parameter from the url. The service will
> through the following message: Missing parameter.
>
> FYI, other than the function import every thing is working fine like calling
> the service metadata, calling JPA Models, calling JPA Models with their keys,
> and calling JPA Models with filters.
>
> Here is my eclipse project library versions in case they need to be
> communicated:
> commons-codec-1.6.jar
> cxf-api-2.7.6.jar
> cxf-rt-bindings-xml-2.7.6.jar
> cxf-rt-core-2.7.6.jar
> cxf-rt-frontend-jaxrs-2.7.6.jar
> cxf-rt-transports-http-2.7.6.jar
> db2jcc-db2jcc4.jar
> eclipselink-2.7.4.jar
> geronimo-javamail_1.4_spec-1.7.1.jar
> gson-2.4.jar
> javax.persistence_2.1.1.v201509150925.jar
> javax.ws.rs-api-2.0-m10.jar
> jaxb-impl-2.1.13.jar
> log4j-1.2.17.jar
> mysql-connector-java-5.1.47-bin.jar
> org.apache.olingo-olingo-odata2-api-2.0.11.jar
> org.apache.olingo-olingo-odata2-api-annotation-2.0.11.jar
> org.apache.olingo-olingo-odata2-core-2.0.11.jar
> org.apache.olingo-olingo-odata2-jpa-processor-api-2.0.11.jar
> org.apache.olingo-olingo-odata2-jpa-processor-core-2.0.11.jar
> slf4j-api-1.7.1.jar
> slf4j-log4j12-1.7.1.jar
> stax2-api-3.1.1.jar
> woodstox-core-asl-4.2.0.jar
> wsdl4j-1.6.3.jar
> xmlschema-core-2.0.3.jar
>
> Kind Regards,
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)