#StackBounty: #java #icedtea Java web application (jnlp) doesn't work

Bounty: 50

I want to open a java web application (Mirth Connect) on my Ubuntu machine. So following the tips on this page I installed icedtea:

sudo apt-get install icedtea-netx

and then executed the jnlp file I downloaded:

javaws webstart.jnlp

I then get this screen:

enter image description here

And whichever button I press (Yes, No, close) it constantly reloads this screen and refuses to proceed to the rest of the application.

On my Mac this application works perfectly well.

Does anybody know why this happens on Ubuntu, and how I can get it to work?


Get this bounty!!!

#StackBounty: #java #icedtea Java web application (jnlp) doesn't work

Bounty: 50

I want to open a java web application (Mirth Connect) on my Ubuntu machine. So following the tips on this page I installed icedtea:

sudo apt-get install icedtea-netx

and then executed the jnlp file I downloaded:

javaws webstart.jnlp

I then get this screen:

enter image description here

And whichever button I press (Yes, No, close) it constantly reloads this screen and refuses to proceed to the rest of the application.

On my Mac this application works perfectly well.

Does anybody know why this happens on Ubuntu, and how I can get it to work?


Get this bounty!!!

#StackBounty: #java #icedtea Java web application (jnlp) doesn't work

Bounty: 50

I want to open a java web application (Mirth Connect) on my Ubuntu machine. So following the tips on this page I installed icedtea:

sudo apt-get install icedtea-netx

and then executed the jnlp file I downloaded:

javaws webstart.jnlp

I then get this screen:

enter image description here

And whichever button I press (Yes, No, close) it constantly reloads this screen and refuses to proceed to the rest of the application.

On my Mac this application works perfectly well.

Does anybody know why this happens on Ubuntu, and how I can get it to work?


Get this bounty!!!

#StackBounty: #java #icedtea Java web application (jnlp) doesn't work

Bounty: 50

I want to open a java web application (Mirth Connect) on my Ubuntu machine. So following the tips on this page I installed icedtea:

sudo apt-get install icedtea-netx

and then executed the jnlp file I downloaded:

javaws webstart.jnlp

I then get this screen:

enter image description here

And whichever button I press (Yes, No, close) it constantly reloads this screen and refuses to proceed to the rest of the application.

On my Mac this application works perfectly well.

Does anybody know why this happens on Ubuntu, and how I can get it to work?


Get this bounty!!!

#StackBounty: #java #icedtea Java web application (jnlp) doesn't work

Bounty: 50

I want to open a java web application (Mirth Connect) on my Ubuntu machine. So following the tips on this page I installed icedtea:

sudo apt-get install icedtea-netx

and then executed the jnlp file I downloaded:

javaws webstart.jnlp

I then get this screen:

enter image description here

And whichever button I press (Yes, No, close) it constantly reloads this screen and refuses to proceed to the rest of the application.

On my Mac this application works perfectly well.

Does anybody know why this happens on Ubuntu, and how I can get it to work?


Get this bounty!!!

#StackBounty: #java #icedtea Java web application (jnlp) doesn't work

Bounty: 50

I want to open a java web application (Mirth Connect) on my Ubuntu machine. So following the tips on this page I installed icedtea:

sudo apt-get install icedtea-netx

and then executed the jnlp file I downloaded:

javaws webstart.jnlp

I then get this screen:

enter image description here

And whichever button I press (Yes, No, close) it constantly reloads this screen and refuses to proceed to the rest of the application.

On my Mac this application works perfectly well.

Does anybody know why this happens on Ubuntu, and how I can get it to work?


Get this bounty!!!

#StackBounty: #java #icedtea Java web application (jnlp) doesn't work

Bounty: 50

I want to open a java web application (Mirth Connect) on my Ubuntu machine. So following the tips on this page I installed icedtea:

sudo apt-get install icedtea-netx

and then executed the jnlp file I downloaded:

javaws webstart.jnlp

I then get this screen:

enter image description here

And whichever button I press (Yes, No, close) it constantly reloads this screen and refuses to proceed to the rest of the application.

On my Mac this application works perfectly well.

Does anybody know why this happens on Ubuntu, and how I can get it to work?


Get this bounty!!!

#StackBounty: #java #hibernate #date Hibernate Ignores DB Timezone Info when Binding to Java Timestamp Object

Bounty: 50

I have some Dates stored in Oracle with Oracle’s TIMESTAMP(3) as its datatype. Now I’m writing a Spring boot app to read those values back. The code is like:

HibernateCallback callback = new HibernateCallback() {
        public Object doInHibernate(Session session) throws HibernateException {
            Query query = session.createSQLQuery("SELECT date_field FROM some_table WHERE some_conditions");

            return query.list();
        }
    };

So:

List results = (List)getHibernateTemplate().execute(callback);
// suppose there's only one row and one column returned
Timestamp ts = result.get(0)[0];

returns me the Java Timestamp object automatically created by Hibernate. The problem is that, when constructing the object, it ignores the timezone stored in Oracle, but instead uses JVM’s default timezone. I tested is by setting different timezones for the JVM, and each time it generates a different timestamp.

It’s obviously wrong. The Date should be unique on the time line. It shouldn’t depend on JVM’s timezone. I’m wondering what’s the correct way to include the DB’s timezone info when parsing the date. Right now it seems it’s just using the String representation stored in Oracle and parse it with JMV’s timezone. I’m using Hibernate 4.3.4.Final.

PS: The actual query is high customized so I have to write raw SQL.


Get this bounty!!!

#StackBounty: #java #nuxeo How to make a query with properties parameter in nuxeo

Bounty: 50

I want to make a request with “dynamic” properties fetch from my Java app with nuxeo 8.10.

There is the declatation of my NuxeoDocument:

    <schema name="TestDocumentProperties" src="data/TestDocumentProperties.xsd" prefix="test" />
    <doctype name="TestDocument" extends="Document">
        <schema name="dublincore"/>
        <schema name="TestDocumentProperties"/>
    </doctype>

There is the schema:

<xs:schema ...>  
  <xs:element name="summary" type="xs:string"/>
  <xs:element name="content" type="xs:string"/>
</xs:schema>

There is a “Get” request to my Nuxeo server:

https:xxx/nuxeo/site/api/v1/search/lang/NXQL/execute?query=SELECT * FROM Document WHERE ecm:fulltext = 'test'&properties=TestDocumentProperties, dublincore

When i execute this request directly from my browser, the result contains all of the properties of “dublincore” and “TestDocumentProperties”:

{
    "entity-type": "document",
    "type": "TestDocument",
    ...
    "properties": {
        "test:summary": "test text to search in summary",
        "test:content": "test text to search in content",
        "dc:description": null,
        "dc:language": null,
        "dc:coverage": null,
        "dc:valid": null,
        "dc:creator": "xxx",
        "dc:modified": "2017-12-13T16:28:38.44Z",
        ...
    },...
}

So, I want to execute a nuxeo nxql request from my Java application with the same parameter.
Before, i execute only the request from my java app, without the “properties” parameter with this code:

return this.nuxeoClient.repository().query("SELECT * FROM Document WHERE ecm:fulltext = 'test'");

But with “query” method from repository, there isn’t possible to specify the properties to fetch. So, today, i try with this code:

    Map<String, Object> parameters = new HashMap<>();
    parameters.put("query", "SELECT * FROM Document WHERE ecm:fulltext = 'test'");
    parameters.put("properties", "TestDocumentProperties, dublincore");
    return this.nuxeoClient.automation("Repository.Query").parameters(parameters).execute();

Unfortunately, the result isn’t fetch correctly, i don’t have the “dublincore” properties in my response but i have the “TestDocumentProperties”. If i remove the “TestDocumentProperties” in the list of fetch properties parameters, there is no change to the response…

Can you help me to correct this code or indicate me an alternative ?

Thank’s


Get this bounty!!!

#StackBounty: #java #google-chrome #video-streaming #html5-video render video stream as partial content rather than full stream to chrome

Bounty: 100

We currently submit a video playback request to back end server the sends the full stream as inputstream to be played back in the browser(window). This works fine but has an added complication in that the seek function does not work in chrome. The suggested solution is to tell the webserver that it needs to accept a byte range and then deliver the stream in partial byte ranges. I am not sure if this will resolve the situation but my question is how to return the stream in byte ranges considering the following is the way it is done now:

    InputStream is= null;
    is = new FileInputStream(ndirectoryFile);

    ....
    //(calling class request)
    stream = videoWrapper.getVideo(id, address);

If I read the file in byte ranges, do I just loop through the file but how do I send the response:

InputStream is = new ByteArrayInputStream(new byte[] { 0, 1, 2 }); 
ByteArrayOutputStream buffer = new ByteArrayOutputStream();
int nRead;
byte[] data = new byte[1024];
while ((nRead = is.read(data, 0, data.length)) != -1) {
    buffer.write(data, 0, nRead);
}

buffer.flush();
byte[] byteArray = buffer.toByteArray(

The initial inputstream gets passed to quite a few classes along the way prior to sending the final response. Any ideas please.

EDIT:

I would like to just understand the html5 video issue with chrome. There are quite a few posts on setting the server response headers to include Accept-Ranges=, Content-length= , Content-Range= and this would tell chrome to download the byte range which will then allow seek feature to work. As the video playback seek works in firefox I should not have to change how I deliver the stream or would I? Would I still have to submit partial ranges of the video from the server? and how?


Get this bounty!!!