[JBoss JIRA] Created: (JBCOMMON-17) org.jboss.util.file.JarUtils needs to be made more bullet-proof
by Pete Bennett (JIRA)
org.jboss.util.file.JarUtils needs to be made more bullet-proof
---------------------------------------------------------------
Key: JBCOMMON-17
URL: http://jira.jboss.com/jira/browse/JBCOMMON-17
Project: JBoss Common
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: core
Environment: JBoss IDE 2.0.0beta2
Fedora Core 6 (2.6.18-1.2869.fc6 #1 SMP Wed Dec 20 14:51:19 EST 2006 i686 i686 i386 GNU/Linux)
J2SE6 (1.6.0-b105)
JBoss Portal 2.6alpha2 non-clustered with JBoss AS bundle
Reporter: Pete Bennett
Assigned To: Dimitris Andreadis
Deploying the attached WAR file creates the following stack trace, which is related to issue BIDE-124.
This file was created using the package builder in JBoss IDE.
11:17:04,216 ERROR [Tomcat5] Problem in init
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
at java.lang.String.charAt(String.java:687)
at org.jboss.util.file.JarUtils.unjar(JarUtils.java:273)
at org.jboss.web.AbstractWebContainer.init(AbstractWebContainer.java:325)
...
I have re-raised this issue as BIDE-124 has been acted on and the file in question has moved considerably since then.
Having looked at http://anonsvn.jboss.org/repos/common/common-core/trunk/src/main/java/org... I think that line 273 in the file needs to be modified to protect against the case where the first entry in a JAR file is simply "/" as in the attached WAR.
< if (fileName.charAt(0) == '/')
> if (fileName.length() > 0 && fileName.charAt(0) == '/')
Otherwise line 269 produces a fileName of length 0 which causes charAt(0) to fail.
Pete
--
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
19 years, 2 months
[JBoss JIRA] Created: (JBAS-4046) jboss_init_redhat.sh has no easy way of undefining the -b option in startup
by Jon Stevens (JIRA)
jboss_init_redhat.sh has no easy way of undefining the -b option in startup
---------------------------------------------------------------------------
Key: JBAS-4046
URL: http://jira.jboss.com/jira/browse/JBAS-4046
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Other
Affects Versions: JBossAS-4.0.5.GA
Reporter: Jon Stevens
>From the jboss_init_redhat.sh script...
#bind address for jboss services, by default bind to *all* NICs
JBOSS_HOST=${JBOSS_HOST:-"0.0.0.0"}
#define the script to use to start jboss
JBOSSSH=${JBOSSSH:-"$JBOSS_HOME/bin/run.sh -c $JBOSS_CONF -b $JBOSS_HOST"}
Now, if I comment out JBOSS_HOST, then when JBOSSSH is defined, then it will end with -b and it will be empty. I'm trying to setup clustering, so I need to do that.
It would be nice if all I had to do was comment out JBOSS_HOST. Right now, I have to comment out JBOSS_HOST and modify JBOSSSH. That's not a nice solution.
--
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
19 years, 2 months
[JBoss JIRA] Created: (JBMESSAGING-437) Non durable subscription optimization
by Tim Fox (JIRA)
Non durable subscription optimization
-------------------------------------
Key: JBMESSAGING-437
URL: http://jira.jboss.com/jira/browse/JBMESSAGING-437
Project: JBoss Messaging
Issue Type: Task
Affects Versions: 1.0.1.CR3
Reporter: Tim Fox
Assigned To: Tim Fox
Fix For: 1.0.2
Since non durable subscriptions only live for the life-time of the consumer the it's struck me that we don't actually need to send any acks from the client to the server as messages are acknowledged for non durable subs.
Basically I think we can acknowledge them before they are sent from server to client.
This is because there's no case where messages will be redelivered from the server to the non durable sub, therefore no need for acks.
On session recovery and session rollback messages are redelivered locally (i.e. they are already on the client) so no need for the server to redeliver.
This also means we don't need to maintain a delivery list in the server consumer endpoint in this case, and the server consumer endpoint can return a done delivery every 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
19 years, 2 months