After upgrade Netbean to 7.3.1 that change Eclipselink to 2.5 I found this error - eclipselink

After I upgrade Netbeans to 7.3.1 that come with eclipeLink 2.5 and Glassfish4.
When I ran by application I always got this error message
SEVERE: javax.persistence.TransactionRequiredException: Cannot call
methods requiring a transaction if the entity manager has not been
joined to the current transaction.
How can I fix this problem?

JPA requires you to call em.joinTransaction() if a JTA transaction is started after the entityManager was obtained. Prior to EclipseLink 2.5, EclipseLink might automatically flush to the active transaction even if it wasn't joined to it as described in bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=404294

Related

In the Apache ActiveMQ library, what happened to `xbean` between the 5.7.0 and 5.8.0 versions?

My project depends on Apache's ActiveMQ library, and I am trying to update that dependency. One particular package within ActiveMQ my project depends on, org.apache.activemq.xbean, seems to have disappeared during the update from version 5.7.0 to 5.8.0.
In the update to version 5.8.0, the release notes explain that activemq-core-5.7.0.jar has been replaced with activemq-client-5.8.0.jar and activemq-broker-5.8.0.jar.
New modules may effect your maven pom dependencies activemq-core has
been replaced with activemq-client and activemq-broker. The various
message stores have their own activemq-xx-store module. The uber
module activemq-all remains.
I downloaded the consecutive versions 5.7.0 and 5.8.0 from ActiveMQ's past releases page, and confirmed that the xbean package is included in the 5.7.0 version's activemq-core-5.7.0.jar but in not the 5.8.0 version in either activemq-client-5.8.0.jar or activemq-broker-5.8.0.jar. Swapping activemq-core-5.7.0.jar for activemq-client-5.8.0.jar and activemq-broker-5.8.0.jar therefore causes my package to break, as it uses the org.apache.activemq.xbean.BrokerFactoryBean class.
What happened to the org.apache.activemq.xbean package during this
update?
Is it still included in ActiveMQ library somewhere?
Can I still access it, there or elsewhere?
org.apache.activemq.xbean.BrokerFactoryBean is in activemq-spring-5.8.0 - https://mvnrepository.com/artifact/org.apache.activemq/activemq-spring/5.8.0

Quorum migration to the latest version

I have a Quorum network setup with an older version where constellation is being used. I am trying to migrate the whole network to the latest version of Quorum.
I successfully migrated the constellation data to mysql using the tessera migration script provided in git.
But I am facing a typical problem when I am trying to migrate the data from geth i.e. the leveldb part. I copied the chaindata and lightchaindata folder from the old datadir/geth to new datadir/geth.
Now when I am trying to start the geth it is throwing an error stating that chainid cannot be used as 1, unfortunately the chainid of my existing network, which I want to migrate, is 1. I analysed the source code of the latest version of Quorum and found an explicit exception is thrown if the chainid is set as 1.
May you please help me to find a solution for this.
Still unanswered
I think the manual migration is the only option here.
Thanks,
Shamik.

After updating Fody from 2.0.0 (sample solution) to 2.3.1, assembly does not get built with debug information.

Update from 2.0.0 to 2.3.1 in Fody, causes VS2015 to not build the assembly with debug information, meaning it's impossible to put a break point. If I revert back to 2.0.0, it builds with debug info and break points come back. The same Debug build configuration is used. I also NuGet PropertyChanged.Fody but this problem occurs if I update Fody. I used PropertyChanged.Fody 2.2.0 for both cases.
try updating to version 2.3.2 https://www.nuget.org/packages/Fody/2.3.2
and in the future it is better to raise issues here https://github.com/Fody/Fody/issues

Spring-web-reactive example having dependency version issue

I am trying to run this example - https://github.com/joshlong/bootiful-reactive
I am facing compilation issues. What version of spring-web-reactive works with reactor-netty ?
There have been a lot of changes lately and I think that repository hasn't been updated accordingly. Maybe open an issue on this repository directly?
It's common to see such dependency issues in SNAPSHOT versions. You can update to the latest M2 version.
As I known, the spring-web-reactive artifact was renamed to spring-webflux in the latest Spring 5.
If you are using Spring Boot 2, at the moment the latest milestone is 2.0.0.M4, it includes a starter for webflux.
Check my sample codes: https://github.com/hantsy/spring-reactive-sample

Glassfish4, CDI, anonymous classes

Q: Are you using Glassfish 4 and CDI, and have no problems with anonymous inner classes? If so, please give me a hint which version of which CDI framework you are using.
Background:
Glassfish4 brings its own CDI framework, which is Weld 2.0 (downloaded a few days ago). After deploying my first application, I encountered errors. My software has lots of anonymous inner classes, and these caused errors. By googling, I found that Weld 2.0 doesn't work in the presence of anonymous inner classes (cf. https://issues.apache.org/jira/browse/WICKET-5226).
This problem should have been fixed in Weld 2.2. Both Weld 2.2 and 2.3 are available, so I tried to use these with Glassfish4. But appearently you can't just throw some Weld release into Glassfish's module library, as Glassfish brings its own adapters for Weld that are version specific.
I also tried to use another CDI framework (Openwebbeans), but this appears not to be accepted by Glassfish at all.
Please excuse that I don't yet give more specific info like stack traces, server messages, and the like. These would fill lots of space (and your time). I decided the best way to go is to first determine which version of CDI framework definitely works at some place, and then go into the detail work with that framework.