[jira] [Created] (CXF-9030) "-suppress-generated-date" does not omit timestamps from @Generated

2024-06-18 Thread Benjamin Marwell (Jira)
Benjamin Marwell created CXF-9030:
-

 Summary: "-suppress-generated-date" does not omit timestamps from 
@Generated
 Key: CXF-9030
 URL: https://issues.apache.org/jira/browse/CXF-9030
 Project: CXF
  Issue Type: Bug
  Components: Tooling
Affects Versions: 3.6.3
Reporter: Benjamin Marwell


h2. Problem description

Given this config:
{code:xml}

org.apache.cxf
cxf-codegen-plugin
${dependency.cxf.version}


generate-sources
generate-sources

wsdl2java




true

true





{code}

The resulting code will have a timestamp in the {{@Generated}} annotation:

{code:java}
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "DynSMeldung", propOrder = {
"meldungsNummer",
"klasse",
"meldungsText"
})
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.5", 
date = "2024-06-18T09:12:10+02:00")
public class MyServiceClass { }
{code}


h2. Expected behaviour

No timestamp was generated (for reproducible builds)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (CXF-9030) "-suppress-generated-date" does not omit timestamps from @Generated

2024-06-18 Thread Benjamin Marwell (Jira)


 [ 
https://issues.apache.org/jira/browse/CXF-9030?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Benjamin Marwell updated CXF-9030:
--
Description: 
h2. Problem description

Given this config:
{code:xml}

org.apache.cxf
cxf-codegen-plugin
${dependency.cxf.version}


generate-sources
generate-sources

wsdl2java



true

true





{code}

The resulting code will have a timestamp in the {{@Generated}} annotation:

{code:java}
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "DynSMeldung", propOrder = {
"meldungsNummer",
"klasse",
"meldungsText"
})
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.5", 
date = "2024-06-18T09:12:10+02:00")
public class MyServiceClass { }
{code}


h2. Expected behaviour

No timestamp was generated (for reproducible builds)

  was:
h2. Problem description

Given this config:
{code:xml}

org.apache.cxf
cxf-codegen-plugin
${dependency.cxf.version}


generate-sources
generate-sources

wsdl2java




true

true





{code}

The resulting code will have a timestamp in the {{@Generated}} annotation:

{code:java}
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "DynSMeldung", propOrder = {
"meldungsNummer",
"klasse",
"meldungsText"
})
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.5", 
date = "2024-06-18T09:12:10+02:00")
public class MyServiceClass { }
{code}


h2. Expected behaviour

No timestamp was generated (for reproducible builds)


> "-suppress-generated-date" does not omit timestamps from @Generated
> ---
>
> Key: CXF-9030
> URL: https://issues.apache.org/jira/browse/CXF-9030
> Project: CXF
>  Issue Type: Bug
>  Components: Tooling
>Affects Versions: 3.6.3
>Reporter: Benjamin Marwell
>Priority: Major
>
> h2. Problem description
> Given this config:
> {code:xml}
> 
>   org.apache.cxf
>   cxf-codegen-plugin
>   ${dependency.cxf.version}
>   
>   
>   generate-sources
>   generate-sources
>   
>   wsdl2java
>   
>   
>   
>   true
>   
> true
>   
>   
>   
>   
> 
> {code}
> The resulting code will have a timestamp in the {{@Generated}} annotation:
> {code:java}
> @XmlAccessorType(XmlAccessType.FIELD)
> @XmlType(name = "DynSMeldung", propOrder = {
> "meldungsNummer",
> "klasse",
> "meldungsText"
> })
> @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.5", 
> date = "2024-06-18T09:12:10+02:00")
> public class MyServiceClass { }
> {code}
> h2. Expected behaviour
> No timestamp was generated (for reproducible builds)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (CXF-8012) "-suppress-generated-date" still generates timestamp

2024-06-18 Thread Benjamin Marwell (Jira)


[ 
https://issues.apache.org/jira/browse/CXF-8012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17855810#comment-17855810
 ] 

Benjamin Marwell commented on CXF-8012:
---

I do not think this is still the case. Can you confirm?

> "-suppress-generated-date" still generates timestamp 
> -
>
> Key: CXF-8012
> URL: https://issues.apache.org/jira/browse/CXF-8012
> Project: CXF
>  Issue Type: Bug
>  Components: Tooling
>Affects Versions: 3.3.1
>Reporter: Deviruchi
>Assignee: Colm O hEigeartaigh
>Priority: Minor
>
> I started to use *cxf-codegen-plugin* maven plugin for generation of java 
> classes.
> Strange problem is that I got two maven modules in multi-module 
> configuration, with exact same configuration for plugin, but always for one 
> module its working fine - no timestamp, but for another I always get 
> timestamp..
> my configuration looks like this:
> {code:java}
> 
> org.apache.cxf
> cxf-codegen-plugin
> 
>   
> generate-sources
> generate-sources
> 
>   
> 
> ${basedir}/src/main/resources/wsdl/jaxb-bindings.xml
>   
>   ${basedir}/generated/src/
>   
> 
>   
> ${basedir}/src/main/resources/wsdl/VinOnline_1.wsdl
>   
> 
> 
> -verbose
> -suppress-generated-date
>   
> 
>   
> 
> 
>   wsdl2java
> 
>   
> 
>   
> {code}
> and always getting in interface class:
> {code:java}
> /**
>  * This class was generated by Apache CXF 3.3.1
>  * 2019-04-06T15:40:37.215+02:00
>  * Generated source version: 3.3.1
>  *
>  */
> @WebService(targetNamespace = "http://dummy.com/vinonline";, name = 
> "IVinOnlineService")
> @XmlSeeAlso({com.microsoft.schemas._2003._10.serialization.ObjectFactory.class,
>  ObjectFactory.class})
> public interface IVinOnlineSkService {
> ...
> }
> {code}
> If there is any additional information, please let me know to collect.
>  BR,
>  Deviruchi



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (CXF-9030) "-suppress-generated-date" does not omit timestamps from @Generated

2024-06-18 Thread Benjamin Marwell (Jira)


 [ 
https://issues.apache.org/jira/browse/CXF-9030?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Benjamin Marwell updated CXF-9030:
--
Description: 
h2. Problem description

Given this config:
{code:xml}

org.apache.cxf
cxf-codegen-plugin
${dependency.cxf.version}


generate-sources
generate-sources

wsdl2java



true

true





{code}

The resulting code will have a timestamp in the {{@Generated}} annotation:

{code:java}
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "MyServiceClass", propOrder = {
"p1",
"p2",
"p3"
})
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.5", 
date = "2024-06-18T09:12:10+02:00")
public class MyServiceClass { }
{code}


h2. Expected behaviour

No timestamp was generated (for reproducible builds)

  was:
h2. Problem description

Given this config:
{code:xml}

org.apache.cxf
cxf-codegen-plugin
${dependency.cxf.version}


generate-sources
generate-sources

wsdl2java



true

true





{code}

The resulting code will have a timestamp in the {{@Generated}} annotation:

{code:java}
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "DynSMeldung", propOrder = {
"meldungsNummer",
"klasse",
"meldungsText"
})
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.5", 
date = "2024-06-18T09:12:10+02:00")
public class MyServiceClass { }
{code}


h2. Expected behaviour

No timestamp was generated (for reproducible builds)


> "-suppress-generated-date" does not omit timestamps from @Generated
> ---
>
> Key: CXF-9030
> URL: https://issues.apache.org/jira/browse/CXF-9030
> Project: CXF
>  Issue Type: Bug
>  Components: Tooling
>Affects Versions: 3.6.3
>Reporter: Benjamin Marwell
>Priority: Major
>
> h2. Problem description
> Given this config:
> {code:xml}
> 
>   org.apache.cxf
>   cxf-codegen-plugin
>   ${dependency.cxf.version}
>   
>   
>   generate-sources
>   generate-sources
>   
>   wsdl2java
>   
>   
>   
>   true
>   
> true
>   
>   
>   
>   
> 
> {code}
> The resulting code will have a timestamp in the {{@Generated}} annotation:
> {code:java}
> @XmlAccessorType(XmlAccessType.FIELD)
> @XmlType(name = "MyServiceClass", propOrder = {
> "p1",
> "p2",
> "p3"
> })
> @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.5", 
> date = "2024-06-18T09:12:10+02:00")
> public class MyServiceClass { }
> {code}
> h2. Expected behaviour
> No timestamp was generated (for reproducible builds)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (CXF-9030) "-suppress-generated-date" does not omit timestamps from @Generated

2024-06-18 Thread Andriy Redko (Jira)


 [ 
https://issues.apache.org/jira/browse/CXF-9030?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andriy Redko updated CXF-9030:
--
Fix Version/s: 3.5.9
   4.1.0
   4.0.5
   3.6.4

> "-suppress-generated-date" does not omit timestamps from @Generated
> ---
>
> Key: CXF-9030
> URL: https://issues.apache.org/jira/browse/CXF-9030
> Project: CXF
>  Issue Type: Bug
>  Components: Tooling
>Affects Versions: 3.6.3
>Reporter: Benjamin Marwell
>Priority: Major
> Fix For: 3.5.9, 4.1.0, 4.0.5, 3.6.4
>
>
> h2. Problem description
> Given this config:
> {code:xml}
> 
>   org.apache.cxf
>   cxf-codegen-plugin
>   ${dependency.cxf.version}
>   
>   
>   generate-sources
>   generate-sources
>   
>   wsdl2java
>   
>   
>   
>   true
>   
> true
>   
>   
>   
>   
> 
> {code}
> The resulting code will have a timestamp in the {{@Generated}} annotation:
> {code:java}
> @XmlAccessorType(XmlAccessType.FIELD)
> @XmlType(name = "MyServiceClass", propOrder = {
> "p1",
> "p2",
> "p3"
> })
> @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.5", 
> date = "2024-06-18T09:12:10+02:00")
> public class MyServiceClass { }
> {code}
> h2. Expected behaviour
> No timestamp was generated (for reproducible builds)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (CXF-9030) "-suppress-generated-date" does not omit timestamps from @Generated

2024-06-18 Thread Andriy Redko (Jira)


 [ 
https://issues.apache.org/jira/browse/CXF-9030?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andriy Redko updated CXF-9030:
--
Affects Version/s: 4.0.4
   3.5.8

> "-suppress-generated-date" does not omit timestamps from @Generated
> ---
>
> Key: CXF-9030
> URL: https://issues.apache.org/jira/browse/CXF-9030
> Project: CXF
>  Issue Type: Bug
>  Components: Tooling
>Affects Versions: 3.5.8, 3.6.3, 4.0.4
>Reporter: Benjamin Marwell
>Priority: Major
> Fix For: 3.5.9, 4.1.0, 4.0.5, 3.6.4
>
>
> h2. Problem description
> Given this config:
> {code:xml}
> 
>   org.apache.cxf
>   cxf-codegen-plugin
>   ${dependency.cxf.version}
>   
>   
>   generate-sources
>   generate-sources
>   
>   wsdl2java
>   
>   
>   
>   true
>   
> true
>   
>   
>   
>   
> 
> {code}
> The resulting code will have a timestamp in the {{@Generated}} annotation:
> {code:java}
> @XmlAccessorType(XmlAccessType.FIELD)
> @XmlType(name = "MyServiceClass", propOrder = {
> "p1",
> "p2",
> "p3"
> })
> @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.5", 
> date = "2024-06-18T09:12:10+02:00")
> public class MyServiceClass { }
> {code}
> h2. Expected behaviour
> No timestamp was generated (for reproducible builds)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Resolved] (CXF-9007) NullPointerException in XMLStreamDataWriter.writeNode

2024-06-18 Thread Andriy Redko (Jira)


 [ 
https://issues.apache.org/jira/browse/CXF-9007?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andriy Redko resolved CXF-9007.
---
Resolution: Fixed

> NullPointerException in XMLStreamDataWriter.writeNode
> -
>
> Key: CXF-9007
> URL: https://issues.apache.org/jira/browse/CXF-9007
> Project: CXF
>  Issue Type: Bug
>Affects Versions: 4.0.3, 4.0.4
>Reporter: Magnus Holm
>Assignee: Andriy Redko
>Priority: Major
> Fix For: 4.1.0, 4.0.5
>
> Attachments: dispatch-impl-npe.txt, interceptor-npe.txt, 
> invoke-async-npe.txt, invoke-sync-npe.txt
>
>
> We're encountering sporadic weird {{NullPointerException}} in various of our 
> tests using different client configurations with wsdls. It seems to only 
> occur right after initialising the client, e.g. only on the first call. I 
> suspect it's some kind of race-condition, but I've not been able to create a 
> reproducer. I was hoping maybe someone from the project would have insight 
> into why this could be happening by looking at the stacktraces. 
> The error we're hitting appears to be here: 
> {code}
> java.lang.NullPointerException: Cannot invoke 
> "org.w3c.dom.Node.getOwnerDocument()" because "nd" is null
>   at 
> org.apache.cxf.databinding.source.XMLStreamDataWriter.writeNode(XMLStreamDataWriter.java:160)
>  ~[cxf-core-4.0.4.jar:4.0.4]
>   at 
> org.apache.cxf.databinding.source.XMLStreamDataWriter.write(XMLStreamDataWriter.java:101)
>  ~[cxf-core-4.0.4.jar:4.0.4]
>   at 
> org.apache.cxf.databinding.source.XMLStreamDataWriter.write(XMLStreamDataWriter.java:67)
>  ~[cxf-core-4.0.4.jar:4.0.4]
>   at 
> org.apache.cxf.databinding.source.XMLStreamDataWriter.write(XMLStreamDataWriter.java:55)
>  ~[cxf-core-4.0.4.jar:4.0.4]
> {code}
> Update: we're using cxf-rt-transports-http-hc5.
> We've had this issue on 4.0.3 and 4.0.4. We might've had it on previous 
> versions as well, but I don't have build history going back that far.  
> JDK versions: Corretto 17 (17.0.8-amzn), Zulu 17 (17.0.10-zulu) ++



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (CXF-9026) Integrate Jacoco into Apache CXF builds to collect code coverage stats

2024-06-18 Thread Andriy Redko (Jira)


 [ 
https://issues.apache.org/jira/browse/CXF-9026?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andriy Redko updated CXF-9026:
--
Fix Version/s: (was: 4.0.5)

> Integrate Jacoco into Apache CXF builds to collect code coverage stats
> --
>
> Key: CXF-9026
> URL: https://issues.apache.org/jira/browse/CXF-9026
> Project: CXF
>  Issue Type: Improvement
>Reporter: Andriy Redko
>Assignee: Andriy Redko
>Priority: Major
> Fix For: 4.1.0
>
>
> We have never used any code coverage tools and it is difficult to asses the 
> gaps in tests. The suggestion is to integrate Jacoco into Apache CXF builds 
> to collect code coverage stats



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Resolved] (CXF-9026) Integrate Jacoco into Apache CXF builds to collect code coverage stats

2024-06-18 Thread Andriy Redko (Jira)


 [ 
https://issues.apache.org/jira/browse/CXF-9026?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andriy Redko resolved CXF-9026.
---
Resolution: Fixed

> Integrate Jacoco into Apache CXF builds to collect code coverage stats
> --
>
> Key: CXF-9026
> URL: https://issues.apache.org/jira/browse/CXF-9026
> Project: CXF
>  Issue Type: Improvement
>Reporter: Andriy Redko
>Assignee: Andriy Redko
>Priority: Major
> Fix For: 4.1.0
>
>
> We have never used any code coverage tools and it is difficult to asses the 
> gaps in tests. The suggestion is to integrate Jacoco into Apache CXF builds 
> to collect code coverage stats



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Created] (CXF-9031) Upgrade to Netty 4.2

2024-06-18 Thread Andriy Redko (Jira)
Andriy Redko created CXF-9031:
-

 Summary: Upgrade to Netty 4.2
 Key: CXF-9031
 URL: https://issues.apache.org/jira/browse/CXF-9031
 Project: CXF
  Issue Type: Task
Reporter: Andriy Redko
Assignee: Andriy Redko






--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (CXF-9031) Upgrade to Netty 4.2

2024-06-18 Thread Andriy Redko (Jira)


 [ 
https://issues.apache.org/jira/browse/CXF-9031?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andriy Redko updated CXF-9031:
--
Fix Version/s: 4.2.0

> Upgrade to Netty 4.2
> 
>
> Key: CXF-9031
> URL: https://issues.apache.org/jira/browse/CXF-9031
> Project: CXF
>  Issue Type: Task
>Reporter: Andriy Redko
>Assignee: Andriy Redko
>Priority: Major
> Fix For: 4.2.0
>
>
> https://github.com/netty/netty/releases/tag/netty-4.2.0.Alpha1



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (CXF-9031) Upgrade to Netty 4.2

2024-06-18 Thread Andriy Redko (Jira)


 [ 
https://issues.apache.org/jira/browse/CXF-9031?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andriy Redko updated CXF-9031:
--
Description: https://github.com/netty/netty/releases/tag/netty-4.2.0.Alpha1

> Upgrade to Netty 4.2
> 
>
> Key: CXF-9031
> URL: https://issues.apache.org/jira/browse/CXF-9031
> Project: CXF
>  Issue Type: Task
>Reporter: Andriy Redko
>Assignee: Andriy Redko
>Priority: Major
>
> https://github.com/netty/netty/releases/tag/netty-4.2.0.Alpha1



--
This message was sent by Atlassian Jira
(v8.20.10#820010)