JPA Server

136 views
Skip to first unread message

Sonali Somase

unread,
Mar 28, 2016, 9:38:19 AM3/28/16
to HAPI FHIR
Getting following error while setting up local hapi fhir server

[INFO] Compiling 4 source files to /home/user/git/hapi-fhir/hapi-fhir-jpaserver-example/target/classes
/home/user/git/hapi-fhir/hapi-fhir-jpaserver-example/src/main/java/ca/uhn/fhir/jpa/demo/JpaServerDemo.java:22: error: cannot find symbol
import ca.uhn.fhir.jpa.search.DatabaseBackedPagingProvider;
                             ^
  symbol:   class DatabaseBackedPagingProvider
  location: package ca.uhn.fhir.jpa.search
1 error

douglas.an...@gmail.com

unread,
Mar 28, 2016, 9:45:42 AM3/28/16
to HAPI FHIR
Did you build at the top-level first? I ran mvn clean install at the top level, and then ran mvn install jetty:run in hapi-fhir-jpaserver-example dir.

Doug

Sonali Somase

unread,
Mar 29, 2016, 1:40:49 AM3/29/16
to HAPI FHIR
Thanks for reply. 
I tried mvn clean install at top level:
Getting following error:

C:\Users\sonali_somase\Downloads\hapi-fhir-master\hapi-fhir-master\hapi-fhir-jax
rsserver-base\src\test\java\ca\uhn\fhir\jaxrs\server\test\TestJaxRsConformanceRe
stProvider.java:20: error: TestJaxRsConformanceRestProvider is not abstract and
does not override abstract method getInterceptors() in IRestfulServerDefaults
public class TestJaxRsConformanceRestProvider extends AbstractJaxRsConformancePr
ovider {
       ^
Note: C:\Users\sonali_somase\Downloads\hapi-fhir-master\hapi-fhir-master\hapi-fh
ir-jaxrsserver-base\src\test\java\ca\uhn\fhir\jaxrs\server\AbstractJaxRsResource
ProviderTest.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: C:\Users\sonali_somase\Downloads\hapi-fhir-master\hapi-fhir-master\hapi-fh
ir-jaxrsserver-base\src\test\java\ca\uhn\fhir\jaxrs\server\AbstractJaxRsResource
ProviderTest.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

1 error
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] HAPI-FHIR .......................................... SUCCESS [  2.613 s]
[INFO] HAPI FHIR - Deployable Artifact Parent POM ......... SUCCESS [  1.297 s]
[INFO] HAPI FHIR - Core Library ........................... SUCCESS [ 40.868 s]
[INFO] HAPI FHIR - Validation Resources (DSTU3) ........... SUCCESS [ 15.813 s]
[INFO] HAPI Tinder Plugin ................................. SUCCESS [ 47.095 s]
[INFO] HAPI FHIR Structures - DSTU1 (FHIR v0.80) .......... SUCCESS [01:41 min]
[INFO] HAPI FHIR - Validation Resources (DSTU2) ........... SUCCESS [ 15.377 s]
[INFO] HAPI FHIR Structures - DSTU2 (FHIR v1.0.0) ......... SUCCESS [01:27 min]
[INFO] HAPI FHIR - Minimal Dependency Test - Client ....... SUCCESS [  4.148 s]
[INFO] HAPI FHIR - Minimal Dependency Test - Server ....... SUCCESS [  6.413 s]
[INFO] HAPI Tinder Plugin - Test Project .................. SUCCESS [ 15.062 s]
[INFO] HAPI FHIR Structures - HL7.org DSTU2 ............... SUCCESS [03:12 min]
[INFO] HAPI FHIR Structures - DSTU3 ....................... SUCCESS [06:36 min]
[INFO] HAPI FHIR JAX-RS Server ............................ FAILURE [  8.727 s]
[INFO] HAPI FHIR JAX-RS Server - Example .................. SKIPPED
[INFO] HAPI FHIR JPA Server ............................... SKIPPED
[INFO] HAPI FHIR TestPage Overlay ......................... SKIPPED
[INFO] HAPI FHIR JPA Server - Example ..................... SKIPPED
[INFO] HAPI FHIR Sample RESTful Server .................... SKIPPED
[INFO] HAPI FHIR Sample RESTful Server - Tests ............ SKIPPED
[INFO] HAPI FHIR - fhirtest.uhn.ca Deployable WAR ......... SKIPPED
[INFO] HAPI FHIR - Android ................................ SKIPPED
[INFO] HAPI FHIR - Command Line Client - Base Project ..... SKIPPED
[INFO] HAPI FHIR - Command Line Client - Server WAR ....... SKIPPED
[INFO] HAPI FHIR - Command Line Client - Application ...... SKIPPED
[INFO] HAPI FHIR - Distribution Archive ................... SKIPPED
[INFO] HAPI FHIR - Examples (for site) .................... SKIPPED
[INFO] hapi-fhir-base-example-embedded-ws ................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILUREThe 

douglas.an...@gmail.com

unread,
Mar 29, 2016, 8:42:02 AM3/29/16
to HAPI FHIR
If you build at the top-level and it fails, then there is an actual problem with the codebase...sure enough, I checked the CI build (https://travis-ci.org/jamesagnew/hapi-fhir/builds) and it was failing yesterday. Indeed, I always check the CI build status before I update, because it is sometimes broken. It appears that a fix has been checked-in, so I am guessing it will be working by the time you get this. If not, you should checkout the latest version that was confirmed working in CI, and use that, and then update to the latest when the build is working again...at least that's what I do. :)

Cheers,
Doug

James Agnew

unread,
Mar 29, 2016, 10:45:07 AM3/29/16
to douglas.an...@gmail.com, HAPI FHIR
Hi All,

I'm having some issues with Travis (our CI server) right now which is making it hard to know when a build fail is real or not. On top of that, the codebase was actually in a bad state this morning.

It is fixed now (although Travis is still reporting an error), and I've also pushed fresh snapshots to Maven. Still need to figure out what's up with Travis though... argh.

Sonali, hopefully this should solve your issue now.

Cheers,
James

--
You received this message because you are subscribed to the Google Groups "HAPI FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi-fhir+...@googlegroups.com.
To post to this group, send email to hapi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hapi-fhir/229574c1-c292-4a72-b13f-7f9c9906c759%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages