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

war file created as -plain-output


Oracle thin driver not loading

$
0
0

Hello all,

 

Part time Java programmer.  Pretty new to apache camel and spring. Been using Intellij for years but I only get to code Java maybe a few hundred hours a year.

 

My env

 

  • intellij 14.1.3 on Mac OS X Yosemite
  • apache camel command line application
  • uses spring framework for route specifications
  • maven project
    • all libraries loaded via maven
    • no ./lib jar files

 

I have a route that inserts data into an oracle table

 

The application works from Intellij no problem. Inserted  4,000+ records last night from intellij

 

When I build the artifact and run as a jar file from the command line I get

 

No suitable driver found for jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)
(HOST=ourhostname.richmond.edu)(PORT=1521)))(CONNECT_DATA=(SERVER = dedicated) (SERVICE_NAME=ourservicename.richmond.edu)))

 

 

So I tried to preload the driver with

 

try{    Class c   = Class.forName("oracle.jdbc.OracleDriver");    log.info("success: Class.forName(\"oracle.jdbc.OracleDriver\")");}catch (ClassNotFoundException e) {    log.info("Unable to load ojdbc");    log.info(e);} 

 

I get

 

[ main] MyMain INFO  Unable to load ojdbc
[ main] MyMain INFO  java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver

 

 

When I untar the jar file and search for "ojdb"

 

find ./ | grep ojdbc
.//ojdbc6-11.2.0.4.jar
find ./ | grep oracle
# only finds my packages with oracle in the name

 

If I grep for some other library I see the class files and more

 

find ./ | grep log4j
many lines removed for breviety
.//org/apache/log4j/xml/DOMConfigurator$1.class
.//org/apache/log4j/xml/DOMConfigurator$2.class
.//org/apache/log4j/xml/DOMConfigurator$3.class
.//org/apache/log4j/xml/DOMConfigurator$4.class
.//org/apache/log4j/xml/DOMConfigurator$5.class
.//org/apache/log4j/xml/DOMConfigurator$ParseAction.class
.//org/apache/log4j/xml/DOMConfigurator.class
.//org/apache/log4j/xml/log4j.dtd
.//org/apache/log4j/xml/Log4jEntityResolver.class
.//org/apache/log4j/xml/SAXErrorHandler.class
.//org/apache/log4j/xml/UnrecognizedElementHandler.class
.//org/apache/log4j/xml/XMLLayout.class
.//org/apache/log4j/xml/XMLWatchdog.class
.//slf4j-log4j12-1.7.12.jar

 

 

Any idea how I can fix this?

Resize/set default select menu size in JBoss run/debug configuration screen

$
0
0

Is there a way to resize this window in the JBoss plugin so that I don't have to scroll down to view the build actions every time?

 

jsf-fun.png

 

Milliseconds add up! 

'Hot swap classes' issue with JBoss plugin

$
0
0

After specifying:

 

screen1.png

 

Now, back here, I deploy and everything is OK:

 

screen2.png

 

when I later push the update button (the single-arrow blue circle "Update 'jsf-fun' application (Command-F10)"), I see:

screen3.png

 

In spite of the fact that "Show dialog" was unchecked earlier.  Selecting "No" here does nothing.  Selecting "Yes" redeploys and changes my configuration back to "Redeploy":

 

screen4.png

 

Is this a bug?  Am I doing something wrong here?

 

Thanks.

Intellij + springboot + maven + spring-loaded + debugging (not working)

$
0
0

I have an issue where debugging stops working in Intellij, when applying Spring-loaded as a dependency to the maven plugin.

 

 

Situation 1 (working):

Using a autogenerated spring-boot maven (pom.xml) file with a  declared "Spring-boot-maven-plugin" I can debug my my app using the  debug-maven command in intellij. The pom file looks like this:

 

<build>    <plugins>        <plugin>            <groupId>org.springframework.boot</groupId>            <artifactId>spring-boot-maven-plugin</artifactId>        </plugin>    </plugins></build>

Situation 2 (not working):

 

Following the guide lines here: spring-boot-hot-swapping one should add a dependency for spring-loaded, to make use of spring-loaded. The pom file now looks like:

<build>    <plugins>        <plugin>            <groupId>org.springframework.boot</groupId>            <artifactId>spring-boot-maven-plugin</artifactId>            <dependencies>                <dependency>                    <groupId>org.springframework</groupId>                    <artifactId>springloaded</artifactId>                    <version>1.2.3.RELEASE</version>                </dependency>            </dependencies>        </plugin>    </plugins></build>

 

Debugging the same run-configuration as before does not work. The  break-points simply never turns into a "checkmark"  and the code never  suspends. Code is now hotswapping as one would expect... If I remove the  plugin-dependency again, debugging starts working again...

 

Please help me make situation two work!

 

IntelliJ 14.1.3 Ultimate, Java 7, Spring boot 1.2.4, Spring loaded 1.2.3

For good measure, i've also posted this question here: http://stackoverflow.com/questions/31010574/intellij-springboot-maven-spring-loaded (no response though :/)

"Changed files" scope for "todos" is missing test files

$
0
0

Hey,

I noticed that the Changed Files scope in the todo list does not show the todos that are written inside test files, even when the test files are changed (Or in my case, new).

Attached screenshot.

GitHub issues do not show in tasks

$
0
0

Hey everyone,

I'm trying to integrate IntelliJ's Task Management plugin with GitHub issues with little success.

I have a test GitHub project, into which I added some issues.

I configured the plugin with the GitHub server, but when I open the tasks drop down I don't see any tasks...

At one point it showed me only one of the 3 issues I had and now that I closed it I see none of the remaining 2.

I tried it with and without the tasks cache option, and also tried lowering the timeout to 1 minute in order to make sure it's not a sync issue.

 

Am I missing anything?

 

Thanks,

Guy

What is the point of the "static method declared final" inspection?

$
0
0

Static final methods trigger the following warning:

 

'static' method declared 'final'


Reports methods declared final and static. When a static method is overriden in a subclass it can still be accessed via the superclass making the final declaration not very necessary. Declaring a static method final does prevent subclasses from defining a static method with the same signature.

This makes it look like it's  bad practice for static methods to also be declared final, but that's not true, the two qualifiers are orthogonal. If you don't want the method to be overriden you declare it final and that's it.
I know that I can simply disable the warning, but I'm wondering what was the original thinking behind it.

Javascript debugger - elements tab not showing

$
0
0

Hello,

 

i am using Intellij 14.0.4. When i start javascript debugging, i never see the elements tab that is supposed to show my dom structure. Even on simple projects like the one i provided in the zip file. I am using chrome with the jetbrains extension.

 

Help would be appreciated, thx.

 

intellij.jpg

Applying patch deletes blank lines

$
0
0

When I apply a patch with VCS -> Apply Patch... the first line of the file, which is blank, is always deleted. How can I preserve the first line as a blank line when I apply a patch?

How can I export project to Archive as in Eclipse

$
0
0

Hello,

 

I am unable to find a comparable - Export-Archive as in Eclipse which creates a ZIP file of the source. 

 

Can someone tell me if this is possible and where it is?

 

Thanks!

AspectJ within Android Studio

$
0
0

Hello to everyone!

 

I'm experimenting with AspectJ plugin for Android development under Gradle build system. Well, I've sucessfully developed and deployed (but not yet published somewhere) gradle compile plugin for Android Studio to build aspects suppling modern popular plugins, such as Android Annotations, Dagger, Retrolambda, etc. At this point I've decided to integrate language highlighting and code assistment into the Studio.

And I found that Ultimate edition supports AspectJ by default, but not community edition (which Android Studio is based on). I've tried to port this plugin under the Studio.

Some success I've got. But not everything works well.

In details:

+ Studio launches and works stable

+ projects properly builds and launches

+ aspects correctly compiles and injects into classes dex

- File roots navBar doesn't work

- Run / Debug / Attach Debugger menu options doesn't work

 

Well, this negatives doesn't brake my work and I can even write aspectJ/Java code as usually, but it looks ugly and makes me feel sad.

Is there any chance or opportunity to make this plugin work for Android Studio? Or maybe some way to buy or obtain it?

 

P.S. My gradle plugin: https://github.com/Archinamon/GradleAspectJ-Android
In attachments is how it looks now in editor with modified AspectJ Support plugin from IntelliJ Ultimate edition.

'Hot swap classes' issue with JBoss plugin

$
0
0

After specifying:

 

screen1.png

 

Now, back here, I deploy and everything is OK:

 

screen2.png

 

when I later push the update button (the single-arrow blue circle "Update 'jsf-fun' application (Command-F10)"), I see:

screen3.png

 

In spite of the fact that "Show dialog" was unchecked earlier.  Selecting "No" here does nothing.  Selecting "Yes" redeploys and changes my configuration back to "Redeploy":

 

screen4.png

 

Is this a bug?  Am I doing something wrong here?

 

Thanks.

war file created as -plain-output

Gradle and Maven's central repository

$
0
0

As I understand, IDEA downloads maven repository indexes if click update in settings. Ok. But when I created a gradle based project, a pop up window show me that there are no indexed repository. But it was already indexed. So for Gradle and Maven repositories are different?


Using Feature Branch development with SVN

$
0
0

I am trying to switch over to Feature Branch style development, wherein work on major new features is done in a branch, and am trying to figure out how to set up IDEA to work with this. Do I create a new project every time I create a new feature branch, or is there some way I should be able to check out the tree from SVN that will let me switch around between branches and the trunk as I work and let me merge back and forth as needed? Any advice or pointers would be greatly appreciated, through searching I was able to find pieces of the process, but not the starting point of setting up the project.

"Search By Implementation" shortcut runs REALLY slow in 14.1.4

$
0
0

In the latest IntelliJ IDEA 14.1.4, the "Search By Implementation" shortcut runs REALLY slow. It wasn't slow in previous versions.

 

The shortcut I'm referring to is when a cursor is on an interface method, doing the "Search By Implementation" shortcut shows me a list of implemented methods.

Websphere remote debugging and SOAP connection

$
0
0

Hello,

 

I'm new to Websphere remote debugging. In IDEA 14 I created a run/debug configuration. On Tab Startup/Connection at Debug I know how to set the Debug port and where I have to set the same port in Websphere.

However when I start I get a SOAP error.

On Tab Server there is the "Server Connection" area where a SOAP port of 8880 is set as the default value. This port is also configured in my Websphere server. However, if I click on "Test connection" I get a "Cannot connect" error message. I tried a lot filling the other input fields with actual values for Cell, Node, Server. All with no success. I have no idea at all about what to input into the User/Password field.

 

Can you help?

 

BTW, I can set up remote debugging using the generic "JSR45 Compatible Server" plugin. Here you just configure the correct debugging port as described above and it works.

So what is the extra value of the Websphere plugin anyway? I assume IDEA can do some remote administration through SOAP. What what for?

 

 

Best regards

 

Michael

How can I configure GSVideo to work with IDEA

$
0
0

I'm trying to take some code that was written in the Processing environment and make it work directly through IDEA.

 

I've been reasonably successful until I tried working with Movies.   The underlying issue seems to be that at run time,  a dynamic library (gstreamer) can't be found. The specific name of that library is libgstreamer-0.10.dylib and I have tried numerous ways to configure the proect to find it  (adding to the library, using -Djava.library.path and so forth) but somehow it still won't load.

 

Wondering if there's another step I need?

 

Thanks

Command+F10, F11, and F12 keys stopped working

$
0
0

OS X 10.10.3

Java 1.6

IntelliJ 14.1.4

 

Would anyone know why command+f10-f12 might just suddenly stop working in IntelliJ? I can't even assign them to new actions. I looked for a keyboard shortcut conflict in System Preferences, and I also tried to shut down every other app except for IntelliJ, but I can't get these keys to work. I know it's something in my environment because these keys work just fine on my other computer running the same versions of OS X and IntelliJ.

 

BTW, adding the Shift key works, and I was able to reassign the keyboard shortcut for "File Structure" from command+F12 to shift+command+F12.

Viewing all 5661 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>