Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all 5661 articles
Browse latest View live

LoginException

$
0
0

In PostgreSQL, I have created role, lets say "example_role" in pgAdmin3, and tried to login in command promt and on glassfish server, which works in both cases, but not when I try to start the server with IntelliJIDEA, in which case I get the following exception:

 

        ApplicationServer was not connected before run configuration stop, reason:        java.io.IOException: com.sun.enterprise.admin.remote.RemoteFailureException:Exceptionwhile processing command: javax.security.auth.login.LoginException

And server gives me following output (Im using Maven for project packaging):

 

C:\glassfish4\glassfish\bin\asadmin.bat start-domain --debug example_domain[2014-04-0808:30:30,003]Artifact scrumkin-ear:ear:Serverisnot connected.Deployisnot available.Detected server admin port:4848Detected server http port:8080
Debuggingis enabled and the server is suspended.  Please attach to the debugging port at:9009Attempting to start example_domain....Please look at the server log for more details.....Connected to the target VM, address:'127.0.0.1:9009', transport:'socket'

I have provided exact same username and password inside IntelliJIDEA for the specified glassfish server, so I don't know what else could be causing the error. In eclipse, for example, I have no issues!


new error messages

$
0
0

When you recompile/rebuild, I wish Idea would immediately clear the

error messages window. It is not always obvious if you are looking at

old error messages or new ones from the latest compile.

--

Roedy Green Canadian Mind Products http://mindprod.com

"Don't worry about people stealing an idea; if it's original, you'll

have to shove it down their throats."

~ Howard Aiken (born: 1900-03-08 died: 1973-03-14 at age: 73)

 

Tiling window managers + intelliJ

$
0
0

Anyone has any luck with _any_ tiling wm?

 

I'm using awesome.

Issues:

- window ignores rules, and appears always floating, vertically maximized, no matter what rules say

- window doesn't get focus when changing desktop on mouse over, unless another window had it first

 

It feels like java apps are made of pure evil when in a tiling wm...

SVN 1.8 executable false alert

$
0
0

Hello!

 

I'm using lastest Intellij Idea (13.1.1) on lastest MacOS X (10.9.2)

 

I've installed subversion 1.8 via recently updated MacPorts and seted path to svn (/opt/local/bin/svn) in subversion properties of Idea.

 

However IDE shows me red baloon with "Can't use Subversion command line client: /opt/local/bin/svn".

 

BUT. Svn is workig and it uses this executable (because it's only way to make workspace of 1.8 format to be update).

 

Screen Shot 2014-04-09 at 03.19.14.png

 

So it seems to be a false alert, but rather annoying.

Some import statements missing color syntax highlight

$
0
0

Hi,

 

Using IJ CE 13.1.1, Sometimes, there are some import statements which have no syntax highliting.In the code, the classes coming from these imports also suffer from the lack of syntax highlighting. Is it because of the java lib itself or does IJ has some rules regarding syntax highlighting which leave out these classes?

 

Thanks in advance for any help.

 

EDIT: Is there a way to place an inline image in the post? If so can you please show me how? Thanks.

 

http://imgur.com/JTIIpXN

Jsp editing

$
0
0

When I'm working on a jsp file, is there a way to get the Javascript and Html Editor functionality? It would be nice to get code folding and completion in jsp's.

invert colors in intelliJ

$
0
0

If i look here then i see that the color scheme is inverted.

I looked how to do that but isee solutions from a few years old that are to much work.

 

Is there a simple flag somewhere to get it done?

Scope gutter color

$
0
0

The scope your cursor is currently in is shown in the gutter with the Darcula scheme in a certain color. I wish to change this color but I cannot find it to save my life. Where is this setting?

 

Thank you in advance.

 

Attached is a picture of the scope gutter indicator I am referring to.


Using Nokia Asha Web App Emulator from IntelliJ IDEA

$
0
0

Hi,

 

Anyone uses IntelliJ IDEA to develop Nokia Asha web apps? I want to start developing a Nokia web app with IDEA. However I don't know how to use emulator from outside the official Nokia Asha Web App Tools. Any suggestions?

Potential bug in JSHint support?

$
0
0

I'm running IntelliJ 13.1 Ultimate (Build 135.667) and JSHint 2.4.4 (bundled). I think this is actually 13.1.2 EAP but there's no version number other than 13.1 in the About dialog.

 

I don't understand why it's thinking this.normalFont and this.highFont are unresolved variables immediately after they have been assigned values. At least I would expect it to also complain about the original assignments as being unresolved as well in this case.

 

There are intention actions for fixing this, but "Create Field 'normalFont'" just inserts a line that says "this.normalFont = undefined" and then says that normalFont is an unresolved variable.

 

If I run this code through http://JSHint.com, I don't get this warning at all.

 

The documentation comment includes @constructor. I have noticed that if I change it to "@constructor universe", where "universe" is any word, phrase or punctuation mark, this problem goes away. However in that case the generated documentation includes the literal text "@constructor universe" in it and the function isn't flagged as a constructor. I discovered this when I thought that perhaps I could specify after the @constructor tag a list of member variables or something.

 

I can turn the inspection off entirely, or manually turn it off for every single statement like this, but both of those seem wrong to me.

 

Can anyone explain why it's doing this, or what stupid thing I'm doing wrong, or how to convince it that this is a field that actually exists, or something?

 

IntelliJ13_JSHint_badVar.png

Where is command "Export to DDL"?

$
0
0

How to run hbm2ddl from IDEA? How i can export my entity to SQL? Where in this beautiful monstrous IDE this simple and necessary feature?

Exclude from re-formatting by file-type Before Commit

$
0
0
Hello -
From a process and maintenance perspective, we'd like all our developers to use corporate standard formatting on all their commits so we'd love to require use of the VCS > Commit Changes > (Before Commit) "Reformat code" checkbox for all commits.  Unfortunately, we have a lot of JSP whose meaning changes when we run the formatter on it so we can't currently blindly run the formatter on all JSP.  We'd like to be able to exclude JSPs from the Before Commit action.  Others before us have reported this:

Any chance this can get some attention?  We just bought 40 licences of Intellij and are otherwise thrilled with the product.

Please advise,
- Luke Nezda
p.s.  We feel @formatter:off is too invasive.

Dart plugin: equivalent of DartEditor "Run as Javascript"

$
0
0

In the DartEditor, the Javascript version of a Dart application can be executed by selecting "Run as Javascript". Is there an equivalent function available in IDEA with the Dart plugin?

Artifact has invalid extension issue (JBoss 7, ear artifact)

$
0
0

Hello, All -

 

I know that when I'm trying to deploy an artifact to JBoss, it seems to require artifacts to have a valid extension even if they are exploded (directories) (e.g., ".war" or ".ear") and to fix this issue, which Intellij flags, I just add (in my case) ".ear" to the end of the Output Directory path and all is well.  My problem is I'd like to leave Settings > Maven > “Import Maven project automatically” checked, but then everytime the pom.xml changes, I have to redo this and its tedious.  Is there a way I can make this "stick"?  Maybe something in the pom that Intellij reads/respects or an Intellij specific thing, or anything else that works.

 

Thanks in advance,

- Luke

Add one-shot Java EE libraries to project

$
0
0

Hello,

 

I get validation and compile errors for all of my javax.* classes in the project (mostly imports and annotations on the entities).

 

I know I can add each JAR to the path manually, like the libs provided from JBoss Wildfly, which I'm using, but then I need to add the JPA 2.1 JAR, the JSF JAR, the CDI JAR etc., that is one for each javax subpackage - yawn.

 

Example: http://devnet.jetbrains.com/thread/453942?tstart=0

 

Isn't there any one-shot "add all Java EE libs" library setting, much like adding the JDK? Of course, I only need this for building the project and I don't want to download any JARs into the project's lib dir nor do I want any of these deployed to the server.

 

So, what is the best to solve this (using IntelliJ 13.1.1)?

 

Thanks


13.1 Implement Methods... does not work with new interface method that looks like old interface method

$
0
0

Hey,

 

 

I notice an issue with IDEA 13.1 (135.475) Ultimate.  I'll clarify.

 

I'm implementing an interface that already has an implemented method with signature "public boolean deletePaymentSnapShot(PaymentSnapShot snapShot)".

The new interface method has signature: "public boolean deletePaymentSnapShot(PaymentIdentifierType identifier)".

 

So, I went to the implementation class and pressed "Alt-Insert" and then selected "Implement Methods...". IDEA correctly shows me the only unimplemented method in the dialog (and compilation also fails correctly).  But when I select that method and press "OK", absolutely nothing happens.

 

If I comment out the old existing method in the implementation, 'Implement Methods..." works correctly.

Where to place the rule files of drools in IntelliJ ? HELP!

$
0
0

Hello,

 

I have a project which I imported from Eclipse to IntelliJ 13.  This project had a separate rules folder in the src folder, apart from the main folder, for the drools files. And since I imported from Eclipse they are still in that folder in IntelliJ. In order to be clear the path is like this:

 

 

  •           .../src/main/ <--  this where the java classes are
  •           ../src/rules/  <--  this has the drools rule files

 

 

I did install the drools plug-in for the project and I also checked that libraries are installed correctly - I see them in the project field under the external libraries.- I can compile the code wihtout any errors. But I have some runtime errors. And I accidently found that some of the rule files under the rules folder are starting with "package rules.level1" and some of them start just with the file name like "package level1". And IntelliJ itself underlines the statements which start with "package rules.level1" with red and when the cursor stays on top of it, a small window pop-ups in which is written "Cannot resolve". So probably due to these errors - obviously I have more than one error - the program has runtime issues.

 

My first question is : Is this rule folder is in appropriate place in IntelliJ. Because the owner of the code told me that this program was running successfully 4 years ago in Eclipse. My second question is : declaring the packages "package rules.level1" is an appropriate way? If so why is it telling me that it cannot resolve? And third if this is the case how can I resolve this issue?

 

 

Thanks in Advance

     Kadir

How to deploy a Java EE simple application

$
0
0

I'm trying to run this simple and small application but I don't understand which is the problem and consequently how to fix it.

Here it is the code. It is very simple. One bean invoked by a client application in order to print out in the client terminal the well-known message Hello World. I have created the application by using Intellij Idea 13.0.3 IDE with Server GlassFish 4.0.0, Java JDK 8.0. May you explain me step-by-step what I should do to run this application in the ide?

 

 


package myejb;import javax.ejb.Remote;@RemotepublicinterfaceHello{    publicString sayHello(String name);}

package myejb;import javax.ejb.Remote;import javax.ejb.Stateless;@Stateless(name ="HelloEJB")@Remote({Hello.class})publicclassHelloBeanimplementsHello{    publicHelloBean()    {    }    @Override    publicString sayHello(String name)    {        return"Hello, "+ name +"!";    }}

and the Client application

package myejbclient;import javax.ejb.EJB;import myejb.Hello;publicclassHelloClient{    @EJB(lookup ="HelloEJB")    privatestaticHello hello;    publicHelloClient()    {    }    publicstaticvoid main(String[] args)    {        HelloClient client =newHelloClient();        client.doConversation();    }    publicvoid doConversation()    {        System.out.println(hello.sayHello("World"));    }}

I execute glassfish to deploy the application. it is deployed correctly but when I run the client application I get this error message:

 

Exceptionin thread "main" java.lang.NullPointerException    at myejbclient.HelloClient.doConversation(HelloClient.java:27)    at myejbclient.HelloClient.main(HelloClient.java:22)    at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)    at java.lang.reflect.Method.invoke(Method.java:483)    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)

Javascript methods resolving when they should not

$
0
0

Hi, I have a question about the inspection "Unresolved JavaScript function".

Given the following code:

 

function MyClass() {}

MyClass.prototype.myFunction = function () {};


var myString = "a string";

myString.myFunction();

I would expect an error highlighted on the last line, but it resolves just fine. myFunction() does not appear on the autocomplete-list, but if I write it out, I don't get any errors (and CMD+mouseclick takes me to the definition above).

Am I missing something fundamentally, or is this the wrong behaviour? Does every function defined (in any namespace or class) resolve for any type of object? Is there a reason that it has to be this way?

Preben

improving Help with breadcrumbs

$
0
0

IntelliJ has a rabbit warren of menus.  It can take quite a while to

find the spot where you get to specify something.

 

For example I wanted to insert -Xdiags:verbose. Where to specify it?

 

I try help and it tells me "the compiler options pane".  I could have

guessed that, but WHERE is the compile options pane?

 

It would be nice at the top of such help pages if it showed you the

breadcrumbs, the series of menus you take to get there.

 

Once you find them they are obvious. Unfortunately, until you do, the

menus are inscrutable.

--

Roedy Green Canadian Mind Products http://mindprod.com

"Don't worry about people stealing an idea; if it's original, you'll

have to shove it down their throats."

~ Howard Aiken (born: 1900-03-08 died: 1973-03-14 at age: 73)

 

Viewing all 5661 articles
Browse latest View live