[JBoss JIRA] Created: (JBXB-142) SoapEncUnitTestCase - Incorrect Timezone Handling
by Darran Lofthouse (JIRA)
SoapEncUnitTestCase - Incorrect Timezone Handling
-------------------------------------------------
Key: JBXB-142
URL: http://jira.jboss.com/jira/browse/JBXB-142
Project: JBoss XML Binding (JBossXB)
Issue Type: Bug
Affects Versions: JBossXB-1.0.0.SP2, JBossXB-2.0.0.CR9
Reporter: Darran Lofthouse
Assigned To: Darran Lofthouse
Fix For: JBossXB-2.0.0.CR10, JBossXB-1.0.0.SP3
The testcase SoapEncUnitTestCase uses incorrect timezone handling.
The following code is within the instantiation of the object being marshalled: -
Calendar varDateTime = (Calendar)new GregorianCalendar(96, 5, 1);
int offset = varDateTime.get(Calendar.ZONE_OFFSET) + varDateTime.get(Calendar.DST_OFFSET);
StringBuffer buf = new StringBuffer();
buf.append("GMT");
if(offset > 0)
{
buf.append('+');
}
buf.append(offset);
varDateTime.setTimeZone(TimeZone.getTimeZone(buf.toString()));
struct.setVarDateTime(varDateTime);
1 - The year is 96 not 1996 so this is before DST offsets began.
2 - The two gets return an offset in milliseconds but the code assumes it is in hours.
3 - The TimeZone.getTimeZone is being passed a "GMT+3600000" this is not understood so GMT is returned by default.
When this test case is executed in CEST the setTimeZone changes the time to: -
<varDateTime>0096-05-31T23:00:00.000Z</varDateTime>
This is expected in the resulting XML.
For portability the Calendar instances needs to be constructed in a way to avoid the users timezone affecting the outcome i.e. varDateTime should be constructed have the timezone set to GMT and then set the exact time.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
18 years, 2 months
[JBoss JIRA] Created: (JGRP-750) Deadlock between GroupRequest and FLUSH during concurrent startup.
by Robert Newson (JIRA)
Deadlock between GroupRequest and FLUSH during concurrent startup.
------------------------------------------------------------------
Key: JGRP-750
URL: http://jira.jboss.com/jira/browse/JGRP-750
Project: JGroups
Issue Type: Bug
Affects Versions: 2.6.3
Environment: Debian etch (i386), Java HotSpot(TM) Server VM (build 1.6.0-b105, mixed mode)
Reporter: Robert Newson
Assigned To: Bela Ban
We've been having more trouble with concurrent start up and now think
we've isolated a deadlock between FLUSH and GroupRequest during
concurrent startup.
We have four boxes that join a channel and use MessageDispatcher
immediately after connecting. This frequently blocks indefinitely.
GroupRequest.execute() obtains a lock, then a subsequent view change
comes in which does likewise. The upshot is that we can see all
Incoming threads are blocked for the lock and the only way it can be
released is for a stop_flush message to occur. With all incoming
threads blocked, that never happens.
In the attached unit test if you add this after the call to connect("A"), it passes, implying a deadlock;
if (j ==0) {
Thread.sleep(500);
}
Additionally, and this is more speculative, it seems the wait/notify code in pbcast does not account for the spurious wakeup case. I don't know under what circumstances they happen, and I don't believe we're seeing spurious wakes at this time, but it should be fixed at some stage.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
18 years, 2 months
[JBoss JIRA] Created: (JGRP-748) Change in start() and connect() introduced new bug in the shared transport
by Bela Ban (JIRA)
Change in start() and connect() introduced new bug in the shared transport
--------------------------------------------------------------------------
Key: JGRP-748
URL: http://jira.jboss.com/jira/browse/JGRP-748
Project: JGroups
Issue Type: Sub-task
Reporter: Bela Ban
Assigned To: Bela Ban
[Vladimir]
This change caused SharedTransportTest#testReferenceCounting to start failing. As soon as one channel sharing transport layer calls disconnect we shut down threads receiving packets.
Can you access JIRA and cvs. Both are not working for me!
Vladimir
Bela Ban wrote:
> User: belaban Date: 08/04/23 02:21:53
>
> Modified: src/org/jgroups/protocols Tag: Branch_JGroups_2_6 UDP.java
> Log:
> moved thread starting to handleConnect() from start() (http://jira.jboss.com/jira/browse/JGRP-738)
> Revision Changes Path
> No revision
> No revision
> 1.156.2.3 +8 -4 JGroups/src/org/jgroups/protocols/UDP.java
> Index: UDP.java
> ===================================================================
> RCS file: /cvsroot/javagroups/JGroups/src/org/jgroups/protocols/UDP.java,v
> retrieving revision 1.156.2.2
> retrieving revision 1.156.2.3
> diff -u -r1.156.2.2 -r1.156.2.3
> --- UDP.java 3 Apr 2008 08:04:19 -0000 1.156.2.2
> +++ UDP.java 23 Apr 2008 09:21:53 -0000 1.156.2.3
> @@ -37,7 +37,7 @@
> * input buffer overflow, consider setting this property to true.
> * </ul>
> * @author Bela Ban
> - * @version $Id: UDP.java,v 1.156.2.2 2008/04/03 08:04:19 belaban Exp $
> + * @version $Id: UDP.java,v 1.156.2.3 2008/04/23 09:21:53 belaban Exp $
> */
> public class UDP extends TP implements Runnable {
> @@ -366,7 +366,7 @@
> throw new Exception(tmp, ex);
> }
> super.start();
> - startThreads();
> + // startThreads();
> }
> @@ -377,9 +377,13 @@
> super.stop();
> }
> + protected void handleConnect() throws Exception {
> + startThreads();
> + }
> -
> -
> + protected void handleDisconnect() {
> + stopThreads();
> + }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
18 years, 2 months
[JBoss JIRA] Created: (JGRP-737) Shared transport protocols use stack field from first channel created
by Brian Stansberry (JIRA)
Shared transport protocols use stack field from first channel created
---------------------------------------------------------------------
Key: JGRP-737
URL: http://jira.jboss.com/jira/browse/JGRP-737
Project: JGroups
Issue Type: Bug
Affects Versions: 2.6.2
Reporter: Brian Stansberry
Assigned To: Bela Ban
Priority: Critical
For example, TP.timer is set to TP.stack.timer. TP.stack belongs to an individual channel, not to the set of channels associated with a shared transport.
Disconnect the first channel and the others go boom.
Did a quick scan of usage of the 'stack' field or the 'getProtocolStack()' method in TP and its subclasses. This usage for the timer is one. Others are:
1) TCP.getConnectionTable calls cTable.setThreadFactory(getProtocolStack().getThreadFactory());
2) handleDiagnosticProbe uses stack.getChannel()
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
18 years, 2 months
[JBoss JIRA] Created: (JBPORTAL-2023) Modify/Approve of CMS content with activated ApprovePublish workflow fails on Postgres 8.3.1
by Martin Putz (JIRA)
Modify/Approve of CMS content with activated ApprovePublish workflow fails on Postgres 8.3.1
--------------------------------------------------------------------------------------------
Key: JBPORTAL-2023
URL: http://jira.jboss.com/jira/browse/JBPORTAL-2023
Project: JBoss Portal
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 2.6.5 Final, 2.6.4 Final
Environment: Fedora Core 9, JBoss EAP 4.3, Postgresql 8.3.1
Reporter: Martin Putz
With activated ApprovePublish workflow, hitting the 'Modify/Approve' button after a pending item is in the 'Preview' mode leads to an excpetion:
2008-05-22 13:39:20,559 WARN [org.hibernate.util.JDBCExceptionReporter] SQL Error: 0, SQLState: 22001
2008-05-22 13:39:20,559 ERROR [org.hibernate.util.JDBCExceptionReporter] ERROR: value too long for type character varying(255)
This will only show if the content of the previewed file is larger than 255 characters, eg.:
1. open default/index.html
2. make a little modification, hit 'Create'
3. for the newly created item in the 'Pending Approval Queue' hit 'Preview'
4. make another little modification and hit 'Modify/Approve'
The SQL insert for JBPM_VARIABLEINSTANCE table fails because the STRINGVALUE_ column is set up with varchar(255).
The same works with the out-of-the-box Hypersonic DB.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
18 years, 2 months