[JBoss Tools (users)] - Crash on opening plain text file
by tnine
Hi all,
I have just downloaded a fresh installation of WTP Eclipse and installed JBoss tools via the "links" file. Every time I open a text file I receive this error. The file is only 1.5 megs. Any idea why this is happening? Everything has been running great until today. I have over 1 GB of RAM free when eclipse crashes.
Versions:
Eclipse: 3.3.2
JBoss Tools: 2.0.1GA
Java: 1.5
Os: OSX 10.5.2
eclipse.ini
| -vmargs
| -Xms512m
| -Xmx1024m
| -XX:MaxPermSize=256m
|
Error
| !ENTRY org.eclipse.core.jobs 4 2 2008-05-02 17:46:33.385
| !MESSAGE An internal error occurred during: "Decoration Calculation".
| !STACK 0
| java.lang.OutOfMemoryError: Java heap space
| at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:99)
| at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:393)
| at java.lang.StringBuffer.append(StringBuffer.java:225)
| at org.jboss.tools.common.util.FileUtil.readStream(FileUtil.java:108)
| at org.jboss.tools.common.model.ui.editor.XMLContentDescriber.describe(XMLContentDescriber.java:31)
| at org.eclipse.core.internal.content.ContentType.describe(ContentType.java:161)
| at org.eclipse.core.internal.content.ContentTypeCatalog.collectMatchingByContents(ContentTypeCatalog.java:190)
| at org.eclipse.core.internal.content.ContentTypeCatalog.internalFindContentTypesFor(ContentTypeCatalog.java:360)
| at org.eclipse.core.internal.content.ContentTypeCatalog.internalFindContentTypesFor(ContentTypeCatalog.java:407)
| at org.eclipse.core.internal.content.ContentTypeCatalog.getDescriptionFor(ContentTypeCatalog.java:304)
| at org.eclipse.core.internal.content.ContentTypeCatalog.getDescriptionFor(ContentTypeCatalog.java:318)
| at org.eclipse.core.internal.content.ContentTypeMatcher.getDescriptionFor(ContentTypeMatcher.java:86)
| at org.eclipse.core.internal.resources.ContentDescriptionManager.readDescription(ContentDescriptionManager.java:400)
| at org.eclipse.core.internal.resources.ContentDescriptionManager.getDescriptionFor(ContentDescriptionManager.java:339)
| at org.eclipse.core.internal.resources.File.getContentDescription(File.java:269)
| at org.eclipse.ui.internal.ide.model.WorkbenchResource.testContentTypeProperty(WorkbenchResource.java:150)
| at org.eclipse.ui.internal.ide.model.WorkbenchResource.testAttribute(WorkbenchResource.java:117)
| at org.eclipse.ui.internal.ActionExpression$ObjectStateExpression.preciselyMatches(ActionExpression.java:530)
| at org.eclipse.ui.internal.ActionExpression$ObjectStateExpression.isEnabledFor(ActionExpression.java:499)
| at org.eclipse.ui.internal.ActionExpression$OrExpression.isEnabledFor(ActionExpression.java:582)
| at org.eclipse.ui.internal.ActionExpression$AndExpression.isEnabledFor(ActionExpression.java:132)
| at org.eclipse.ui.internal.ActionExpression$SingleExpression.isEnabledFor(ActionExpression.java:743)
| at org.eclipse.ui.internal.ActionExpression.isEnabledFor(ActionExpression.java:1053)
| at org.eclipse.ui.internal.decorators.DecoratorDefinition.isEnabledFor(DecoratorDefinition.java:281)
| at org.eclipse.ui.internal.decorators.DecoratorManager.getDecoratorsFor(DecoratorManager.java:193)
| at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.getDecoratorsFor(LightweightDecoratorManager.java:292)
| at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.getDecorations(LightweightDecoratorManager.java:315)
| at org.eclipse.ui.internal.decorators.DecorationScheduler$1.ensureResultCached(DecorationScheduler.java:369)
| at org.eclipse.ui.internal.decorators.DecorationScheduler$1.run(DecorationScheduler.java:329)
| at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4148255#4148255
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4148255
16 years, 4 months
[Security & JAAS/JBoss] - EJB Session Context Returns Incorrect Principal With Custom
by lent
Hello,
I'm using JBoss Application Server 4.0.5GA.
I wrote a custom login module which accepts either the user credentials or accepts a token which they still pass through the username/password fields. In my login module, when I detect that a token is being passed in, I retrieve the user associated with the token and then login as that user. The user is logged in properly and the correct user (Principal) is returned from the Subject retrieved from PolicyContext and security checks are performed correctly based on this user. However, if I call SessionContext.getPrincipal, then the Pricipal returned is one based on the passed in credentials (in this case the token itself) instead of being the logged in user.
Can anyone shed light on this behaviour? Is there something special that I have to do to ensure that SessionContext has the correct Principal?
Regards,
Len Takeuchi
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4148238#4148238
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4148238
16 years, 4 months