[JBoss JIRA] (FURNACE-109) Furnance - Reads into streams using a 64kb limited buffer
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FURNACE-109?page=com.atlassian.jira.plugi... ]
George Gastaldi closed FURNACE-109.
-----------------------------------
Fix Version/s: 2.23.3.Final
Assignee: George Gastaldi
Resolution: Done
> Furnance - Reads into streams using a 64kb limited buffer
> ---------------------------------------------------------
>
> Key: FURNACE-109
> URL: https://issues.jboss.org/browse/FURNACE-109
> …
[View More] Project: Forge: Furnace
> Issue Type: Enhancement
> Components: Runtime
> Affects Versions: 2.23.2.Final
> Reporter: Claus Ibsen
> Assignee: George Gastaldi
> Priority: Minor
> Fix For: 2.23.3.Final
>
>
> Was tracking down loading file content into as a string or input stream using forge, and got into the furnance source code
> {code}
> package org.jboss.forge.furnace.util;
> import java.io.ByteArrayInputStream;
> import java.io.Closeable;
> import java.io.IOException;
> import java.io.InputStream;
> import java.io.InputStreamReader;
> import java.io.OutputStream;
> import java.io.UnsupportedEncodingException;
> import java.nio.charset.Charset;
> public abstract class Streams {
> public Streams() {
> }
> public static String toString(InputStream stream) {
> StringBuilder out = new StringBuilder();
> try {
> char[] e = new char[65536];
> InputStreamReader in = new InputStreamReader(stream, "UTF-8");
> int read;
> do {
> read = in.read(e, 0, e.length);
> if(read > 0) {
> out.append(e, 0, read);
> }
> } while(read >= 0);
> } catch (UnsupportedEncodingException var5) {
> throw new RuntimeException(var5);
> } catch (IOException var6) {
> throw new RuntimeException(var6);
> }
> return out.toString();
> }
> {code}
> This is a bit of waste if you load a 1kb file.
> The JDK has a BufferedInputStream you can leverage. or a BufferedReader.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
[View Less]
9 years, 1 month
[JBoss JIRA] (FURNACE-109) Furnance - Reads into streams using a 64kb limited buffer
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FURNACE-109?page=com.atlassian.jira.plugi... ]
George Gastaldi moved FORGE-2603 to FURNACE-109:
------------------------------------------------
Project: Forge: Furnace (was: Forge)
Key: FURNACE-109 (was: FORGE-2603)
Component/s: Runtime
(was: Furnace (Container))
Affects Version/s: 2.23.2.Final
(was: 3.0.0.CR1)
> Furnance - Reads into streams using a …
[View More]64kb limited buffer
> ---------------------------------------------------------
>
> Key: FURNACE-109
> URL: https://issues.jboss.org/browse/FURNACE-109
> Project: Forge: Furnace
> Issue Type: Enhancement
> Components: Runtime
> Affects Versions: 2.23.2.Final
> Reporter: Claus Ibsen
> Priority: Minor
>
> Was tracking down loading file content into as a string or input stream using forge, and got into the furnance source code
> {code}
> package org.jboss.forge.furnace.util;
> import java.io.ByteArrayInputStream;
> import java.io.Closeable;
> import java.io.IOException;
> import java.io.InputStream;
> import java.io.InputStreamReader;
> import java.io.OutputStream;
> import java.io.UnsupportedEncodingException;
> import java.nio.charset.Charset;
> public abstract class Streams {
> public Streams() {
> }
> public static String toString(InputStream stream) {
> StringBuilder out = new StringBuilder();
> try {
> char[] e = new char[65536];
> InputStreamReader in = new InputStreamReader(stream, "UTF-8");
> int read;
> do {
> read = in.read(e, 0, e.length);
> if(read > 0) {
> out.append(e, 0, read);
> }
> } while(read >= 0);
> } catch (UnsupportedEncodingException var5) {
> throw new RuntimeException(var5);
> } catch (IOException var6) {
> throw new RuntimeException(var6);
> }
> return out.toString();
> }
> {code}
> This is a bit of waste if you load a 1kb file.
> The JDK has a BufferedInputStream you can leverage. or a BufferedReader.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
[View Less]
9 years, 1 month
[JBoss JIRA] (FORGE-2603) Furnance - Reads into streams using a 64kb limited buffer
by Claus Ibsen (JIRA)
Claus Ibsen created FORGE-2603:
----------------------------------
Summary: Furnance - Reads into streams using a 64kb limited buffer
Key: FORGE-2603
URL: https://issues.jboss.org/browse/FORGE-2603
Project: Forge
Issue Type: Enhancement
Components: Furnace (Container)
Affects Versions: 3.0.0.CR1
Reporter: Claus Ibsen
Priority: Minor
Was tracking down loading file content into as a …
[View More]string or input stream using forge, and got into the furnance source code
{code}
package org.jboss.forge.furnace.util;
import java.io.ByteArrayInputStream;
import java.io.Closeable;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.UnsupportedEncodingException;
import java.nio.charset.Charset;
public abstract class Streams {
public Streams() {
}
public static String toString(InputStream stream) {
StringBuilder out = new StringBuilder();
try {
char[] e = new char[65536];
InputStreamReader in = new InputStreamReader(stream, "UTF-8");
int read;
do {
read = in.read(e, 0, e.length);
if(read > 0) {
out.append(e, 0, read);
}
} while(read >= 0);
} catch (UnsupportedEncodingException var5) {
throw new RuntimeException(var5);
} catch (IOException var6) {
throw new RuntimeException(var6);
}
return out.toString();
}
{code}
This is a bit of waste if you load a 1kb file.
The JDK has a BufferedInputStream you can leverage. or a BufferedReader.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
[View Less]
9 years, 1 month
[JBoss JIRA] (FORGE-2602) Install forge addon - Have dialog remember last used
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-2602?page=com.atlassian.jira.plugin... ]
George Gastaldi commented on FORGE-2602:
----------------------------------------
Hi [~davsclaus],
The coordinate shown as the default value is the current project you're in, but I agree that we should at least check if the current project is an addon project before setting as the default value.
To store values, the best approach is to use the configuration addon: http://forge.jboss.org/addon/org.jboss.forge.…
[View More]addon:configuration
> Install forge addon - Have dialog remember last used
> ----------------------------------------------------
>
> Key: FORGE-2602
> URL: https://issues.jboss.org/browse/FORGE-2602
> Project: Forge
> Issue Type: Enhancement
> Components: Addon Manager, Usability
> Affects Versions: 3.0.0.CR1
> Reporter: Claus Ibsen
> Priority: Minor
> Fix For: 3.x Future
>
> Attachments: Screen Shot 2016-02-22 at 10.46.22 AM.png
>
>
> When you install a forge addon then the dialog do not remember the last addon you installed, and always shows a foo example.
> It would be nice if the dialog was auto populated with the last used.
> See screenshot of FORGE-2601 of what I have to type every time I want to update and install my addon. Would be nice if forge could remember this.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
[View Less]
9 years, 1 month
[JBoss JIRA] (FORGE-2602) Install forge addon - Have dialog remember last used
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-2602?page=com.atlassian.jira.plugin... ]
George Gastaldi updated FORGE-2602:
-----------------------------------
Fix Version/s: 3.x Future
> Install forge addon - Have dialog remember last used
> ----------------------------------------------------
>
> Key: FORGE-2602
> URL: https://issues.jboss.org/browse/FORGE-2602
> Project: Forge
> Issue Type: Enhancement
> …
[View More]Components: Addon Manager, Usability
> Affects Versions: 3.0.0.CR1
> Reporter: Claus Ibsen
> Priority: Minor
> Fix For: 3.x Future
>
> Attachments: Screen Shot 2016-02-22 at 10.46.22 AM.png
>
>
> When you install a forge addon then the dialog do not remember the last addon you installed, and always shows a foo example.
> It would be nice if the dialog was auto populated with the last used.
> See screenshot of FORGE-2601 of what I have to type every time I want to update and install my addon. Would be nice if forge could remember this.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
[View Less]
9 years, 1 month
[JBoss JIRA] (FORGE-2602) Install forge addon - Have dialog remember last used
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-2602?page=com.atlassian.jira.plugin... ]
George Gastaldi updated FORGE-2602:
-----------------------------------
Component/s: Addon Manager
Usability
> Install forge addon - Have dialog remember last used
> ----------------------------------------------------
>
> Key: FORGE-2602
> URL: https://issues.jboss.org/browse/FORGE-2602
> Project: Forge
> Issue Type: …
[View More]Enhancement
> Components: Addon Manager, Usability
> Affects Versions: 3.0.0.CR1
> Reporter: Claus Ibsen
> Priority: Minor
> Fix For: 3.x Future
>
> Attachments: Screen Shot 2016-02-22 at 10.46.22 AM.png
>
>
> When you install a forge addon then the dialog do not remember the last addon you installed, and always shows a foo example.
> It would be nice if the dialog was auto populated with the last used.
> See screenshot of FORGE-2601 of what I have to type every time I want to update and install my addon. Would be nice if forge could remember this.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
[View Less]
9 years, 1 month
[JBoss JIRA] (FORGE-2602) Install forge addon - Have dialog remember last used
by Claus Ibsen (JIRA)
Claus Ibsen created FORGE-2602:
----------------------------------
Summary: Install forge addon - Have dialog remember last used
Key: FORGE-2602
URL: https://issues.jboss.org/browse/FORGE-2602
Project: Forge
Issue Type: Enhancement
Affects Versions: 3.0.0.CR1
Reporter: Claus Ibsen
Priority: Minor
Attachments: Screen Shot 2016-02-22 at 10.46.22 AM.png
When you install a forge addon then …
[View More]the dialog do not remember the last addon you installed, and always shows a foo example.
It would be nice if the dialog was auto populated with the last used.
See screenshot of FORGE-2601 of what I have to type every time I want to update and install my addon. Would be nice if forge could remember this.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
[View Less]
9 years, 1 month
[JBoss JIRA] (FORGE-2601) Install forge addon - Have better title in dialog
by Claus Ibsen (JIRA)
Claus Ibsen created FORGE-2601:
----------------------------------
Summary: Install forge addon - Have better title in dialog
Key: FORGE-2601
URL: https://issues.jboss.org/browse/FORGE-2601
Project: Forge
Issue Type: Enhancement
Affects Versions: 3.0.0.CR1
Reporter: Claus Ibsen
Priority: Trivial
Attachments: Screen Shot 2016-02-22 at 10.42.35 AM.png
When installing a forge addon from IDE …
[View More]such as IDEA then the title says - Install Furnance 2 addon.
But people dont know what furnance is, it should say
Command to install a Forge addon.
See screenshot
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
[View Less]
9 years, 1 month
[JBoss JIRA] (FURNACE-106) LinuxWatchService: "Too many open files"
by Marek Novotny (JIRA)
[ https://issues.jboss.org/browse/FURNACE-106?page=com.atlassian.jira.plugi... ]
Marek Novotny commented on FURNACE-106:
---------------------------------------
just another try on my other desktop with Ubuntu defaults works fine (mvn clean package/install):
{noformat}
ulimit -Hn
65536
ulimit -Sn
1024
cat /proc/sys/fs/file-max
605618
{noformat}
> LinuxWatchService: "Too many open files"
> ----------------------------------------
>
> Key: FURNACE-106
> …
[View More] URL: https://issues.jboss.org/browse/FURNACE-106
> Project: Forge: Furnace
> Issue Type: Bug
> Components: Runtime
> Affects Versions: 2.22.10.Final
> Reporter: Ondrej Zizka
> Attachments: strace.log.9838
>
>
> When running Windup in a Maven plugin, I get the exception below.
> I have increased all linux limits to 1 000 000.
> STR:
> git clone https://github.com/OndraZizka/windup
> cd windup
> git co
> mvn clean install -DskipTests
> cd ..
> git clone https://github.com/OndraZizka/windup-maven-plugin.git
> cd windup-maven-plugin
> git co bfaa7b6
> mvn clean install
> cd ..
> git clone https://github.com/OndraZizka/windup-quickstarts.git
> cd windup-quickstarts
> git co 9b991fc8db1
> mvn clean install
>
> git clone https://github.com/OndraZizka/windup.git
> {code}
> 2016-01-28 17:46:52 WARNING org.jboss.forge.furnace.impl.FurnaceImpl <init>() File monitoring could not be started.
> java.io.IOException: Too many open files
> at sun.nio.fs.LinuxWatchService.<init>(LinuxWatchService.java:61)
> at sun.nio.fs.LinuxFileSystem.newWatchService(LinuxFileSystem.java:47)
> at org.jboss.forge.furnace.impl.FurnaceImpl.<init>(FurnaceImpl.java:152)
> at org.jboss.forge.furnace.impl.FurnaceImpl_$$_javassist_9290627c-c1d3-4961-b1cd-6bd226307dc3.<init>(FurnaceImpl_$$_javassist_9290627c-c1d3-4961-b1cd-6bd226307dc3.java)
> at sun.reflect.GeneratedConstructorAccessor65.newInstance(Unknown Source)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
> at java.lang.Class.newInstance(Class.java:383)
> at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback$3.call(ClassLoaderAdapterCallback.java:992)
> at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)
> at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback.enhance(ClassLoaderAdapterCallback.java:900)
> at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback.enhance(ClassLoaderAdapterCallback.java:880)
> at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback.enhanceSingleParameterValue(ClassLoaderAdapterCallback.java:776)
> at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback.enhanceParameterValues(ClassLoaderAdapterCallback.java:648)
> at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback.access$000(ClassLoaderAdapterCallback.java:37)
> at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback$2.call(ClassLoaderAdapterCallback.java:117)
> at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)
> at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback.invoke(ClassLoaderAdapterCallback.java:96)
> at org.jboss.forge.furnace.spi.ContainerLifecycleListener_$$_javassist_ad6baef1-d99b-4e97-8f1e-324f98eb5edf.afterConfigurationScan(ContainerLifecycleListener_$$_javassist_ad6baef1-d99b-4e97-8f1e-324f98eb5edf.java)
> at org.jboss.forge.furnace.impl.FurnaceImpl.fireAfterConfigurationScanEvent(FurnaceImpl.java:657)
> at org.jboss.forge.furnace.impl.FurnaceImpl.reloadConfiguration(FurnaceImpl.java:606)
> at org.jboss.forge.furnace.impl.FurnaceImpl.access$500(FurnaceImpl.java:59)
> at org.jboss.forge.furnace.impl.FurnaceImpl$2.call(FurnaceImpl.java:276)
> at org.jboss.forge.furnace.impl.FurnaceImpl$2.call(FurnaceImpl.java:241)
> at org.jboss.forge.furnace.impl.lock.LockManagerImpl.performLocked(LockManagerImpl.java:55)
> at org.jboss.forge.furnace.impl.FurnaceImpl.start(FurnaceImpl.java:240)
> at org.jboss.forge.furnace.impl.FurnaceImpl$1$1.run(FurnaceImpl.java:199)
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
[View Less]
9 years, 1 month